[2025-03-15 00:00:05] Production.INFO: next invoice date [2025-03-15 00:00:05] Production.INFO: 2025-04-15 [2025-03-15 00:00:05] Production.INFO: getdaysdiff [2025-03-15 00:00:05] Production.INFO: +31 [2025-03-15 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (230,16,1,31,31,'RMScheduler',2025-03-15 00:00:05,1,0,,,0) [2025-03-15 00:00:05] Production.INFO: next invoice date [2025-03-15 00:00:05] Production.INFO: 2025-04-15 [2025-03-15 00:00:05] Production.INFO: getdaysdiff [2025-03-15 00:00:05] Production.INFO: +31 [2025-03-15 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (230,13,2,31,31,'RMScheduler',2025-03-15 00:00:05,1,0,,,0) [2025-03-15 00:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 21:00:06 [end_date_ymd] => 2025-03-15 00:00:06 [RateCDR] => 1 ) [2025-03-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-03-14 21:00:06' and `end` < '2025-03-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-03-15 00:00:19] Production.INFO: count ==1057 [2025-03-15 00:00:19] Production.ERROR: pbx CDR StartTime 2025-03-14 21:00:06 - End Time 2025-03-15 00:00:06 [2025-03-15 00:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 00:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682364', 'tblTempUsageDetail_20' ) start [2025-03-15 00:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682364', 'tblTempUsageDetail_20' ) end [2025-03-15 00:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682364', 'tblTempVendorCDR_20' ) start [2025-03-15 00:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682364', 'tblTempVendorCDR_20' ) end [2025-03-15 00:00:19] Production.INFO: ProcessCDR(1,14682364,1,1,2) [2025-03-15 00:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 00:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 00:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 00:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 00:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682364', 'tblTempUsageDetail_20' ) start [2025-03-15 00:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682364', 'tblTempUsageDetail_20' ) end [2025-03-15 00:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 00:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 00:00:24] Production.INFO: ==5688== Releasing lock... [2025-03-15 00:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 00:00:24] Production.INFO: 38.25 MB #Memory Used# [2025-03-15 00:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 21:01:05 [end_date_ymd] => 2025-03-15 00:01:05 [RateCDR] => 1 ) [2025-03-15 00:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-14 21:01:05' and `end` < '2025-03-15 00:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 00:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 21:41:06 [end_date_ymd] => 2025-03-15 00:41:06 [RateCDR] => 1 ) [2025-03-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-03-14 21:41:06' and `end` < '2025-03-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-03-15 00:41:18] Production.INFO: count ==537 [2025-03-15 00:41:18] Production.ERROR: pbx CDR StartTime 2025-03-14 21:41:06 - End Time 2025-03-15 00:41:06 [2025-03-15 00:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682534', 'tblTempUsageDetail_20' ) start [2025-03-15 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682534', 'tblTempUsageDetail_20' ) end [2025-03-15 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682534', 'tblTempVendorCDR_20' ) start [2025-03-15 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682534', 'tblTempVendorCDR_20' ) end [2025-03-15 00:41:18] Production.INFO: ProcessCDR(1,14682534,1,1,2) [2025-03-15 00:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 00:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 00:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 00:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 00:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682534', 'tblTempUsageDetail_20' ) start [2025-03-15 00:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682534', 'tblTempUsageDetail_20' ) end [2025-03-15 00:41:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 00:41:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 00:41:23] Production.INFO: ==9280== Releasing lock... [2025-03-15 00:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 00:41:23] Production.INFO: 32.5 MB #Memory Used# [2025-03-15 00:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 21:42:05 [end_date_ymd] => 2025-03-15 00:42:05 [RateCDR] => 1 ) [2025-03-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-03-14 21:42:05' and `end` < '2025-03-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-03-15 00:42:17] Production.INFO: count ==539 [2025-03-15 00:42:17] Production.ERROR: pbx CDR StartTime 2025-03-14 21:42:05 - End Time 2025-03-15 00:42:05 [2025-03-15 00:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682539', 'tblTempUsageDetail_20' ) start [2025-03-15 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682539', 'tblTempUsageDetail_20' ) end [2025-03-15 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682539', 'tblTempVendorCDR_20' ) start [2025-03-15 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682539', 'tblTempVendorCDR_20' ) end [2025-03-15 00:42:17] Production.INFO: ProcessCDR(1,14682539,1,1,2) [2025-03-15 00:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 00:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 00:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 00:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 00:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682539', 'tblTempUsageDetail_20' ) start [2025-03-15 00:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682539', 'tblTempUsageDetail_20' ) end [2025-03-15 00:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 00:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 00:42:22] Production.INFO: ==9355== Releasing lock... [2025-03-15 00:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 00:42:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-15 00:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 21:43:05 [end_date_ymd] => 2025-03-15 00:43:05 [RateCDR] => 1 ) [2025-03-15 00:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-14 21:43:05' and `end` < '2025-03-15 00:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 00:43:17] Production.INFO: count ==542 [2025-03-15 00:43:17] Production.ERROR: pbx CDR StartTime 2025-03-14 21:43:05 - End Time 2025-03-15 00:43:05 [2025-03-15 00:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682544', 'tblTempUsageDetail_20' ) start [2025-03-15 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682544', 'tblTempUsageDetail_20' ) end [2025-03-15 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682544', 'tblTempVendorCDR_20' ) start [2025-03-15 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682544', 'tblTempVendorCDR_20' ) end [2025-03-15 00:43:17] Production.INFO: ProcessCDR(1,14682544,1,1,2) [2025-03-15 00:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 00:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 00:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 00:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 00:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682544', 'tblTempUsageDetail_20' ) start [2025-03-15 00:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682544', 'tblTempUsageDetail_20' ) end [2025-03-15 00:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 00:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 00:43:22] Production.INFO: ==9432== Releasing lock... [2025-03-15 00:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 00:43:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-15 00:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 21:44:05 [end_date_ymd] => 2025-03-15 00:44:05 [RateCDR] => 1 ) [2025-03-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-03-14 21:44:05' and `end` < '2025-03-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-03-15 00:44:17] Production.INFO: count ==540 [2025-03-15 00:44:17] Production.ERROR: pbx CDR StartTime 2025-03-14 21:44:05 - End Time 2025-03-15 00:44:05 [2025-03-15 00:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682549', 'tblTempUsageDetail_20' ) start [2025-03-15 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682549', 'tblTempUsageDetail_20' ) end [2025-03-15 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682549', 'tblTempVendorCDR_20' ) start [2025-03-15 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682549', 'tblTempVendorCDR_20' ) end [2025-03-15 00:44:17] Production.INFO: ProcessCDR(1,14682549,1,1,2) [2025-03-15 00:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 00:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 00:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 00:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 00:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682549', 'tblTempUsageDetail_20' ) start [2025-03-15 00:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682549', 'tblTempUsageDetail_20' ) end [2025-03-15 00:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 00:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 00:44:22] Production.INFO: ==9504== Releasing lock... [2025-03-15 00:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 00:44:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-15 00:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 21:45:05 [end_date_ymd] => 2025-03-15 00:45:05 [RateCDR] => 1 ) [2025-03-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-03-14 21:45:05' and `end` < '2025-03-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-03-15 00:45:18] Production.INFO: count ==541 [2025-03-15 00:45:18] Production.ERROR: pbx CDR StartTime 2025-03-14 21:45:05 - End Time 2025-03-15 00:45:05 [2025-03-15 00:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682554', 'tblTempUsageDetail_20' ) start [2025-03-15 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682554', 'tblTempUsageDetail_20' ) end [2025-03-15 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682554', 'tblTempVendorCDR_20' ) start [2025-03-15 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682554', 'tblTempVendorCDR_20' ) end [2025-03-15 00:45:18] Production.INFO: ProcessCDR(1,14682554,1,1,2) [2025-03-15 00:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 00:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 00:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 00:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 00:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682554', 'tblTempUsageDetail_20' ) start [2025-03-15 00:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682554', 'tblTempUsageDetail_20' ) end [2025-03-15 00:45:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 00:45:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 00:45:23] Production.INFO: ==9583== Releasing lock... [2025-03-15 00:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 00:45:23] Production.INFO: 32.75 MB #Memory Used# [2025-03-15 00:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 21:46:05 [end_date_ymd] => 2025-03-15 00:46:05 [RateCDR] => 1 ) [2025-03-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-03-14 21:46:05' and `end` < '2025-03-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-03-15 00:46:17] Production.INFO: count ==542 [2025-03-15 00:46:17] Production.ERROR: pbx CDR StartTime 2025-03-14 21:46:05 - End Time 2025-03-15 00:46:05 [2025-03-15 00:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682559', 'tblTempUsageDetail_20' ) start [2025-03-15 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682559', 'tblTempUsageDetail_20' ) end [2025-03-15 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682559', 'tblTempVendorCDR_20' ) start [2025-03-15 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682559', 'tblTempVendorCDR_20' ) end [2025-03-15 00:46:17] Production.INFO: ProcessCDR(1,14682559,1,1,2) [2025-03-15 00:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 00:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 00:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 00:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 00:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682559', 'tblTempUsageDetail_20' ) start [2025-03-15 00:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682559', 'tblTempUsageDetail_20' ) end [2025-03-15 00:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 00:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 00:46:22] Production.INFO: ==9657== Releasing lock... [2025-03-15 00:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 00:46:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-15 00:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 21:47:05 [end_date_ymd] => 2025-03-15 00:47:05 [RateCDR] => 1 ) [2025-03-15 00:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-14 21:47:05' and `end` < '2025-03-15 00:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 00:47:17] Production.INFO: count ==538 [2025-03-15 00:47:18] Production.ERROR: pbx CDR StartTime 2025-03-14 21:47:05 - End Time 2025-03-15 00:47:05 [2025-03-15 00:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682564', 'tblTempUsageDetail_20' ) start [2025-03-15 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682564', 'tblTempUsageDetail_20' ) end [2025-03-15 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682564', 'tblTempVendorCDR_20' ) start [2025-03-15 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682564', 'tblTempVendorCDR_20' ) end [2025-03-15 00:47:18] Production.INFO: ProcessCDR(1,14682564,1,1,2) [2025-03-15 00:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 00:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 00:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 00:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 00:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682564', 'tblTempUsageDetail_20' ) start [2025-03-15 00:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682564', 'tblTempUsageDetail_20' ) end [2025-03-15 00:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 00:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 00:47:22] Production.INFO: ==9730== Releasing lock... [2025-03-15 00:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 00:47:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-15 00:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 21:48:05 [end_date_ymd] => 2025-03-15 00:48:05 [RateCDR] => 1 ) [2025-03-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-03-14 21:48:05' and `end` < '2025-03-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-03-15 00:48:17] Production.INFO: count ==537 [2025-03-15 00:48:17] Production.ERROR: pbx CDR StartTime 2025-03-14 21:48:05 - End Time 2025-03-15 00:48:05 [2025-03-15 00:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682569', 'tblTempUsageDetail_20' ) start [2025-03-15 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682569', 'tblTempUsageDetail_20' ) end [2025-03-15 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682569', 'tblTempVendorCDR_20' ) start [2025-03-15 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682569', 'tblTempVendorCDR_20' ) end [2025-03-15 00:48:17] Production.INFO: ProcessCDR(1,14682569,1,1,2) [2025-03-15 00:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 00:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 00:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 00:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 00:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682569', 'tblTempUsageDetail_20' ) start [2025-03-15 00:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682569', 'tblTempUsageDetail_20' ) end [2025-03-15 00:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 00:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 00:48:21] Production.INFO: ==9806== Releasing lock... [2025-03-15 00:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 00:48:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-15 00:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 21:49:05 [end_date_ymd] => 2025-03-15 00:49:05 [RateCDR] => 1 ) [2025-03-15 00:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-14 21:49:05' and `end` < '2025-03-15 00:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 00:49:17] Production.INFO: count ==537 [2025-03-15 00:49:17] Production.ERROR: pbx CDR StartTime 2025-03-14 21:49:05 - End Time 2025-03-15 00:49:05 [2025-03-15 00:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682574', 'tblTempUsageDetail_20' ) start [2025-03-15 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682574', 'tblTempUsageDetail_20' ) end [2025-03-15 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682574', 'tblTempVendorCDR_20' ) start [2025-03-15 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682574', 'tblTempVendorCDR_20' ) end [2025-03-15 00:49:17] Production.INFO: ProcessCDR(1,14682574,1,1,2) [2025-03-15 00:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 00:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 00:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 00:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 00:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682574', 'tblTempUsageDetail_20' ) start [2025-03-15 00:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682574', 'tblTempUsageDetail_20' ) end [2025-03-15 00:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 00:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 00:49:21] Production.INFO: ==9879== Releasing lock... [2025-03-15 00:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 00:49:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-15 00:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 21:50:06 [end_date_ymd] => 2025-03-15 00:50:06 [RateCDR] => 1 ) [2025-03-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-03-14 21:50:06' and `end` < '2025-03-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-03-15 00:50:18] Production.INFO: count ==547 [2025-03-15 00:50:18] Production.ERROR: pbx CDR StartTime 2025-03-14 21:50:06 - End Time 2025-03-15 00:50:06 [2025-03-15 00:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682580', 'tblTempUsageDetail_20' ) start [2025-03-15 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682580', 'tblTempUsageDetail_20' ) end [2025-03-15 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682580', 'tblTempVendorCDR_20' ) start [2025-03-15 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682580', 'tblTempVendorCDR_20' ) end [2025-03-15 00:50:18] Production.INFO: ProcessCDR(1,14682580,1,1,2) [2025-03-15 00:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 00:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 00:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 00:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 00:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682580', 'tblTempUsageDetail_20' ) start [2025-03-15 00:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682580', 'tblTempUsageDetail_20' ) end [2025-03-15 00:50:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 00:50:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 00:50:23] Production.INFO: ==9992== Releasing lock... [2025-03-15 00:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 00:50:23] Production.INFO: 32.75 MB #Memory Used# [2025-03-15 00:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 21:51:05 [end_date_ymd] => 2025-03-15 00:51:05 [RateCDR] => 1 ) [2025-03-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-03-14 21:51:05' and `end` < '2025-03-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-03-15 00:51:17] Production.INFO: count ==556 [2025-03-15 00:51:17] Production.ERROR: pbx CDR StartTime 2025-03-14 21:51:05 - End Time 2025-03-15 00:51:05 [2025-03-15 00:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682585', 'tblTempUsageDetail_20' ) start [2025-03-15 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682585', 'tblTempUsageDetail_20' ) end [2025-03-15 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682585', 'tblTempVendorCDR_20' ) start [2025-03-15 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682585', 'tblTempVendorCDR_20' ) end [2025-03-15 00:51:17] Production.INFO: ProcessCDR(1,14682585,1,1,2) [2025-03-15 00:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 00:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 00:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 00:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 00:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682585', 'tblTempUsageDetail_20' ) start [2025-03-15 00:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682585', 'tblTempUsageDetail_20' ) end [2025-03-15 00:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 00:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 00:51:22] Production.INFO: ==10069== Releasing lock... [2025-03-15 00:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 00:51:22] Production.INFO: 33 MB #Memory Used# [2025-03-15 00:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 21:52:05 [end_date_ymd] => 2025-03-15 00:52:05 [RateCDR] => 1 ) [2025-03-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-03-14 21:52:05' and `end` < '2025-03-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-03-15 00:52:18] Production.INFO: count ==558 [2025-03-15 00:52:18] Production.ERROR: pbx CDR StartTime 2025-03-14 21:52:05 - End Time 2025-03-15 00:52:05 [2025-03-15 00:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682590', 'tblTempUsageDetail_20' ) start [2025-03-15 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682590', 'tblTempUsageDetail_20' ) end [2025-03-15 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682590', 'tblTempVendorCDR_20' ) start [2025-03-15 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682590', 'tblTempVendorCDR_20' ) end [2025-03-15 00:52:18] Production.INFO: ProcessCDR(1,14682590,1,1,2) [2025-03-15 00:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 00:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 00:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 00:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 00:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682590', 'tblTempUsageDetail_20' ) start [2025-03-15 00:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682590', 'tblTempUsageDetail_20' ) end [2025-03-15 00:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 00:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 00:52:21] Production.INFO: ==10143== Releasing lock... [2025-03-15 00:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 00:52:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-15 00:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 21:53:04 [end_date_ymd] => 2025-03-15 00:53:04 [RateCDR] => 1 ) [2025-03-15 00: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-03-14 21:53:04' and `end` < '2025-03-15 00: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-03-15 00:53:17] Production.INFO: count ==556 [2025-03-15 00:53:17] Production.ERROR: pbx CDR StartTime 2025-03-14 21:53:04 - End Time 2025-03-15 00:53:04 [2025-03-15 00:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682595', 'tblTempUsageDetail_20' ) start [2025-03-15 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682595', 'tblTempUsageDetail_20' ) end [2025-03-15 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682595', 'tblTempVendorCDR_20' ) start [2025-03-15 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682595', 'tblTempVendorCDR_20' ) end [2025-03-15 00:53:17] Production.INFO: ProcessCDR(1,14682595,1,1,2) [2025-03-15 00:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 00:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 00:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 00:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 00:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682595', 'tblTempUsageDetail_20' ) start [2025-03-15 00:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682595', 'tblTempUsageDetail_20' ) end [2025-03-15 00:53:20] Production.ERROR: pbx prc_insertCDR start [2025-03-15 00:53:20] Production.ERROR: pbx prc_insertCDR end [2025-03-15 00:53:20] Production.INFO: ==10216== Releasing lock... [2025-03-15 00:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 00:53:20] Production.INFO: 32.5 MB #Memory Used# [2025-03-15 00:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 21:54:05 [end_date_ymd] => 2025-03-15 00:54:05 [RateCDR] => 1 ) [2025-03-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-03-14 21:54:05' and `end` < '2025-03-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-03-15 00:54:18] Production.INFO: count ==555 [2025-03-15 00:54:18] Production.ERROR: pbx CDR StartTime 2025-03-14 21:54:05 - End Time 2025-03-15 00:54:05 [2025-03-15 00:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682600', 'tblTempUsageDetail_20' ) start [2025-03-15 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682600', 'tblTempUsageDetail_20' ) end [2025-03-15 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682600', 'tblTempVendorCDR_20' ) start [2025-03-15 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682600', 'tblTempVendorCDR_20' ) end [2025-03-15 00:54:18] Production.INFO: ProcessCDR(1,14682600,1,1,2) [2025-03-15 00:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 00:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 00:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 00:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 00:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682600', 'tblTempUsageDetail_20' ) start [2025-03-15 00:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682600', 'tblTempUsageDetail_20' ) end [2025-03-15 00:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 00:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 00:54:21] Production.INFO: ==10292== Releasing lock... [2025-03-15 00:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 00:54:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-15 00:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 21:55:05 [end_date_ymd] => 2025-03-15 00:55:05 [RateCDR] => 1 ) [2025-03-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-03-14 21:55:05' and `end` < '2025-03-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-03-15 00:55:17] Production.INFO: count ==559 [2025-03-15 00:55:17] Production.ERROR: pbx CDR StartTime 2025-03-14 21:55:05 - End Time 2025-03-15 00:55:05 [2025-03-15 00:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682605', 'tblTempUsageDetail_20' ) start [2025-03-15 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682605', 'tblTempUsageDetail_20' ) end [2025-03-15 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682605', 'tblTempVendorCDR_20' ) start [2025-03-15 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682605', 'tblTempVendorCDR_20' ) end [2025-03-15 00:55:17] Production.INFO: ProcessCDR(1,14682605,1,1,2) [2025-03-15 00:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 00:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 00:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 00:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 00:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682605', 'tblTempUsageDetail_20' ) start [2025-03-15 00:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682605', 'tblTempUsageDetail_20' ) end [2025-03-15 00:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 00:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 00:55:22] Production.INFO: ==10366== Releasing lock... [2025-03-15 00:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 00:55:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-15 00:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 21:56:06 [end_date_ymd] => 2025-03-15 00:56:06 [RateCDR] => 1 ) [2025-03-15 00:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-14 21:56:06' and `end` < '2025-03-15 00:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 00:56:18] Production.INFO: count ==561 [2025-03-15 00:56:18] Production.ERROR: pbx CDR StartTime 2025-03-14 21:56:06 - End Time 2025-03-15 00:56:06 [2025-03-15 00:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682610', 'tblTempUsageDetail_20' ) start [2025-03-15 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682610', 'tblTempUsageDetail_20' ) end [2025-03-15 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682610', 'tblTempVendorCDR_20' ) start [2025-03-15 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682610', 'tblTempVendorCDR_20' ) end [2025-03-15 00:56:18] Production.INFO: ProcessCDR(1,14682610,1,1,2) [2025-03-15 00:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 00:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 00:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 00:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 00:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682610', 'tblTempUsageDetail_20' ) start [2025-03-15 00:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682610', 'tblTempUsageDetail_20' ) end [2025-03-15 00:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 00:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 00:56:22] Production.INFO: ==10440== Releasing lock... [2025-03-15 00:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 00:56:22] Production.INFO: 33 MB #Memory Used# [2025-03-15 00:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 21:57:04 [end_date_ymd] => 2025-03-15 00:57:04 [RateCDR] => 1 ) [2025-03-15 00:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-14 21:57:04' and `end` < '2025-03-15 00:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 00:57:17] Production.INFO: count ==558 [2025-03-15 00:57:17] Production.ERROR: pbx CDR StartTime 2025-03-14 21:57:04 - End Time 2025-03-15 00:57:04 [2025-03-15 00:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682615', 'tblTempUsageDetail_20' ) start [2025-03-15 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682615', 'tblTempUsageDetail_20' ) end [2025-03-15 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682615', 'tblTempVendorCDR_20' ) start [2025-03-15 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682615', 'tblTempVendorCDR_20' ) end [2025-03-15 00:57:17] Production.INFO: ProcessCDR(1,14682615,1,1,2) [2025-03-15 00:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 00:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 00:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 00:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 00:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682615', 'tblTempUsageDetail_20' ) start [2025-03-15 00:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682615', 'tblTempUsageDetail_20' ) end [2025-03-15 00:57:20] Production.ERROR: pbx prc_insertCDR start [2025-03-15 00:57:20] Production.ERROR: pbx prc_insertCDR end [2025-03-15 00:57:20] Production.INFO: ==10514== Releasing lock... [2025-03-15 00:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 00:57:20] Production.INFO: 33 MB #Memory Used# [2025-03-15 00:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 21:58:05 [end_date_ymd] => 2025-03-15 00:58:05 [RateCDR] => 1 ) [2025-03-15 00:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-14 21:58:05' and `end` < '2025-03-15 00:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 00:58:17] Production.INFO: count ==551 [2025-03-15 00:58:17] Production.ERROR: pbx CDR StartTime 2025-03-14 21:58:05 - End Time 2025-03-15 00:58:05 [2025-03-15 00:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 00:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682620', 'tblTempUsageDetail_20' ) start [2025-03-15 00:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682620', 'tblTempUsageDetail_20' ) end [2025-03-15 00:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682620', 'tblTempVendorCDR_20' ) start [2025-03-15 00:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682620', 'tblTempVendorCDR_20' ) end [2025-03-15 00:58:17] Production.INFO: ProcessCDR(1,14682620,1,1,2) [2025-03-15 00:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 00:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 00:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 00:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 00:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682620', 'tblTempUsageDetail_20' ) start [2025-03-15 00:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682620', 'tblTempUsageDetail_20' ) end [2025-03-15 00:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 00:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 00:58:22] Production.INFO: ==10588== Releasing lock... [2025-03-15 00:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 00:58:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-15 00:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 21:59:05 [end_date_ymd] => 2025-03-15 00:59:05 [RateCDR] => 1 ) [2025-03-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-03-14 21:59:05' and `end` < '2025-03-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-03-15 00:59:17] Production.INFO: count ==550 [2025-03-15 00:59:17] Production.ERROR: pbx CDR StartTime 2025-03-14 21:59:05 - End Time 2025-03-15 00:59:05 [2025-03-15 00:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682625', 'tblTempUsageDetail_20' ) start [2025-03-15 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682625', 'tblTempUsageDetail_20' ) end [2025-03-15 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682625', 'tblTempVendorCDR_20' ) start [2025-03-15 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682625', 'tblTempVendorCDR_20' ) end [2025-03-15 00:59:17] Production.INFO: ProcessCDR(1,14682625,1,1,2) [2025-03-15 00:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 00:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 00:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 00:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 00:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682625', 'tblTempUsageDetail_20' ) start [2025-03-15 00:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682625', 'tblTempUsageDetail_20' ) end [2025-03-15 00:59:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 00:59:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 00:59:22] Production.INFO: ==10672== Releasing lock... [2025-03-15 00:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 00:59:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-15 01:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 22:00:06 [end_date_ymd] => 2025-03-15 01:00:06 [RateCDR] => 1 ) [2025-03-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-03-14 22:00:06' and `end` < '2025-03-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-03-15 01:00:18] Production.INFO: count ==557 [2025-03-15 01:00:18] Production.ERROR: pbx CDR StartTime 2025-03-14 22:00:06 - End Time 2025-03-15 01:00:06 [2025-03-15 01:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682631', 'tblTempUsageDetail_20' ) start [2025-03-15 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682631', 'tblTempUsageDetail_20' ) end [2025-03-15 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682631', 'tblTempVendorCDR_20' ) start [2025-03-15 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682631', 'tblTempVendorCDR_20' ) end [2025-03-15 01:00:18] Production.INFO: ProcessCDR(1,14682631,1,1,2) [2025-03-15 01:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682631', 'tblTempUsageDetail_20' ) start [2025-03-15 01:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682631', 'tblTempUsageDetail_20' ) end [2025-03-15 01:00:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 01:00:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 01:00:21] Production.INFO: ==10754== Releasing lock... [2025-03-15 01:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 01:00:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-15 01:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 22:01:05 [end_date_ymd] => 2025-03-15 01:01:05 [RateCDR] => 1 ) [2025-03-15 01:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-14 22:01:05' and `end` < '2025-03-15 01:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 01:01:18] Production.INFO: count ==563 [2025-03-15 01:01:18] Production.ERROR: pbx CDR StartTime 2025-03-14 22:01:05 - End Time 2025-03-15 01:01:05 [2025-03-15 01:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682636', 'tblTempUsageDetail_20' ) start [2025-03-15 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682636', 'tblTempUsageDetail_20' ) end [2025-03-15 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682636', 'tblTempVendorCDR_20' ) start [2025-03-15 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682636', 'tblTempVendorCDR_20' ) end [2025-03-15 01:01:18] Production.INFO: ProcessCDR(1,14682636,1,1,2) [2025-03-15 01:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682636', 'tblTempUsageDetail_20' ) start [2025-03-15 01:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682636', 'tblTempUsageDetail_20' ) end [2025-03-15 01:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 01:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 01:01:21] Production.INFO: ==10840== Releasing lock... [2025-03-15 01:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 01:01:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-15 01:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 22:02:05 [end_date_ymd] => 2025-03-15 01:02:05 [RateCDR] => 1 ) [2025-03-15 01:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-14 22:02:05' and `end` < '2025-03-15 01:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 01:02:18] Production.INFO: count ==562 [2025-03-15 01:02:18] Production.ERROR: pbx CDR StartTime 2025-03-14 22:02:05 - End Time 2025-03-15 01:02:05 [2025-03-15 01:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682641', 'tblTempUsageDetail_20' ) start [2025-03-15 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682641', 'tblTempUsageDetail_20' ) end [2025-03-15 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682641', 'tblTempVendorCDR_20' ) start [2025-03-15 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682641', 'tblTempVendorCDR_20' ) end [2025-03-15 01:02:18] Production.INFO: ProcessCDR(1,14682641,1,1,2) [2025-03-15 01:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682641', 'tblTempUsageDetail_20' ) start [2025-03-15 01:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682641', 'tblTempUsageDetail_20' ) end [2025-03-15 01:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 01:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 01:02:21] Production.INFO: ==10914== Releasing lock... [2025-03-15 01:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 01:02:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-15 01:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 22:03:05 [end_date_ymd] => 2025-03-15 01:03:05 [RateCDR] => 1 ) [2025-03-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-03-14 22:03:05' and `end` < '2025-03-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-03-15 01:03:17] Production.INFO: count ==554 [2025-03-15 01:03:17] Production.ERROR: pbx CDR StartTime 2025-03-14 22:03:05 - End Time 2025-03-15 01:03:05 [2025-03-15 01:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682646', 'tblTempUsageDetail_20' ) start [2025-03-15 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682646', 'tblTempUsageDetail_20' ) end [2025-03-15 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682646', 'tblTempVendorCDR_20' ) start [2025-03-15 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682646', 'tblTempVendorCDR_20' ) end [2025-03-15 01:03:17] Production.INFO: ProcessCDR(1,14682646,1,1,2) [2025-03-15 01:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682646', 'tblTempUsageDetail_20' ) start [2025-03-15 01:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682646', 'tblTempUsageDetail_20' ) end [2025-03-15 01:03:20] Production.ERROR: pbx prc_insertCDR start [2025-03-15 01:03:20] Production.ERROR: pbx prc_insertCDR end [2025-03-15 01:03:20] Production.INFO: ==10986== Releasing lock... [2025-03-15 01:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 01:03:20] Production.INFO: 32.75 MB #Memory Used# [2025-03-15 01:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 22:04:05 [end_date_ymd] => 2025-03-15 01:04:05 [RateCDR] => 1 ) [2025-03-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-03-14 22:04:05' and `end` < '2025-03-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-03-15 01:04:17] Production.INFO: count ==557 [2025-03-15 01:04:17] Production.ERROR: pbx CDR StartTime 2025-03-14 22:04:05 - End Time 2025-03-15 01:04:05 [2025-03-15 01:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 01:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682651', 'tblTempUsageDetail_20' ) start [2025-03-15 01:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682651', 'tblTempUsageDetail_20' ) end [2025-03-15 01:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682651', 'tblTempVendorCDR_20' ) start [2025-03-15 01:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682651', 'tblTempVendorCDR_20' ) end [2025-03-15 01:04:17] Production.INFO: ProcessCDR(1,14682651,1,1,2) [2025-03-15 01:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682651', 'tblTempUsageDetail_20' ) start [2025-03-15 01:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682651', 'tblTempUsageDetail_20' ) end [2025-03-15 01:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 01:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 01:04:21] Production.INFO: ==11060== Releasing lock... [2025-03-15 01:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 01:04:21] Production.INFO: 33 MB #Memory Used# [2025-03-15 01:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 22:05:05 [end_date_ymd] => 2025-03-15 01:05:05 [RateCDR] => 1 ) [2025-03-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-03-14 22:05:05' and `end` < '2025-03-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-03-15 01:05:17] Production.INFO: count ==557 [2025-03-15 01:05:17] Production.ERROR: pbx CDR StartTime 2025-03-14 22:05:05 - End Time 2025-03-15 01:05:05 [2025-03-15 01:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682656', 'tblTempUsageDetail_20' ) start [2025-03-15 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682656', 'tblTempUsageDetail_20' ) end [2025-03-15 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682656', 'tblTempVendorCDR_20' ) start [2025-03-15 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682656', 'tblTempVendorCDR_20' ) end [2025-03-15 01:05:17] Production.INFO: ProcessCDR(1,14682656,1,1,2) [2025-03-15 01:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682656', 'tblTempUsageDetail_20' ) start [2025-03-15 01:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682656', 'tblTempUsageDetail_20' ) end [2025-03-15 01:05:20] Production.ERROR: pbx prc_insertCDR start [2025-03-15 01:05:20] Production.ERROR: pbx prc_insertCDR end [2025-03-15 01:05:20] Production.INFO: ==11136== Releasing lock... [2025-03-15 01:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 01:05:20] Production.INFO: 33 MB #Memory Used# [2025-03-15 01:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 22:06:06 [end_date_ymd] => 2025-03-15 01:06:06 [RateCDR] => 1 ) [2025-03-15 01:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-14 22:06:06' and `end` < '2025-03-15 01:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 01:06:18] Production.INFO: count ==556 [2025-03-15 01:06:18] Production.ERROR: pbx CDR StartTime 2025-03-14 22:06:06 - End Time 2025-03-15 01:06:06 [2025-03-15 01:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682661', 'tblTempUsageDetail_20' ) start [2025-03-15 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682661', 'tblTempUsageDetail_20' ) end [2025-03-15 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682661', 'tblTempVendorCDR_20' ) start [2025-03-15 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682661', 'tblTempVendorCDR_20' ) end [2025-03-15 01:06:18] Production.INFO: ProcessCDR(1,14682661,1,1,2) [2025-03-15 01:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682661', 'tblTempUsageDetail_20' ) start [2025-03-15 01:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682661', 'tblTempUsageDetail_20' ) end [2025-03-15 01:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 01:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 01:06:22] Production.INFO: ==11252== Releasing lock... [2025-03-15 01:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 01:06:22] Production.INFO: 33 MB #Memory Used# [2025-03-15 01:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 22:07:05 [end_date_ymd] => 2025-03-15 01:07:05 [RateCDR] => 1 ) [2025-03-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-03-14 22:07:05' and `end` < '2025-03-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-03-15 01:07:17] Production.INFO: count ==559 [2025-03-15 01:07:17] Production.ERROR: pbx CDR StartTime 2025-03-14 22:07:05 - End Time 2025-03-15 01:07:05 [2025-03-15 01:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682666', 'tblTempUsageDetail_20' ) start [2025-03-15 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682666', 'tblTempUsageDetail_20' ) end [2025-03-15 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682666', 'tblTempVendorCDR_20' ) start [2025-03-15 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682666', 'tblTempVendorCDR_20' ) end [2025-03-15 01:07:17] Production.INFO: ProcessCDR(1,14682666,1,1,2) [2025-03-15 01:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682666', 'tblTempUsageDetail_20' ) start [2025-03-15 01:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682666', 'tblTempUsageDetail_20' ) end [2025-03-15 01:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 01:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 01:07:21] Production.INFO: ==11326== Releasing lock... [2025-03-15 01:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 01:07:21] Production.INFO: 33 MB #Memory Used# [2025-03-15 01:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 22:08:05 [end_date_ymd] => 2025-03-15 01:08:05 [RateCDR] => 1 ) [2025-03-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-03-14 22:08:05' and `end` < '2025-03-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-03-15 01:08:17] Production.INFO: count ==559 [2025-03-15 01:08:17] Production.ERROR: pbx CDR StartTime 2025-03-14 22:08:05 - End Time 2025-03-15 01:08:05 [2025-03-15 01:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682671', 'tblTempUsageDetail_20' ) start [2025-03-15 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682671', 'tblTempUsageDetail_20' ) end [2025-03-15 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682671', 'tblTempVendorCDR_20' ) start [2025-03-15 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682671', 'tblTempVendorCDR_20' ) end [2025-03-15 01:08:18] Production.INFO: ProcessCDR(1,14682671,1,1,2) [2025-03-15 01:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682671', 'tblTempUsageDetail_20' ) start [2025-03-15 01:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682671', 'tblTempUsageDetail_20' ) end [2025-03-15 01:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 01:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 01:08:21] Production.INFO: ==11400== Releasing lock... [2025-03-15 01:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 01:08:21] Production.INFO: 33 MB #Memory Used# [2025-03-15 01:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 22:09:05 [end_date_ymd] => 2025-03-15 01:09:05 [RateCDR] => 1 ) [2025-03-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-03-14 22:09:05' and `end` < '2025-03-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-03-15 01:09:17] Production.INFO: count ==551 [2025-03-15 01:09:17] Production.ERROR: pbx CDR StartTime 2025-03-14 22:09:05 - End Time 2025-03-15 01:09:05 [2025-03-15 01:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682676', 'tblTempUsageDetail_20' ) start [2025-03-15 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682676', 'tblTempUsageDetail_20' ) end [2025-03-15 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682676', 'tblTempVendorCDR_20' ) start [2025-03-15 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682676', 'tblTempVendorCDR_20' ) end [2025-03-15 01:09:17] Production.INFO: ProcessCDR(1,14682676,1,1,2) [2025-03-15 01:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682676', 'tblTempUsageDetail_20' ) start [2025-03-15 01:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682676', 'tblTempUsageDetail_20' ) end [2025-03-15 01:09:20] Production.ERROR: pbx prc_insertCDR start [2025-03-15 01:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 01:09:21] Production.INFO: ==11470== Releasing lock... [2025-03-15 01:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 01:09:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-15 01:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 22:10:06 [end_date_ymd] => 2025-03-15 01:10:06 [RateCDR] => 1 ) [2025-03-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-03-14 22:10:06' and `end` < '2025-03-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-03-15 01:10:18] Production.INFO: count ==564 [2025-03-15 01:10:19] Production.ERROR: pbx CDR StartTime 2025-03-14 22:10:06 - End Time 2025-03-15 01:10:06 [2025-03-15 01:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682682', 'tblTempUsageDetail_20' ) start [2025-03-15 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682682', 'tblTempUsageDetail_20' ) end [2025-03-15 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682682', 'tblTempVendorCDR_20' ) start [2025-03-15 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682682', 'tblTempVendorCDR_20' ) end [2025-03-15 01:10:19] Production.INFO: ProcessCDR(1,14682682,1,1,2) [2025-03-15 01:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682682', 'tblTempUsageDetail_20' ) start [2025-03-15 01:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682682', 'tblTempUsageDetail_20' ) end [2025-03-15 01:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 01:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 01:10:22] Production.INFO: ==11547== Releasing lock... [2025-03-15 01:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 01:10:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-15 01:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 22:11:04 [end_date_ymd] => 2025-03-15 01:11:04 [RateCDR] => 1 ) [2025-03-15 01: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-03-14 22:11:04' and `end` < '2025-03-15 01: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-03-15 01:11:17] Production.INFO: count ==564 [2025-03-15 01:11:17] Production.ERROR: pbx CDR StartTime 2025-03-14 22:11:04 - End Time 2025-03-15 01:11:04 [2025-03-15 01:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682687', 'tblTempUsageDetail_20' ) start [2025-03-15 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682687', 'tblTempUsageDetail_20' ) end [2025-03-15 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682687', 'tblTempVendorCDR_20' ) start [2025-03-15 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682687', 'tblTempVendorCDR_20' ) end [2025-03-15 01:11:17] Production.INFO: ProcessCDR(1,14682687,1,1,2) [2025-03-15 01:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682687', 'tblTempUsageDetail_20' ) start [2025-03-15 01:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682687', 'tblTempUsageDetail_20' ) end [2025-03-15 01:11:20] Production.ERROR: pbx prc_insertCDR start [2025-03-15 01:11:20] Production.ERROR: pbx prc_insertCDR end [2025-03-15 01:11:21] Production.INFO: ==11623== Releasing lock... [2025-03-15 01:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 01:11:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-15 01:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 22:12:05 [end_date_ymd] => 2025-03-15 01:12:05 [RateCDR] => 1 ) [2025-03-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-03-14 22:12:05' and `end` < '2025-03-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-03-15 01:12:18] Production.INFO: count ==564 [2025-03-15 01:12:18] Production.ERROR: pbx CDR StartTime 2025-03-14 22:12:05 - End Time 2025-03-15 01:12:05 [2025-03-15 01:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682692', 'tblTempUsageDetail_20' ) start [2025-03-15 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682692', 'tblTempUsageDetail_20' ) end [2025-03-15 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682692', 'tblTempVendorCDR_20' ) start [2025-03-15 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682692', 'tblTempVendorCDR_20' ) end [2025-03-15 01:12:18] Production.INFO: ProcessCDR(1,14682692,1,1,2) [2025-03-15 01:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682692', 'tblTempUsageDetail_20' ) start [2025-03-15 01:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682692', 'tblTempUsageDetail_20' ) end [2025-03-15 01:12:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 01:12:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 01:12:23] Production.INFO: ==11697== Releasing lock... [2025-03-15 01:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 01:12:23] Production.INFO: 32.75 MB #Memory Used# [2025-03-15 01:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 22:13:05 [end_date_ymd] => 2025-03-15 01:13:05 [RateCDR] => 1 ) [2025-03-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-03-14 22:13:05' and `end` < '2025-03-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-03-15 01:13:17] Production.INFO: count ==563 [2025-03-15 01:13:17] Production.ERROR: pbx CDR StartTime 2025-03-14 22:13:05 - End Time 2025-03-15 01:13:05 [2025-03-15 01:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 01:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682697', 'tblTempUsageDetail_20' ) start [2025-03-15 01:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682697', 'tblTempUsageDetail_20' ) end [2025-03-15 01:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682697', 'tblTempVendorCDR_20' ) start [2025-03-15 01:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682697', 'tblTempVendorCDR_20' ) end [2025-03-15 01:13:17] Production.INFO: ProcessCDR(1,14682697,1,1,2) [2025-03-15 01:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682697', 'tblTempUsageDetail_20' ) start [2025-03-15 01:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682697', 'tblTempUsageDetail_20' ) end [2025-03-15 01:13:20] Production.ERROR: pbx prc_insertCDR start [2025-03-15 01:13:20] Production.ERROR: pbx prc_insertCDR end [2025-03-15 01:13:20] Production.INFO: ==11770== Releasing lock... [2025-03-15 01:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 01:13:20] Production.INFO: 33 MB #Memory Used# [2025-03-15 01:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 22:14:05 [end_date_ymd] => 2025-03-15 01:14:05 [RateCDR] => 1 ) [2025-03-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-03-14 22:14:05' and `end` < '2025-03-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-03-15 01:14:17] Production.INFO: count ==557 [2025-03-15 01:14:18] Production.ERROR: pbx CDR StartTime 2025-03-14 22:14:05 - End Time 2025-03-15 01:14:05 [2025-03-15 01:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682702', 'tblTempUsageDetail_20' ) start [2025-03-15 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682702', 'tblTempUsageDetail_20' ) end [2025-03-15 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682702', 'tblTempVendorCDR_20' ) start [2025-03-15 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682702', 'tblTempVendorCDR_20' ) end [2025-03-15 01:14:18] Production.INFO: ProcessCDR(1,14682702,1,1,2) [2025-03-15 01:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682702', 'tblTempUsageDetail_20' ) start [2025-03-15 01:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682702', 'tblTempUsageDetail_20' ) end [2025-03-15 01:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 01:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 01:14:21] Production.INFO: ==11843== Releasing lock... [2025-03-15 01:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 01:14:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-15 01:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 22:15:05 [end_date_ymd] => 2025-03-15 01:15:05 [RateCDR] => 1 ) [2025-03-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-03-14 22:15:05' and `end` < '2025-03-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-03-15 01:15:17] Production.INFO: count ==561 [2025-03-15 01:15:17] Production.ERROR: pbx CDR StartTime 2025-03-14 22:15:05 - End Time 2025-03-15 01:15:05 [2025-03-15 01:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 01:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682707', 'tblTempUsageDetail_20' ) start [2025-03-15 01:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682707', 'tblTempUsageDetail_20' ) end [2025-03-15 01:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682707', 'tblTempVendorCDR_20' ) start [2025-03-15 01:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682707', 'tblTempVendorCDR_20' ) end [2025-03-15 01:15:17] Production.INFO: ProcessCDR(1,14682707,1,1,2) [2025-03-15 01:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682707', 'tblTempUsageDetail_20' ) start [2025-03-15 01:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682707', 'tblTempUsageDetail_20' ) end [2025-03-15 01:15:20] Production.ERROR: pbx prc_insertCDR start [2025-03-15 01:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 01:15:21] Production.INFO: ==11914== Releasing lock... [2025-03-15 01:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 01:15:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-15 01:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 22:16:05 [end_date_ymd] => 2025-03-15 01:16:05 [RateCDR] => 1 ) [2025-03-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-03-14 22:16:05' and `end` < '2025-03-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-03-15 01:16:17] Production.INFO: count ==563 [2025-03-15 01:16:17] Production.ERROR: pbx CDR StartTime 2025-03-14 22:16:05 - End Time 2025-03-15 01:16:05 [2025-03-15 01:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682712', 'tblTempUsageDetail_20' ) start [2025-03-15 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682712', 'tblTempUsageDetail_20' ) end [2025-03-15 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682712', 'tblTempVendorCDR_20' ) start [2025-03-15 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682712', 'tblTempVendorCDR_20' ) end [2025-03-15 01:16:17] Production.INFO: ProcessCDR(1,14682712,1,1,2) [2025-03-15 01:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682712', 'tblTempUsageDetail_20' ) start [2025-03-15 01:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682712', 'tblTempUsageDetail_20' ) end [2025-03-15 01:16:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 01:16:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 01:16:22] Production.INFO: ==11986== Releasing lock... [2025-03-15 01:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 01:16:22] Production.INFO: 33 MB #Memory Used# [2025-03-15 01:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 22:17:06 [end_date_ymd] => 2025-03-15 01:17:06 [RateCDR] => 1 ) [2025-03-15 01:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-14 22:17:06' and `end` < '2025-03-15 01:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 01:17:18] Production.INFO: count ==561 [2025-03-15 01:17:18] Production.ERROR: pbx CDR StartTime 2025-03-14 22:17:06 - End Time 2025-03-15 01:17:06 [2025-03-15 01:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682717', 'tblTempUsageDetail_20' ) start [2025-03-15 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682717', 'tblTempUsageDetail_20' ) end [2025-03-15 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682717', 'tblTempVendorCDR_20' ) start [2025-03-15 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682717', 'tblTempVendorCDR_20' ) end [2025-03-15 01:17:18] Production.INFO: ProcessCDR(1,14682717,1,1,2) [2025-03-15 01:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682717', 'tblTempUsageDetail_20' ) start [2025-03-15 01:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682717', 'tblTempUsageDetail_20' ) end [2025-03-15 01:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 01:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 01:17:21] Production.INFO: ==12060== Releasing lock... [2025-03-15 01:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 01:17:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-15 01:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 22:18:05 [end_date_ymd] => 2025-03-15 01:18:05 [RateCDR] => 1 ) [2025-03-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-03-14 22:18:05' and `end` < '2025-03-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-03-15 01:18:17] Production.INFO: count ==560 [2025-03-15 01:18:17] Production.ERROR: pbx CDR StartTime 2025-03-14 22:18:05 - End Time 2025-03-15 01:18:05 [2025-03-15 01:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682722', 'tblTempUsageDetail_20' ) start [2025-03-15 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682722', 'tblTempUsageDetail_20' ) end [2025-03-15 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682722', 'tblTempVendorCDR_20' ) start [2025-03-15 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682722', 'tblTempVendorCDR_20' ) end [2025-03-15 01:18:17] Production.INFO: ProcessCDR(1,14682722,1,1,2) [2025-03-15 01:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682722', 'tblTempUsageDetail_20' ) start [2025-03-15 01:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682722', 'tblTempUsageDetail_20' ) end [2025-03-15 01:18:20] Production.ERROR: pbx prc_insertCDR start [2025-03-15 01:18:20] Production.ERROR: pbx prc_insertCDR end [2025-03-15 01:18:20] Production.INFO: ==12142== Releasing lock... [2025-03-15 01:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 01:18:20] Production.INFO: 32.25 MB #Memory Used# [2025-03-15 01:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 22:19:05 [end_date_ymd] => 2025-03-15 01:19:05 [RateCDR] => 1 ) [2025-03-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-03-14 22:19:05' and `end` < '2025-03-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-03-15 01:19:18] Production.INFO: count ==562 [2025-03-15 01:19:18] Production.ERROR: pbx CDR StartTime 2025-03-14 22:19:05 - End Time 2025-03-15 01:19:05 [2025-03-15 01:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682727', 'tblTempUsageDetail_20' ) start [2025-03-15 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682727', 'tblTempUsageDetail_20' ) end [2025-03-15 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682727', 'tblTempVendorCDR_20' ) start [2025-03-15 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682727', 'tblTempVendorCDR_20' ) end [2025-03-15 01:19:18] Production.INFO: ProcessCDR(1,14682727,1,1,2) [2025-03-15 01:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682727', 'tblTempUsageDetail_20' ) start [2025-03-15 01:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682727', 'tblTempUsageDetail_20' ) end [2025-03-15 01:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 01:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 01:19:21] Production.INFO: ==12221== Releasing lock... [2025-03-15 01:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 01:19:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-15 01:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 22:20:05 [end_date_ymd] => 2025-03-15 01:20:05 [RateCDR] => 1 ) [2025-03-15 01:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-14 22:20:05' and `end` < '2025-03-15 01:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 01:20:18] Production.INFO: count ==569 [2025-03-15 01:20:18] Production.ERROR: pbx CDR StartTime 2025-03-14 22:20:05 - End Time 2025-03-15 01:20:05 [2025-03-15 01:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682732', 'tblTempUsageDetail_20' ) start [2025-03-15 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682732', 'tblTempUsageDetail_20' ) end [2025-03-15 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682732', 'tblTempVendorCDR_20' ) start [2025-03-15 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682732', 'tblTempVendorCDR_20' ) end [2025-03-15 01:20:18] Production.INFO: ProcessCDR(1,14682732,1,1,2) [2025-03-15 01:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682732', 'tblTempUsageDetail_20' ) start [2025-03-15 01:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682732', 'tblTempUsageDetail_20' ) end [2025-03-15 01:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 01:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 01:20:22] Production.INFO: ==12295== Releasing lock... [2025-03-15 01:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 01:20:22] Production.INFO: 33 MB #Memory Used# [2025-03-15 01:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 22:21:05 [end_date_ymd] => 2025-03-15 01:21:05 [RateCDR] => 1 ) [2025-03-15 01:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-14 22:21:05' and `end` < '2025-03-15 01:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 01:21:18] Production.INFO: count ==583 [2025-03-15 01:21:18] Production.ERROR: pbx CDR StartTime 2025-03-14 22:21:05 - End Time 2025-03-15 01:21:05 [2025-03-15 01:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682738', 'tblTempUsageDetail_20' ) start [2025-03-15 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682738', 'tblTempUsageDetail_20' ) end [2025-03-15 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682738', 'tblTempVendorCDR_20' ) start [2025-03-15 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682738', 'tblTempVendorCDR_20' ) end [2025-03-15 01:21:18] Production.INFO: ProcessCDR(1,14682738,1,1,2) [2025-03-15 01:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682738', 'tblTempUsageDetail_20' ) start [2025-03-15 01:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682738', 'tblTempUsageDetail_20' ) end [2025-03-15 01:21:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 01:21:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 01:21:23] Production.INFO: ==12407== Releasing lock... [2025-03-15 01:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 01:21:23] Production.INFO: 33.25 MB #Memory Used# [2025-03-15 01:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 22:22:05 [end_date_ymd] => 2025-03-15 01:22:05 [RateCDR] => 1 ) [2025-03-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-03-14 22:22:05' and `end` < '2025-03-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-03-15 01:22:17] Production.INFO: count ==592 [2025-03-15 01:22:17] Production.ERROR: pbx CDR StartTime 2025-03-14 22:22:05 - End Time 2025-03-15 01:22:05 [2025-03-15 01:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 01:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682743', 'tblTempUsageDetail_20' ) start [2025-03-15 01:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682743', 'tblTempUsageDetail_20' ) end [2025-03-15 01:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682743', 'tblTempVendorCDR_20' ) start [2025-03-15 01:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682743', 'tblTempVendorCDR_20' ) end [2025-03-15 01:22:17] Production.INFO: ProcessCDR(1,14682743,1,1,2) [2025-03-15 01:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682743', 'tblTempUsageDetail_20' ) start [2025-03-15 01:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682743', 'tblTempUsageDetail_20' ) end [2025-03-15 01:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 01:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 01:22:23] Production.INFO: ==12478== Releasing lock... [2025-03-15 01:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 01:22:23] Production.INFO: 32.5 MB #Memory Used# [2025-03-15 01:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 22:23:06 [end_date_ymd] => 2025-03-15 01:23:06 [RateCDR] => 1 ) [2025-03-15 01:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-14 22:23:06' and `end` < '2025-03-15 01:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 01:23:18] Production.INFO: count ==600 [2025-03-15 01:23:18] Production.ERROR: pbx CDR StartTime 2025-03-14 22:23:06 - End Time 2025-03-15 01:23:06 [2025-03-15 01:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682748', 'tblTempUsageDetail_20' ) start [2025-03-15 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682748', 'tblTempUsageDetail_20' ) end [2025-03-15 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682748', 'tblTempVendorCDR_20' ) start [2025-03-15 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682748', 'tblTempVendorCDR_20' ) end [2025-03-15 01:23:18] Production.INFO: ProcessCDR(1,14682748,1,1,2) [2025-03-15 01:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682748', 'tblTempUsageDetail_20' ) start [2025-03-15 01:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682748', 'tblTempUsageDetail_20' ) end [2025-03-15 01:23:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 01:23:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 01:23:23] Production.INFO: ==12553== Releasing lock... [2025-03-15 01:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 01:23:23] Production.INFO: 33 MB #Memory Used# [2025-03-15 01:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 22:24:05 [end_date_ymd] => 2025-03-15 01:24:05 [RateCDR] => 1 ) [2025-03-15 01:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-14 22:24:05' and `end` < '2025-03-15 01:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 01:24:17] Production.INFO: count ==602 [2025-03-15 01:24:17] Production.ERROR: pbx CDR StartTime 2025-03-14 22:24:05 - End Time 2025-03-15 01:24:05 [2025-03-15 01:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 01:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682753', 'tblTempUsageDetail_20' ) start [2025-03-15 01:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682753', 'tblTempUsageDetail_20' ) end [2025-03-15 01:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682753', 'tblTempVendorCDR_20' ) start [2025-03-15 01:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682753', 'tblTempVendorCDR_20' ) end [2025-03-15 01:24:17] Production.INFO: ProcessCDR(1,14682753,1,1,2) [2025-03-15 01:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682753', 'tblTempUsageDetail_20' ) start [2025-03-15 01:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682753', 'tblTempUsageDetail_20' ) end [2025-03-15 01:24:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 01:24:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 01:24:22] Production.INFO: ==12624== Releasing lock... [2025-03-15 01:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 01:24:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-15 01:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 22:25:06 [end_date_ymd] => 2025-03-15 01:25:06 [RateCDR] => 1 ) [2025-03-15 01:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-14 22:25:06' and `end` < '2025-03-15 01:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 01:25:18] Production.INFO: count ==603 [2025-03-15 01:25:18] Production.ERROR: pbx CDR StartTime 2025-03-14 22:25:06 - End Time 2025-03-15 01:25:06 [2025-03-15 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682758', 'tblTempUsageDetail_20' ) start [2025-03-15 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682758', 'tblTempUsageDetail_20' ) end [2025-03-15 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682758', 'tblTempVendorCDR_20' ) start [2025-03-15 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682758', 'tblTempVendorCDR_20' ) end [2025-03-15 01:25:18] Production.INFO: ProcessCDR(1,14682758,1,1,2) [2025-03-15 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682758', 'tblTempUsageDetail_20' ) start [2025-03-15 01:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682758', 'tblTempUsageDetail_20' ) end [2025-03-15 01:25:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 01:25:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 01:25:23] Production.INFO: ==12717== Releasing lock... [2025-03-15 01:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 01:25:23] Production.INFO: 33.25 MB #Memory Used# [2025-03-15 01:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 22:26:05 [end_date_ymd] => 2025-03-15 01:26:05 [RateCDR] => 1 ) [2025-03-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-03-14 22:26:05' and `end` < '2025-03-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-03-15 01:26:17] Production.INFO: count ==601 [2025-03-15 01:26:17] Production.ERROR: pbx CDR StartTime 2025-03-14 22:26:05 - End Time 2025-03-15 01:26:05 [2025-03-15 01:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 01:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682763', 'tblTempUsageDetail_20' ) start [2025-03-15 01:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682763', 'tblTempUsageDetail_20' ) end [2025-03-15 01:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682763', 'tblTempVendorCDR_20' ) start [2025-03-15 01:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682763', 'tblTempVendorCDR_20' ) end [2025-03-15 01:26:17] Production.INFO: ProcessCDR(1,14682763,1,1,2) [2025-03-15 01:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682763', 'tblTempUsageDetail_20' ) start [2025-03-15 01:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682763', 'tblTempUsageDetail_20' ) end [2025-03-15 01:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 01:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 01:26:21] Production.INFO: ==12825== Releasing lock... [2025-03-15 01:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 01:26:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-15 01:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 22:27:05 [end_date_ymd] => 2025-03-15 01:27:05 [RateCDR] => 1 ) [2025-03-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-03-14 22:27:05' and `end` < '2025-03-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-03-15 01:27:18] Production.INFO: count ==604 [2025-03-15 01:27:18] Production.ERROR: pbx CDR StartTime 2025-03-14 22:27:05 - End Time 2025-03-15 01:27:05 [2025-03-15 01:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682768', 'tblTempUsageDetail_20' ) start [2025-03-15 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682768', 'tblTempUsageDetail_20' ) end [2025-03-15 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682768', 'tblTempVendorCDR_20' ) start [2025-03-15 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682768', 'tblTempVendorCDR_20' ) end [2025-03-15 01:27:18] Production.INFO: ProcessCDR(1,14682768,1,1,2) [2025-03-15 01:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682768', 'tblTempUsageDetail_20' ) start [2025-03-15 01:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682768', 'tblTempUsageDetail_20' ) end [2025-03-15 01:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 01:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 01:27:21] Production.INFO: ==12920== Releasing lock... [2025-03-15 01:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 01:27:21] Production.INFO: 33 MB #Memory Used# [2025-03-15 01:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 22:28:05 [end_date_ymd] => 2025-03-15 01:28:05 [RateCDR] => 1 ) [2025-03-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-03-14 22:28:05' and `end` < '2025-03-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-03-15 01:28:17] Production.INFO: count ==604 [2025-03-15 01:28:17] Production.ERROR: pbx CDR StartTime 2025-03-14 22:28:05 - End Time 2025-03-15 01:28:05 [2025-03-15 01:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682773', 'tblTempUsageDetail_20' ) start [2025-03-15 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682773', 'tblTempUsageDetail_20' ) end [2025-03-15 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682773', 'tblTempVendorCDR_20' ) start [2025-03-15 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682773', 'tblTempVendorCDR_20' ) end [2025-03-15 01:28:17] Production.INFO: ProcessCDR(1,14682773,1,1,2) [2025-03-15 01:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682773', 'tblTempUsageDetail_20' ) start [2025-03-15 01:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682773', 'tblTempUsageDetail_20' ) end [2025-03-15 01:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 01:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 01:28:21] Production.INFO: ==13024== Releasing lock... [2025-03-15 01:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 01:28:21] Production.INFO: 33 MB #Memory Used# [2025-03-15 01:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 22:29:05 [end_date_ymd] => 2025-03-15 01:29:05 [RateCDR] => 1 ) [2025-03-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-03-14 22:29:05' and `end` < '2025-03-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-03-15 01:29:17] Production.INFO: count ==604 [2025-03-15 01:29:18] Production.ERROR: pbx CDR StartTime 2025-03-14 22:29:05 - End Time 2025-03-15 01:29:05 [2025-03-15 01:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682778', 'tblTempUsageDetail_20' ) start [2025-03-15 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682778', 'tblTempUsageDetail_20' ) end [2025-03-15 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682778', 'tblTempVendorCDR_20' ) start [2025-03-15 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682778', 'tblTempVendorCDR_20' ) end [2025-03-15 01:29:18] Production.INFO: ProcessCDR(1,14682778,1,1,2) [2025-03-15 01:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682778', 'tblTempUsageDetail_20' ) start [2025-03-15 01:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682778', 'tblTempUsageDetail_20' ) end [2025-03-15 01:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 01:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 01:29:21] Production.INFO: ==13130== Releasing lock... [2025-03-15 01:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 01:29:21] Production.INFO: 33 MB #Memory Used# [2025-03-15 01:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 22:30:06 [end_date_ymd] => 2025-03-15 01:30:06 [RateCDR] => 1 ) [2025-03-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-03-14 22:30:06' and `end` < '2025-03-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-03-15 01:30:19] Production.INFO: count ==614 [2025-03-15 01:30:19] Production.ERROR: pbx CDR StartTime 2025-03-14 22:30:06 - End Time 2025-03-15 01:30:06 [2025-03-15 01:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682784', 'tblTempUsageDetail_20' ) start [2025-03-15 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682784', 'tblTempUsageDetail_20' ) end [2025-03-15 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682784', 'tblTempVendorCDR_20' ) start [2025-03-15 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682784', 'tblTempVendorCDR_20' ) end [2025-03-15 01:30:19] Production.INFO: ProcessCDR(1,14682784,1,1,2) [2025-03-15 01:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682784', 'tblTempUsageDetail_20' ) start [2025-03-15 01:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682784', 'tblTempUsageDetail_20' ) end [2025-03-15 01:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 01:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 01:30:22] Production.INFO: ==13233== Releasing lock... [2025-03-15 01:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 01:30:22] Production.INFO: 33 MB #Memory Used# [2025-03-15 01:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 22:31:05 [end_date_ymd] => 2025-03-15 01:31:05 [RateCDR] => 1 ) [2025-03-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-03-14 22:31:05' and `end` < '2025-03-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-03-15 01:31:17] Production.INFO: count ==620 [2025-03-15 01:31:18] Production.ERROR: pbx CDR StartTime 2025-03-14 22:31:05 - End Time 2025-03-15 01:31:05 [2025-03-15 01:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682789', 'tblTempUsageDetail_20' ) start [2025-03-15 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682789', 'tblTempUsageDetail_20' ) end [2025-03-15 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682789', 'tblTempVendorCDR_20' ) start [2025-03-15 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682789', 'tblTempVendorCDR_20' ) end [2025-03-15 01:31:18] Production.INFO: ProcessCDR(1,14682789,1,1,2) [2025-03-15 01:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682789', 'tblTempUsageDetail_20' ) start [2025-03-15 01:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682789', 'tblTempUsageDetail_20' ) end [2025-03-15 01:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 01:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 01:31:21] Production.INFO: ==13348== Releasing lock... [2025-03-15 01:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 01:31:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-15 01:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 22:32:05 [end_date_ymd] => 2025-03-15 01:32:05 [RateCDR] => 1 ) [2025-03-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-03-14 22:32:05' and `end` < '2025-03-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-03-15 01:32:17] Production.INFO: count ==620 [2025-03-15 01:32:18] Production.ERROR: pbx CDR StartTime 2025-03-14 22:32:05 - End Time 2025-03-15 01:32:05 [2025-03-15 01:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682794', 'tblTempUsageDetail_20' ) start [2025-03-15 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682794', 'tblTempUsageDetail_20' ) end [2025-03-15 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682794', 'tblTempVendorCDR_20' ) start [2025-03-15 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682794', 'tblTempVendorCDR_20' ) end [2025-03-15 01:32:18] Production.INFO: ProcessCDR(1,14682794,1,1,2) [2025-03-15 01:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682794', 'tblTempUsageDetail_20' ) start [2025-03-15 01:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682794', 'tblTempUsageDetail_20' ) end [2025-03-15 01:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 01:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 01:32:21] Production.INFO: ==13474== Releasing lock... [2025-03-15 01:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 01:32:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-15 01:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 22:33:05 [end_date_ymd] => 2025-03-15 01:33:05 [RateCDR] => 1 ) [2025-03-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-03-14 22:33:05' and `end` < '2025-03-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-03-15 01:33:18] Production.INFO: count ==618 [2025-03-15 01:33:18] Production.ERROR: pbx CDR StartTime 2025-03-14 22:33:05 - End Time 2025-03-15 01:33:05 [2025-03-15 01:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682799', 'tblTempUsageDetail_20' ) start [2025-03-15 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682799', 'tblTempUsageDetail_20' ) end [2025-03-15 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682799', 'tblTempVendorCDR_20' ) start [2025-03-15 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682799', 'tblTempVendorCDR_20' ) end [2025-03-15 01:33:18] Production.INFO: ProcessCDR(1,14682799,1,1,2) [2025-03-15 01:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682799', 'tblTempUsageDetail_20' ) start [2025-03-15 01:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682799', 'tblTempUsageDetail_20' ) end [2025-03-15 01:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 01:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 01:33:21] Production.INFO: ==13587== Releasing lock... [2025-03-15 01:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 01:33:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-15 01:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 22:34:05 [end_date_ymd] => 2025-03-15 01:34:05 [RateCDR] => 1 ) [2025-03-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-03-14 22:34:05' and `end` < '2025-03-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-03-15 01:34:17] Production.INFO: count ==622 [2025-03-15 01:34:17] Production.ERROR: pbx CDR StartTime 2025-03-14 22:34:05 - End Time 2025-03-15 01:34:05 [2025-03-15 01:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 01:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682804', 'tblTempUsageDetail_20' ) start [2025-03-15 01:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682804', 'tblTempUsageDetail_20' ) end [2025-03-15 01:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682804', 'tblTempVendorCDR_20' ) start [2025-03-15 01:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682804', 'tblTempVendorCDR_20' ) end [2025-03-15 01:34:17] Production.INFO: ProcessCDR(1,14682804,1,1,2) [2025-03-15 01:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682804', 'tblTempUsageDetail_20' ) start [2025-03-15 01:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682804', 'tblTempUsageDetail_20' ) end [2025-03-15 01:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 01:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 01:34:21] Production.INFO: ==13715== Releasing lock... [2025-03-15 01:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 01:34:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-15 01:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 22:35:05 [end_date_ymd] => 2025-03-15 01:35:05 [RateCDR] => 1 ) [2025-03-15 01:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-14 22:35:05' and `end` < '2025-03-15 01:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 01:35:17] Production.INFO: count ==618 [2025-03-15 01:35:17] Production.ERROR: pbx CDR StartTime 2025-03-14 22:35:05 - End Time 2025-03-15 01:35:05 [2025-03-15 01:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682809', 'tblTempUsageDetail_20' ) start [2025-03-15 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682809', 'tblTempUsageDetail_20' ) end [2025-03-15 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682809', 'tblTempVendorCDR_20' ) start [2025-03-15 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682809', 'tblTempVendorCDR_20' ) end [2025-03-15 01:35:17] Production.INFO: ProcessCDR(1,14682809,1,1,2) [2025-03-15 01:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682809', 'tblTempUsageDetail_20' ) start [2025-03-15 01:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682809', 'tblTempUsageDetail_20' ) end [2025-03-15 01:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 01:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 01:35:21] Production.INFO: ==13816== Releasing lock... [2025-03-15 01:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 01:35:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-15 01:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 22:36:06 [end_date_ymd] => 2025-03-15 01:36:06 [RateCDR] => 1 ) [2025-03-15 01:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-14 22:36:06' and `end` < '2025-03-15 01:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 01:36:18] Production.INFO: count ==616 [2025-03-15 01:36:18] Production.ERROR: pbx CDR StartTime 2025-03-14 22:36:06 - End Time 2025-03-15 01:36:06 [2025-03-15 01:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682814', 'tblTempUsageDetail_20' ) start [2025-03-15 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682814', 'tblTempUsageDetail_20' ) end [2025-03-15 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682814', 'tblTempVendorCDR_20' ) start [2025-03-15 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682814', 'tblTempVendorCDR_20' ) end [2025-03-15 01:36:18] Production.INFO: ProcessCDR(1,14682814,1,1,2) [2025-03-15 01:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682814', 'tblTempUsageDetail_20' ) start [2025-03-15 01:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682814', 'tblTempUsageDetail_20' ) end [2025-03-15 01:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 01:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 01:36:21] Production.INFO: ==13948== Releasing lock... [2025-03-15 01:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 01:36:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-15 01:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 22:37:06 [end_date_ymd] => 2025-03-15 01:37:06 [RateCDR] => 1 ) [2025-03-15 01:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-14 22:37:06' and `end` < '2025-03-15 01:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 01:37:18] Production.INFO: count ==619 [2025-03-15 01:37:18] Production.ERROR: pbx CDR StartTime 2025-03-14 22:37:06 - End Time 2025-03-15 01:37:06 [2025-03-15 01:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682819', 'tblTempUsageDetail_20' ) start [2025-03-15 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682819', 'tblTempUsageDetail_20' ) end [2025-03-15 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682819', 'tblTempVendorCDR_20' ) start [2025-03-15 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682819', 'tblTempVendorCDR_20' ) end [2025-03-15 01:37:18] Production.INFO: ProcessCDR(1,14682819,1,1,2) [2025-03-15 01:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682819', 'tblTempUsageDetail_20' ) start [2025-03-15 01:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682819', 'tblTempUsageDetail_20' ) end [2025-03-15 01:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 01:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 01:37:21] Production.INFO: ==14096== Releasing lock... [2025-03-15 01:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 01:37:21] Production.INFO: 33 MB #Memory Used# [2025-03-15 01:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 22:38:05 [end_date_ymd] => 2025-03-15 01:38:05 [RateCDR] => 1 ) [2025-03-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-03-14 22:38:05' and `end` < '2025-03-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-03-15 01:38:17] Production.INFO: count ==619 [2025-03-15 01:38:17] Production.ERROR: pbx CDR StartTime 2025-03-14 22:38:05 - End Time 2025-03-15 01:38:05 [2025-03-15 01:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 01:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682824', 'tblTempUsageDetail_20' ) start [2025-03-15 01:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682824', 'tblTempUsageDetail_20' ) end [2025-03-15 01:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682824', 'tblTempVendorCDR_20' ) start [2025-03-15 01:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682824', 'tblTempVendorCDR_20' ) end [2025-03-15 01:38:17] Production.INFO: ProcessCDR(1,14682824,1,1,2) [2025-03-15 01:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682824', 'tblTempUsageDetail_20' ) start [2025-03-15 01:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682824', 'tblTempUsageDetail_20' ) end [2025-03-15 01:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 01:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 01:38:21] Production.INFO: ==14230== Releasing lock... [2025-03-15 01:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 01:38:21] Production.INFO: 33 MB #Memory Used# [2025-03-15 01:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 22:39:05 [end_date_ymd] => 2025-03-15 01:39:05 [RateCDR] => 1 ) [2025-03-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-03-14 22:39:05' and `end` < '2025-03-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-03-15 01:39:17] Production.INFO: count ==617 [2025-03-15 01:39:18] Production.ERROR: pbx CDR StartTime 2025-03-14 22:39:05 - End Time 2025-03-15 01:39:05 [2025-03-15 01:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682829', 'tblTempUsageDetail_20' ) start [2025-03-15 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682829', 'tblTempUsageDetail_20' ) end [2025-03-15 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682829', 'tblTempVendorCDR_20' ) start [2025-03-15 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682829', 'tblTempVendorCDR_20' ) end [2025-03-15 01:39:18] Production.INFO: ProcessCDR(1,14682829,1,1,2) [2025-03-15 01:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682829', 'tblTempUsageDetail_20' ) start [2025-03-15 01:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682829', 'tblTempUsageDetail_20' ) end [2025-03-15 01:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 01:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 01:39:21] Production.INFO: ==14341== Releasing lock... [2025-03-15 01:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 01:39:21] Production.INFO: 33 MB #Memory Used# [2025-03-15 01:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 22:40:06 [end_date_ymd] => 2025-03-15 01:40:06 [RateCDR] => 1 ) [2025-03-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-03-14 22:40:06' and `end` < '2025-03-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-03-15 01:40:18] Production.INFO: count ==625 [2025-03-15 01:40:18] Production.ERROR: pbx CDR StartTime 2025-03-14 22:40:06 - End Time 2025-03-15 01:40:06 [2025-03-15 01:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682835', 'tblTempUsageDetail_20' ) start [2025-03-15 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682835', 'tblTempUsageDetail_20' ) end [2025-03-15 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682835', 'tblTempVendorCDR_20' ) start [2025-03-15 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682835', 'tblTempVendorCDR_20' ) end [2025-03-15 01:40:18] Production.INFO: ProcessCDR(1,14682835,1,1,2) [2025-03-15 01:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682835', 'tblTempUsageDetail_20' ) start [2025-03-15 01:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682835', 'tblTempUsageDetail_20' ) end [2025-03-15 01:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 01:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 01:40:22] Production.INFO: ==14472== Releasing lock... [2025-03-15 01:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 01:40:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-15 01:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 22:41:05 [end_date_ymd] => 2025-03-15 01:41:05 [RateCDR] => 1 ) [2025-03-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-03-14 22:41:05' and `end` < '2025-03-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-03-15 01:41:17] Production.INFO: count ==626 [2025-03-15 01:41:17] Production.ERROR: pbx CDR StartTime 2025-03-14 22:41:05 - End Time 2025-03-15 01:41:05 [2025-03-15 01:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 01:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682840', 'tblTempUsageDetail_20' ) start [2025-03-15 01:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682840', 'tblTempUsageDetail_20' ) end [2025-03-15 01:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682840', 'tblTempVendorCDR_20' ) start [2025-03-15 01:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682840', 'tblTempVendorCDR_20' ) end [2025-03-15 01:41:17] Production.INFO: ProcessCDR(1,14682840,1,1,2) [2025-03-15 01:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682840', 'tblTempUsageDetail_20' ) start [2025-03-15 01:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682840', 'tblTempUsageDetail_20' ) end [2025-03-15 01:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 01:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 01:41:21] Production.INFO: ==14592== Releasing lock... [2025-03-15 01:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 01:41:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-15 01:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 22:42:06 [end_date_ymd] => 2025-03-15 01:42:06 [RateCDR] => 1 ) [2025-03-15 01:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-14 22:42:06' and `end` < '2025-03-15 01:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 01:42:18] Production.INFO: count ==629 [2025-03-15 01:42:18] Production.ERROR: pbx CDR StartTime 2025-03-14 22:42:06 - End Time 2025-03-15 01:42:06 [2025-03-15 01:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682845', 'tblTempUsageDetail_20' ) start [2025-03-15 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682845', 'tblTempUsageDetail_20' ) end [2025-03-15 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682845', 'tblTempVendorCDR_20' ) start [2025-03-15 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682845', 'tblTempVendorCDR_20' ) end [2025-03-15 01:42:18] Production.INFO: ProcessCDR(1,14682845,1,1,2) [2025-03-15 01:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682845', 'tblTempUsageDetail_20' ) start [2025-03-15 01:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682845', 'tblTempUsageDetail_20' ) end [2025-03-15 01:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 01:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 01:42:22] Production.INFO: ==14718== Releasing lock... [2025-03-15 01:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 01:42:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-15 01:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 22:43:05 [end_date_ymd] => 2025-03-15 01:43:05 [RateCDR] => 1 ) [2025-03-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-03-14 22:43:05' and `end` < '2025-03-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-03-15 01:43:17] Production.INFO: count ==633 [2025-03-15 01:43:17] Production.ERROR: pbx CDR StartTime 2025-03-14 22:43:05 - End Time 2025-03-15 01:43:05 [2025-03-15 01:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 01:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682850', 'tblTempUsageDetail_20' ) start [2025-03-15 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682850', 'tblTempUsageDetail_20' ) end [2025-03-15 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682850', 'tblTempVendorCDR_20' ) start [2025-03-15 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682850', 'tblTempVendorCDR_20' ) end [2025-03-15 01:43:18] Production.INFO: ProcessCDR(1,14682850,1,1,2) [2025-03-15 01:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682850', 'tblTempUsageDetail_20' ) start [2025-03-15 01:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682850', 'tblTempUsageDetail_20' ) end [2025-03-15 01:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 01:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 01:43:22] Production.INFO: ==14834== Releasing lock... [2025-03-15 01:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 01:43:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-15 01:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 22:44:05 [end_date_ymd] => 2025-03-15 01:44:05 [RateCDR] => 1 ) [2025-03-15 01:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-14 22:44:05' and `end` < '2025-03-15 01:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 01:44:18] Production.INFO: count ==632 [2025-03-15 01:44:18] Production.ERROR: pbx CDR StartTime 2025-03-14 22:44:05 - End Time 2025-03-15 01:44:05 [2025-03-15 01:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682855', 'tblTempUsageDetail_20' ) start [2025-03-15 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682855', 'tblTempUsageDetail_20' ) end [2025-03-15 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682855', 'tblTempVendorCDR_20' ) start [2025-03-15 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682855', 'tblTempVendorCDR_20' ) end [2025-03-15 01:44:18] Production.INFO: ProcessCDR(1,14682855,1,1,2) [2025-03-15 01:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682855', 'tblTempUsageDetail_20' ) start [2025-03-15 01:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682855', 'tblTempUsageDetail_20' ) end [2025-03-15 01:44:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 01:44:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 01:44:23] Production.INFO: ==14966== Releasing lock... [2025-03-15 01:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 01:44:23] Production.INFO: 33.75 MB #Memory Used# [2025-03-15 01:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 22:45:05 [end_date_ymd] => 2025-03-15 01:45:05 [RateCDR] => 1 ) [2025-03-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-03-14 22:45:05' and `end` < '2025-03-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-03-15 01:45:17] Production.INFO: count ==625 [2025-03-15 01:45:17] Production.ERROR: pbx CDR StartTime 2025-03-14 22:45:05 - End Time 2025-03-15 01:45:05 [2025-03-15 01:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 01:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682860', 'tblTempUsageDetail_20' ) start [2025-03-15 01:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682860', 'tblTempUsageDetail_20' ) end [2025-03-15 01:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682860', 'tblTempVendorCDR_20' ) start [2025-03-15 01:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682860', 'tblTempVendorCDR_20' ) end [2025-03-15 01:45:17] Production.INFO: ProcessCDR(1,14682860,1,1,2) [2025-03-15 01:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682860', 'tblTempUsageDetail_20' ) start [2025-03-15 01:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682860', 'tblTempUsageDetail_20' ) end [2025-03-15 01:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 01:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 01:45:21] Production.INFO: ==15085== Releasing lock... [2025-03-15 01:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 01:45:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-15 01:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 22:46:06 [end_date_ymd] => 2025-03-15 01:46:06 [RateCDR] => 1 ) [2025-03-15 01:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-14 22:46:06' and `end` < '2025-03-15 01:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 01:46:18] Production.INFO: count ==619 [2025-03-15 01:46:18] Production.ERROR: pbx CDR StartTime 2025-03-14 22:46:06 - End Time 2025-03-15 01:46:06 [2025-03-15 01:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682865', 'tblTempUsageDetail_20' ) start [2025-03-15 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682865', 'tblTempUsageDetail_20' ) end [2025-03-15 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682865', 'tblTempVendorCDR_20' ) start [2025-03-15 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682865', 'tblTempVendorCDR_20' ) end [2025-03-15 01:46:18] Production.INFO: ProcessCDR(1,14682865,1,1,2) [2025-03-15 01:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682865', 'tblTempUsageDetail_20' ) start [2025-03-15 01:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682865', 'tblTempUsageDetail_20' ) end [2025-03-15 01:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 01:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 01:46:21] Production.INFO: ==15209== Releasing lock... [2025-03-15 01:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 01:46:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-15 01:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 22:47:05 [end_date_ymd] => 2025-03-15 01:47:05 [RateCDR] => 1 ) [2025-03-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-03-14 22:47:05' and `end` < '2025-03-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-03-15 01:47:17] Production.INFO: count ==612 [2025-03-15 01:47:17] Production.ERROR: pbx CDR StartTime 2025-03-14 22:47:05 - End Time 2025-03-15 01:47:05 [2025-03-15 01:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 01:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682870', 'tblTempUsageDetail_20' ) start [2025-03-15 01:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682870', 'tblTempUsageDetail_20' ) end [2025-03-15 01:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682870', 'tblTempVendorCDR_20' ) start [2025-03-15 01:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682870', 'tblTempVendorCDR_20' ) end [2025-03-15 01:47:17] Production.INFO: ProcessCDR(1,14682870,1,1,2) [2025-03-15 01:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682870', 'tblTempUsageDetail_20' ) start [2025-03-15 01:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682870', 'tblTempUsageDetail_20' ) end [2025-03-15 01:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 01:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 01:47:22] Production.INFO: ==15328== Releasing lock... [2025-03-15 01:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 01:47:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-15 01:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 22:48:06 [end_date_ymd] => 2025-03-15 01:48:06 [RateCDR] => 1 ) [2025-03-15 01:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-14 22:48:06' and `end` < '2025-03-15 01:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 01:48:18] Production.INFO: count ==611 [2025-03-15 01:48:18] Production.ERROR: pbx CDR StartTime 2025-03-14 22:48:06 - End Time 2025-03-15 01:48:06 [2025-03-15 01:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682875', 'tblTempUsageDetail_20' ) start [2025-03-15 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682875', 'tblTempUsageDetail_20' ) end [2025-03-15 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682875', 'tblTempVendorCDR_20' ) start [2025-03-15 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682875', 'tblTempVendorCDR_20' ) end [2025-03-15 01:48:18] Production.INFO: ProcessCDR(1,14682875,1,1,2) [2025-03-15 01:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682875', 'tblTempUsageDetail_20' ) start [2025-03-15 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682875', 'tblTempUsageDetail_20' ) end [2025-03-15 01:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 01:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 01:48:21] Production.INFO: ==15449== Releasing lock... [2025-03-15 01:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 01:48:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-15 01:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 22:49:05 [end_date_ymd] => 2025-03-15 01:49:05 [RateCDR] => 1 ) [2025-03-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-03-14 22:49:05' and `end` < '2025-03-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-03-15 01:49:17] Production.INFO: count ==612 [2025-03-15 01:49:18] Production.ERROR: pbx CDR StartTime 2025-03-14 22:49:05 - End Time 2025-03-15 01:49:05 [2025-03-15 01:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682880', 'tblTempUsageDetail_20' ) start [2025-03-15 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682880', 'tblTempUsageDetail_20' ) end [2025-03-15 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682880', 'tblTempVendorCDR_20' ) start [2025-03-15 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682880', 'tblTempVendorCDR_20' ) end [2025-03-15 01:49:18] Production.INFO: ProcessCDR(1,14682880,1,1,2) [2025-03-15 01:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682880', 'tblTempUsageDetail_20' ) start [2025-03-15 01:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682880', 'tblTempUsageDetail_20' ) end [2025-03-15 01:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 01:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 01:49:21] Production.INFO: ==15577== Releasing lock... [2025-03-15 01:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 01:49:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-15 01:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 22:50:06 [end_date_ymd] => 2025-03-15 01:50:06 [RateCDR] => 1 ) [2025-03-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-03-14 22:50:06' and `end` < '2025-03-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-03-15 01:50:18] Production.INFO: count ==619 [2025-03-15 01:50:18] Production.ERROR: pbx CDR StartTime 2025-03-14 22:50:06 - End Time 2025-03-15 01:50:06 [2025-03-15 01:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682886', 'tblTempUsageDetail_20' ) start [2025-03-15 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682886', 'tblTempUsageDetail_20' ) end [2025-03-15 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682886', 'tblTempVendorCDR_20' ) start [2025-03-15 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682886', 'tblTempVendorCDR_20' ) end [2025-03-15 01:50:18] Production.INFO: ProcessCDR(1,14682886,1,1,2) [2025-03-15 01:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682886', 'tblTempUsageDetail_20' ) start [2025-03-15 01:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682886', 'tblTempUsageDetail_20' ) end [2025-03-15 01:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 01:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 01:50:22] Production.INFO: ==15690== Releasing lock... [2025-03-15 01:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 01:50:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-15 01:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 22:51:05 [end_date_ymd] => 2025-03-15 01:51:05 [RateCDR] => 1 ) [2025-03-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-03-14 22:51:05' and `end` < '2025-03-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-03-15 01:51:17] Production.INFO: count ==594 [2025-03-15 01:51:17] Production.ERROR: pbx CDR StartTime 2025-03-14 22:51:05 - End Time 2025-03-15 01:51:05 [2025-03-15 01:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 01:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682891', 'tblTempUsageDetail_20' ) start [2025-03-15 01:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682891', 'tblTempUsageDetail_20' ) end [2025-03-15 01:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682891', 'tblTempVendorCDR_20' ) start [2025-03-15 01:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682891', 'tblTempVendorCDR_20' ) end [2025-03-15 01:51:17] Production.INFO: ProcessCDR(1,14682891,1,1,2) [2025-03-15 01:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682891', 'tblTempUsageDetail_20' ) start [2025-03-15 01:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682891', 'tblTempUsageDetail_20' ) end [2025-03-15 01:51:20] Production.ERROR: pbx prc_insertCDR start [2025-03-15 01:51:20] Production.ERROR: pbx prc_insertCDR end [2025-03-15 01:51:20] Production.INFO: ==15800== Releasing lock... [2025-03-15 01:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 01:51:20] Production.INFO: 33 MB #Memory Used# [2025-03-15 01:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 22:52:06 [end_date_ymd] => 2025-03-15 01:52:06 [RateCDR] => 1 ) [2025-03-15 01:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-14 22:52:06' and `end` < '2025-03-15 01:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 01:52:18] Production.INFO: count ==570 [2025-03-15 01:52:18] Production.ERROR: pbx CDR StartTime 2025-03-14 22:52:06 - End Time 2025-03-15 01:52:06 [2025-03-15 01:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682896', 'tblTempUsageDetail_20' ) start [2025-03-15 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682896', 'tblTempUsageDetail_20' ) end [2025-03-15 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682896', 'tblTempVendorCDR_20' ) start [2025-03-15 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682896', 'tblTempVendorCDR_20' ) end [2025-03-15 01:52:18] Production.INFO: ProcessCDR(1,14682896,1,1,2) [2025-03-15 01:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682896', 'tblTempUsageDetail_20' ) start [2025-03-15 01:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682896', 'tblTempUsageDetail_20' ) end [2025-03-15 01:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 01:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 01:52:21] Production.INFO: ==15942== Releasing lock... [2025-03-15 01:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 01:52:21] Production.INFO: 33 MB #Memory Used# [2025-03-15 01:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 22:53:05 [end_date_ymd] => 2025-03-15 01:53:05 [RateCDR] => 1 ) [2025-03-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-03-14 22:53:05' and `end` < '2025-03-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-03-15 01:53:17] Production.INFO: count ==571 [2025-03-15 01:53:17] Production.ERROR: pbx CDR StartTime 2025-03-14 22:53:05 - End Time 2025-03-15 01:53:05 [2025-03-15 01:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 01:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682901', 'tblTempUsageDetail_20' ) start [2025-03-15 01:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682901', 'tblTempUsageDetail_20' ) end [2025-03-15 01:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682901', 'tblTempVendorCDR_20' ) start [2025-03-15 01:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682901', 'tblTempVendorCDR_20' ) end [2025-03-15 01:53:17] Production.INFO: ProcessCDR(1,14682901,1,1,2) [2025-03-15 01:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682901', 'tblTempUsageDetail_20' ) start [2025-03-15 01:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682901', 'tblTempUsageDetail_20' ) end [2025-03-15 01:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 01:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 01:53:21] Production.INFO: ==16049== Releasing lock... [2025-03-15 01:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 01:53:21] Production.INFO: 33 MB #Memory Used# [2025-03-15 01:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 22:54:05 [end_date_ymd] => 2025-03-15 01:54:05 [RateCDR] => 1 ) [2025-03-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-03-14 22:54:05' and `end` < '2025-03-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-03-15 01:54:17] Production.INFO: count ==573 [2025-03-15 01:54:17] Production.ERROR: pbx CDR StartTime 2025-03-14 22:54:05 - End Time 2025-03-15 01:54:05 [2025-03-15 01:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 01:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682906', 'tblTempUsageDetail_20' ) start [2025-03-15 01:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682906', 'tblTempUsageDetail_20' ) end [2025-03-15 01:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682906', 'tblTempVendorCDR_20' ) start [2025-03-15 01:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682906', 'tblTempVendorCDR_20' ) end [2025-03-15 01:54:17] Production.INFO: ProcessCDR(1,14682906,1,1,2) [2025-03-15 01:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682906', 'tblTempUsageDetail_20' ) start [2025-03-15 01:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682906', 'tblTempUsageDetail_20' ) end [2025-03-15 01:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 01:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 01:54:21] Production.INFO: ==16158== Releasing lock... [2025-03-15 01:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 01:54:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-15 01:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 22:55:06 [end_date_ymd] => 2025-03-15 01:55:06 [RateCDR] => 1 ) [2025-03-15 01:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-14 22:55:06' and `end` < '2025-03-15 01:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 01:55:18] Production.INFO: count ==573 [2025-03-15 01:55:18] Production.ERROR: pbx CDR StartTime 2025-03-14 22:55:06 - End Time 2025-03-15 01:55:06 [2025-03-15 01:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682911', 'tblTempUsageDetail_20' ) start [2025-03-15 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682911', 'tblTempUsageDetail_20' ) end [2025-03-15 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682911', 'tblTempVendorCDR_20' ) start [2025-03-15 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682911', 'tblTempVendorCDR_20' ) end [2025-03-15 01:55:18] Production.INFO: ProcessCDR(1,14682911,1,1,2) [2025-03-15 01:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682911', 'tblTempUsageDetail_20' ) start [2025-03-15 01:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682911', 'tblTempUsageDetail_20' ) end [2025-03-15 01:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 01:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 01:55:21] Production.INFO: ==16262== Releasing lock... [2025-03-15 01:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 01:55:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-15 01:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 22:56:05 [end_date_ymd] => 2025-03-15 01:56:05 [RateCDR] => 1 ) [2025-03-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-03-14 22:56:05' and `end` < '2025-03-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-03-15 01:56:18] Production.INFO: count ==572 [2025-03-15 01:56:18] Production.ERROR: pbx CDR StartTime 2025-03-14 22:56:05 - End Time 2025-03-15 01:56:05 [2025-03-15 01:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682916', 'tblTempUsageDetail_20' ) start [2025-03-15 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682916', 'tblTempUsageDetail_20' ) end [2025-03-15 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682916', 'tblTempVendorCDR_20' ) start [2025-03-15 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682916', 'tblTempVendorCDR_20' ) end [2025-03-15 01:56:18] Production.INFO: ProcessCDR(1,14682916,1,1,2) [2025-03-15 01:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682916', 'tblTempUsageDetail_20' ) start [2025-03-15 01:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682916', 'tblTempUsageDetail_20' ) end [2025-03-15 01:56:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 01:56:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 01:56:23] Production.INFO: ==16370== Releasing lock... [2025-03-15 01:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 01:56:23] Production.INFO: 33 MB #Memory Used# [2025-03-15 01:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 22:57:06 [end_date_ymd] => 2025-03-15 01:57:06 [RateCDR] => 1 ) [2025-03-15 01:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-14 22:57:06' and `end` < '2025-03-15 01:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 01:57:18] Production.INFO: count ==572 [2025-03-15 01:57:18] Production.ERROR: pbx CDR StartTime 2025-03-14 22:57:06 - End Time 2025-03-15 01:57:06 [2025-03-15 01:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682921', 'tblTempUsageDetail_20' ) start [2025-03-15 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682921', 'tblTempUsageDetail_20' ) end [2025-03-15 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682921', 'tblTempVendorCDR_20' ) start [2025-03-15 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682921', 'tblTempVendorCDR_20' ) end [2025-03-15 01:57:18] Production.INFO: ProcessCDR(1,14682921,1,1,2) [2025-03-15 01:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682921', 'tblTempUsageDetail_20' ) start [2025-03-15 01:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682921', 'tblTempUsageDetail_20' ) end [2025-03-15 01:57:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 01:57:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 01:57:23] Production.INFO: ==16477== Releasing lock... [2025-03-15 01:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 01:57:23] Production.INFO: 33 MB #Memory Used# [2025-03-15 01:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 22:58:05 [end_date_ymd] => 2025-03-15 01:58:05 [RateCDR] => 1 ) [2025-03-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-03-14 22:58:05' and `end` < '2025-03-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-03-15 01:58:17] Production.INFO: count ==579 [2025-03-15 01:58:17] Production.ERROR: pbx CDR StartTime 2025-03-14 22:58:05 - End Time 2025-03-15 01:58:05 [2025-03-15 01:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 01:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682926', 'tblTempUsageDetail_20' ) start [2025-03-15 01:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682926', 'tblTempUsageDetail_20' ) end [2025-03-15 01:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682926', 'tblTempVendorCDR_20' ) start [2025-03-15 01:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682926', 'tblTempVendorCDR_20' ) end [2025-03-15 01:58:17] Production.INFO: ProcessCDR(1,14682926,1,1,2) [2025-03-15 01:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682926', 'tblTempUsageDetail_20' ) start [2025-03-15 01:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682926', 'tblTempUsageDetail_20' ) end [2025-03-15 01:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 01:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 01:58:21] Production.INFO: ==16584== Releasing lock... [2025-03-15 01:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 01:58:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-15 01:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 22:59:06 [end_date_ymd] => 2025-03-15 01:59:06 [RateCDR] => 1 ) [2025-03-15 01:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-14 22:59:06' and `end` < '2025-03-15 01:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 01:59:18] Production.INFO: count ==575 [2025-03-15 01:59:18] Production.ERROR: pbx CDR StartTime 2025-03-14 22:59:06 - End Time 2025-03-15 01:59:06 [2025-03-15 01:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682931', 'tblTempUsageDetail_20' ) start [2025-03-15 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682931', 'tblTempUsageDetail_20' ) end [2025-03-15 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682931', 'tblTempVendorCDR_20' ) start [2025-03-15 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682931', 'tblTempVendorCDR_20' ) end [2025-03-15 01:59:18] Production.INFO: ProcessCDR(1,14682931,1,1,2) [2025-03-15 01:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 01:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 01:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682931', 'tblTempUsageDetail_20' ) start [2025-03-15 01:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682931', 'tblTempUsageDetail_20' ) end [2025-03-15 01:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 01:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 01:59:22] Production.INFO: ==16692== Releasing lock... [2025-03-15 01:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 01:59:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-15 02:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 23:00:06 [end_date_ymd] => 2025-03-15 02:00:06 [RateCDR] => 1 ) [2025-03-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-03-14 23:00:06' and `end` < '2025-03-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-03-15 02:00:18] Production.INFO: count ==584 [2025-03-15 02:00:18] Production.ERROR: pbx CDR StartTime 2025-03-14 23:00:06 - End Time 2025-03-15 02:00:06 [2025-03-15 02:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682936', 'tblTempUsageDetail_20' ) start [2025-03-15 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682936', 'tblTempUsageDetail_20' ) end [2025-03-15 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682936', 'tblTempVendorCDR_20' ) start [2025-03-15 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682936', 'tblTempVendorCDR_20' ) end [2025-03-15 02:00:18] Production.INFO: ProcessCDR(1,14682936,1,1,2) [2025-03-15 02:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682936', 'tblTempUsageDetail_20' ) start [2025-03-15 02:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682936', 'tblTempUsageDetail_20' ) end [2025-03-15 02:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 02:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 02:00:22] Production.INFO: ==16802== Releasing lock... [2025-03-15 02:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 02:00:22] Production.INFO: 33 MB #Memory Used# [2025-03-15 02:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 23:01:06 [end_date_ymd] => 2025-03-15 02:01:06 [RateCDR] => 1 ) [2025-03-15 02:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-14 23:01:06' and `end` < '2025-03-15 02:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 02:01:18] Production.INFO: count ==591 [2025-03-15 02:01:18] Production.ERROR: pbx CDR StartTime 2025-03-14 23:01:06 - End Time 2025-03-15 02:01:06 [2025-03-15 02:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682942', 'tblTempUsageDetail_20' ) start [2025-03-15 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682942', 'tblTempUsageDetail_20' ) end [2025-03-15 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682942', 'tblTempVendorCDR_20' ) start [2025-03-15 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682942', 'tblTempVendorCDR_20' ) end [2025-03-15 02:01:19] Production.INFO: ProcessCDR(1,14682942,1,1,2) [2025-03-15 02:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682942', 'tblTempUsageDetail_20' ) start [2025-03-15 02:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682942', 'tblTempUsageDetail_20' ) end [2025-03-15 02:01:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 02:01:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 02:01:22] Production.INFO: ==16921== Releasing lock... [2025-03-15 02:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 02:01:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-15 02:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 23:02:05 [end_date_ymd] => 2025-03-15 02:02:05 [RateCDR] => 1 ) [2025-03-15 02:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-14 23:02:05' and `end` < '2025-03-15 02:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 02:02:17] Production.INFO: count ==591 [2025-03-15 02:02:17] Production.ERROR: pbx CDR StartTime 2025-03-14 23:02:05 - End Time 2025-03-15 02:02:05 [2025-03-15 02:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 02:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682947', 'tblTempUsageDetail_20' ) start [2025-03-15 02:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682947', 'tblTempUsageDetail_20' ) end [2025-03-15 02:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682947', 'tblTempVendorCDR_20' ) start [2025-03-15 02:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682947', 'tblTempVendorCDR_20' ) end [2025-03-15 02:02:17] Production.INFO: ProcessCDR(1,14682947,1,1,2) [2025-03-15 02:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682947', 'tblTempUsageDetail_20' ) start [2025-03-15 02:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682947', 'tblTempUsageDetail_20' ) end [2025-03-15 02:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 02:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 02:02:21] Production.INFO: ==17114== Releasing lock... [2025-03-15 02:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 02:02:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-15 02:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 23:03:06 [end_date_ymd] => 2025-03-15 02:03:06 [RateCDR] => 1 ) [2025-03-15 02:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-14 23:03:06' and `end` < '2025-03-15 02:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 02:03:18] Production.INFO: count ==590 [2025-03-15 02:03:18] Production.ERROR: pbx CDR StartTime 2025-03-14 23:03:06 - End Time 2025-03-15 02:03:06 [2025-03-15 02:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682952', 'tblTempUsageDetail_20' ) start [2025-03-15 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682952', 'tblTempUsageDetail_20' ) end [2025-03-15 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682952', 'tblTempVendorCDR_20' ) start [2025-03-15 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682952', 'tblTempVendorCDR_20' ) end [2025-03-15 02:03:18] Production.INFO: ProcessCDR(1,14682952,1,1,2) [2025-03-15 02:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682952', 'tblTempUsageDetail_20' ) start [2025-03-15 02:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682952', 'tblTempUsageDetail_20' ) end [2025-03-15 02:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 02:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 02:03:22] Production.INFO: ==17224== Releasing lock... [2025-03-15 02:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 02:03:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-15 02:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 23:04:05 [end_date_ymd] => 2025-03-15 02:04:05 [RateCDR] => 1 ) [2025-03-15 02:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-14 23:04:05' and `end` < '2025-03-15 02:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 02:04:17] Production.INFO: count ==584 [2025-03-15 02:04:17] Production.ERROR: pbx CDR StartTime 2025-03-14 23:04:05 - End Time 2025-03-15 02:04:05 [2025-03-15 02:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 02:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682957', 'tblTempUsageDetail_20' ) start [2025-03-15 02:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682957', 'tblTempUsageDetail_20' ) end [2025-03-15 02:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682957', 'tblTempVendorCDR_20' ) start [2025-03-15 02:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682957', 'tblTempVendorCDR_20' ) end [2025-03-15 02:04:17] Production.INFO: ProcessCDR(1,14682957,1,1,2) [2025-03-15 02:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682957', 'tblTempUsageDetail_20' ) start [2025-03-15 02:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682957', 'tblTempUsageDetail_20' ) end [2025-03-15 02:04:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 02:04:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 02:04:23] Production.INFO: ==17330== Releasing lock... [2025-03-15 02:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 02:04:23] Production.INFO: 33 MB #Memory Used# [2025-03-15 02:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 23:05:05 [end_date_ymd] => 2025-03-15 02:05:05 [RateCDR] => 1 ) [2025-03-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-03-14 23:05:05' and `end` < '2025-03-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-03-15 02:05:17] Production.INFO: count ==583 [2025-03-15 02:05:18] Production.ERROR: pbx CDR StartTime 2025-03-14 23:05:05 - End Time 2025-03-15 02:05:05 [2025-03-15 02:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682962', 'tblTempUsageDetail_20' ) start [2025-03-15 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682962', 'tblTempUsageDetail_20' ) end [2025-03-15 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682962', 'tblTempVendorCDR_20' ) start [2025-03-15 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682962', 'tblTempVendorCDR_20' ) end [2025-03-15 02:05:18] Production.INFO: ProcessCDR(1,14682962,1,1,2) [2025-03-15 02:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682962', 'tblTempUsageDetail_20' ) start [2025-03-15 02:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682962', 'tblTempUsageDetail_20' ) end [2025-03-15 02:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 02:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 02:05:22] Production.INFO: ==17439== Releasing lock... [2025-03-15 02:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 02:05:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-15 02:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 23:06:05 [end_date_ymd] => 2025-03-15 02:06:05 [RateCDR] => 1 ) [2025-03-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-03-14 23:06:05' and `end` < '2025-03-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-03-15 02:06:17] Production.INFO: count ==584 [2025-03-15 02:06:17] Production.ERROR: pbx CDR StartTime 2025-03-14 23:06:05 - End Time 2025-03-15 02:06:05 [2025-03-15 02:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 02:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682967', 'tblTempUsageDetail_20' ) start [2025-03-15 02:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682967', 'tblTempUsageDetail_20' ) end [2025-03-15 02:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682967', 'tblTempVendorCDR_20' ) start [2025-03-15 02:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682967', 'tblTempVendorCDR_20' ) end [2025-03-15 02:06:17] Production.INFO: ProcessCDR(1,14682967,1,1,2) [2025-03-15 02:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682967', 'tblTempUsageDetail_20' ) start [2025-03-15 02:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682967', 'tblTempUsageDetail_20' ) end [2025-03-15 02:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 02:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 02:06:21] Production.INFO: ==17543== Releasing lock... [2025-03-15 02:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 02:06:21] Production.INFO: 33 MB #Memory Used# [2025-03-15 02:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 23:07:06 [end_date_ymd] => 2025-03-15 02:07:06 [RateCDR] => 1 ) [2025-03-15 02:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-14 23:07:06' and `end` < '2025-03-15 02:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 02:07:18] Production.INFO: count ==583 [2025-03-15 02:07:18] Production.ERROR: pbx CDR StartTime 2025-03-14 23:07:06 - End Time 2025-03-15 02:07:06 [2025-03-15 02:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682972', 'tblTempUsageDetail_20' ) start [2025-03-15 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682972', 'tblTempUsageDetail_20' ) end [2025-03-15 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682972', 'tblTempVendorCDR_20' ) start [2025-03-15 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682972', 'tblTempVendorCDR_20' ) end [2025-03-15 02:07:18] Production.INFO: ProcessCDR(1,14682972,1,1,2) [2025-03-15 02:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682972', 'tblTempUsageDetail_20' ) start [2025-03-15 02:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682972', 'tblTempUsageDetail_20' ) end [2025-03-15 02:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 02:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 02:07:21] Production.INFO: ==17648== Releasing lock... [2025-03-15 02:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 02:07:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-15 02:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 23:08:05 [end_date_ymd] => 2025-03-15 02:08:05 [RateCDR] => 1 ) [2025-03-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-03-14 23:08:05' and `end` < '2025-03-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-03-15 02:08:18] Production.INFO: count ==583 [2025-03-15 02:08:18] Production.ERROR: pbx CDR StartTime 2025-03-14 23:08:05 - End Time 2025-03-15 02:08:05 [2025-03-15 02:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682977', 'tblTempUsageDetail_20' ) start [2025-03-15 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682977', 'tblTempUsageDetail_20' ) end [2025-03-15 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682977', 'tblTempVendorCDR_20' ) start [2025-03-15 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682977', 'tblTempVendorCDR_20' ) end [2025-03-15 02:08:18] Production.INFO: ProcessCDR(1,14682977,1,1,2) [2025-03-15 02:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682977', 'tblTempUsageDetail_20' ) start [2025-03-15 02:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682977', 'tblTempUsageDetail_20' ) end [2025-03-15 02:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 02:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 02:08:21] Production.INFO: ==17796== Releasing lock... [2025-03-15 02:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 02:08:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-15 02:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 23:09:05 [end_date_ymd] => 2025-03-15 02:09:05 [RateCDR] => 1 ) [2025-03-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-03-14 23:09:05' and `end` < '2025-03-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-03-15 02:09:17] Production.INFO: count ==584 [2025-03-15 02:09:17] Production.ERROR: pbx CDR StartTime 2025-03-14 23:09:05 - End Time 2025-03-15 02:09:05 [2025-03-15 02:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682982', 'tblTempUsageDetail_20' ) start [2025-03-15 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682982', 'tblTempUsageDetail_20' ) end [2025-03-15 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682982', 'tblTempVendorCDR_20' ) start [2025-03-15 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682982', 'tblTempVendorCDR_20' ) end [2025-03-15 02:09:17] Production.INFO: ProcessCDR(1,14682982,1,1,2) [2025-03-15 02:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682982', 'tblTempUsageDetail_20' ) start [2025-03-15 02:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682982', 'tblTempUsageDetail_20' ) end [2025-03-15 02:09:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 02:09:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 02:09:22] Production.INFO: ==17904== Releasing lock... [2025-03-15 02:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 02:09:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-15 02:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 23:10:06 [end_date_ymd] => 2025-03-15 02:10:06 [RateCDR] => 1 ) [2025-03-15 02:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-14 23:10:06' and `end` < '2025-03-15 02:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 02:10:19] Production.INFO: count ==594 [2025-03-15 02:10:19] Production.ERROR: pbx CDR StartTime 2025-03-14 23:10:06 - End Time 2025-03-15 02:10:06 [2025-03-15 02:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682988', 'tblTempUsageDetail_20' ) start [2025-03-15 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682988', 'tblTempUsageDetail_20' ) end [2025-03-15 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682988', 'tblTempVendorCDR_20' ) start [2025-03-15 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682988', 'tblTempVendorCDR_20' ) end [2025-03-15 02:10:19] Production.INFO: ProcessCDR(1,14682988,1,1,2) [2025-03-15 02:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682988', 'tblTempUsageDetail_20' ) start [2025-03-15 02:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682988', 'tblTempUsageDetail_20' ) end [2025-03-15 02:10:24] Production.ERROR: pbx prc_insertCDR start [2025-03-15 02:10:24] Production.ERROR: pbx prc_insertCDR end [2025-03-15 02:10:24] Production.INFO: ==18014== Releasing lock... [2025-03-15 02:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 02:10:24] Production.INFO: 33 MB #Memory Used# [2025-03-15 02:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 23:11:05 [end_date_ymd] => 2025-03-15 02:11:05 [RateCDR] => 1 ) [2025-03-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-03-14 23:11:05' and `end` < '2025-03-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-03-15 02:11:17] Production.INFO: count ==594 [2025-03-15 02:11:18] Production.ERROR: pbx CDR StartTime 2025-03-14 23:11:05 - End Time 2025-03-15 02:11:05 [2025-03-15 02:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682993', 'tblTempUsageDetail_20' ) start [2025-03-15 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682993', 'tblTempUsageDetail_20' ) end [2025-03-15 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682993', 'tblTempVendorCDR_20' ) start [2025-03-15 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682993', 'tblTempVendorCDR_20' ) end [2025-03-15 02:11:18] Production.INFO: ProcessCDR(1,14682993,1,1,2) [2025-03-15 02:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682993', 'tblTempUsageDetail_20' ) start [2025-03-15 02:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682993', 'tblTempUsageDetail_20' ) end [2025-03-15 02:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 02:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 02:11:21] Production.INFO: ==18125== Releasing lock... [2025-03-15 02:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 02:11:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-15 02:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 23:12:05 [end_date_ymd] => 2025-03-15 02:12:05 [RateCDR] => 1 ) [2025-03-15 02:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-14 23:12:05' and `end` < '2025-03-15 02:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 02:12:17] Production.INFO: count ==594 [2025-03-15 02:12:17] Production.ERROR: pbx CDR StartTime 2025-03-14 23:12:05 - End Time 2025-03-15 02:12:05 [2025-03-15 02:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 02:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682998', 'tblTempUsageDetail_20' ) start [2025-03-15 02:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682998', 'tblTempUsageDetail_20' ) end [2025-03-15 02:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682998', 'tblTempVendorCDR_20' ) start [2025-03-15 02:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682998', 'tblTempVendorCDR_20' ) end [2025-03-15 02:12:17] Production.INFO: ProcessCDR(1,14682998,1,1,2) [2025-03-15 02:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682998', 'tblTempUsageDetail_20' ) start [2025-03-15 02:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682998', 'tblTempUsageDetail_20' ) end [2025-03-15 02:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 02:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 02:12:21] Production.INFO: ==18230== Releasing lock... [2025-03-15 02:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 02:12:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-15 02:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 23:13:05 [end_date_ymd] => 2025-03-15 02:13:05 [RateCDR] => 1 ) [2025-03-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-03-14 23:13:05' and `end` < '2025-03-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-03-15 02:13:17] Production.INFO: count ==594 [2025-03-15 02:13:17] Production.ERROR: pbx CDR StartTime 2025-03-14 23:13:05 - End Time 2025-03-15 02:13:05 [2025-03-15 02:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683003', 'tblTempUsageDetail_20' ) start [2025-03-15 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683003', 'tblTempUsageDetail_20' ) end [2025-03-15 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683003', 'tblTempVendorCDR_20' ) start [2025-03-15 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683003', 'tblTempVendorCDR_20' ) end [2025-03-15 02:13:17] Production.INFO: ProcessCDR(1,14683003,1,1,2) [2025-03-15 02:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683003', 'tblTempUsageDetail_20' ) start [2025-03-15 02:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683003', 'tblTempUsageDetail_20' ) end [2025-03-15 02:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 02:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 02:13:21] Production.INFO: ==18337== Releasing lock... [2025-03-15 02:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 02:13:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-15 02:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 23:14:05 [end_date_ymd] => 2025-03-15 02:14:05 [RateCDR] => 1 ) [2025-03-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-03-14 23:14:05' and `end` < '2025-03-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-03-15 02:14:17] Production.INFO: count ==592 [2025-03-15 02:14:17] Production.ERROR: pbx CDR StartTime 2025-03-14 23:14:05 - End Time 2025-03-15 02:14:05 [2025-03-15 02:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 02:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683008', 'tblTempUsageDetail_20' ) start [2025-03-15 02:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683008', 'tblTempUsageDetail_20' ) end [2025-03-15 02:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683008', 'tblTempVendorCDR_20' ) start [2025-03-15 02:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683008', 'tblTempVendorCDR_20' ) end [2025-03-15 02:14:17] Production.INFO: ProcessCDR(1,14683008,1,1,2) [2025-03-15 02:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683008', 'tblTempUsageDetail_20' ) start [2025-03-15 02:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683008', 'tblTempUsageDetail_20' ) end [2025-03-15 02:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 02:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 02:14:21] Production.INFO: ==18442== Releasing lock... [2025-03-15 02:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 02:14:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-15 02:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 23:15:05 [end_date_ymd] => 2025-03-15 02:15:05 [RateCDR] => 1 ) [2025-03-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-03-14 23:15:05' and `end` < '2025-03-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-03-15 02:15:17] Production.INFO: count ==590 [2025-03-15 02:15:17] Production.ERROR: pbx CDR StartTime 2025-03-14 23:15:05 - End Time 2025-03-15 02:15:05 [2025-03-15 02:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683011', 'tblTempUsageDetail_20' ) start [2025-03-15 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683011', 'tblTempUsageDetail_20' ) end [2025-03-15 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683011', 'tblTempVendorCDR_20' ) start [2025-03-15 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683011', 'tblTempVendorCDR_20' ) end [2025-03-15 02:15:17] Production.INFO: ProcessCDR(1,14683011,1,1,2) [2025-03-15 02:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683011', 'tblTempUsageDetail_20' ) start [2025-03-15 02:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683011', 'tblTempUsageDetail_20' ) end [2025-03-15 02:15:20] Production.ERROR: pbx prc_insertCDR start [2025-03-15 02:15:20] Production.ERROR: pbx prc_insertCDR end [2025-03-15 02:15:20] Production.INFO: ==18549== Releasing lock... [2025-03-15 02:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 02:15:20] Production.INFO: 33 MB #Memory Used# [2025-03-15 02:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 23:16:05 [end_date_ymd] => 2025-03-15 02:16:05 [RateCDR] => 1 ) [2025-03-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-03-14 23:16:05' and `end` < '2025-03-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-03-15 02:16:17] Production.INFO: count ==586 [2025-03-15 02:16:17] Production.ERROR: pbx CDR StartTime 2025-03-14 23:16:05 - End Time 2025-03-15 02:16:05 [2025-03-15 02:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683018', 'tblTempUsageDetail_20' ) start [2025-03-15 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683018', 'tblTempUsageDetail_20' ) end [2025-03-15 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683018', 'tblTempVendorCDR_20' ) start [2025-03-15 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683018', 'tblTempVendorCDR_20' ) end [2025-03-15 02:16:17] Production.INFO: ProcessCDR(1,14683018,1,1,2) [2025-03-15 02:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683018', 'tblTempUsageDetail_20' ) start [2025-03-15 02:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683018', 'tblTempUsageDetail_20' ) end [2025-03-15 02:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 02:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 02:16:21] Production.INFO: ==18656== Releasing lock... [2025-03-15 02:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 02:16:21] Production.INFO: 33 MB #Memory Used# [2025-03-15 02:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 23:17:05 [end_date_ymd] => 2025-03-15 02:17:05 [RateCDR] => 1 ) [2025-03-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-03-14 23:17:05' and `end` < '2025-03-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-03-15 02:17:17] Production.INFO: count ==585 [2025-03-15 02:17:17] Production.ERROR: pbx CDR StartTime 2025-03-14 23:17:05 - End Time 2025-03-15 02:17:05 [2025-03-15 02:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683023', 'tblTempUsageDetail_20' ) start [2025-03-15 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683023', 'tblTempUsageDetail_20' ) end [2025-03-15 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683023', 'tblTempVendorCDR_20' ) start [2025-03-15 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683023', 'tblTempVendorCDR_20' ) end [2025-03-15 02:17:17] Production.INFO: ProcessCDR(1,14683023,1,1,2) [2025-03-15 02:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683023', 'tblTempUsageDetail_20' ) start [2025-03-15 02:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683023', 'tblTempUsageDetail_20' ) end [2025-03-15 02:17:20] Production.ERROR: pbx prc_insertCDR start [2025-03-15 02:17:20] Production.ERROR: pbx prc_insertCDR end [2025-03-15 02:17:20] Production.INFO: ==18765== Releasing lock... [2025-03-15 02:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 02:17:20] Production.INFO: 33.25 MB #Memory Used# [2025-03-15 02:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 23:18:05 [end_date_ymd] => 2025-03-15 02:18:05 [RateCDR] => 1 ) [2025-03-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-03-14 23:18:05' and `end` < '2025-03-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-03-15 02:18:18] Production.INFO: count ==582 [2025-03-15 02:18:18] Production.ERROR: pbx CDR StartTime 2025-03-14 23:18:05 - End Time 2025-03-15 02:18:05 [2025-03-15 02:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683028', 'tblTempUsageDetail_20' ) start [2025-03-15 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683028', 'tblTempUsageDetail_20' ) end [2025-03-15 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683028', 'tblTempVendorCDR_20' ) start [2025-03-15 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683028', 'tblTempVendorCDR_20' ) end [2025-03-15 02:18:18] Production.INFO: ProcessCDR(1,14683028,1,1,2) [2025-03-15 02:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683028', 'tblTempUsageDetail_20' ) start [2025-03-15 02:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683028', 'tblTempUsageDetail_20' ) end [2025-03-15 02:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 02:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 02:18:21] Production.INFO: ==18876== Releasing lock... [2025-03-15 02:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 02:18:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-15 02:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 23:19:05 [end_date_ymd] => 2025-03-15 02:19:05 [RateCDR] => 1 ) [2025-03-15 02:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-14 23:19:05' and `end` < '2025-03-15 02:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 02:19:17] Production.INFO: count ==579 [2025-03-15 02:19:17] Production.ERROR: pbx CDR StartTime 2025-03-14 23:19:05 - End Time 2025-03-15 02:19:05 [2025-03-15 02:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683033', 'tblTempUsageDetail_20' ) start [2025-03-15 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683033', 'tblTempUsageDetail_20' ) end [2025-03-15 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683033', 'tblTempVendorCDR_20' ) start [2025-03-15 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683033', 'tblTempVendorCDR_20' ) end [2025-03-15 02:19:17] Production.INFO: ProcessCDR(1,14683033,1,1,2) [2025-03-15 02:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683033', 'tblTempUsageDetail_20' ) start [2025-03-15 02:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683033', 'tblTempUsageDetail_20' ) end [2025-03-15 02:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 02:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 02:19:21] Production.INFO: ==18982== Releasing lock... [2025-03-15 02:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 02:19:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-15 02:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 23:20:06 [end_date_ymd] => 2025-03-15 02:20:06 [RateCDR] => 1 ) [2025-03-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-03-14 23:20:06' and `end` < '2025-03-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-03-15 02:20:18] Production.INFO: count ==576 [2025-03-15 02:20:18] Production.ERROR: pbx CDR StartTime 2025-03-14 23:20:06 - End Time 2025-03-15 02:20:06 [2025-03-15 02:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683038', 'tblTempUsageDetail_20' ) start [2025-03-15 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683038', 'tblTempUsageDetail_20' ) end [2025-03-15 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683038', 'tblTempVendorCDR_20' ) start [2025-03-15 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683038', 'tblTempVendorCDR_20' ) end [2025-03-15 02:20:18] Production.INFO: ProcessCDR(1,14683038,1,1,2) [2025-03-15 02:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683038', 'tblTempUsageDetail_20' ) start [2025-03-15 02:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683038', 'tblTempUsageDetail_20' ) end [2025-03-15 02:20:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 02:20:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 02:20:21] Production.INFO: ==19089== Releasing lock... [2025-03-15 02:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 02:20:21] Production.INFO: 33 MB #Memory Used# [2025-03-15 02:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 23:21:05 [end_date_ymd] => 2025-03-15 02:21:05 [RateCDR] => 1 ) [2025-03-15 02:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-14 23:21:05' and `end` < '2025-03-15 02:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 02:21:17] Production.INFO: count ==576 [2025-03-15 02:21:17] Production.ERROR: pbx CDR StartTime 2025-03-14 23:21:05 - End Time 2025-03-15 02:21:05 [2025-03-15 02:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683044', 'tblTempUsageDetail_20' ) start [2025-03-15 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683044', 'tblTempUsageDetail_20' ) end [2025-03-15 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683044', 'tblTempVendorCDR_20' ) start [2025-03-15 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683044', 'tblTempVendorCDR_20' ) end [2025-03-15 02:21:17] Production.INFO: ProcessCDR(1,14683044,1,1,2) [2025-03-15 02:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683044', 'tblTempUsageDetail_20' ) start [2025-03-15 02:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683044', 'tblTempUsageDetail_20' ) end [2025-03-15 02:21:20] Production.ERROR: pbx prc_insertCDR start [2025-03-15 02:21:20] Production.ERROR: pbx prc_insertCDR end [2025-03-15 02:21:20] Production.INFO: ==19199== Releasing lock... [2025-03-15 02:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 02:21:20] Production.INFO: 33 MB #Memory Used# [2025-03-15 02:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 23:22:05 [end_date_ymd] => 2025-03-15 02:22:05 [RateCDR] => 1 ) [2025-03-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-03-14 23:22:05' and `end` < '2025-03-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-03-15 02:22:18] Production.INFO: count ==576 [2025-03-15 02:22:18] Production.ERROR: pbx CDR StartTime 2025-03-14 23:22:05 - End Time 2025-03-15 02:22:05 [2025-03-15 02:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683049', 'tblTempUsageDetail_20' ) start [2025-03-15 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683049', 'tblTempUsageDetail_20' ) end [2025-03-15 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683049', 'tblTempVendorCDR_20' ) start [2025-03-15 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683049', 'tblTempVendorCDR_20' ) end [2025-03-15 02:22:18] Production.INFO: ProcessCDR(1,14683049,1,1,2) [2025-03-15 02:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683049', 'tblTempUsageDetail_20' ) start [2025-03-15 02:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683049', 'tblTempUsageDetail_20' ) end [2025-03-15 02:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 02:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 02:22:21] Production.INFO: ==19311== Releasing lock... [2025-03-15 02:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 02:22:21] Production.INFO: 33 MB #Memory Used# [2025-03-15 02:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 23:23:05 [end_date_ymd] => 2025-03-15 02:23:05 [RateCDR] => 1 ) [2025-03-15 02:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-14 23:23:05' and `end` < '2025-03-15 02:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 02:23:17] Production.INFO: count ==574 [2025-03-15 02:23:17] Production.ERROR: pbx CDR StartTime 2025-03-14 23:23:05 - End Time 2025-03-15 02:23:05 [2025-03-15 02:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683054', 'tblTempUsageDetail_20' ) start [2025-03-15 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683054', 'tblTempUsageDetail_20' ) end [2025-03-15 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683054', 'tblTempVendorCDR_20' ) start [2025-03-15 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683054', 'tblTempVendorCDR_20' ) end [2025-03-15 02:23:17] Production.INFO: ProcessCDR(1,14683054,1,1,2) [2025-03-15 02:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683054', 'tblTempUsageDetail_20' ) start [2025-03-15 02:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683054', 'tblTempUsageDetail_20' ) end [2025-03-15 02:23:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 02:23:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 02:23:22] Production.INFO: ==19452== Releasing lock... [2025-03-15 02:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 02:23:22] Production.INFO: 33 MB #Memory Used# [2025-03-15 02:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 23:24:05 [end_date_ymd] => 2025-03-15 02:24:05 [RateCDR] => 1 ) [2025-03-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-03-14 23:24:05' and `end` < '2025-03-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-03-15 02:24:17] Production.INFO: count ==574 [2025-03-15 02:24:18] Production.ERROR: pbx CDR StartTime 2025-03-14 23:24:05 - End Time 2025-03-15 02:24:05 [2025-03-15 02:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683059', 'tblTempUsageDetail_20' ) start [2025-03-15 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683059', 'tblTempUsageDetail_20' ) end [2025-03-15 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683059', 'tblTempVendorCDR_20' ) start [2025-03-15 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683059', 'tblTempVendorCDR_20' ) end [2025-03-15 02:24:18] Production.INFO: ProcessCDR(1,14683059,1,1,2) [2025-03-15 02:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683059', 'tblTempUsageDetail_20' ) start [2025-03-15 02:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683059', 'tblTempUsageDetail_20' ) end [2025-03-15 02:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 02:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 02:24:21] Production.INFO: ==19561== Releasing lock... [2025-03-15 02:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 02:24:21] Production.INFO: 33 MB #Memory Used# [2025-03-15 02:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 23:25:06 [end_date_ymd] => 2025-03-15 02:25:06 [RateCDR] => 1 ) [2025-03-15 02:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-14 23:25:06' and `end` < '2025-03-15 02:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 02:25:18] Production.INFO: count ==577 [2025-03-15 02:25:18] Production.ERROR: pbx CDR StartTime 2025-03-14 23:25:06 - End Time 2025-03-15 02:25:06 [2025-03-15 02:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683064', 'tblTempUsageDetail_20' ) start [2025-03-15 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683064', 'tblTempUsageDetail_20' ) end [2025-03-15 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683064', 'tblTempVendorCDR_20' ) start [2025-03-15 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683064', 'tblTempVendorCDR_20' ) end [2025-03-15 02:25:18] Production.INFO: ProcessCDR(1,14683064,1,1,2) [2025-03-15 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683064', 'tblTempUsageDetail_20' ) start [2025-03-15 02:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683064', 'tblTempUsageDetail_20' ) end [2025-03-15 02:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 02:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 02:25:21] Production.INFO: ==19670== Releasing lock... [2025-03-15 02:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 02:25:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-15 02:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 23:26:06 [end_date_ymd] => 2025-03-15 02:26:06 [RateCDR] => 1 ) [2025-03-15 02:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-14 23:26:06' and `end` < '2025-03-15 02:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 02:26:18] Production.INFO: count ==581 [2025-03-15 02:26:18] Production.ERROR: pbx CDR StartTime 2025-03-14 23:26:06 - End Time 2025-03-15 02:26:06 [2025-03-15 02:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683069', 'tblTempUsageDetail_20' ) start [2025-03-15 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683069', 'tblTempUsageDetail_20' ) end [2025-03-15 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683069', 'tblTempVendorCDR_20' ) start [2025-03-15 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683069', 'tblTempVendorCDR_20' ) end [2025-03-15 02:26:18] Production.INFO: ProcessCDR(1,14683069,1,1,2) [2025-03-15 02:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683069', 'tblTempUsageDetail_20' ) start [2025-03-15 02:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683069', 'tblTempUsageDetail_20' ) end [2025-03-15 02:26:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 02:26:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 02:26:22] Production.INFO: ==19771== Releasing lock... [2025-03-15 02:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 02:26:22] Production.INFO: 33 MB #Memory Used# [2025-03-15 02:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 23:27:05 [end_date_ymd] => 2025-03-15 02:27:05 [RateCDR] => 1 ) [2025-03-15 02:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-14 23:27:05' and `end` < '2025-03-15 02:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 02:27:17] Production.INFO: count ==581 [2025-03-15 02:27:17] Production.ERROR: pbx CDR StartTime 2025-03-14 23:27:05 - End Time 2025-03-15 02:27:05 [2025-03-15 02:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683074', 'tblTempUsageDetail_20' ) start [2025-03-15 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683074', 'tblTempUsageDetail_20' ) end [2025-03-15 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683074', 'tblTempVendorCDR_20' ) start [2025-03-15 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683074', 'tblTempVendorCDR_20' ) end [2025-03-15 02:27:17] Production.INFO: ProcessCDR(1,14683074,1,1,2) [2025-03-15 02:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683074', 'tblTempUsageDetail_20' ) start [2025-03-15 02:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683074', 'tblTempUsageDetail_20' ) end [2025-03-15 02:27:20] Production.ERROR: pbx prc_insertCDR start [2025-03-15 02:27:20] Production.ERROR: pbx prc_insertCDR end [2025-03-15 02:27:20] Production.INFO: ==19880== Releasing lock... [2025-03-15 02:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 02:27:20] Production.INFO: 33 MB #Memory Used# [2025-03-15 02:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 23:28:05 [end_date_ymd] => 2025-03-15 02:28:05 [RateCDR] => 1 ) [2025-03-15 02:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-14 23:28:05' and `end` < '2025-03-15 02:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 02:28:17] Production.INFO: count ==581 [2025-03-15 02:28:17] Production.ERROR: pbx CDR StartTime 2025-03-14 23:28:05 - End Time 2025-03-15 02:28:05 [2025-03-15 02:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683079', 'tblTempUsageDetail_20' ) start [2025-03-15 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683079', 'tblTempUsageDetail_20' ) end [2025-03-15 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683079', 'tblTempVendorCDR_20' ) start [2025-03-15 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683079', 'tblTempVendorCDR_20' ) end [2025-03-15 02:28:18] Production.INFO: ProcessCDR(1,14683079,1,1,2) [2025-03-15 02:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683079', 'tblTempUsageDetail_20' ) start [2025-03-15 02:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683079', 'tblTempUsageDetail_20' ) end [2025-03-15 02:28:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 02:28:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 02:28:23] Production.INFO: ==19988== Releasing lock... [2025-03-15 02:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 02:28:23] Production.INFO: 33 MB #Memory Used# [2025-03-15 02:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 23:29:05 [end_date_ymd] => 2025-03-15 02:29:05 [RateCDR] => 1 ) [2025-03-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-03-14 23:29:05' and `end` < '2025-03-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-03-15 02:29:18] Production.INFO: count ==577 [2025-03-15 02:29:18] Production.ERROR: pbx CDR StartTime 2025-03-14 23:29:05 - End Time 2025-03-15 02:29:05 [2025-03-15 02:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683084', 'tblTempUsageDetail_20' ) start [2025-03-15 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683084', 'tblTempUsageDetail_20' ) end [2025-03-15 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683084', 'tblTempVendorCDR_20' ) start [2025-03-15 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683084', 'tblTempVendorCDR_20' ) end [2025-03-15 02:29:18] Production.INFO: ProcessCDR(1,14683084,1,1,2) [2025-03-15 02:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683084', 'tblTempUsageDetail_20' ) start [2025-03-15 02:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683084', 'tblTempUsageDetail_20' ) end [2025-03-15 02:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 02:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 02:29:21] Production.INFO: ==20093== Releasing lock... [2025-03-15 02:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 02:29:21] Production.INFO: 33 MB #Memory Used# [2025-03-15 02:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 23:30:06 [end_date_ymd] => 2025-03-15 02:30:06 [RateCDR] => 1 ) [2025-03-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-03-14 23:30:06' and `end` < '2025-03-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-03-15 02:30:18] Production.INFO: count ==583 [2025-03-15 02:30:18] Production.ERROR: pbx CDR StartTime 2025-03-14 23:30:06 - End Time 2025-03-15 02:30:06 [2025-03-15 02:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683089', 'tblTempUsageDetail_20' ) start [2025-03-15 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683089', 'tblTempUsageDetail_20' ) end [2025-03-15 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683089', 'tblTempVendorCDR_20' ) start [2025-03-15 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683089', 'tblTempVendorCDR_20' ) end [2025-03-15 02:30:18] Production.INFO: ProcessCDR(1,14683089,1,1,2) [2025-03-15 02:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683089', 'tblTempUsageDetail_20' ) start [2025-03-15 02:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683089', 'tblTempUsageDetail_20' ) end [2025-03-15 02:30:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 02:30:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 02:30:21] Production.INFO: ==20205== Releasing lock... [2025-03-15 02:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 02:30:21] Production.INFO: 33 MB #Memory Used# [2025-03-15 02:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 23:31:05 [end_date_ymd] => 2025-03-15 02:31:05 [RateCDR] => 1 ) [2025-03-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-03-14 23:31:05' and `end` < '2025-03-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-03-15 02:31:18] Production.INFO: count ==588 [2025-03-15 02:31:18] Production.ERROR: pbx CDR StartTime 2025-03-14 23:31:05 - End Time 2025-03-15 02:31:05 [2025-03-15 02:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683095', 'tblTempUsageDetail_20' ) start [2025-03-15 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683095', 'tblTempUsageDetail_20' ) end [2025-03-15 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683095', 'tblTempVendorCDR_20' ) start [2025-03-15 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683095', 'tblTempVendorCDR_20' ) end [2025-03-15 02:31:18] Production.INFO: ProcessCDR(1,14683095,1,1,2) [2025-03-15 02:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683095', 'tblTempUsageDetail_20' ) start [2025-03-15 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683095', 'tblTempUsageDetail_20' ) end [2025-03-15 02:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 02:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 02:31:21] Production.INFO: ==20309== Releasing lock... [2025-03-15 02:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 02:31:21] Production.INFO: 33 MB #Memory Used# [2025-03-15 02:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 23:32:06 [end_date_ymd] => 2025-03-15 02:32:06 [RateCDR] => 1 ) [2025-03-15 02:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-14 23:32:06' and `end` < '2025-03-15 02:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 02:32:18] Production.INFO: count ==591 [2025-03-15 02:32:18] Production.ERROR: pbx CDR StartTime 2025-03-14 23:32:06 - End Time 2025-03-15 02:32:06 [2025-03-15 02:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683100', 'tblTempUsageDetail_20' ) start [2025-03-15 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683100', 'tblTempUsageDetail_20' ) end [2025-03-15 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683100', 'tblTempVendorCDR_20' ) start [2025-03-15 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683100', 'tblTempVendorCDR_20' ) end [2025-03-15 02:32:18] Production.INFO: ProcessCDR(1,14683100,1,1,2) [2025-03-15 02:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683100', 'tblTempUsageDetail_20' ) start [2025-03-15 02:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683100', 'tblTempUsageDetail_20' ) end [2025-03-15 02:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 02:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 02:32:22] Production.INFO: ==20417== Releasing lock... [2025-03-15 02:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 02:32:22] Production.INFO: 33 MB #Memory Used# [2025-03-15 02:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 23:33:05 [end_date_ymd] => 2025-03-15 02:33:05 [RateCDR] => 1 ) [2025-03-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-03-14 23:33:05' and `end` < '2025-03-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-03-15 02:33:17] Production.INFO: count ==588 [2025-03-15 02:33:17] Production.ERROR: pbx CDR StartTime 2025-03-14 23:33:05 - End Time 2025-03-15 02:33:05 [2025-03-15 02:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683105', 'tblTempUsageDetail_20' ) start [2025-03-15 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683105', 'tblTempUsageDetail_20' ) end [2025-03-15 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683105', 'tblTempVendorCDR_20' ) start [2025-03-15 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683105', 'tblTempVendorCDR_20' ) end [2025-03-15 02:33:18] Production.INFO: ProcessCDR(1,14683105,1,1,2) [2025-03-15 02:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683105', 'tblTempUsageDetail_20' ) start [2025-03-15 02:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683105', 'tblTempUsageDetail_20' ) end [2025-03-15 02:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 02:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 02:33:21] Production.INFO: ==20521== Releasing lock... [2025-03-15 02:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 02:33:21] Production.INFO: 33 MB #Memory Used# [2025-03-15 02:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 23:34:05 [end_date_ymd] => 2025-03-15 02:34:05 [RateCDR] => 1 ) [2025-03-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-03-14 23:34:05' and `end` < '2025-03-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-03-15 02:34:18] Production.INFO: count ==592 [2025-03-15 02:34:18] Production.ERROR: pbx CDR StartTime 2025-03-14 23:34:05 - End Time 2025-03-15 02:34:05 [2025-03-15 02:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683110', 'tblTempUsageDetail_20' ) start [2025-03-15 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683110', 'tblTempUsageDetail_20' ) end [2025-03-15 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683110', 'tblTempVendorCDR_20' ) start [2025-03-15 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683110', 'tblTempVendorCDR_20' ) end [2025-03-15 02:34:18] Production.INFO: ProcessCDR(1,14683110,1,1,2) [2025-03-15 02:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683110', 'tblTempUsageDetail_20' ) start [2025-03-15 02:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683110', 'tblTempUsageDetail_20' ) end [2025-03-15 02:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 02:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 02:34:22] Production.INFO: ==20630== Releasing lock... [2025-03-15 02:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 02:34:22] Production.INFO: 33 MB #Memory Used# [2025-03-15 02:35:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 23:35:07 [end_date_ymd] => 2025-03-15 02:35:07 [RateCDR] => 1 ) [2025-03-15 02:35:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-14 23:35:07' and `end` < '2025-03-15 02:35:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 02:35:19] Production.INFO: count ==589 [2025-03-15 02:35:19] Production.ERROR: pbx CDR StartTime 2025-03-14 23:35:07 - End Time 2025-03-15 02:35:07 [2025-03-15 02:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 02:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683115', 'tblTempUsageDetail_20' ) start [2025-03-15 02:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683115', 'tblTempUsageDetail_20' ) end [2025-03-15 02:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683115', 'tblTempVendorCDR_20' ) start [2025-03-15 02:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683115', 'tblTempVendorCDR_20' ) end [2025-03-15 02:35:19] Production.INFO: ProcessCDR(1,14683115,1,1,2) [2025-03-15 02:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683115', 'tblTempUsageDetail_20' ) start [2025-03-15 02:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683115', 'tblTempUsageDetail_20' ) end [2025-03-15 02:35:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 02:35:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 02:35:23] Production.INFO: ==20732== Releasing lock... [2025-03-15 02:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 02:35:23] Production.INFO: 33 MB #Memory Used# [2025-03-15 02:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 23:36:05 [end_date_ymd] => 2025-03-15 02:36:05 [RateCDR] => 1 ) [2025-03-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-03-14 23:36:05' and `end` < '2025-03-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-03-15 02:36:18] Production.INFO: count ==589 [2025-03-15 02:36:18] Production.ERROR: pbx CDR StartTime 2025-03-14 23:36:05 - End Time 2025-03-15 02:36:05 [2025-03-15 02:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683120', 'tblTempUsageDetail_20' ) start [2025-03-15 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683120', 'tblTempUsageDetail_20' ) end [2025-03-15 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683120', 'tblTempVendorCDR_20' ) start [2025-03-15 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683120', 'tblTempVendorCDR_20' ) end [2025-03-15 02:36:18] Production.INFO: ProcessCDR(1,14683120,1,1,2) [2025-03-15 02:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683120', 'tblTempUsageDetail_20' ) start [2025-03-15 02:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683120', 'tblTempUsageDetail_20' ) end [2025-03-15 02:36:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 02:36:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 02:36:22] Production.INFO: ==20838== Releasing lock... [2025-03-15 02:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 02:36:22] Production.INFO: 33 MB #Memory Used# [2025-03-15 02:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 23:37:06 [end_date_ymd] => 2025-03-15 02:37:06 [RateCDR] => 1 ) [2025-03-15 02:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-14 23:37:06' and `end` < '2025-03-15 02:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 02:37:18] Production.INFO: count ==581 [2025-03-15 02:37:18] Production.ERROR: pbx CDR StartTime 2025-03-14 23:37:06 - End Time 2025-03-15 02:37:06 [2025-03-15 02:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683125', 'tblTempUsageDetail_20' ) start [2025-03-15 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683125', 'tblTempUsageDetail_20' ) end [2025-03-15 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683125', 'tblTempVendorCDR_20' ) start [2025-03-15 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683125', 'tblTempVendorCDR_20' ) end [2025-03-15 02:37:18] Production.INFO: ProcessCDR(1,14683125,1,1,2) [2025-03-15 02:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683125', 'tblTempUsageDetail_20' ) start [2025-03-15 02:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683125', 'tblTempUsageDetail_20' ) end [2025-03-15 02:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 02:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 02:37:22] Production.INFO: ==20945== Releasing lock... [2025-03-15 02:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 02:37:22] Production.INFO: 33 MB #Memory Used# [2025-03-15 02:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 23:38:06 [end_date_ymd] => 2025-03-15 02:38:06 [RateCDR] => 1 ) [2025-03-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-03-14 23:38:06' and `end` < '2025-03-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-03-15 02:38:18] Production.INFO: count ==577 [2025-03-15 02:38:18] Production.ERROR: pbx CDR StartTime 2025-03-14 23:38:06 - End Time 2025-03-15 02:38:06 [2025-03-15 02:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683130', 'tblTempUsageDetail_20' ) start [2025-03-15 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683130', 'tblTempUsageDetail_20' ) end [2025-03-15 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683130', 'tblTempVendorCDR_20' ) start [2025-03-15 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683130', 'tblTempVendorCDR_20' ) end [2025-03-15 02:38:18] Production.INFO: ProcessCDR(1,14683130,1,1,2) [2025-03-15 02:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683130', 'tblTempUsageDetail_20' ) start [2025-03-15 02:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683130', 'tblTempUsageDetail_20' ) end [2025-03-15 02:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 02:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 02:38:22] Production.INFO: ==21048== Releasing lock... [2025-03-15 02:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 02:38:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-15 02:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 23:39:05 [end_date_ymd] => 2025-03-15 02:39:05 [RateCDR] => 1 ) [2025-03-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-03-14 23:39:05' and `end` < '2025-03-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-03-15 02:39:18] Production.INFO: count ==577 [2025-03-15 02:39:18] Production.ERROR: pbx CDR StartTime 2025-03-14 23:39:05 - End Time 2025-03-15 02:39:05 [2025-03-15 02:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683135', 'tblTempUsageDetail_20' ) start [2025-03-15 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683135', 'tblTempUsageDetail_20' ) end [2025-03-15 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683135', 'tblTempVendorCDR_20' ) start [2025-03-15 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683135', 'tblTempVendorCDR_20' ) end [2025-03-15 02:39:18] Production.INFO: ProcessCDR(1,14683135,1,1,2) [2025-03-15 02:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683135', 'tblTempUsageDetail_20' ) start [2025-03-15 02:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683135', 'tblTempUsageDetail_20' ) end [2025-03-15 02:39:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 02:39:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 02:39:22] Production.INFO: ==21188== Releasing lock... [2025-03-15 02:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 02:39:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-15 02:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 23:40:06 [end_date_ymd] => 2025-03-15 02:40:06 [RateCDR] => 1 ) [2025-03-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-03-14 23:40:06' and `end` < '2025-03-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-03-15 02:40:18] Production.INFO: count ==581 [2025-03-15 02:40:18] Production.ERROR: pbx CDR StartTime 2025-03-14 23:40:06 - End Time 2025-03-15 02:40:06 [2025-03-15 02:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683141', 'tblTempUsageDetail_20' ) start [2025-03-15 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683141', 'tblTempUsageDetail_20' ) end [2025-03-15 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683141', 'tblTempVendorCDR_20' ) start [2025-03-15 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683141', 'tblTempVendorCDR_20' ) end [2025-03-15 02:40:19] Production.INFO: ProcessCDR(1,14683141,1,1,2) [2025-03-15 02:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683141', 'tblTempUsageDetail_20' ) start [2025-03-15 02:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683141', 'tblTempUsageDetail_20' ) end [2025-03-15 02:40:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 02:40:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 02:40:23] Production.INFO: ==21296== Releasing lock... [2025-03-15 02:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 02:40:23] Production.INFO: 33 MB #Memory Used# [2025-03-15 02:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 23:41:05 [end_date_ymd] => 2025-03-15 02:41:05 [RateCDR] => 1 ) [2025-03-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-03-14 23:41:05' and `end` < '2025-03-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-03-15 02:41:18] Production.INFO: count ==581 [2025-03-15 02:41:18] Production.ERROR: pbx CDR StartTime 2025-03-14 23:41:05 - End Time 2025-03-15 02:41:05 [2025-03-15 02:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683146', 'tblTempUsageDetail_20' ) start [2025-03-15 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683146', 'tblTempUsageDetail_20' ) end [2025-03-15 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683146', 'tblTempVendorCDR_20' ) start [2025-03-15 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683146', 'tblTempVendorCDR_20' ) end [2025-03-15 02:41:18] Production.INFO: ProcessCDR(1,14683146,1,1,2) [2025-03-15 02:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683146', 'tblTempUsageDetail_20' ) start [2025-03-15 02:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683146', 'tblTempUsageDetail_20' ) end [2025-03-15 02:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 02:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 02:41:22] Production.INFO: ==21404== Releasing lock... [2025-03-15 02:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 02:41:22] Production.INFO: 33 MB #Memory Used# [2025-03-15 02:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 23:42:05 [end_date_ymd] => 2025-03-15 02:42:05 [RateCDR] => 1 ) [2025-03-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-03-14 23:42:05' and `end` < '2025-03-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-03-15 02:42:17] Production.INFO: count ==583 [2025-03-15 02:42:18] Production.ERROR: pbx CDR StartTime 2025-03-14 23:42:05 - End Time 2025-03-15 02:42:05 [2025-03-15 02:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683151', 'tblTempUsageDetail_20' ) start [2025-03-15 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683151', 'tblTempUsageDetail_20' ) end [2025-03-15 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683151', 'tblTempVendorCDR_20' ) start [2025-03-15 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683151', 'tblTempVendorCDR_20' ) end [2025-03-15 02:42:18] Production.INFO: ProcessCDR(1,14683151,1,1,2) [2025-03-15 02:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683151', 'tblTempUsageDetail_20' ) start [2025-03-15 02:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683151', 'tblTempUsageDetail_20' ) end [2025-03-15 02:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 02:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 02:42:21] Production.INFO: ==21510== Releasing lock... [2025-03-15 02:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 02:42:21] Production.INFO: 33 MB #Memory Used# [2025-03-15 02:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 23:43:05 [end_date_ymd] => 2025-03-15 02:43:05 [RateCDR] => 1 ) [2025-03-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-03-14 23:43:05' and `end` < '2025-03-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-03-15 02:43:17] Production.INFO: count ==587 [2025-03-15 02:43:17] Production.ERROR: pbx CDR StartTime 2025-03-14 23:43:05 - End Time 2025-03-15 02:43:05 [2025-03-15 02:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683156', 'tblTempUsageDetail_20' ) start [2025-03-15 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683156', 'tblTempUsageDetail_20' ) end [2025-03-15 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683156', 'tblTempVendorCDR_20' ) start [2025-03-15 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683156', 'tblTempVendorCDR_20' ) end [2025-03-15 02:43:17] Production.INFO: ProcessCDR(1,14683156,1,1,2) [2025-03-15 02:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683156', 'tblTempUsageDetail_20' ) start [2025-03-15 02:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683156', 'tblTempUsageDetail_20' ) end [2025-03-15 02:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 02:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 02:43:21] Production.INFO: ==21611== Releasing lock... [2025-03-15 02:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 02:43:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-15 02:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 23:44:06 [end_date_ymd] => 2025-03-15 02:44:06 [RateCDR] => 1 ) [2025-03-15 02:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-14 23:44:06' and `end` < '2025-03-15 02:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 02:44:18] Production.INFO: count ==587 [2025-03-15 02:44:18] Production.ERROR: pbx CDR StartTime 2025-03-14 23:44:06 - End Time 2025-03-15 02:44:06 [2025-03-15 02:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683161', 'tblTempUsageDetail_20' ) start [2025-03-15 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683161', 'tblTempUsageDetail_20' ) end [2025-03-15 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683161', 'tblTempVendorCDR_20' ) start [2025-03-15 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683161', 'tblTempVendorCDR_20' ) end [2025-03-15 02:44:18] Production.INFO: ProcessCDR(1,14683161,1,1,2) [2025-03-15 02:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683161', 'tblTempUsageDetail_20' ) start [2025-03-15 02:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683161', 'tblTempUsageDetail_20' ) end [2025-03-15 02:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 02:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 02:44:22] Production.INFO: ==21712== Releasing lock... [2025-03-15 02:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 02:44:22] Production.INFO: 33 MB #Memory Used# [2025-03-15 02:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 23:45:05 [end_date_ymd] => 2025-03-15 02:45:05 [RateCDR] => 1 ) [2025-03-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-03-14 23:45:05' and `end` < '2025-03-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-03-15 02:45:17] Production.INFO: count ==587 [2025-03-15 02:45:18] Production.ERROR: pbx CDR StartTime 2025-03-14 23:45:05 - End Time 2025-03-15 02:45:05 [2025-03-15 02:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683166', 'tblTempUsageDetail_20' ) start [2025-03-15 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683166', 'tblTempUsageDetail_20' ) end [2025-03-15 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683166', 'tblTempVendorCDR_20' ) start [2025-03-15 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683166', 'tblTempVendorCDR_20' ) end [2025-03-15 02:45:18] Production.INFO: ProcessCDR(1,14683166,1,1,2) [2025-03-15 02:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683166', 'tblTempUsageDetail_20' ) start [2025-03-15 02:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683166', 'tblTempUsageDetail_20' ) end [2025-03-15 02:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 02:45:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 02:45:22] Production.INFO: ==21819== Releasing lock... [2025-03-15 02:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 02:45:22] Production.INFO: 33 MB #Memory Used# [2025-03-15 02:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 23:46:06 [end_date_ymd] => 2025-03-15 02:46:06 [RateCDR] => 1 ) [2025-03-15 02:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-14 23:46:06' and `end` < '2025-03-15 02:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 02:46:18] Production.INFO: count ==587 [2025-03-15 02:46:18] Production.ERROR: pbx CDR StartTime 2025-03-14 23:46:06 - End Time 2025-03-15 02:46:06 [2025-03-15 02:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683171', 'tblTempUsageDetail_20' ) start [2025-03-15 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683171', 'tblTempUsageDetail_20' ) end [2025-03-15 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683171', 'tblTempVendorCDR_20' ) start [2025-03-15 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683171', 'tblTempVendorCDR_20' ) end [2025-03-15 02:46:18] Production.INFO: ProcessCDR(1,14683171,1,1,2) [2025-03-15 02:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683171', 'tblTempUsageDetail_20' ) start [2025-03-15 02:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683171', 'tblTempUsageDetail_20' ) end [2025-03-15 02:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 02:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 02:46:22] Production.INFO: ==21927== Releasing lock... [2025-03-15 02:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 02:46:22] Production.INFO: 33 MB #Memory Used# [2025-03-15 02:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 23:47:05 [end_date_ymd] => 2025-03-15 02:47:05 [RateCDR] => 1 ) [2025-03-15 02:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-14 23:47:05' and `end` < '2025-03-15 02:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 02:47:17] Production.INFO: count ==590 [2025-03-15 02:47:18] Production.ERROR: pbx CDR StartTime 2025-03-14 23:47:05 - End Time 2025-03-15 02:47:05 [2025-03-15 02:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683176', 'tblTempUsageDetail_20' ) start [2025-03-15 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683176', 'tblTempUsageDetail_20' ) end [2025-03-15 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683176', 'tblTempVendorCDR_20' ) start [2025-03-15 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683176', 'tblTempVendorCDR_20' ) end [2025-03-15 02:47:18] Production.INFO: ProcessCDR(1,14683176,1,1,2) [2025-03-15 02:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683176', 'tblTempUsageDetail_20' ) start [2025-03-15 02:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683176', 'tblTempUsageDetail_20' ) end [2025-03-15 02:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 02:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 02:47:22] Production.INFO: ==22031== Releasing lock... [2025-03-15 02:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 02:47:22] Production.INFO: 33 MB #Memory Used# [2025-03-15 02:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 23:48:06 [end_date_ymd] => 2025-03-15 02:48:06 [RateCDR] => 1 ) [2025-03-15 02:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-14 23:48:06' and `end` < '2025-03-15 02:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 02:48:18] Production.INFO: count ==590 [2025-03-15 02:48:18] Production.ERROR: pbx CDR StartTime 2025-03-14 23:48:06 - End Time 2025-03-15 02:48:06 [2025-03-15 02:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683181', 'tblTempUsageDetail_20' ) start [2025-03-15 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683181', 'tblTempUsageDetail_20' ) end [2025-03-15 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683181', 'tblTempVendorCDR_20' ) start [2025-03-15 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683181', 'tblTempVendorCDR_20' ) end [2025-03-15 02:48:18] Production.INFO: ProcessCDR(1,14683181,1,1,2) [2025-03-15 02:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683181', 'tblTempUsageDetail_20' ) start [2025-03-15 02:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683181', 'tblTempUsageDetail_20' ) end [2025-03-15 02:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 02:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 02:48:22] Production.INFO: ==22134== Releasing lock... [2025-03-15 02:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 02:48:22] Production.INFO: 33 MB #Memory Used# [2025-03-15 02:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 23:49:06 [end_date_ymd] => 2025-03-15 02:49:06 [RateCDR] => 1 ) [2025-03-15 02:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-14 23:49:06' and `end` < '2025-03-15 02:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 02:49:18] Production.INFO: count ==595 [2025-03-15 02:49:18] Production.ERROR: pbx CDR StartTime 2025-03-14 23:49:06 - End Time 2025-03-15 02:49:06 [2025-03-15 02:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683186', 'tblTempUsageDetail_20' ) start [2025-03-15 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683186', 'tblTempUsageDetail_20' ) end [2025-03-15 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683186', 'tblTempVendorCDR_20' ) start [2025-03-15 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683186', 'tblTempVendorCDR_20' ) end [2025-03-15 02:49:18] Production.INFO: ProcessCDR(1,14683186,1,1,2) [2025-03-15 02:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683186', 'tblTempUsageDetail_20' ) start [2025-03-15 02:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683186', 'tblTempUsageDetail_20' ) end [2025-03-15 02:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 02:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 02:49:22] Production.INFO: ==22238== Releasing lock... [2025-03-15 02:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 02:49:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-15 02:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 23:50:06 [end_date_ymd] => 2025-03-15 02:50:06 [RateCDR] => 1 ) [2025-03-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-03-14 23:50:06' and `end` < '2025-03-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-03-15 02:50:18] Production.INFO: count ==616 [2025-03-15 02:50:19] Production.ERROR: pbx CDR StartTime 2025-03-14 23:50:06 - End Time 2025-03-15 02:50:06 [2025-03-15 02:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683192', 'tblTempUsageDetail_20' ) start [2025-03-15 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683192', 'tblTempUsageDetail_20' ) end [2025-03-15 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683192', 'tblTempVendorCDR_20' ) start [2025-03-15 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683192', 'tblTempVendorCDR_20' ) end [2025-03-15 02:50:19] Production.INFO: ProcessCDR(1,14683192,1,1,2) [2025-03-15 02:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683192', 'tblTempUsageDetail_20' ) start [2025-03-15 02:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683192', 'tblTempUsageDetail_20' ) end [2025-03-15 02:50:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 02:50:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 02:50:23] Production.INFO: ==22346== Releasing lock... [2025-03-15 02:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 02:50:23] Production.INFO: 33 MB #Memory Used# [2025-03-15 02:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 23:51:05 [end_date_ymd] => 2025-03-15 02:51:05 [RateCDR] => 1 ) [2025-03-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-03-14 23:51:05' and `end` < '2025-03-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-03-15 02:51:17] Production.INFO: count ==614 [2025-03-15 02:51:17] Production.ERROR: pbx CDR StartTime 2025-03-14 23:51:05 - End Time 2025-03-15 02:51:05 [2025-03-15 02:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683197', 'tblTempUsageDetail_20' ) start [2025-03-15 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683197', 'tblTempUsageDetail_20' ) end [2025-03-15 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683197', 'tblTempVendorCDR_20' ) start [2025-03-15 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683197', 'tblTempVendorCDR_20' ) end [2025-03-15 02:51:17] Production.INFO: ProcessCDR(1,14683197,1,1,2) [2025-03-15 02:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683197', 'tblTempUsageDetail_20' ) start [2025-03-15 02:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683197', 'tblTempUsageDetail_20' ) end [2025-03-15 02:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 02:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 02:51:21] Production.INFO: ==22449== Releasing lock... [2025-03-15 02:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 02:51:21] Production.INFO: 33 MB #Memory Used# [2025-03-15 02:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 23:52:05 [end_date_ymd] => 2025-03-15 02:52:05 [RateCDR] => 1 ) [2025-03-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-03-14 23:52:05' and `end` < '2025-03-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-03-15 02:52:18] Production.INFO: count ==613 [2025-03-15 02:52:18] Production.ERROR: pbx CDR StartTime 2025-03-14 23:52:05 - End Time 2025-03-15 02:52:05 [2025-03-15 02:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683202', 'tblTempUsageDetail_20' ) start [2025-03-15 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683202', 'tblTempUsageDetail_20' ) end [2025-03-15 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683202', 'tblTempVendorCDR_20' ) start [2025-03-15 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683202', 'tblTempVendorCDR_20' ) end [2025-03-15 02:52:18] Production.INFO: ProcessCDR(1,14683202,1,1,2) [2025-03-15 02:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683202', 'tblTempUsageDetail_20' ) start [2025-03-15 02:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683202', 'tblTempUsageDetail_20' ) end [2025-03-15 02:52:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 02:52:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 02:52:23] Production.INFO: ==22551== Releasing lock... [2025-03-15 02:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 02:52:23] Production.INFO: 33 MB #Memory Used# [2025-03-15 02:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 23:53:05 [end_date_ymd] => 2025-03-15 02:53:05 [RateCDR] => 1 ) [2025-03-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-03-14 23:53:05' and `end` < '2025-03-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-03-15 02:53:18] Production.INFO: count ==613 [2025-03-15 02:53:18] Production.ERROR: pbx CDR StartTime 2025-03-14 23:53:05 - End Time 2025-03-15 02:53:05 [2025-03-15 02:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683207', 'tblTempUsageDetail_20' ) start [2025-03-15 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683207', 'tblTempUsageDetail_20' ) end [2025-03-15 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683207', 'tblTempVendorCDR_20' ) start [2025-03-15 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683207', 'tblTempVendorCDR_20' ) end [2025-03-15 02:53:18] Production.INFO: ProcessCDR(1,14683207,1,1,2) [2025-03-15 02:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683207', 'tblTempUsageDetail_20' ) start [2025-03-15 02:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683207', 'tblTempUsageDetail_20' ) end [2025-03-15 02:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 02:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 02:53:22] Production.INFO: ==22657== Releasing lock... [2025-03-15 02:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 02:53:22] Production.INFO: 33 MB #Memory Used# [2025-03-15 02:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 23:54:06 [end_date_ymd] => 2025-03-15 02:54:06 [RateCDR] => 1 ) [2025-03-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-03-14 23:54:06' and `end` < '2025-03-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-03-15 02:54:18] Production.INFO: count ==612 [2025-03-15 02:54:18] Production.ERROR: pbx CDR StartTime 2025-03-14 23:54:06 - End Time 2025-03-15 02:54:06 [2025-03-15 02:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683212', 'tblTempUsageDetail_20' ) start [2025-03-15 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683212', 'tblTempUsageDetail_20' ) end [2025-03-15 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683212', 'tblTempVendorCDR_20' ) start [2025-03-15 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683212', 'tblTempVendorCDR_20' ) end [2025-03-15 02:54:18] Production.INFO: ProcessCDR(1,14683212,1,1,2) [2025-03-15 02:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683212', 'tblTempUsageDetail_20' ) start [2025-03-15 02:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683212', 'tblTempUsageDetail_20' ) end [2025-03-15 02:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 02:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 02:54:22] Production.INFO: ==22802== Releasing lock... [2025-03-15 02:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 02:54:22] Production.INFO: 33 MB #Memory Used# [2025-03-15 02:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 23:55:05 [end_date_ymd] => 2025-03-15 02:55:05 [RateCDR] => 1 ) [2025-03-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-03-14 23:55:05' and `end` < '2025-03-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-03-15 02:55:18] Production.INFO: count ==614 [2025-03-15 02:55:18] Production.ERROR: pbx CDR StartTime 2025-03-14 23:55:05 - End Time 2025-03-15 02:55:05 [2025-03-15 02:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683217', 'tblTempUsageDetail_20' ) start [2025-03-15 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683217', 'tblTempUsageDetail_20' ) end [2025-03-15 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683217', 'tblTempVendorCDR_20' ) start [2025-03-15 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683217', 'tblTempVendorCDR_20' ) end [2025-03-15 02:55:18] Production.INFO: ProcessCDR(1,14683217,1,1,2) [2025-03-15 02:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683217', 'tblTempUsageDetail_20' ) start [2025-03-15 02:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683217', 'tblTempUsageDetail_20' ) end [2025-03-15 02:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 02:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 02:55:21] Production.INFO: ==22908== Releasing lock... [2025-03-15 02:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 02:55:21] Production.INFO: 33 MB #Memory Used# [2025-03-15 02:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 23:56:05 [end_date_ymd] => 2025-03-15 02:56:05 [RateCDR] => 1 ) [2025-03-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-03-14 23:56:05' and `end` < '2025-03-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-03-15 02:56:18] Production.INFO: count ==613 [2025-03-15 02:56:18] Production.ERROR: pbx CDR StartTime 2025-03-14 23:56:05 - End Time 2025-03-15 02:56:05 [2025-03-15 02:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683222', 'tblTempUsageDetail_20' ) start [2025-03-15 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683222', 'tblTempUsageDetail_20' ) end [2025-03-15 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683222', 'tblTempVendorCDR_20' ) start [2025-03-15 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683222', 'tblTempVendorCDR_20' ) end [2025-03-15 02:56:18] Production.INFO: ProcessCDR(1,14683222,1,1,2) [2025-03-15 02:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683222', 'tblTempUsageDetail_20' ) start [2025-03-15 02:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683222', 'tblTempUsageDetail_20' ) end [2025-03-15 02:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 02:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 02:56:21] Production.INFO: ==22990== Releasing lock... [2025-03-15 02:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 02:56:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-15 02:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 23:57:06 [end_date_ymd] => 2025-03-15 02:57:06 [RateCDR] => 1 ) [2025-03-15 02:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-14 23:57:06' and `end` < '2025-03-15 02:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 02:57:18] Production.INFO: count ==612 [2025-03-15 02:57:18] Production.ERROR: pbx CDR StartTime 2025-03-14 23:57:06 - End Time 2025-03-15 02:57:06 [2025-03-15 02:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683227', 'tblTempUsageDetail_20' ) start [2025-03-15 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683227', 'tblTempUsageDetail_20' ) end [2025-03-15 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683227', 'tblTempVendorCDR_20' ) start [2025-03-15 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683227', 'tblTempVendorCDR_20' ) end [2025-03-15 02:57:18] Production.INFO: ProcessCDR(1,14683227,1,1,2) [2025-03-15 02:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683227', 'tblTempUsageDetail_20' ) start [2025-03-15 02:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683227', 'tblTempUsageDetail_20' ) end [2025-03-15 02:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 02:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 02:57:22] Production.INFO: ==23063== Releasing lock... [2025-03-15 02:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 02:57:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-15 02:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 23:58:06 [end_date_ymd] => 2025-03-15 02:58:06 [RateCDR] => 1 ) [2025-03-15 02:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-14 23:58:06' and `end` < '2025-03-15 02:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 02:58:18] Production.INFO: count ==618 [2025-03-15 02:58:18] Production.ERROR: pbx CDR StartTime 2025-03-14 23:58:06 - End Time 2025-03-15 02:58:06 [2025-03-15 02:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683232', 'tblTempUsageDetail_20' ) start [2025-03-15 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683232', 'tblTempUsageDetail_20' ) end [2025-03-15 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683232', 'tblTempVendorCDR_20' ) start [2025-03-15 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683232', 'tblTempVendorCDR_20' ) end [2025-03-15 02:58:18] Production.INFO: ProcessCDR(1,14683232,1,1,2) [2025-03-15 02:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683232', 'tblTempUsageDetail_20' ) start [2025-03-15 02:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683232', 'tblTempUsageDetail_20' ) end [2025-03-15 02:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 02:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 02:58:22] Production.INFO: ==23136== Releasing lock... [2025-03-15 02:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 02:58:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-15 02:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 23:59:05 [end_date_ymd] => 2025-03-15 02:59:05 [RateCDR] => 1 ) [2025-03-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-03-14 23:59:05' and `end` < '2025-03-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-03-15 02:59:17] Production.INFO: count ==613 [2025-03-15 02:59:17] Production.ERROR: pbx CDR StartTime 2025-03-14 23:59:05 - End Time 2025-03-15 02:59:05 [2025-03-15 02:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 02:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683237', 'tblTempUsageDetail_20' ) start [2025-03-15 02:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683237', 'tblTempUsageDetail_20' ) end [2025-03-15 02:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683237', 'tblTempVendorCDR_20' ) start [2025-03-15 02:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683237', 'tblTempVendorCDR_20' ) end [2025-03-15 02:59:17] Production.INFO: ProcessCDR(1,14683237,1,1,2) [2025-03-15 02:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 02:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 02:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683237', 'tblTempUsageDetail_20' ) start [2025-03-15 02:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683237', 'tblTempUsageDetail_20' ) end [2025-03-15 02:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 02:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 02:59:21] Production.INFO: ==23215== Releasing lock... [2025-03-15 02:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 02:59:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-15 03:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 00:00:06 [end_date_ymd] => 2025-03-15 03:00:06 [RateCDR] => 1 ) [2025-03-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-03-15 00:00:06' and `end` < '2025-03-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-03-15 03:00:18] Production.INFO: count ==626 [2025-03-15 03:00:18] Production.ERROR: pbx CDR StartTime 2025-03-15 00:00:06 - End Time 2025-03-15 03:00:06 [2025-03-15 03:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683242', 'tblTempUsageDetail_20' ) start [2025-03-15 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683242', 'tblTempUsageDetail_20' ) end [2025-03-15 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683242', 'tblTempVendorCDR_20' ) start [2025-03-15 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683242', 'tblTempVendorCDR_20' ) end [2025-03-15 03:00:18] Production.INFO: ProcessCDR(1,14683242,1,1,2) [2025-03-15 03:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683242', 'tblTempUsageDetail_20' ) start [2025-03-15 03:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683242', 'tblTempUsageDetail_20' ) end [2025-03-15 03:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 03:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 03:00:22] Production.INFO: ==23292== Releasing lock... [2025-03-15 03:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 03:00:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-15 03:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 00:01:06 [end_date_ymd] => 2025-03-15 03:01:06 [RateCDR] => 1 ) [2025-03-15 03:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 00:01:06' and `end` < '2025-03-15 03:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 03:01:18] Production.INFO: count ==623 [2025-03-15 03:01:18] Production.ERROR: pbx CDR StartTime 2025-03-15 00:01:06 - End Time 2025-03-15 03:01:06 [2025-03-15 03:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683248', 'tblTempUsageDetail_20' ) start [2025-03-15 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683248', 'tblTempUsageDetail_20' ) end [2025-03-15 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683248', 'tblTempVendorCDR_20' ) start [2025-03-15 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683248', 'tblTempVendorCDR_20' ) end [2025-03-15 03:01:18] Production.INFO: ProcessCDR(1,14683248,1,1,2) [2025-03-15 03:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683248', 'tblTempUsageDetail_20' ) start [2025-03-15 03:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683248', 'tblTempUsageDetail_20' ) end [2025-03-15 03:01:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 03:01:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 03:01:22] Production.INFO: ==23380== Releasing lock... [2025-03-15 03:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 03:01:22] Production.INFO: 33 MB #Memory Used# [2025-03-15 03:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 00:02:06 [end_date_ymd] => 2025-03-15 03:02:06 [RateCDR] => 1 ) [2025-03-15 03:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 00:02:06' and `end` < '2025-03-15 03:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 03:02:18] Production.INFO: count ==630 [2025-03-15 03:02:18] Production.ERROR: pbx CDR StartTime 2025-03-15 00:02:06 - End Time 2025-03-15 03:02:06 [2025-03-15 03:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683253', 'tblTempUsageDetail_20' ) start [2025-03-15 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683253', 'tblTempUsageDetail_20' ) end [2025-03-15 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683253', 'tblTempVendorCDR_20' ) start [2025-03-15 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683253', 'tblTempVendorCDR_20' ) end [2025-03-15 03:02:18] Production.INFO: ProcessCDR(1,14683253,1,1,2) [2025-03-15 03:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683253', 'tblTempUsageDetail_20' ) start [2025-03-15 03:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683253', 'tblTempUsageDetail_20' ) end [2025-03-15 03:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 03:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 03:02:22] Production.INFO: ==23529== Releasing lock... [2025-03-15 03:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 03:02:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-15 03:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 00:03:05 [end_date_ymd] => 2025-03-15 03:03:05 [RateCDR] => 1 ) [2025-03-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-03-15 00:03:05' and `end` < '2025-03-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-03-15 03:03:17] Production.INFO: count ==632 [2025-03-15 03:03:17] Production.ERROR: pbx CDR StartTime 2025-03-15 00:03:05 - End Time 2025-03-15 03:03:05 [2025-03-15 03:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683258', 'tblTempUsageDetail_20' ) start [2025-03-15 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683258', 'tblTempUsageDetail_20' ) end [2025-03-15 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683258', 'tblTempVendorCDR_20' ) start [2025-03-15 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683258', 'tblTempVendorCDR_20' ) end [2025-03-15 03:03:17] Production.INFO: ProcessCDR(1,14683258,1,1,2) [2025-03-15 03:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683258', 'tblTempUsageDetail_20' ) start [2025-03-15 03:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683258', 'tblTempUsageDetail_20' ) end [2025-03-15 03:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 03:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 03:03:22] Production.INFO: ==23598== Releasing lock... [2025-03-15 03:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 03:03:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-15 03:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 00:04:05 [end_date_ymd] => 2025-03-15 03:04:05 [RateCDR] => 1 ) [2025-03-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-03-15 00:04:05' and `end` < '2025-03-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-03-15 03:04:18] Production.INFO: count ==629 [2025-03-15 03:04:18] Production.ERROR: pbx CDR StartTime 2025-03-15 00:04:05 - End Time 2025-03-15 03:04:05 [2025-03-15 03:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683263', 'tblTempUsageDetail_20' ) start [2025-03-15 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683263', 'tblTempUsageDetail_20' ) end [2025-03-15 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683263', 'tblTempVendorCDR_20' ) start [2025-03-15 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683263', 'tblTempVendorCDR_20' ) end [2025-03-15 03:04:18] Production.INFO: ProcessCDR(1,14683263,1,1,2) [2025-03-15 03:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683263', 'tblTempUsageDetail_20' ) start [2025-03-15 03:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683263', 'tblTempUsageDetail_20' ) end [2025-03-15 03:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 03:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 03:04:22] Production.INFO: ==23669== Releasing lock... [2025-03-15 03:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 03:04:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-15 03:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 00:05:06 [end_date_ymd] => 2025-03-15 03:05:06 [RateCDR] => 1 ) [2025-03-15 03:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 00:05:06' and `end` < '2025-03-15 03:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 03:05:18] Production.INFO: count ==627 [2025-03-15 03:05:18] Production.ERROR: pbx CDR StartTime 2025-03-15 00:05:06 - End Time 2025-03-15 03:05:06 [2025-03-15 03:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683268', 'tblTempUsageDetail_20' ) start [2025-03-15 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683268', 'tblTempUsageDetail_20' ) end [2025-03-15 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683268', 'tblTempVendorCDR_20' ) start [2025-03-15 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683268', 'tblTempVendorCDR_20' ) end [2025-03-15 03:05:18] Production.INFO: ProcessCDR(1,14683268,1,1,2) [2025-03-15 03:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683268', 'tblTempUsageDetail_20' ) start [2025-03-15 03:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683268', 'tblTempUsageDetail_20' ) end [2025-03-15 03:05:24] Production.ERROR: pbx prc_insertCDR start [2025-03-15 03:05:24] Production.ERROR: pbx prc_insertCDR end [2025-03-15 03:05:24] Production.INFO: ==23740== Releasing lock... [2025-03-15 03:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 03:05:24] Production.INFO: 33 MB #Memory Used# [2025-03-15 03:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 00:06:05 [end_date_ymd] => 2025-03-15 03:06:05 [RateCDR] => 1 ) [2025-03-15 03:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 00:06:05' and `end` < '2025-03-15 03:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 03:06:17] Production.INFO: count ==639 [2025-03-15 03:06:17] Production.ERROR: pbx CDR StartTime 2025-03-15 00:06:05 - End Time 2025-03-15 03:06:05 [2025-03-15 03:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 03:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683269', 'tblTempUsageDetail_20' ) start [2025-03-15 03:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683269', 'tblTempUsageDetail_20' ) end [2025-03-15 03:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683269', 'tblTempVendorCDR_20' ) start [2025-03-15 03:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683269', 'tblTempVendorCDR_20' ) end [2025-03-15 03:06:17] Production.INFO: ProcessCDR(1,14683269,1,1,2) [2025-03-15 03:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683269', 'tblTempUsageDetail_20' ) start [2025-03-15 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683269', 'tblTempUsageDetail_20' ) end [2025-03-15 03:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 03:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 03:06:21] Production.INFO: ==23886== Releasing lock... [2025-03-15 03:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 03:06:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-15 03:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 00:07:05 [end_date_ymd] => 2025-03-15 03:07:05 [RateCDR] => 1 ) [2025-03-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-03-15 00:07:05' and `end` < '2025-03-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-03-15 03:07:17] Production.INFO: count ==642 [2025-03-15 03:07:17] Production.ERROR: pbx CDR StartTime 2025-03-15 00:07:05 - End Time 2025-03-15 03:07:05 [2025-03-15 03:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683278', 'tblTempUsageDetail_20' ) start [2025-03-15 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683278', 'tblTempUsageDetail_20' ) end [2025-03-15 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683278', 'tblTempVendorCDR_20' ) start [2025-03-15 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683278', 'tblTempVendorCDR_20' ) end [2025-03-15 03:07:17] Production.INFO: ProcessCDR(1,14683278,1,1,2) [2025-03-15 03:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683278', 'tblTempUsageDetail_20' ) start [2025-03-15 03:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683278', 'tblTempUsageDetail_20' ) end [2025-03-15 03:07:20] Production.ERROR: pbx prc_insertCDR start [2025-03-15 03:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 03:07:21] Production.INFO: ==23957== Releasing lock... [2025-03-15 03:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 03:07:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-15 03:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 00:08:06 [end_date_ymd] => 2025-03-15 03:08:06 [RateCDR] => 1 ) [2025-03-15 03:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 00:08:06' and `end` < '2025-03-15 03:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 03:08:18] Production.INFO: count ==644 [2025-03-15 03:08:18] Production.ERROR: pbx CDR StartTime 2025-03-15 00:08:06 - End Time 2025-03-15 03:08:06 [2025-03-15 03:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683283', 'tblTempUsageDetail_20' ) start [2025-03-15 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683283', 'tblTempUsageDetail_20' ) end [2025-03-15 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683283', 'tblTempVendorCDR_20' ) start [2025-03-15 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683283', 'tblTempVendorCDR_20' ) end [2025-03-15 03:08:18] Production.INFO: ProcessCDR(1,14683283,1,1,2) [2025-03-15 03:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683283', 'tblTempUsageDetail_20' ) start [2025-03-15 03:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683283', 'tblTempUsageDetail_20' ) end [2025-03-15 03:08:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 03:08:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 03:08:22] Production.INFO: ==24028== Releasing lock... [2025-03-15 03:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 03:08:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-15 03:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 00:09:06 [end_date_ymd] => 2025-03-15 03:09:06 [RateCDR] => 1 ) [2025-03-15 03:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 00:09:06' and `end` < '2025-03-15 03:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 03:09:18] Production.INFO: count ==644 [2025-03-15 03:09:18] Production.ERROR: pbx CDR StartTime 2025-03-15 00:09:06 - End Time 2025-03-15 03:09:06 [2025-03-15 03:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683288', 'tblTempUsageDetail_20' ) start [2025-03-15 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683288', 'tblTempUsageDetail_20' ) end [2025-03-15 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683288', 'tblTempVendorCDR_20' ) start [2025-03-15 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683288', 'tblTempVendorCDR_20' ) end [2025-03-15 03:09:18] Production.INFO: ProcessCDR(1,14683288,1,1,2) [2025-03-15 03:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683288', 'tblTempUsageDetail_20' ) start [2025-03-15 03:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683288', 'tblTempUsageDetail_20' ) end [2025-03-15 03:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 03:09:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 03:09:22] Production.INFO: ==24221== Releasing lock... [2025-03-15 03:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 03:09:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-15 03:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 00:10:06 [end_date_ymd] => 2025-03-15 03:10:06 [RateCDR] => 1 ) [2025-03-15 03:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 00:10:06' and `end` < '2025-03-15 03:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 03:10:18] Production.INFO: count ==634 [2025-03-15 03:10:18] Production.ERROR: pbx CDR StartTime 2025-03-15 00:10:06 - End Time 2025-03-15 03:10:06 [2025-03-15 03:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683294', 'tblTempUsageDetail_20' ) start [2025-03-15 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683294', 'tblTempUsageDetail_20' ) end [2025-03-15 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683294', 'tblTempVendorCDR_20' ) start [2025-03-15 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683294', 'tblTempVendorCDR_20' ) end [2025-03-15 03:10:18] Production.INFO: ProcessCDR(1,14683294,1,1,2) [2025-03-15 03:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683294', 'tblTempUsageDetail_20' ) start [2025-03-15 03:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683294', 'tblTempUsageDetail_20' ) end [2025-03-15 03:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 03:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 03:10:22] Production.INFO: ==24306== Releasing lock... [2025-03-15 03:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 03:10:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-15 03:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 00:11:05 [end_date_ymd] => 2025-03-15 03:11:05 [RateCDR] => 1 ) [2025-03-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-03-15 00:11:05' and `end` < '2025-03-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-03-15 03:11:17] Production.INFO: count ==614 [2025-03-15 03:11:17] Production.ERROR: pbx CDR StartTime 2025-03-15 00:11:05 - End Time 2025-03-15 03:11:05 [2025-03-15 03:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683299', 'tblTempUsageDetail_20' ) start [2025-03-15 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683299', 'tblTempUsageDetail_20' ) end [2025-03-15 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683299', 'tblTempVendorCDR_20' ) start [2025-03-15 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683299', 'tblTempVendorCDR_20' ) end [2025-03-15 03:11:17] Production.INFO: ProcessCDR(1,14683299,1,1,2) [2025-03-15 03:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683299', 'tblTempUsageDetail_20' ) start [2025-03-15 03:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683299', 'tblTempUsageDetail_20' ) end [2025-03-15 03:11:20] Production.ERROR: pbx prc_insertCDR start [2025-03-15 03:11:20] Production.ERROR: pbx prc_insertCDR end [2025-03-15 03:11:20] Production.INFO: ==24387== Releasing lock... [2025-03-15 03:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 03:11:20] Production.INFO: 33.25 MB #Memory Used# [2025-03-15 03:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 00:12:05 [end_date_ymd] => 2025-03-15 03:12:05 [RateCDR] => 1 ) [2025-03-15 03:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 00:12:05' and `end` < '2025-03-15 03:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 03:12:18] Production.INFO: count ==614 [2025-03-15 03:12:18] Production.ERROR: pbx CDR StartTime 2025-03-15 00:12:05 - End Time 2025-03-15 03:12:05 [2025-03-15 03:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683304', 'tblTempUsageDetail_20' ) start [2025-03-15 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683304', 'tblTempUsageDetail_20' ) end [2025-03-15 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683304', 'tblTempVendorCDR_20' ) start [2025-03-15 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683304', 'tblTempVendorCDR_20' ) end [2025-03-15 03:12:18] Production.INFO: ProcessCDR(1,14683304,1,1,2) [2025-03-15 03:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683304', 'tblTempUsageDetail_20' ) start [2025-03-15 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683304', 'tblTempUsageDetail_20' ) end [2025-03-15 03:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 03:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 03:12:21] Production.INFO: ==24475== Releasing lock... [2025-03-15 03:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 03:12:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-15 03:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 00:13:05 [end_date_ymd] => 2025-03-15 03:13:05 [RateCDR] => 1 ) [2025-03-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-03-15 00:13:05' and `end` < '2025-03-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-03-15 03:13:18] Production.INFO: count ==614 [2025-03-15 03:13:18] Production.ERROR: pbx CDR StartTime 2025-03-15 00:13:05 - End Time 2025-03-15 03:13:05 [2025-03-15 03:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683309', 'tblTempUsageDetail_20' ) start [2025-03-15 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683309', 'tblTempUsageDetail_20' ) end [2025-03-15 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683309', 'tblTempVendorCDR_20' ) start [2025-03-15 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683309', 'tblTempVendorCDR_20' ) end [2025-03-15 03:13:18] Production.INFO: ProcessCDR(1,14683309,1,1,2) [2025-03-15 03:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683309', 'tblTempUsageDetail_20' ) start [2025-03-15 03:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683309', 'tblTempUsageDetail_20' ) end [2025-03-15 03:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 03:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 03:13:21] Production.INFO: ==24637== Releasing lock... [2025-03-15 03:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 03:13:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-15 03:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 00:14:05 [end_date_ymd] => 2025-03-15 03:14:05 [RateCDR] => 1 ) [2025-03-15 03:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 00:14:05' and `end` < '2025-03-15 03:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 03:14:17] Production.INFO: count ==620 [2025-03-15 03:14:17] Production.ERROR: pbx CDR StartTime 2025-03-15 00:14:05 - End Time 2025-03-15 03:14:05 [2025-03-15 03:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683314', 'tblTempUsageDetail_20' ) start [2025-03-15 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683314', 'tblTempUsageDetail_20' ) end [2025-03-15 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683314', 'tblTempVendorCDR_20' ) start [2025-03-15 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683314', 'tblTempVendorCDR_20' ) end [2025-03-15 03:14:17] Production.INFO: ProcessCDR(1,14683314,1,1,2) [2025-03-15 03:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683314', 'tblTempUsageDetail_20' ) start [2025-03-15 03:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683314', 'tblTempUsageDetail_20' ) end [2025-03-15 03:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 03:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 03:14:21] Production.INFO: ==24716== Releasing lock... [2025-03-15 03:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 03:14:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-15 03:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 00:15:05 [end_date_ymd] => 2025-03-15 03:15:05 [RateCDR] => 1 ) [2025-03-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-03-15 00:15:05' and `end` < '2025-03-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-03-15 03:15:18] Production.INFO: count ==624 [2025-03-15 03:15:18] Production.ERROR: pbx CDR StartTime 2025-03-15 00:15:05 - End Time 2025-03-15 03:15:05 [2025-03-15 03:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683319', 'tblTempUsageDetail_20' ) start [2025-03-15 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683319', 'tblTempUsageDetail_20' ) end [2025-03-15 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683319', 'tblTempVendorCDR_20' ) start [2025-03-15 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683319', 'tblTempVendorCDR_20' ) end [2025-03-15 03:15:18] Production.INFO: ProcessCDR(1,14683319,1,1,2) [2025-03-15 03:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683319', 'tblTempUsageDetail_20' ) start [2025-03-15 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683319', 'tblTempUsageDetail_20' ) end [2025-03-15 03:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 03:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 03:15:21] Production.INFO: ==24804== Releasing lock... [2025-03-15 03:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 03:15:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-15 03:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 00:16:05 [end_date_ymd] => 2025-03-15 03:16:05 [RateCDR] => 1 ) [2025-03-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-03-15 00:16:05' and `end` < '2025-03-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-03-15 03:16:17] Production.INFO: count ==626 [2025-03-15 03:16:17] Production.ERROR: pbx CDR StartTime 2025-03-15 00:16:05 - End Time 2025-03-15 03:16:05 [2025-03-15 03:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683324', 'tblTempUsageDetail_20' ) start [2025-03-15 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683324', 'tblTempUsageDetail_20' ) end [2025-03-15 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683324', 'tblTempVendorCDR_20' ) start [2025-03-15 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683324', 'tblTempVendorCDR_20' ) end [2025-03-15 03:16:17] Production.INFO: ProcessCDR(1,14683324,1,1,2) [2025-03-15 03:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683324', 'tblTempUsageDetail_20' ) start [2025-03-15 03:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683324', 'tblTempUsageDetail_20' ) end [2025-03-15 03:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 03:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 03:16:21] Production.INFO: ==24883== Releasing lock... [2025-03-15 03:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 03:16:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-15 03:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 00:17:05 [end_date_ymd] => 2025-03-15 03:17:05 [RateCDR] => 1 ) [2025-03-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-03-15 00:17:05' and `end` < '2025-03-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-03-15 03:17:18] Production.INFO: count ==633 [2025-03-15 03:17:18] Production.ERROR: pbx CDR StartTime 2025-03-15 00:17:05 - End Time 2025-03-15 03:17:05 [2025-03-15 03:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683329', 'tblTempUsageDetail_20' ) start [2025-03-15 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683329', 'tblTempUsageDetail_20' ) end [2025-03-15 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683329', 'tblTempVendorCDR_20' ) start [2025-03-15 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683329', 'tblTempVendorCDR_20' ) end [2025-03-15 03:17:18] Production.INFO: ProcessCDR(1,14683329,1,1,2) [2025-03-15 03:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683329', 'tblTempUsageDetail_20' ) start [2025-03-15 03:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683329', 'tblTempUsageDetail_20' ) end [2025-03-15 03:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 03:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 03:17:21] Production.INFO: ==25043== Releasing lock... [2025-03-15 03:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 03:17:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-15 03:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 00:18:05 [end_date_ymd] => 2025-03-15 03:18:05 [RateCDR] => 1 ) [2025-03-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-03-15 00:18:05' and `end` < '2025-03-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-03-15 03:18:17] Production.INFO: count ==630 [2025-03-15 03:18:17] Production.ERROR: pbx CDR StartTime 2025-03-15 00:18:05 - End Time 2025-03-15 03:18:05 [2025-03-15 03:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683334', 'tblTempUsageDetail_20' ) start [2025-03-15 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683334', 'tblTempUsageDetail_20' ) end [2025-03-15 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683334', 'tblTempVendorCDR_20' ) start [2025-03-15 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683334', 'tblTempVendorCDR_20' ) end [2025-03-15 03:18:17] Production.INFO: ProcessCDR(1,14683334,1,1,2) [2025-03-15 03:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683334', 'tblTempUsageDetail_20' ) start [2025-03-15 03:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683334', 'tblTempUsageDetail_20' ) end [2025-03-15 03:18:20] Production.ERROR: pbx prc_insertCDR start [2025-03-15 03:18:20] Production.ERROR: pbx prc_insertCDR end [2025-03-15 03:18:20] Production.INFO: ==25129== Releasing lock... [2025-03-15 03:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 03:18:20] Production.INFO: 33 MB #Memory Used# [2025-03-15 03:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 00:19:05 [end_date_ymd] => 2025-03-15 03:19:05 [RateCDR] => 1 ) [2025-03-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-03-15 00:19:05' and `end` < '2025-03-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-03-15 03:19:17] Production.INFO: count ==646 [2025-03-15 03:19:17] Production.ERROR: pbx CDR StartTime 2025-03-15 00:19:05 - End Time 2025-03-15 03:19:05 [2025-03-15 03:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683339', 'tblTempUsageDetail_20' ) start [2025-03-15 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683339', 'tblTempUsageDetail_20' ) end [2025-03-15 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683339', 'tblTempVendorCDR_20' ) start [2025-03-15 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683339', 'tblTempVendorCDR_20' ) end [2025-03-15 03:19:18] Production.INFO: ProcessCDR(1,14683339,1,1,2) [2025-03-15 03:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683339', 'tblTempUsageDetail_20' ) start [2025-03-15 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683339', 'tblTempUsageDetail_20' ) end [2025-03-15 03:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 03:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 03:19:21] Production.INFO: ==25212== Releasing lock... [2025-03-15 03:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 03:19:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-15 03:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 00:20:06 [end_date_ymd] => 2025-03-15 03:20:06 [RateCDR] => 1 ) [2025-03-15 03:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 00:20:06' and `end` < '2025-03-15 03:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 03:20:18] Production.INFO: count ==655 [2025-03-15 03:20:18] Production.ERROR: pbx CDR StartTime 2025-03-15 00:20:06 - End Time 2025-03-15 03:20:06 [2025-03-15 03:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683344', 'tblTempUsageDetail_20' ) start [2025-03-15 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683344', 'tblTempUsageDetail_20' ) end [2025-03-15 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683344', 'tblTempVendorCDR_20' ) start [2025-03-15 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683344', 'tblTempVendorCDR_20' ) end [2025-03-15 03:20:18] Production.INFO: ProcessCDR(1,14683344,1,1,2) [2025-03-15 03:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683344', 'tblTempUsageDetail_20' ) start [2025-03-15 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683344', 'tblTempUsageDetail_20' ) end [2025-03-15 03:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 03:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 03:20:22] Production.INFO: ==25294== Releasing lock... [2025-03-15 03:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 03:20:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-15 03:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 00:21:05 [end_date_ymd] => 2025-03-15 03:21:05 [RateCDR] => 1 ) [2025-03-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-03-15 00:21:05' and `end` < '2025-03-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-03-15 03:21:18] Production.INFO: count ==649 [2025-03-15 03:21:18] Production.ERROR: pbx CDR StartTime 2025-03-15 00:21:05 - End Time 2025-03-15 03:21:05 [2025-03-15 03:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683350', 'tblTempUsageDetail_20' ) start [2025-03-15 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683350', 'tblTempUsageDetail_20' ) end [2025-03-15 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683350', 'tblTempVendorCDR_20' ) start [2025-03-15 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683350', 'tblTempVendorCDR_20' ) end [2025-03-15 03:21:18] Production.INFO: ProcessCDR(1,14683350,1,1,2) [2025-03-15 03:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683350', 'tblTempUsageDetail_20' ) start [2025-03-15 03:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683350', 'tblTempUsageDetail_20' ) end [2025-03-15 03:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 03:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 03:21:21] Production.INFO: ==25379== Releasing lock... [2025-03-15 03:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 03:21:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-15 03:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 00:22:05 [end_date_ymd] => 2025-03-15 03:22:05 [RateCDR] => 1 ) [2025-03-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-03-15 00:22:05' and `end` < '2025-03-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-03-15 03:22:17] Production.INFO: count ==664 [2025-03-15 03:22:17] Production.ERROR: pbx CDR StartTime 2025-03-15 00:22:05 - End Time 2025-03-15 03:22:05 [2025-03-15 03:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 03:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683355', 'tblTempUsageDetail_20' ) start [2025-03-15 03:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683355', 'tblTempUsageDetail_20' ) end [2025-03-15 03:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683355', 'tblTempVendorCDR_20' ) start [2025-03-15 03:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683355', 'tblTempVendorCDR_20' ) end [2025-03-15 03:22:17] Production.INFO: ProcessCDR(1,14683355,1,1,2) [2025-03-15 03:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683355', 'tblTempUsageDetail_20' ) start [2025-03-15 03:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683355', 'tblTempUsageDetail_20' ) end [2025-03-15 03:22:20] Production.ERROR: pbx prc_insertCDR start [2025-03-15 03:22:20] Production.ERROR: pbx prc_insertCDR end [2025-03-15 03:22:20] Production.INFO: ==25460== Releasing lock... [2025-03-15 03:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 03:22:20] Production.INFO: 34 MB #Memory Used# [2025-03-15 03:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 00:23:05 [end_date_ymd] => 2025-03-15 03:23:05 [RateCDR] => 1 ) [2025-03-15 03:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 00:23:05' and `end` < '2025-03-15 03:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 03:23:17] Production.INFO: count ==677 [2025-03-15 03:23:17] Production.ERROR: pbx CDR StartTime 2025-03-15 00:23:05 - End Time 2025-03-15 03:23:05 [2025-03-15 03:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683360', 'tblTempUsageDetail_20' ) start [2025-03-15 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683360', 'tblTempUsageDetail_20' ) end [2025-03-15 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683360', 'tblTempVendorCDR_20' ) start [2025-03-15 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683360', 'tblTempVendorCDR_20' ) end [2025-03-15 03:23:17] Production.INFO: ProcessCDR(1,14683360,1,1,2) [2025-03-15 03:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683360', 'tblTempUsageDetail_20' ) start [2025-03-15 03:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683360', 'tblTempUsageDetail_20' ) end [2025-03-15 03:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 03:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 03:23:21] Production.INFO: ==25542== Releasing lock... [2025-03-15 03:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 03:23:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-15 03:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 00:24:05 [end_date_ymd] => 2025-03-15 03:24:05 [RateCDR] => 1 ) [2025-03-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-03-15 00:24:05' and `end` < '2025-03-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-03-15 03:24:17] Production.INFO: count ==687 [2025-03-15 03:24:17] Production.ERROR: pbx CDR StartTime 2025-03-15 00:24:05 - End Time 2025-03-15 03:24:05 [2025-03-15 03:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683365', 'tblTempUsageDetail_20' ) start [2025-03-15 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683365', 'tblTempUsageDetail_20' ) end [2025-03-15 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683365', 'tblTempVendorCDR_20' ) start [2025-03-15 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683365', 'tblTempVendorCDR_20' ) end [2025-03-15 03:24:17] Production.INFO: ProcessCDR(1,14683365,1,1,2) [2025-03-15 03:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683365', 'tblTempUsageDetail_20' ) start [2025-03-15 03:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683365', 'tblTempUsageDetail_20' ) end [2025-03-15 03:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 03:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 03:24:21] Production.INFO: ==25622== Releasing lock... [2025-03-15 03:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 03:24:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-15 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 00:25:05 [end_date_ymd] => 2025-03-15 03:25:05 [RateCDR] => 1 ) [2025-03-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-03-15 00:25:05' and `end` < '2025-03-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-03-15 03:25:17] Production.INFO: count ==685 [2025-03-15 03:25:17] Production.ERROR: pbx CDR StartTime 2025-03-15 00:25:05 - End Time 2025-03-15 03:25:05 [2025-03-15 03:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683370', 'tblTempUsageDetail_20' ) start [2025-03-15 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683370', 'tblTempUsageDetail_20' ) end [2025-03-15 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683370', 'tblTempVendorCDR_20' ) start [2025-03-15 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683370', 'tblTempVendorCDR_20' ) end [2025-03-15 03:25:17] Production.INFO: ProcessCDR(1,14683370,1,1,2) [2025-03-15 03:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683370', 'tblTempUsageDetail_20' ) start [2025-03-15 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683370', 'tblTempUsageDetail_20' ) end [2025-03-15 03:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 03:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 03:25:21] Production.INFO: ==25716== Releasing lock... [2025-03-15 03:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 03:25:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-15 03:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 00:26:06 [end_date_ymd] => 2025-03-15 03:26:06 [RateCDR] => 1 ) [2025-03-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-03-15 00:26:06' and `end` < '2025-03-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-03-15 03:26:18] Production.INFO: count ==686 [2025-03-15 03:26:18] Production.ERROR: pbx CDR StartTime 2025-03-15 00:26:06 - End Time 2025-03-15 03:26:06 [2025-03-15 03:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683375', 'tblTempUsageDetail_20' ) start [2025-03-15 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683375', 'tblTempUsageDetail_20' ) end [2025-03-15 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683375', 'tblTempVendorCDR_20' ) start [2025-03-15 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683375', 'tblTempVendorCDR_20' ) end [2025-03-15 03:26:18] Production.INFO: ProcessCDR(1,14683375,1,1,2) [2025-03-15 03:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683375', 'tblTempUsageDetail_20' ) start [2025-03-15 03:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683375', 'tblTempUsageDetail_20' ) end [2025-03-15 03:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 03:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 03:26:21] Production.INFO: ==25837== Releasing lock... [2025-03-15 03:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 03:26:21] Production.INFO: 34 MB #Memory Used# [2025-03-15 03:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 00:27:05 [end_date_ymd] => 2025-03-15 03:27:05 [RateCDR] => 1 ) [2025-03-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-03-15 00:27:05' and `end` < '2025-03-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-03-15 03:27:17] Production.INFO: count ==701 [2025-03-15 03:27:18] Production.ERROR: pbx CDR StartTime 2025-03-15 00:27:05 - End Time 2025-03-15 03:27:05 [2025-03-15 03:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683380', 'tblTempUsageDetail_20' ) start [2025-03-15 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683380', 'tblTempUsageDetail_20' ) end [2025-03-15 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683380', 'tblTempVendorCDR_20' ) start [2025-03-15 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683380', 'tblTempVendorCDR_20' ) end [2025-03-15 03:27:18] Production.INFO: ProcessCDR(1,14683380,1,1,2) [2025-03-15 03:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683380', 'tblTempUsageDetail_20' ) start [2025-03-15 03:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683380', 'tblTempUsageDetail_20' ) end [2025-03-15 03:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 03:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 03:27:21] Production.INFO: ==25914== Releasing lock... [2025-03-15 03:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 03:27:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-15 03:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 00:28:05 [end_date_ymd] => 2025-03-15 03:28:05 [RateCDR] => 1 ) [2025-03-15 03:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 00:28:05' and `end` < '2025-03-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-03-15 03:28:17] Production.INFO: count ==716 [2025-03-15 03:28:18] Production.ERROR: pbx CDR StartTime 2025-03-15 00:28:05 - End Time 2025-03-15 03:28:05 [2025-03-15 03:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683385', 'tblTempUsageDetail_20' ) start [2025-03-15 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683385', 'tblTempUsageDetail_20' ) end [2025-03-15 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683385', 'tblTempVendorCDR_20' ) start [2025-03-15 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683385', 'tblTempVendorCDR_20' ) end [2025-03-15 03:28:18] Production.INFO: ProcessCDR(1,14683385,1,1,2) [2025-03-15 03:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683385', 'tblTempUsageDetail_20' ) start [2025-03-15 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683385', 'tblTempUsageDetail_20' ) end [2025-03-15 03:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 03:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 03:28:21] Production.INFO: ==25995== Releasing lock... [2025-03-15 03:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 03:28:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-15 03:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 00:29:05 [end_date_ymd] => 2025-03-15 03:29:05 [RateCDR] => 1 ) [2025-03-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-03-15 00:29:05' and `end` < '2025-03-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-03-15 03:29:17] Production.INFO: count ==720 [2025-03-15 03:29:18] Production.ERROR: pbx CDR StartTime 2025-03-15 00:29:05 - End Time 2025-03-15 03:29:05 [2025-03-15 03:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683390', 'tblTempUsageDetail_20' ) start [2025-03-15 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683390', 'tblTempUsageDetail_20' ) end [2025-03-15 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683390', 'tblTempVendorCDR_20' ) start [2025-03-15 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683390', 'tblTempVendorCDR_20' ) end [2025-03-15 03:29:18] Production.INFO: ProcessCDR(1,14683390,1,1,2) [2025-03-15 03:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683390', 'tblTempUsageDetail_20' ) start [2025-03-15 03:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683390', 'tblTempUsageDetail_20' ) end [2025-03-15 03:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 03:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 03:29:21] Production.INFO: ==26075== Releasing lock... [2025-03-15 03:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 03:29:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-15 03:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 00:30:06 [end_date_ymd] => 2025-03-15 03:30:06 [RateCDR] => 1 ) [2025-03-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-03-15 00:30:06' and `end` < '2025-03-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-03-15 03:30:18] Production.INFO: count ==727 [2025-03-15 03:30:18] Production.ERROR: pbx CDR StartTime 2025-03-15 00:30:06 - End Time 2025-03-15 03:30:06 [2025-03-15 03:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683396', 'tblTempUsageDetail_20' ) start [2025-03-15 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683396', 'tblTempUsageDetail_20' ) end [2025-03-15 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683396', 'tblTempVendorCDR_20' ) start [2025-03-15 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683396', 'tblTempVendorCDR_20' ) end [2025-03-15 03:30:18] Production.INFO: ProcessCDR(1,14683396,1,1,2) [2025-03-15 03:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683396', 'tblTempUsageDetail_20' ) start [2025-03-15 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683396', 'tblTempUsageDetail_20' ) end [2025-03-15 03:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 03:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 03:30:22] Production.INFO: ==26157== Releasing lock... [2025-03-15 03:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 03:30:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-15 03:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 00:31:05 [end_date_ymd] => 2025-03-15 03:31:05 [RateCDR] => 1 ) [2025-03-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-03-15 00:31:05' and `end` < '2025-03-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-03-15 03:31:17] Production.INFO: count ==724 [2025-03-15 03:31:18] Production.ERROR: pbx CDR StartTime 2025-03-15 00:31:05 - End Time 2025-03-15 03:31:05 [2025-03-15 03:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683401', 'tblTempUsageDetail_20' ) start [2025-03-15 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683401', 'tblTempUsageDetail_20' ) end [2025-03-15 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683401', 'tblTempVendorCDR_20' ) start [2025-03-15 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683401', 'tblTempVendorCDR_20' ) end [2025-03-15 03:31:18] Production.INFO: ProcessCDR(1,14683401,1,1,2) [2025-03-15 03:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683401', 'tblTempUsageDetail_20' ) start [2025-03-15 03:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683401', 'tblTempUsageDetail_20' ) end [2025-03-15 03:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 03:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 03:31:21] Production.INFO: ==26242== Releasing lock... [2025-03-15 03:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 03:31:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-15 03:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 00:32:06 [end_date_ymd] => 2025-03-15 03:32:06 [RateCDR] => 1 ) [2025-03-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-03-15 00:32:06' and `end` < '2025-03-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-03-15 03:32:18] Production.INFO: count ==726 [2025-03-15 03:32:19] Production.ERROR: pbx CDR StartTime 2025-03-15 00:32:06 - End Time 2025-03-15 03:32:06 [2025-03-15 03:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683406', 'tblTempUsageDetail_20' ) start [2025-03-15 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683406', 'tblTempUsageDetail_20' ) end [2025-03-15 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683406', 'tblTempVendorCDR_20' ) start [2025-03-15 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683406', 'tblTempVendorCDR_20' ) end [2025-03-15 03:32:19] Production.INFO: ProcessCDR(1,14683406,1,1,2) [2025-03-15 03:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683406', 'tblTempUsageDetail_20' ) start [2025-03-15 03:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683406', 'tblTempUsageDetail_20' ) end [2025-03-15 03:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 03:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 03:32:23] Production.INFO: ==26323== Releasing lock... [2025-03-15 03:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 03:32:23] Production.INFO: 33.75 MB #Memory Used# [2025-03-15 03:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 00:33:05 [end_date_ymd] => 2025-03-15 03:33:05 [RateCDR] => 1 ) [2025-03-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-03-15 00:33:05' and `end` < '2025-03-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-03-15 03:33:17] Production.INFO: count ==752 [2025-03-15 03:33:18] Production.ERROR: pbx CDR StartTime 2025-03-15 00:33:05 - End Time 2025-03-15 03:33:05 [2025-03-15 03:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683411', 'tblTempUsageDetail_20' ) start [2025-03-15 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683411', 'tblTempUsageDetail_20' ) end [2025-03-15 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683411', 'tblTempVendorCDR_20' ) start [2025-03-15 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683411', 'tblTempVendorCDR_20' ) end [2025-03-15 03:33:18] Production.INFO: ProcessCDR(1,14683411,1,1,2) [2025-03-15 03:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683411', 'tblTempUsageDetail_20' ) start [2025-03-15 03:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683411', 'tblTempUsageDetail_20' ) end [2025-03-15 03:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 03:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 03:33:21] Production.INFO: ==26405== Releasing lock... [2025-03-15 03:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 03:33:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-15 03:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 00:34:05 [end_date_ymd] => 2025-03-15 03:34:05 [RateCDR] => 1 ) [2025-03-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-03-15 00:34:05' and `end` < '2025-03-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-03-15 03:34:18] Production.INFO: count ==756 [2025-03-15 03:34:18] Production.ERROR: pbx CDR StartTime 2025-03-15 00:34:05 - End Time 2025-03-15 03:34:05 [2025-03-15 03:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683416', 'tblTempUsageDetail_20' ) start [2025-03-15 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683416', 'tblTempUsageDetail_20' ) end [2025-03-15 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683416', 'tblTempVendorCDR_20' ) start [2025-03-15 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683416', 'tblTempVendorCDR_20' ) end [2025-03-15 03:34:18] Production.INFO: ProcessCDR(1,14683416,1,1,2) [2025-03-15 03:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683416', 'tblTempUsageDetail_20' ) start [2025-03-15 03:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683416', 'tblTempUsageDetail_20' ) end [2025-03-15 03:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 03:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 03:34:21] Production.INFO: ==26487== Releasing lock... [2025-03-15 03:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 03:34:21] Production.INFO: 34 MB #Memory Used# [2025-03-15 03:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 00:35:05 [end_date_ymd] => 2025-03-15 03:35:05 [RateCDR] => 1 ) [2025-03-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-03-15 00:35:05' and `end` < '2025-03-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-03-15 03:35:17] Production.INFO: count ==758 [2025-03-15 03:35:18] Production.ERROR: pbx CDR StartTime 2025-03-15 00:35:05 - End Time 2025-03-15 03:35:05 [2025-03-15 03:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683421', 'tblTempUsageDetail_20' ) start [2025-03-15 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683421', 'tblTempUsageDetail_20' ) end [2025-03-15 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683421', 'tblTempVendorCDR_20' ) start [2025-03-15 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683421', 'tblTempVendorCDR_20' ) end [2025-03-15 03:35:18] Production.INFO: ProcessCDR(1,14683421,1,1,2) [2025-03-15 03:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683421', 'tblTempUsageDetail_20' ) start [2025-03-15 03:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683421', 'tblTempUsageDetail_20' ) end [2025-03-15 03:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 03:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 03:35:22] Production.INFO: ==26575== Releasing lock... [2025-03-15 03:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 03:35:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-15 03:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 00:36:05 [end_date_ymd] => 2025-03-15 03:36:05 [RateCDR] => 1 ) [2025-03-15 03:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 00:36:05' and `end` < '2025-03-15 03:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 03:36:17] Production.INFO: count ==758 [2025-03-15 03:36:18] Production.ERROR: pbx CDR StartTime 2025-03-15 00:36:05 - End Time 2025-03-15 03:36:05 [2025-03-15 03:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683426', 'tblTempUsageDetail_20' ) start [2025-03-15 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683426', 'tblTempUsageDetail_20' ) end [2025-03-15 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683426', 'tblTempVendorCDR_20' ) start [2025-03-15 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683426', 'tblTempVendorCDR_20' ) end [2025-03-15 03:36:18] Production.INFO: ProcessCDR(1,14683426,1,1,2) [2025-03-15 03:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683426', 'tblTempUsageDetail_20' ) start [2025-03-15 03:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683426', 'tblTempUsageDetail_20' ) end [2025-03-15 03:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 03:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 03:36:21] Production.INFO: ==26654== Releasing lock... [2025-03-15 03:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 03:36:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-15 03:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 00:37:05 [end_date_ymd] => 2025-03-15 03:37:05 [RateCDR] => 1 ) [2025-03-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-03-15 00:37:05' and `end` < '2025-03-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-03-15 03:37:17] Production.INFO: count ==763 [2025-03-15 03:37:17] Production.ERROR: pbx CDR StartTime 2025-03-15 00:37:05 - End Time 2025-03-15 03:37:05 [2025-03-15 03:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 03:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683431', 'tblTempUsageDetail_20' ) start [2025-03-15 03:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683431', 'tblTempUsageDetail_20' ) end [2025-03-15 03:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683431', 'tblTempVendorCDR_20' ) start [2025-03-15 03:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683431', 'tblTempVendorCDR_20' ) end [2025-03-15 03:37:17] Production.INFO: ProcessCDR(1,14683431,1,1,2) [2025-03-15 03:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683431', 'tblTempUsageDetail_20' ) start [2025-03-15 03:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683431', 'tblTempUsageDetail_20' ) end [2025-03-15 03:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 03:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 03:37:21] Production.INFO: ==26736== Releasing lock... [2025-03-15 03:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 03:37:21] Production.INFO: 34 MB #Memory Used# [2025-03-15 03:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 00:38:06 [end_date_ymd] => 2025-03-15 03:38:06 [RateCDR] => 1 ) [2025-03-15 03:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 00:38:06' and `end` < '2025-03-15 03:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 03:38:18] Production.INFO: count ==762 [2025-03-15 03:38:19] Production.ERROR: pbx CDR StartTime 2025-03-15 00:38:06 - End Time 2025-03-15 03:38:06 [2025-03-15 03:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683436', 'tblTempUsageDetail_20' ) start [2025-03-15 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683436', 'tblTempUsageDetail_20' ) end [2025-03-15 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683436', 'tblTempVendorCDR_20' ) start [2025-03-15 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683436', 'tblTempVendorCDR_20' ) end [2025-03-15 03:38:19] Production.INFO: ProcessCDR(1,14683436,1,1,2) [2025-03-15 03:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683436', 'tblTempUsageDetail_20' ) start [2025-03-15 03:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683436', 'tblTempUsageDetail_20' ) end [2025-03-15 03:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 03:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 03:38:22] Production.INFO: ==26838== Releasing lock... [2025-03-15 03:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 03:38:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-15 03:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 00:39:05 [end_date_ymd] => 2025-03-15 03:39:05 [RateCDR] => 1 ) [2025-03-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-03-15 00:39:05' and `end` < '2025-03-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-03-15 03:39:18] Production.INFO: count ==758 [2025-03-15 03:39:18] Production.ERROR: pbx CDR StartTime 2025-03-15 00:39:05 - End Time 2025-03-15 03:39:05 [2025-03-15 03:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683441', 'tblTempUsageDetail_20' ) start [2025-03-15 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683441', 'tblTempUsageDetail_20' ) end [2025-03-15 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683441', 'tblTempVendorCDR_20' ) start [2025-03-15 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683441', 'tblTempVendorCDR_20' ) end [2025-03-15 03:39:18] Production.INFO: ProcessCDR(1,14683441,1,1,2) [2025-03-15 03:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683441', 'tblTempUsageDetail_20' ) start [2025-03-15 03:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683441', 'tblTempUsageDetail_20' ) end [2025-03-15 03:39:24] Production.ERROR: pbx prc_insertCDR start [2025-03-15 03:39:24] Production.ERROR: pbx prc_insertCDR end [2025-03-15 03:39:24] Production.INFO: ==26955== Releasing lock... [2025-03-15 03:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 03:39:24] Production.INFO: 33.75 MB #Memory Used# [2025-03-15 03:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 00:40:06 [end_date_ymd] => 2025-03-15 03:40:06 [RateCDR] => 1 ) [2025-03-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-03-15 00:40:06' and `end` < '2025-03-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-03-15 03:40:19] Production.INFO: count ==748 [2025-03-15 03:40:19] Production.ERROR: pbx CDR StartTime 2025-03-15 00:40:06 - End Time 2025-03-15 03:40:06 [2025-03-15 03:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683447', 'tblTempUsageDetail_20' ) start [2025-03-15 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683447', 'tblTempUsageDetail_20' ) end [2025-03-15 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683447', 'tblTempVendorCDR_20' ) start [2025-03-15 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683447', 'tblTempVendorCDR_20' ) end [2025-03-15 03:40:19] Production.INFO: ProcessCDR(1,14683447,1,1,2) [2025-03-15 03:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683447', 'tblTempUsageDetail_20' ) start [2025-03-15 03:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683447', 'tblTempUsageDetail_20' ) end [2025-03-15 03:40:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 03:40:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 03:40:23] Production.INFO: ==27050== Releasing lock... [2025-03-15 03:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 03:40:23] Production.INFO: 33.75 MB #Memory Used# [2025-03-15 03:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 00:41:05 [end_date_ymd] => 2025-03-15 03:41:05 [RateCDR] => 1 ) [2025-03-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-03-15 00:41:05' and `end` < '2025-03-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-03-15 03:41:17] Production.INFO: count ==721 [2025-03-15 03:41:17] Production.ERROR: pbx CDR StartTime 2025-03-15 00:41:05 - End Time 2025-03-15 03:41:05 [2025-03-15 03:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 03:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683452', 'tblTempUsageDetail_20' ) start [2025-03-15 03:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683452', 'tblTempUsageDetail_20' ) end [2025-03-15 03:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683452', 'tblTempVendorCDR_20' ) start [2025-03-15 03:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683452', 'tblTempVendorCDR_20' ) end [2025-03-15 03:41:17] Production.INFO: ProcessCDR(1,14683452,1,1,2) [2025-03-15 03:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683452', 'tblTempUsageDetail_20' ) start [2025-03-15 03:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683452', 'tblTempUsageDetail_20' ) end [2025-03-15 03:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 03:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 03:41:21] Production.INFO: ==27138== Releasing lock... [2025-03-15 03:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 03:41:21] Production.INFO: 34 MB #Memory Used# [2025-03-15 03:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 00:42:06 [end_date_ymd] => 2025-03-15 03:42:06 [RateCDR] => 1 ) [2025-03-15 03:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 00:42:06' and `end` < '2025-03-15 03:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 03:42:18] Production.INFO: count ==720 [2025-03-15 03:42:18] Production.ERROR: pbx CDR StartTime 2025-03-15 00:42:06 - End Time 2025-03-15 03:42:06 [2025-03-15 03:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683457', 'tblTempUsageDetail_20' ) start [2025-03-15 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683457', 'tblTempUsageDetail_20' ) end [2025-03-15 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683457', 'tblTempVendorCDR_20' ) start [2025-03-15 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683457', 'tblTempVendorCDR_20' ) end [2025-03-15 03:42:18] Production.INFO: ProcessCDR(1,14683457,1,1,2) [2025-03-15 03:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683457', 'tblTempUsageDetail_20' ) start [2025-03-15 03:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683457', 'tblTempUsageDetail_20' ) end [2025-03-15 03:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 03:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 03:42:22] Production.INFO: ==27260== Releasing lock... [2025-03-15 03:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 03:42:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-15 03:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 00:43:06 [end_date_ymd] => 2025-03-15 03:43:06 [RateCDR] => 1 ) [2025-03-15 03:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 00:43:06' and `end` < '2025-03-15 03:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 03:43:18] Production.INFO: count ==715 [2025-03-15 03:43:18] Production.ERROR: pbx CDR StartTime 2025-03-15 00:43:06 - End Time 2025-03-15 03:43:06 [2025-03-15 03:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683462', 'tblTempUsageDetail_20' ) start [2025-03-15 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683462', 'tblTempUsageDetail_20' ) end [2025-03-15 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683462', 'tblTempVendorCDR_20' ) start [2025-03-15 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683462', 'tblTempVendorCDR_20' ) end [2025-03-15 03:43:18] Production.INFO: ProcessCDR(1,14683462,1,1,2) [2025-03-15 03:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683462', 'tblTempUsageDetail_20' ) start [2025-03-15 03:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683462', 'tblTempUsageDetail_20' ) end [2025-03-15 03:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 03:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 03:43:22] Production.INFO: ==27339== Releasing lock... [2025-03-15 03:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 03:43:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-15 03:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 00:44:06 [end_date_ymd] => 2025-03-15 03:44:06 [RateCDR] => 1 ) [2025-03-15 03:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 00:44:06' and `end` < '2025-03-15 03:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 03:44:18] Production.INFO: count ==720 [2025-03-15 03:44:18] Production.ERROR: pbx CDR StartTime 2025-03-15 00:44:06 - End Time 2025-03-15 03:44:06 [2025-03-15 03:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683467', 'tblTempUsageDetail_20' ) start [2025-03-15 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683467', 'tblTempUsageDetail_20' ) end [2025-03-15 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683467', 'tblTempVendorCDR_20' ) start [2025-03-15 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683467', 'tblTempVendorCDR_20' ) end [2025-03-15 03:44:18] Production.INFO: ProcessCDR(1,14683467,1,1,2) [2025-03-15 03:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683467', 'tblTempUsageDetail_20' ) start [2025-03-15 03:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683467', 'tblTempUsageDetail_20' ) end [2025-03-15 03:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 03:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 03:44:22] Production.INFO: ==27430== Releasing lock... [2025-03-15 03:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 03:44:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-15 03:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 00:45:05 [end_date_ymd] => 2025-03-15 03:45:05 [RateCDR] => 1 ) [2025-03-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-03-15 00:45:05' and `end` < '2025-03-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-03-15 03:45:17] Production.INFO: count ==715 [2025-03-15 03:45:17] Production.ERROR: pbx CDR StartTime 2025-03-15 00:45:05 - End Time 2025-03-15 03:45:05 [2025-03-15 03:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683472', 'tblTempUsageDetail_20' ) start [2025-03-15 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683472', 'tblTempUsageDetail_20' ) end [2025-03-15 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683472', 'tblTempVendorCDR_20' ) start [2025-03-15 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683472', 'tblTempVendorCDR_20' ) end [2025-03-15 03:45:17] Production.INFO: ProcessCDR(1,14683472,1,1,2) [2025-03-15 03:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683472', 'tblTempUsageDetail_20' ) start [2025-03-15 03:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683472', 'tblTempUsageDetail_20' ) end [2025-03-15 03:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 03:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 03:45:21] Production.INFO: ==27513== Releasing lock... [2025-03-15 03:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 03:45:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-15 03:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 00:46:06 [end_date_ymd] => 2025-03-15 03:46:06 [RateCDR] => 1 ) [2025-03-15 03:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 00:46:06' and `end` < '2025-03-15 03:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 03:46:18] Production.INFO: count ==714 [2025-03-15 03:46:18] Production.ERROR: pbx CDR StartTime 2025-03-15 00:46:06 - End Time 2025-03-15 03:46:06 [2025-03-15 03:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683477', 'tblTempUsageDetail_20' ) start [2025-03-15 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683477', 'tblTempUsageDetail_20' ) end [2025-03-15 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683477', 'tblTempVendorCDR_20' ) start [2025-03-15 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683477', 'tblTempVendorCDR_20' ) end [2025-03-15 03:46:18] Production.INFO: ProcessCDR(1,14683477,1,1,2) [2025-03-15 03:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683477', 'tblTempUsageDetail_20' ) start [2025-03-15 03:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683477', 'tblTempUsageDetail_20' ) end [2025-03-15 03:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 03:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 03:46:22] Production.INFO: ==27596== Releasing lock... [2025-03-15 03:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 03:46:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-15 03:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 00:47:05 [end_date_ymd] => 2025-03-15 03:47:05 [RateCDR] => 1 ) [2025-03-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-03-15 00:47:05' and `end` < '2025-03-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-03-15 03:47:17] Production.INFO: count ==712 [2025-03-15 03:47:17] Production.ERROR: pbx CDR StartTime 2025-03-15 00:47:05 - End Time 2025-03-15 03:47:05 [2025-03-15 03:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683482', 'tblTempUsageDetail_20' ) start [2025-03-15 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683482', 'tblTempUsageDetail_20' ) end [2025-03-15 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683482', 'tblTempVendorCDR_20' ) start [2025-03-15 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683482', 'tblTempVendorCDR_20' ) end [2025-03-15 03:47:17] Production.INFO: ProcessCDR(1,14683482,1,1,2) [2025-03-15 03:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683482', 'tblTempUsageDetail_20' ) start [2025-03-15 03:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683482', 'tblTempUsageDetail_20' ) end [2025-03-15 03:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 03:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 03:47:21] Production.INFO: ==27676== Releasing lock... [2025-03-15 03:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 03:47:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-15 03:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 00:48:05 [end_date_ymd] => 2025-03-15 03:48:05 [RateCDR] => 1 ) [2025-03-15 03:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 00:48:05' and `end` < '2025-03-15 03:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 03:48:17] Production.INFO: count ==715 [2025-03-15 03:48:18] Production.ERROR: pbx CDR StartTime 2025-03-15 00:48:05 - End Time 2025-03-15 03:48:05 [2025-03-15 03:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683487', 'tblTempUsageDetail_20' ) start [2025-03-15 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683487', 'tblTempUsageDetail_20' ) end [2025-03-15 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683487', 'tblTempVendorCDR_20' ) start [2025-03-15 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683487', 'tblTempVendorCDR_20' ) end [2025-03-15 03:48:18] Production.INFO: ProcessCDR(1,14683487,1,1,2) [2025-03-15 03:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683487', 'tblTempUsageDetail_20' ) start [2025-03-15 03:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683487', 'tblTempUsageDetail_20' ) end [2025-03-15 03:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 03:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 03:48:21] Production.INFO: ==27764== Releasing lock... [2025-03-15 03:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 03:48:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-15 03:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 00:49:05 [end_date_ymd] => 2025-03-15 03:49:05 [RateCDR] => 1 ) [2025-03-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-03-15 00:49:05' and `end` < '2025-03-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-03-15 03:49:17] Production.INFO: count ==717 [2025-03-15 03:49:17] Production.ERROR: pbx CDR StartTime 2025-03-15 00:49:05 - End Time 2025-03-15 03:49:05 [2025-03-15 03:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683492', 'tblTempUsageDetail_20' ) start [2025-03-15 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683492', 'tblTempUsageDetail_20' ) end [2025-03-15 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683492', 'tblTempVendorCDR_20' ) start [2025-03-15 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683492', 'tblTempVendorCDR_20' ) end [2025-03-15 03:49:17] Production.INFO: ProcessCDR(1,14683492,1,1,2) [2025-03-15 03:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683492', 'tblTempUsageDetail_20' ) start [2025-03-15 03:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683492', 'tblTempUsageDetail_20' ) end [2025-03-15 03:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 03:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 03:49:21] Production.INFO: ==27846== Releasing lock... [2025-03-15 03:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 03:49:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-15 03:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 00:50:06 [end_date_ymd] => 2025-03-15 03:50:06 [RateCDR] => 1 ) [2025-03-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-03-15 00:50:06' and `end` < '2025-03-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-03-15 03:50:18] Production.INFO: count ==714 [2025-03-15 03:50:18] Production.ERROR: pbx CDR StartTime 2025-03-15 00:50:06 - End Time 2025-03-15 03:50:06 [2025-03-15 03:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683497', 'tblTempUsageDetail_20' ) start [2025-03-15 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683497', 'tblTempUsageDetail_20' ) end [2025-03-15 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683497', 'tblTempVendorCDR_20' ) start [2025-03-15 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683497', 'tblTempVendorCDR_20' ) end [2025-03-15 03:50:18] Production.INFO: ProcessCDR(1,14683497,1,1,2) [2025-03-15 03:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683497', 'tblTempUsageDetail_20' ) start [2025-03-15 03:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683497', 'tblTempUsageDetail_20' ) end [2025-03-15 03:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 03:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 03:50:22] Production.INFO: ==27935== Releasing lock... [2025-03-15 03:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 03:50:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-15 03:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 00:51:06 [end_date_ymd] => 2025-03-15 03:51:06 [RateCDR] => 1 ) [2025-03-15 03:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 00:51:06' and `end` < '2025-03-15 03:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 03:51:18] Production.INFO: count ==730 [2025-03-15 03:51:18] Production.ERROR: pbx CDR StartTime 2025-03-15 00:51:06 - End Time 2025-03-15 03:51:06 [2025-03-15 03:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683503', 'tblTempUsageDetail_20' ) start [2025-03-15 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683503', 'tblTempUsageDetail_20' ) end [2025-03-15 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683503', 'tblTempVendorCDR_20' ) start [2025-03-15 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683503', 'tblTempVendorCDR_20' ) end [2025-03-15 03:51:18] Production.INFO: ProcessCDR(1,14683503,1,1,2) [2025-03-15 03:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683503', 'tblTempUsageDetail_20' ) start [2025-03-15 03:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683503', 'tblTempUsageDetail_20' ) end [2025-03-15 03:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 03:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 03:51:22] Production.INFO: ==28018== Releasing lock... [2025-03-15 03:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 03:51:22] Production.INFO: 34.5 MB #Memory Used# [2025-03-15 03:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 00:52:06 [end_date_ymd] => 2025-03-15 03:52:06 [RateCDR] => 1 ) [2025-03-15 03:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 00:52:06' and `end` < '2025-03-15 03:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 03:52:18] Production.INFO: count ==731 [2025-03-15 03:52:18] Production.ERROR: pbx CDR StartTime 2025-03-15 00:52:06 - End Time 2025-03-15 03:52:06 [2025-03-15 03:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683508', 'tblTempUsageDetail_20' ) start [2025-03-15 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683508', 'tblTempUsageDetail_20' ) end [2025-03-15 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683508', 'tblTempVendorCDR_20' ) start [2025-03-15 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683508', 'tblTempVendorCDR_20' ) end [2025-03-15 03:52:18] Production.INFO: ProcessCDR(1,14683508,1,1,2) [2025-03-15 03:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683508', 'tblTempUsageDetail_20' ) start [2025-03-15 03:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683508', 'tblTempUsageDetail_20' ) end [2025-03-15 03:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 03:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 03:52:22] Production.INFO: ==28107== Releasing lock... [2025-03-15 03:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 03:52:22] Production.INFO: 34.5 MB #Memory Used# [2025-03-15 03:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 00:53:06 [end_date_ymd] => 2025-03-15 03:53:06 [RateCDR] => 1 ) [2025-03-15 03:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 00:53:06' and `end` < '2025-03-15 03:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 03:53:19] Production.INFO: count ==732 [2025-03-15 03:53:19] Production.ERROR: pbx CDR StartTime 2025-03-15 00:53:06 - End Time 2025-03-15 03:53:06 [2025-03-15 03:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683513', 'tblTempUsageDetail_20' ) start [2025-03-15 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683513', 'tblTempUsageDetail_20' ) end [2025-03-15 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683513', 'tblTempVendorCDR_20' ) start [2025-03-15 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683513', 'tblTempVendorCDR_20' ) end [2025-03-15 03:53:19] Production.INFO: ProcessCDR(1,14683513,1,1,2) [2025-03-15 03:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683513', 'tblTempUsageDetail_20' ) start [2025-03-15 03:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683513', 'tblTempUsageDetail_20' ) end [2025-03-15 03:53:24] Production.ERROR: pbx prc_insertCDR start [2025-03-15 03:53:24] Production.ERROR: pbx prc_insertCDR end [2025-03-15 03:53:24] Production.INFO: ==28192== Releasing lock... [2025-03-15 03:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 03:53:24] Production.INFO: 33.75 MB #Memory Used# [2025-03-15 03:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 00:54:06 [end_date_ymd] => 2025-03-15 03:54:06 [RateCDR] => 1 ) [2025-03-15 03:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 00:54:06' and `end` < '2025-03-15 03:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 03:54:18] Production.INFO: count ==728 [2025-03-15 03:54:18] Production.ERROR: pbx CDR StartTime 2025-03-15 00:54:06 - End Time 2025-03-15 03:54:06 [2025-03-15 03:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683518', 'tblTempUsageDetail_20' ) start [2025-03-15 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683518', 'tblTempUsageDetail_20' ) end [2025-03-15 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683518', 'tblTempVendorCDR_20' ) start [2025-03-15 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683518', 'tblTempVendorCDR_20' ) end [2025-03-15 03:54:18] Production.INFO: ProcessCDR(1,14683518,1,1,2) [2025-03-15 03:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683518', 'tblTempUsageDetail_20' ) start [2025-03-15 03:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683518', 'tblTempUsageDetail_20' ) end [2025-03-15 03:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 03:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 03:54:22] Production.INFO: ==28278== Releasing lock... [2025-03-15 03:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 03:54:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-15 03:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 00:55:05 [end_date_ymd] => 2025-03-15 03:55:05 [RateCDR] => 1 ) [2025-03-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-03-15 00:55:05' and `end` < '2025-03-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-03-15 03:55:17] Production.INFO: count ==729 [2025-03-15 03:55:17] Production.ERROR: pbx CDR StartTime 2025-03-15 00:55:05 - End Time 2025-03-15 03:55:05 [2025-03-15 03:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 03:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683523', 'tblTempUsageDetail_20' ) start [2025-03-15 03:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683523', 'tblTempUsageDetail_20' ) end [2025-03-15 03:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683523', 'tblTempVendorCDR_20' ) start [2025-03-15 03:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683523', 'tblTempVendorCDR_20' ) end [2025-03-15 03:55:17] Production.INFO: ProcessCDR(1,14683523,1,1,2) [2025-03-15 03:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683523', 'tblTempUsageDetail_20' ) start [2025-03-15 03:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683523', 'tblTempUsageDetail_20' ) end [2025-03-15 03:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 03:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 03:55:21] Production.INFO: ==28363== Releasing lock... [2025-03-15 03:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 03:55:21] Production.INFO: 34 MB #Memory Used# [2025-03-15 03:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 00:56:06 [end_date_ymd] => 2025-03-15 03:56:06 [RateCDR] => 1 ) [2025-03-15 03:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 00:56:06' and `end` < '2025-03-15 03:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 03:56:18] Production.INFO: count ==734 [2025-03-15 03:56:18] Production.ERROR: pbx CDR StartTime 2025-03-15 00:56:06 - End Time 2025-03-15 03:56:06 [2025-03-15 03:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683528', 'tblTempUsageDetail_20' ) start [2025-03-15 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683528', 'tblTempUsageDetail_20' ) end [2025-03-15 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683528', 'tblTempVendorCDR_20' ) start [2025-03-15 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683528', 'tblTempVendorCDR_20' ) end [2025-03-15 03:56:18] Production.INFO: ProcessCDR(1,14683528,1,1,2) [2025-03-15 03:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683528', 'tblTempUsageDetail_20' ) start [2025-03-15 03:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683528', 'tblTempUsageDetail_20' ) end [2025-03-15 03:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 03:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 03:56:22] Production.INFO: ==28447== Releasing lock... [2025-03-15 03:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 03:56:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-15 03:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 00:57:06 [end_date_ymd] => 2025-03-15 03:57:06 [RateCDR] => 1 ) [2025-03-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-03-15 00:57:06' and `end` < '2025-03-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-03-15 03:57:18] Production.INFO: count ==737 [2025-03-15 03:57:19] Production.ERROR: pbx CDR StartTime 2025-03-15 00:57:06 - End Time 2025-03-15 03:57:06 [2025-03-15 03:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683533', 'tblTempUsageDetail_20' ) start [2025-03-15 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683533', 'tblTempUsageDetail_20' ) end [2025-03-15 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683533', 'tblTempVendorCDR_20' ) start [2025-03-15 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683533', 'tblTempVendorCDR_20' ) end [2025-03-15 03:57:19] Production.INFO: ProcessCDR(1,14683533,1,1,2) [2025-03-15 03:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683533', 'tblTempUsageDetail_20' ) start [2025-03-15 03:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683533', 'tblTempUsageDetail_20' ) end [2025-03-15 03:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 03:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 03:57:22] Production.INFO: ==28570== Releasing lock... [2025-03-15 03:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 03:57:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-15 03:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 00:58:05 [end_date_ymd] => 2025-03-15 03:58:05 [RateCDR] => 1 ) [2025-03-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-03-15 00:58:05' and `end` < '2025-03-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-03-15 03:58:17] Production.INFO: count ==741 [2025-03-15 03:58:18] Production.ERROR: pbx CDR StartTime 2025-03-15 00:58:05 - End Time 2025-03-15 03:58:05 [2025-03-15 03:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683538', 'tblTempUsageDetail_20' ) start [2025-03-15 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683538', 'tblTempUsageDetail_20' ) end [2025-03-15 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683538', 'tblTempVendorCDR_20' ) start [2025-03-15 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683538', 'tblTempVendorCDR_20' ) end [2025-03-15 03:58:18] Production.INFO: ProcessCDR(1,14683538,1,1,2) [2025-03-15 03:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683538', 'tblTempUsageDetail_20' ) start [2025-03-15 03:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683538', 'tblTempUsageDetail_20' ) end [2025-03-15 03:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 03:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 03:58:21] Production.INFO: ==28649== Releasing lock... [2025-03-15 03:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 03:58:21] Production.INFO: 34 MB #Memory Used# [2025-03-15 03:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 00:59:06 [end_date_ymd] => 2025-03-15 03:59:06 [RateCDR] => 1 ) [2025-03-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-03-15 00:59:06' and `end` < '2025-03-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-03-15 03:59:18] Production.INFO: count ==747 [2025-03-15 03:59:18] Production.ERROR: pbx CDR StartTime 2025-03-15 00:59:06 - End Time 2025-03-15 03:59:06 [2025-03-15 03:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683543', 'tblTempUsageDetail_20' ) start [2025-03-15 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683543', 'tblTempUsageDetail_20' ) end [2025-03-15 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683543', 'tblTempVendorCDR_20' ) start [2025-03-15 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683543', 'tblTempVendorCDR_20' ) end [2025-03-15 03:59:18] Production.INFO: ProcessCDR(1,14683543,1,1,2) [2025-03-15 03:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 03:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 03:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683543', 'tblTempUsageDetail_20' ) start [2025-03-15 03:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683543', 'tblTempUsageDetail_20' ) end [2025-03-15 03:59:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 03:59:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 03:59:22] Production.INFO: ==28734== Releasing lock... [2025-03-15 03:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 03:59:22] Production.INFO: 34 MB #Memory Used# [2025-03-15 04:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 01:00:06 [end_date_ymd] => 2025-03-15 04:00:06 [RateCDR] => 1 ) [2025-03-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-03-15 01:00:06' and `end` < '2025-03-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-03-15 04:00:18] Production.INFO: count ==757 [2025-03-15 04:00:18] Production.ERROR: pbx CDR StartTime 2025-03-15 01:00:06 - End Time 2025-03-15 04:00:06 [2025-03-15 04:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683549', 'tblTempUsageDetail_20' ) start [2025-03-15 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683549', 'tblTempUsageDetail_20' ) end [2025-03-15 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683549', 'tblTempVendorCDR_20' ) start [2025-03-15 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683549', 'tblTempVendorCDR_20' ) end [2025-03-15 04:00:18] Production.INFO: ProcessCDR(1,14683549,1,1,2) [2025-03-15 04:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683549', 'tblTempUsageDetail_20' ) start [2025-03-15 04:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683549', 'tblTempUsageDetail_20' ) end [2025-03-15 04:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 04:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 04:00:22] Production.INFO: ==28819== Releasing lock... [2025-03-15 04:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 04:00:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-15 04:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 01:01:06 [end_date_ymd] => 2025-03-15 04:01:06 [RateCDR] => 1 ) [2025-03-15 04:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 01:01:06' and `end` < '2025-03-15 04:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 04:01:19] Production.INFO: count ==753 [2025-03-15 04:01:19] Production.ERROR: pbx CDR StartTime 2025-03-15 01:01:06 - End Time 2025-03-15 04:01:06 [2025-03-15 04:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683555', 'tblTempUsageDetail_20' ) start [2025-03-15 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683555', 'tblTempUsageDetail_20' ) end [2025-03-15 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683555', 'tblTempVendorCDR_20' ) start [2025-03-15 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683555', 'tblTempVendorCDR_20' ) end [2025-03-15 04:01:19] Production.INFO: ProcessCDR(1,14683555,1,1,2) [2025-03-15 04:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683555', 'tblTempUsageDetail_20' ) start [2025-03-15 04:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683555', 'tblTempUsageDetail_20' ) end [2025-03-15 04:01:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 04:01:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 04:01:23] Production.INFO: ==28920== Releasing lock... [2025-03-15 04:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 04:01:23] Production.INFO: 33.75 MB #Memory Used# [2025-03-15 04:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 01:02:05 [end_date_ymd] => 2025-03-15 04:02:05 [RateCDR] => 1 ) [2025-03-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-03-15 01:02:05' and `end` < '2025-03-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-03-15 04:02:18] Production.INFO: count ==760 [2025-03-15 04:02:18] Production.ERROR: pbx CDR StartTime 2025-03-15 01:02:05 - End Time 2025-03-15 04:02:05 [2025-03-15 04:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683560', 'tblTempUsageDetail_20' ) start [2025-03-15 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683560', 'tblTempUsageDetail_20' ) end [2025-03-15 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683560', 'tblTempVendorCDR_20' ) start [2025-03-15 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683560', 'tblTempVendorCDR_20' ) end [2025-03-15 04:02:18] Production.INFO: ProcessCDR(1,14683560,1,1,2) [2025-03-15 04:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683560', 'tblTempUsageDetail_20' ) start [2025-03-15 04:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683560', 'tblTempUsageDetail_20' ) end [2025-03-15 04:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 04:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 04:02:22] Production.INFO: ==29000== Releasing lock... [2025-03-15 04:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 04:02:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-15 04:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 01:03:06 [end_date_ymd] => 2025-03-15 04:03:06 [RateCDR] => 1 ) [2025-03-15 04:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 01:03:06' and `end` < '2025-03-15 04:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 04:03:18] Production.INFO: count ==760 [2025-03-15 04:03:18] Production.ERROR: pbx CDR StartTime 2025-03-15 01:03:06 - End Time 2025-03-15 04:03:06 [2025-03-15 04:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683565', 'tblTempUsageDetail_20' ) start [2025-03-15 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683565', 'tblTempUsageDetail_20' ) end [2025-03-15 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683565', 'tblTempVendorCDR_20' ) start [2025-03-15 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683565', 'tblTempVendorCDR_20' ) end [2025-03-15 04:03:18] Production.INFO: ProcessCDR(1,14683565,1,1,2) [2025-03-15 04:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683565', 'tblTempUsageDetail_20' ) start [2025-03-15 04:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683565', 'tblTempUsageDetail_20' ) end [2025-03-15 04:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 04:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 04:03:22] Production.INFO: ==29088== Releasing lock... [2025-03-15 04:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 04:03:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-15 04:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 01:04:05 [end_date_ymd] => 2025-03-15 04:04:05 [RateCDR] => 1 ) [2025-03-15 04:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 01:04:05' and `end` < '2025-03-15 04:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 04:04:18] Production.INFO: count ==757 [2025-03-15 04:04:18] Production.ERROR: pbx CDR StartTime 2025-03-15 01:04:05 - End Time 2025-03-15 04:04:05 [2025-03-15 04:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683570', 'tblTempUsageDetail_20' ) start [2025-03-15 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683570', 'tblTempUsageDetail_20' ) end [2025-03-15 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683570', 'tblTempVendorCDR_20' ) start [2025-03-15 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683570', 'tblTempVendorCDR_20' ) end [2025-03-15 04:04:18] Production.INFO: ProcessCDR(1,14683570,1,1,2) [2025-03-15 04:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683570', 'tblTempUsageDetail_20' ) start [2025-03-15 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683570', 'tblTempUsageDetail_20' ) end [2025-03-15 04:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 04:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 04:04:21] Production.INFO: ==29169== Releasing lock... [2025-03-15 04:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 04:04:21] Production.INFO: 34 MB #Memory Used# [2025-03-15 04:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 01:05:06 [end_date_ymd] => 2025-03-15 04:05:06 [RateCDR] => 1 ) [2025-03-15 04:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 01:05:06' and `end` < '2025-03-15 04:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 04:05:18] Production.INFO: count ==755 [2025-03-15 04:05:18] Production.ERROR: pbx CDR StartTime 2025-03-15 01:05:06 - End Time 2025-03-15 04:05:06 [2025-03-15 04:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683575', 'tblTempUsageDetail_20' ) start [2025-03-15 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683575', 'tblTempUsageDetail_20' ) end [2025-03-15 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683575', 'tblTempVendorCDR_20' ) start [2025-03-15 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683575', 'tblTempVendorCDR_20' ) end [2025-03-15 04:05:18] Production.INFO: ProcessCDR(1,14683575,1,1,2) [2025-03-15 04:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683575', 'tblTempUsageDetail_20' ) start [2025-03-15 04:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683575', 'tblTempUsageDetail_20' ) end [2025-03-15 04:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 04:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 04:05:22] Production.INFO: ==29256== Releasing lock... [2025-03-15 04:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 04:05:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-15 04:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 01:06:06 [end_date_ymd] => 2025-03-15 04:06:06 [RateCDR] => 1 ) [2025-03-15 04:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 01:06:06' and `end` < '2025-03-15 04:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 04:06:18] Production.INFO: count ==755 [2025-03-15 04:06:18] Production.ERROR: pbx CDR StartTime 2025-03-15 01:06:06 - End Time 2025-03-15 04:06:06 [2025-03-15 04:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683580', 'tblTempUsageDetail_20' ) start [2025-03-15 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683580', 'tblTempUsageDetail_20' ) end [2025-03-15 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683580', 'tblTempVendorCDR_20' ) start [2025-03-15 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683580', 'tblTempVendorCDR_20' ) end [2025-03-15 04:06:18] Production.INFO: ProcessCDR(1,14683580,1,1,2) [2025-03-15 04:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683580', 'tblTempUsageDetail_20' ) start [2025-03-15 04:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683580', 'tblTempUsageDetail_20' ) end [2025-03-15 04:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 04:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 04:06:22] Production.INFO: ==29337== Releasing lock... [2025-03-15 04:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 04:06:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-15 04:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 01:07:06 [end_date_ymd] => 2025-03-15 04:07:06 [RateCDR] => 1 ) [2025-03-15 04:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 01:07:06' and `end` < '2025-03-15 04:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 04:07:18] Production.INFO: count ==757 [2025-03-15 04:07:18] Production.ERROR: pbx CDR StartTime 2025-03-15 01:07:06 - End Time 2025-03-15 04:07:06 [2025-03-15 04:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683585', 'tblTempUsageDetail_20' ) start [2025-03-15 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683585', 'tblTempUsageDetail_20' ) end [2025-03-15 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683585', 'tblTempVendorCDR_20' ) start [2025-03-15 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683585', 'tblTempVendorCDR_20' ) end [2025-03-15 04:07:18] Production.INFO: ProcessCDR(1,14683585,1,1,2) [2025-03-15 04:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683585', 'tblTempUsageDetail_20' ) start [2025-03-15 04:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683585', 'tblTempUsageDetail_20' ) end [2025-03-15 04:07:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 04:07:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 04:07:22] Production.INFO: ==29417== Releasing lock... [2025-03-15 04:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 04:07:22] Production.INFO: 34 MB #Memory Used# [2025-03-15 04:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 01:08:06 [end_date_ymd] => 2025-03-15 04:08:06 [RateCDR] => 1 ) [2025-03-15 04:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 01:08:06' and `end` < '2025-03-15 04:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 04:08:18] Production.INFO: count ==757 [2025-03-15 04:08:18] Production.ERROR: pbx CDR StartTime 2025-03-15 01:08:06 - End Time 2025-03-15 04:08:06 [2025-03-15 04:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683590', 'tblTempUsageDetail_20' ) start [2025-03-15 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683590', 'tblTempUsageDetail_20' ) end [2025-03-15 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683590', 'tblTempVendorCDR_20' ) start [2025-03-15 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683590', 'tblTempVendorCDR_20' ) end [2025-03-15 04:08:18] Production.INFO: ProcessCDR(1,14683590,1,1,2) [2025-03-15 04:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683590', 'tblTempUsageDetail_20' ) start [2025-03-15 04:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683590', 'tblTempUsageDetail_20' ) end [2025-03-15 04:08:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 04:08:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 04:08:22] Production.INFO: ==29503== Releasing lock... [2025-03-15 04:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 04:08:22] Production.INFO: 34 MB #Memory Used# [2025-03-15 04:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 01:09:05 [end_date_ymd] => 2025-03-15 04:09:05 [RateCDR] => 1 ) [2025-03-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-03-15 01:09:05' and `end` < '2025-03-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-03-15 04:09:17] Production.INFO: count ==754 [2025-03-15 04:09:17] Production.ERROR: pbx CDR StartTime 2025-03-15 01:09:05 - End Time 2025-03-15 04:09:05 [2025-03-15 04:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683595', 'tblTempUsageDetail_20' ) start [2025-03-15 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683595', 'tblTempUsageDetail_20' ) end [2025-03-15 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683595', 'tblTempVendorCDR_20' ) start [2025-03-15 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683595', 'tblTempVendorCDR_20' ) end [2025-03-15 04:09:17] Production.INFO: ProcessCDR(1,14683595,1,1,2) [2025-03-15 04:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683595', 'tblTempUsageDetail_20' ) start [2025-03-15 04:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683595', 'tblTempUsageDetail_20' ) end [2025-03-15 04:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 04:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 04:09:21] Production.INFO: ==29585== Releasing lock... [2025-03-15 04:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 04:09:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-15 04:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 01:10:06 [end_date_ymd] => 2025-03-15 04:10:06 [RateCDR] => 1 ) [2025-03-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-03-15 01:10:06' and `end` < '2025-03-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-03-15 04:10:18] Production.INFO: count ==749 [2025-03-15 04:10:18] Production.ERROR: pbx CDR StartTime 2025-03-15 01:10:06 - End Time 2025-03-15 04:10:06 [2025-03-15 04:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683601', 'tblTempUsageDetail_20' ) start [2025-03-15 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683601', 'tblTempUsageDetail_20' ) end [2025-03-15 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683601', 'tblTempVendorCDR_20' ) start [2025-03-15 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683601', 'tblTempVendorCDR_20' ) end [2025-03-15 04:10:18] Production.INFO: ProcessCDR(1,14683601,1,1,2) [2025-03-15 04:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683601', 'tblTempUsageDetail_20' ) start [2025-03-15 04:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683601', 'tblTempUsageDetail_20' ) end [2025-03-15 04:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 04:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 04:10:22] Production.INFO: ==29672== Releasing lock... [2025-03-15 04:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 04:10:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-15 04:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 01:11:06 [end_date_ymd] => 2025-03-15 04:11:06 [RateCDR] => 1 ) [2025-03-15 04:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 01:11:06' and `end` < '2025-03-15 04:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 04:11:18] Production.INFO: count ==752 [2025-03-15 04:11:18] Production.ERROR: pbx CDR StartTime 2025-03-15 01:11:06 - End Time 2025-03-15 04:11:06 [2025-03-15 04:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683606', 'tblTempUsageDetail_20' ) start [2025-03-15 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683606', 'tblTempUsageDetail_20' ) end [2025-03-15 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683606', 'tblTempVendorCDR_20' ) start [2025-03-15 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683606', 'tblTempVendorCDR_20' ) end [2025-03-15 04:11:18] Production.INFO: ProcessCDR(1,14683606,1,1,2) [2025-03-15 04:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683606', 'tblTempUsageDetail_20' ) start [2025-03-15 04:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683606', 'tblTempUsageDetail_20' ) end [2025-03-15 04:11:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 04:11:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 04:11:22] Production.INFO: ==29759== Releasing lock... [2025-03-15 04:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 04:11:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-15 04:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 01:12:05 [end_date_ymd] => 2025-03-15 04:12:05 [RateCDR] => 1 ) [2025-03-15 04:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 01:12:05' and `end` < '2025-03-15 04:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 04:12:17] Production.INFO: count ==751 [2025-03-15 04:12:17] Production.ERROR: pbx CDR StartTime 2025-03-15 01:12:05 - End Time 2025-03-15 04:12:05 [2025-03-15 04:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 04:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683611', 'tblTempUsageDetail_20' ) start [2025-03-15 04:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683611', 'tblTempUsageDetail_20' ) end [2025-03-15 04:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683611', 'tblTempVendorCDR_20' ) start [2025-03-15 04:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683611', 'tblTempVendorCDR_20' ) end [2025-03-15 04:12:17] Production.INFO: ProcessCDR(1,14683611,1,1,2) [2025-03-15 04:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683611', 'tblTempUsageDetail_20' ) start [2025-03-15 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683611', 'tblTempUsageDetail_20' ) end [2025-03-15 04:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 04:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 04:12:21] Production.INFO: ==29838== Releasing lock... [2025-03-15 04:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 04:12:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-15 04:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 01:13:06 [end_date_ymd] => 2025-03-15 04:13:06 [RateCDR] => 1 ) [2025-03-15 04:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 01:13:06' and `end` < '2025-03-15 04:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 04:13:18] Production.INFO: count ==751 [2025-03-15 04:13:18] Production.ERROR: pbx CDR StartTime 2025-03-15 01:13:06 - End Time 2025-03-15 04:13:06 [2025-03-15 04:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683616', 'tblTempUsageDetail_20' ) start [2025-03-15 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683616', 'tblTempUsageDetail_20' ) end [2025-03-15 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683616', 'tblTempVendorCDR_20' ) start [2025-03-15 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683616', 'tblTempVendorCDR_20' ) end [2025-03-15 04:13:18] Production.INFO: ProcessCDR(1,14683616,1,1,2) [2025-03-15 04:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683616', 'tblTempUsageDetail_20' ) start [2025-03-15 04:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683616', 'tblTempUsageDetail_20' ) end [2025-03-15 04:13:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 04:13:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 04:13:22] Production.INFO: ==29965== Releasing lock... [2025-03-15 04:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 04:13:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-15 04:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 01:14:05 [end_date_ymd] => 2025-03-15 04:14:05 [RateCDR] => 1 ) [2025-03-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-03-15 01:14:05' and `end` < '2025-03-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-03-15 04:14:17] Production.INFO: count ==745 [2025-03-15 04:14:17] Production.ERROR: pbx CDR StartTime 2025-03-15 01:14:05 - End Time 2025-03-15 04:14:05 [2025-03-15 04:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683621', 'tblTempUsageDetail_20' ) start [2025-03-15 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683621', 'tblTempUsageDetail_20' ) end [2025-03-15 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683621', 'tblTempVendorCDR_20' ) start [2025-03-15 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683621', 'tblTempVendorCDR_20' ) end [2025-03-15 04:14:17] Production.INFO: ProcessCDR(1,14683621,1,1,2) [2025-03-15 04:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683621', 'tblTempUsageDetail_20' ) start [2025-03-15 04:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683621', 'tblTempUsageDetail_20' ) end [2025-03-15 04:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 04:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 04:14:21] Production.INFO: ==30045== Releasing lock... [2025-03-15 04:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 04:14:21] Production.INFO: 34 MB #Memory Used# [2025-03-15 04:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 01:15:05 [end_date_ymd] => 2025-03-15 04:15:05 [RateCDR] => 1 ) [2025-03-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-03-15 01:15:05' and `end` < '2025-03-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-03-15 04:15:18] Production.INFO: count ==742 [2025-03-15 04:15:18] Production.ERROR: pbx CDR StartTime 2025-03-15 01:15:05 - End Time 2025-03-15 04:15:05 [2025-03-15 04:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683626', 'tblTempUsageDetail_20' ) start [2025-03-15 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683626', 'tblTempUsageDetail_20' ) end [2025-03-15 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683626', 'tblTempVendorCDR_20' ) start [2025-03-15 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683626', 'tblTempVendorCDR_20' ) end [2025-03-15 04:15:18] Production.INFO: ProcessCDR(1,14683626,1,1,2) [2025-03-15 04:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683626', 'tblTempUsageDetail_20' ) start [2025-03-15 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683626', 'tblTempUsageDetail_20' ) end [2025-03-15 04:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 04:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 04:15:21] Production.INFO: ==30129== Releasing lock... [2025-03-15 04:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 04:15:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-15 04:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 01:16:05 [end_date_ymd] => 2025-03-15 04:16:05 [RateCDR] => 1 ) [2025-03-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-03-15 01:16:05' and `end` < '2025-03-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-03-15 04:16:17] Production.INFO: count ==740 [2025-03-15 04:16:18] Production.ERROR: pbx CDR StartTime 2025-03-15 01:16:05 - End Time 2025-03-15 04:16:05 [2025-03-15 04:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683631', 'tblTempUsageDetail_20' ) start [2025-03-15 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683631', 'tblTempUsageDetail_20' ) end [2025-03-15 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683631', 'tblTempVendorCDR_20' ) start [2025-03-15 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683631', 'tblTempVendorCDR_20' ) end [2025-03-15 04:16:18] Production.INFO: ProcessCDR(1,14683631,1,1,2) [2025-03-15 04:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683631', 'tblTempUsageDetail_20' ) start [2025-03-15 04:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683631', 'tblTempUsageDetail_20' ) end [2025-03-15 04:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 04:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 04:16:21] Production.INFO: ==30213== Releasing lock... [2025-03-15 04:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 04:16:21] Production.INFO: 34 MB #Memory Used# [2025-03-15 04:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 01:17:06 [end_date_ymd] => 2025-03-15 04:17:06 [RateCDR] => 1 ) [2025-03-15 04:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 01:17:06' and `end` < '2025-03-15 04:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 04:17:18] Production.INFO: count ==740 [2025-03-15 04:17:18] Production.ERROR: pbx CDR StartTime 2025-03-15 01:17:06 - End Time 2025-03-15 04:17:06 [2025-03-15 04:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683636', 'tblTempUsageDetail_20' ) start [2025-03-15 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683636', 'tblTempUsageDetail_20' ) end [2025-03-15 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683636', 'tblTempVendorCDR_20' ) start [2025-03-15 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683636', 'tblTempVendorCDR_20' ) end [2025-03-15 04:17:18] Production.INFO: ProcessCDR(1,14683636,1,1,2) [2025-03-15 04:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683636', 'tblTempUsageDetail_20' ) start [2025-03-15 04:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683636', 'tblTempUsageDetail_20' ) end [2025-03-15 04:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 04:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 04:17:22] Production.INFO: ==30298== Releasing lock... [2025-03-15 04:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 04:17:22] Production.INFO: 34 MB #Memory Used# [2025-03-15 04:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 01:18:05 [end_date_ymd] => 2025-03-15 04:18:05 [RateCDR] => 1 ) [2025-03-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-03-15 01:18:05' and `end` < '2025-03-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-03-15 04:18:18] Production.INFO: count ==735 [2025-03-15 04:18:18] Production.ERROR: pbx CDR StartTime 2025-03-15 01:18:05 - End Time 2025-03-15 04:18:05 [2025-03-15 04:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683641', 'tblTempUsageDetail_20' ) start [2025-03-15 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683641', 'tblTempUsageDetail_20' ) end [2025-03-15 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683641', 'tblTempVendorCDR_20' ) start [2025-03-15 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683641', 'tblTempVendorCDR_20' ) end [2025-03-15 04:18:18] Production.INFO: ProcessCDR(1,14683641,1,1,2) [2025-03-15 04:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683641', 'tblTempUsageDetail_20' ) start [2025-03-15 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683641', 'tblTempUsageDetail_20' ) end [2025-03-15 04:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 04:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 04:18:21] Production.INFO: ==30393== Releasing lock... [2025-03-15 04:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 04:18:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-15 04:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 01:19:05 [end_date_ymd] => 2025-03-15 04:19:05 [RateCDR] => 1 ) [2025-03-15 04:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 01:19:05' and `end` < '2025-03-15 04:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 04:19:18] Production.INFO: count ==744 [2025-03-15 04:19:18] Production.ERROR: pbx CDR StartTime 2025-03-15 01:19:05 - End Time 2025-03-15 04:19:05 [2025-03-15 04:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683646', 'tblTempUsageDetail_20' ) start [2025-03-15 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683646', 'tblTempUsageDetail_20' ) end [2025-03-15 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683646', 'tblTempVendorCDR_20' ) start [2025-03-15 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683646', 'tblTempVendorCDR_20' ) end [2025-03-15 04:19:18] Production.INFO: ProcessCDR(1,14683646,1,1,2) [2025-03-15 04:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683646', 'tblTempUsageDetail_20' ) start [2025-03-15 04:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683646', 'tblTempUsageDetail_20' ) end [2025-03-15 04:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 04:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 04:19:21] Production.INFO: ==30487== Releasing lock... [2025-03-15 04:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 04:19:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-15 04:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 01:20:05 [end_date_ymd] => 2025-03-15 04:20:05 [RateCDR] => 1 ) [2025-03-15 04:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 01:20:05' and `end` < '2025-03-15 04:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 04:20:18] Production.INFO: count ==743 [2025-03-15 04:20:18] Production.ERROR: pbx CDR StartTime 2025-03-15 01:20:05 - End Time 2025-03-15 04:20:05 [2025-03-15 04:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683652', 'tblTempUsageDetail_20' ) start [2025-03-15 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683652', 'tblTempUsageDetail_20' ) end [2025-03-15 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683652', 'tblTempVendorCDR_20' ) start [2025-03-15 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683652', 'tblTempVendorCDR_20' ) end [2025-03-15 04:20:18] Production.INFO: ProcessCDR(1,14683652,1,1,2) [2025-03-15 04:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683652', 'tblTempUsageDetail_20' ) start [2025-03-15 04:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683652', 'tblTempUsageDetail_20' ) end [2025-03-15 04:20:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 04:20:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 04:20:22] Production.INFO: ==30581== Releasing lock... [2025-03-15 04:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 04:20:22] Production.INFO: 34 MB #Memory Used# [2025-03-15 04:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 01:21:05 [end_date_ymd] => 2025-03-15 04:21:05 [RateCDR] => 1 ) [2025-03-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-03-15 01:21:05' and `end` < '2025-03-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-03-15 04:21:17] Production.INFO: count ==741 [2025-03-15 04:21:18] Production.ERROR: pbx CDR StartTime 2025-03-15 01:21:05 - End Time 2025-03-15 04:21:05 [2025-03-15 04:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683657', 'tblTempUsageDetail_20' ) start [2025-03-15 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683657', 'tblTempUsageDetail_20' ) end [2025-03-15 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683657', 'tblTempVendorCDR_20' ) start [2025-03-15 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683657', 'tblTempVendorCDR_20' ) end [2025-03-15 04:21:18] Production.INFO: ProcessCDR(1,14683657,1,1,2) [2025-03-15 04:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683657', 'tblTempUsageDetail_20' ) start [2025-03-15 04:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683657', 'tblTempUsageDetail_20' ) end [2025-03-15 04:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 04:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 04:21:21] Production.INFO: ==30679== Releasing lock... [2025-03-15 04:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 04:21:21] Production.INFO: 34 MB #Memory Used# [2025-03-15 04:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 01:22:05 [end_date_ymd] => 2025-03-15 04:22:05 [RateCDR] => 1 ) [2025-03-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-03-15 01:22:05' and `end` < '2025-03-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-03-15 04:22:18] Production.INFO: count ==735 [2025-03-15 04:22:18] Production.ERROR: pbx CDR StartTime 2025-03-15 01:22:05 - End Time 2025-03-15 04:22:05 [2025-03-15 04:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683662', 'tblTempUsageDetail_20' ) start [2025-03-15 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683662', 'tblTempUsageDetail_20' ) end [2025-03-15 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683662', 'tblTempVendorCDR_20' ) start [2025-03-15 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683662', 'tblTempVendorCDR_20' ) end [2025-03-15 04:22:18] Production.INFO: ProcessCDR(1,14683662,1,1,2) [2025-03-15 04:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683662', 'tblTempUsageDetail_20' ) start [2025-03-15 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683662', 'tblTempUsageDetail_20' ) end [2025-03-15 04:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 04:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 04:22:21] Production.INFO: ==30776== Releasing lock... [2025-03-15 04:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 04:22:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-15 04:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 01:23:05 [end_date_ymd] => 2025-03-15 04:23:05 [RateCDR] => 1 ) [2025-03-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-03-15 01:23:05' and `end` < '2025-03-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-03-15 04:23:17] Production.INFO: count ==735 [2025-03-15 04:23:17] Production.ERROR: pbx CDR StartTime 2025-03-15 01:23:05 - End Time 2025-03-15 04:23:05 [2025-03-15 04:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683667', 'tblTempUsageDetail_20' ) start [2025-03-15 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683667', 'tblTempUsageDetail_20' ) end [2025-03-15 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683667', 'tblTempVendorCDR_20' ) start [2025-03-15 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683667', 'tblTempVendorCDR_20' ) end [2025-03-15 04:23:17] Production.INFO: ProcessCDR(1,14683667,1,1,2) [2025-03-15 04:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683667', 'tblTempUsageDetail_20' ) start [2025-03-15 04:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683667', 'tblTempUsageDetail_20' ) end [2025-03-15 04:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 04:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 04:23:21] Production.INFO: ==30872== Releasing lock... [2025-03-15 04:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 04:23:21] Production.INFO: 34 MB #Memory Used# [2025-03-15 04:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 01:24:05 [end_date_ymd] => 2025-03-15 04:24:05 [RateCDR] => 1 ) [2025-03-15 04:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 01:24:05' and `end` < '2025-03-15 04:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 04:24:17] Production.INFO: count ==737 [2025-03-15 04:24:17] Production.ERROR: pbx CDR StartTime 2025-03-15 01:24:05 - End Time 2025-03-15 04:24:05 [2025-03-15 04:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683672', 'tblTempUsageDetail_20' ) start [2025-03-15 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683672', 'tblTempUsageDetail_20' ) end [2025-03-15 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683672', 'tblTempVendorCDR_20' ) start [2025-03-15 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683672', 'tblTempVendorCDR_20' ) end [2025-03-15 04:24:17] Production.INFO: ProcessCDR(1,14683672,1,1,2) [2025-03-15 04:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683672', 'tblTempUsageDetail_20' ) start [2025-03-15 04:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683672', 'tblTempUsageDetail_20' ) end [2025-03-15 04:24:20] Production.ERROR: pbx prc_insertCDR start [2025-03-15 04:24:20] Production.ERROR: pbx prc_insertCDR end [2025-03-15 04:24:20] Production.INFO: ==30962== Releasing lock... [2025-03-15 04:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 04:24:20] Production.INFO: 34 MB #Memory Used# [2025-03-15 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 01:25:05 [end_date_ymd] => 2025-03-15 04:25:05 [RateCDR] => 1 ) [2025-03-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-03-15 01:25:05' and `end` < '2025-03-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-03-15 04:25:17] Production.INFO: count ==736 [2025-03-15 04:25:17] Production.ERROR: pbx CDR StartTime 2025-03-15 01:25:05 - End Time 2025-03-15 04:25:05 [2025-03-15 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683677', 'tblTempUsageDetail_20' ) start [2025-03-15 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683677', 'tblTempUsageDetail_20' ) end [2025-03-15 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683677', 'tblTempVendorCDR_20' ) start [2025-03-15 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683677', 'tblTempVendorCDR_20' ) end [2025-03-15 04:25:17] Production.INFO: ProcessCDR(1,14683677,1,1,2) [2025-03-15 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683677', 'tblTempUsageDetail_20' ) start [2025-03-15 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683677', 'tblTempUsageDetail_20' ) end [2025-03-15 04:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 04:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 04:25:21] Production.INFO: ==31047== Releasing lock... [2025-03-15 04:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 04:25:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-15 04:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 01:26:05 [end_date_ymd] => 2025-03-15 04:26:05 [RateCDR] => 1 ) [2025-03-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-03-15 01:26:05' and `end` < '2025-03-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-03-15 04:26:18] Production.INFO: count ==734 [2025-03-15 04:26:18] Production.ERROR: pbx CDR StartTime 2025-03-15 01:26:05 - End Time 2025-03-15 04:26:05 [2025-03-15 04:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683682', 'tblTempUsageDetail_20' ) start [2025-03-15 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683682', 'tblTempUsageDetail_20' ) end [2025-03-15 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683682', 'tblTempVendorCDR_20' ) start [2025-03-15 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683682', 'tblTempVendorCDR_20' ) end [2025-03-15 04:26:18] Production.INFO: ProcessCDR(1,14683682,1,1,2) [2025-03-15 04:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683682', 'tblTempUsageDetail_20' ) start [2025-03-15 04:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683682', 'tblTempUsageDetail_20' ) end [2025-03-15 04:26:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 04:26:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 04:26:23] Production.INFO: ==31133== Releasing lock... [2025-03-15 04:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 04:26:23] Production.INFO: 33.75 MB #Memory Used# [2025-03-15 04:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 01:27:05 [end_date_ymd] => 2025-03-15 04:27:05 [RateCDR] => 1 ) [2025-03-15 04:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 01:27:05' and `end` < '2025-03-15 04:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 04:27:17] Production.INFO: count ==744 [2025-03-15 04:27:17] Production.ERROR: pbx CDR StartTime 2025-03-15 01:27:05 - End Time 2025-03-15 04:27:05 [2025-03-15 04:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683687', 'tblTempUsageDetail_20' ) start [2025-03-15 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683687', 'tblTempUsageDetail_20' ) end [2025-03-15 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683687', 'tblTempVendorCDR_20' ) start [2025-03-15 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683687', 'tblTempVendorCDR_20' ) end [2025-03-15 04:27:17] Production.INFO: ProcessCDR(1,14683687,1,1,2) [2025-03-15 04:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683687', 'tblTempUsageDetail_20' ) start [2025-03-15 04:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683687', 'tblTempUsageDetail_20' ) end [2025-03-15 04:27:20] Production.ERROR: pbx prc_insertCDR start [2025-03-15 04:27:20] Production.ERROR: pbx prc_insertCDR end [2025-03-15 04:27:20] Production.INFO: ==31215== Releasing lock... [2025-03-15 04:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 04:27:20] Production.INFO: 33.5 MB #Memory Used# [2025-03-15 04:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 01:28:06 [end_date_ymd] => 2025-03-15 04:28:06 [RateCDR] => 1 ) [2025-03-15 04:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 01:28:06' and `end` < '2025-03-15 04:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 04:28:18] Production.INFO: count ==742 [2025-03-15 04:28:18] Production.ERROR: pbx CDR StartTime 2025-03-15 01:28:06 - End Time 2025-03-15 04:28:06 [2025-03-15 04:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683692', 'tblTempUsageDetail_20' ) start [2025-03-15 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683692', 'tblTempUsageDetail_20' ) end [2025-03-15 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683692', 'tblTempVendorCDR_20' ) start [2025-03-15 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683692', 'tblTempVendorCDR_20' ) end [2025-03-15 04:28:18] Production.INFO: ProcessCDR(1,14683692,1,1,2) [2025-03-15 04:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683692', 'tblTempUsageDetail_20' ) start [2025-03-15 04:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683692', 'tblTempUsageDetail_20' ) end [2025-03-15 04:28:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 04:28:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 04:28:22] Production.INFO: ==31335== Releasing lock... [2025-03-15 04:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 04:28:22] Production.INFO: 34 MB #Memory Used# [2025-03-15 04:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 01:29:05 [end_date_ymd] => 2025-03-15 04:29:05 [RateCDR] => 1 ) [2025-03-15 04:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 01:29:05' and `end` < '2025-03-15 04:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 04:29:17] Production.INFO: count ==742 [2025-03-15 04:29:17] Production.ERROR: pbx CDR StartTime 2025-03-15 01:29:05 - End Time 2025-03-15 04:29:05 [2025-03-15 04:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683697', 'tblTempUsageDetail_20' ) start [2025-03-15 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683697', 'tblTempUsageDetail_20' ) end [2025-03-15 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683697', 'tblTempVendorCDR_20' ) start [2025-03-15 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683697', 'tblTempVendorCDR_20' ) end [2025-03-15 04:29:17] Production.INFO: ProcessCDR(1,14683697,1,1,2) [2025-03-15 04:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683697', 'tblTempUsageDetail_20' ) start [2025-03-15 04:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683697', 'tblTempUsageDetail_20' ) end [2025-03-15 04:29:20] Production.ERROR: pbx prc_insertCDR start [2025-03-15 04:29:20] Production.ERROR: pbx prc_insertCDR end [2025-03-15 04:29:20] Production.INFO: ==31419== Releasing lock... [2025-03-15 04:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 04:29:20] Production.INFO: 33.75 MB #Memory Used# [2025-03-15 04:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 01:30:06 [end_date_ymd] => 2025-03-15 04:30:06 [RateCDR] => 1 ) [2025-03-15 04:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 01:30:06' and `end` < '2025-03-15 04:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 04:30:19] Production.INFO: count ==736 [2025-03-15 04:30:19] Production.ERROR: pbx CDR StartTime 2025-03-15 01:30:06 - End Time 2025-03-15 04:30:06 [2025-03-15 04:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683704', 'tblTempUsageDetail_20' ) start [2025-03-15 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683704', 'tblTempUsageDetail_20' ) end [2025-03-15 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683704', 'tblTempVendorCDR_20' ) start [2025-03-15 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683704', 'tblTempVendorCDR_20' ) end [2025-03-15 04:30:19] Production.INFO: ProcessCDR(1,14683704,1,1,2) [2025-03-15 04:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683704', 'tblTempUsageDetail_20' ) start [2025-03-15 04:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683704', 'tblTempUsageDetail_20' ) end [2025-03-15 04:30:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 04:30:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 04:30:23] Production.INFO: ==31507== Releasing lock... [2025-03-15 04:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 04:30:23] Production.INFO: 33.75 MB #Memory Used# [2025-03-15 04:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 01:31:05 [end_date_ymd] => 2025-03-15 04:31:05 [RateCDR] => 1 ) [2025-03-15 04:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 01:31:05' and `end` < '2025-03-15 04:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 04:31:17] Production.INFO: count ==730 [2025-03-15 04:31:17] Production.ERROR: pbx CDR StartTime 2025-03-15 01:31:05 - End Time 2025-03-15 04:31:05 [2025-03-15 04:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 04:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683709', 'tblTempUsageDetail_20' ) start [2025-03-15 04:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683709', 'tblTempUsageDetail_20' ) end [2025-03-15 04:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683709', 'tblTempVendorCDR_20' ) start [2025-03-15 04:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683709', 'tblTempVendorCDR_20' ) end [2025-03-15 04:31:17] Production.INFO: ProcessCDR(1,14683709,1,1,2) [2025-03-15 04:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683709', 'tblTempUsageDetail_20' ) start [2025-03-15 04:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683709', 'tblTempUsageDetail_20' ) end [2025-03-15 04:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 04:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 04:31:21] Production.INFO: ==31702== Releasing lock... [2025-03-15 04:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 04:31:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-15 04:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 01:32:06 [end_date_ymd] => 2025-03-15 04:32:06 [RateCDR] => 1 ) [2025-03-15 04:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 01:32:06' and `end` < '2025-03-15 04:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 04:32:18] Production.INFO: count ==730 [2025-03-15 04:32:18] Production.ERROR: pbx CDR StartTime 2025-03-15 01:32:06 - End Time 2025-03-15 04:32:06 [2025-03-15 04:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683714', 'tblTempUsageDetail_20' ) start [2025-03-15 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683714', 'tblTempUsageDetail_20' ) end [2025-03-15 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683714', 'tblTempVendorCDR_20' ) start [2025-03-15 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683714', 'tblTempVendorCDR_20' ) end [2025-03-15 04:32:18] Production.INFO: ProcessCDR(1,14683714,1,1,2) [2025-03-15 04:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683714', 'tblTempUsageDetail_20' ) start [2025-03-15 04:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683714', 'tblTempUsageDetail_20' ) end [2025-03-15 04:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 04:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 04:32:22] Production.INFO: ==31788== Releasing lock... [2025-03-15 04:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 04:32:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-15 04:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 01:33:05 [end_date_ymd] => 2025-03-15 04:33:05 [RateCDR] => 1 ) [2025-03-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-03-15 01:33:05' and `end` < '2025-03-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-03-15 04:33:17] Production.INFO: count ==716 [2025-03-15 04:33:17] Production.ERROR: pbx CDR StartTime 2025-03-15 01:33:05 - End Time 2025-03-15 04:33:05 [2025-03-15 04:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683719', 'tblTempUsageDetail_20' ) start [2025-03-15 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683719', 'tblTempUsageDetail_20' ) end [2025-03-15 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683719', 'tblTempVendorCDR_20' ) start [2025-03-15 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683719', 'tblTempVendorCDR_20' ) end [2025-03-15 04:33:17] Production.INFO: ProcessCDR(1,14683719,1,1,2) [2025-03-15 04:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683719', 'tblTempUsageDetail_20' ) start [2025-03-15 04:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683719', 'tblTempUsageDetail_20' ) end [2025-03-15 04:33:20] Production.ERROR: pbx prc_insertCDR start [2025-03-15 04:33:20] Production.ERROR: pbx prc_insertCDR end [2025-03-15 04:33:20] Production.INFO: ==31880== Releasing lock... [2025-03-15 04:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 04:33:20] Production.INFO: 33.25 MB #Memory Used# [2025-03-15 04:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 01:34:05 [end_date_ymd] => 2025-03-15 04:34:05 [RateCDR] => 1 ) [2025-03-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-03-15 01:34:05' and `end` < '2025-03-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-03-15 04:34:17] Production.INFO: count ==716 [2025-03-15 04:34:18] Production.ERROR: pbx CDR StartTime 2025-03-15 01:34:05 - End Time 2025-03-15 04:34:05 [2025-03-15 04:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683724', 'tblTempUsageDetail_20' ) start [2025-03-15 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683724', 'tblTempUsageDetail_20' ) end [2025-03-15 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683724', 'tblTempVendorCDR_20' ) start [2025-03-15 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683724', 'tblTempVendorCDR_20' ) end [2025-03-15 04:34:18] Production.INFO: ProcessCDR(1,14683724,1,1,2) [2025-03-15 04:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683724', 'tblTempUsageDetail_20' ) start [2025-03-15 04:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683724', 'tblTempUsageDetail_20' ) end [2025-03-15 04:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 04:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 04:34:21] Production.INFO: ==31965== Releasing lock... [2025-03-15 04:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 04:34:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-15 04:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 01:35:05 [end_date_ymd] => 2025-03-15 04:35:05 [RateCDR] => 1 ) [2025-03-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-03-15 01:35:05' and `end` < '2025-03-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-03-15 04:35:17] Production.INFO: count ==719 [2025-03-15 04:35:17] Production.ERROR: pbx CDR StartTime 2025-03-15 01:35:05 - End Time 2025-03-15 04:35:05 [2025-03-15 04:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683729', 'tblTempUsageDetail_20' ) start [2025-03-15 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683729', 'tblTempUsageDetail_20' ) end [2025-03-15 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683729', 'tblTempVendorCDR_20' ) start [2025-03-15 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683729', 'tblTempVendorCDR_20' ) end [2025-03-15 04:35:17] Production.INFO: ProcessCDR(1,14683729,1,1,2) [2025-03-15 04:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683729', 'tblTempUsageDetail_20' ) start [2025-03-15 04:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683729', 'tblTempUsageDetail_20' ) end [2025-03-15 04:35:20] Production.ERROR: pbx prc_insertCDR start [2025-03-15 04:35:20] Production.ERROR: pbx prc_insertCDR end [2025-03-15 04:35:20] Production.INFO: ==32048== Releasing lock... [2025-03-15 04:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 04:35:20] Production.INFO: 33.25 MB #Memory Used# [2025-03-15 04:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 01:36:05 [end_date_ymd] => 2025-03-15 04:36:05 [RateCDR] => 1 ) [2025-03-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-03-15 01:36:05' and `end` < '2025-03-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-03-15 04:36:17] Production.INFO: count ==719 [2025-03-15 04:36:18] Production.ERROR: pbx CDR StartTime 2025-03-15 01:36:05 - End Time 2025-03-15 04:36:05 [2025-03-15 04:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683734', 'tblTempUsageDetail_20' ) start [2025-03-15 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683734', 'tblTempUsageDetail_20' ) end [2025-03-15 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683734', 'tblTempVendorCDR_20' ) start [2025-03-15 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683734', 'tblTempVendorCDR_20' ) end [2025-03-15 04:36:18] Production.INFO: ProcessCDR(1,14683734,1,1,2) [2025-03-15 04:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683734', 'tblTempUsageDetail_20' ) start [2025-03-15 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683734', 'tblTempUsageDetail_20' ) end [2025-03-15 04:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 04:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 04:36:21] Production.INFO: ==32139== Releasing lock... [2025-03-15 04:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 04:36:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-15 04:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 01:37:05 [end_date_ymd] => 2025-03-15 04:37:05 [RateCDR] => 1 ) [2025-03-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-03-15 01:37:05' and `end` < '2025-03-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-03-15 04:37:17] Production.INFO: count ==719 [2025-03-15 04:37:17] Production.ERROR: pbx CDR StartTime 2025-03-15 01:37:05 - End Time 2025-03-15 04:37:05 [2025-03-15 04:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683739', 'tblTempUsageDetail_20' ) start [2025-03-15 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683739', 'tblTempUsageDetail_20' ) end [2025-03-15 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683739', 'tblTempVendorCDR_20' ) start [2025-03-15 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683739', 'tblTempVendorCDR_20' ) end [2025-03-15 04:37:17] Production.INFO: ProcessCDR(1,14683739,1,1,2) [2025-03-15 04:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683739', 'tblTempUsageDetail_20' ) start [2025-03-15 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683739', 'tblTempUsageDetail_20' ) end [2025-03-15 04:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 04:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 04:37:21] Production.INFO: ==32232== Releasing lock... [2025-03-15 04:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 04:37:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-15 04:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 01:38:05 [end_date_ymd] => 2025-03-15 04:38:05 [RateCDR] => 1 ) [2025-03-15 04:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 01:38:05' and `end` < '2025-03-15 04:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 04:38:17] Production.INFO: count ==719 [2025-03-15 04:38:17] Production.ERROR: pbx CDR StartTime 2025-03-15 01:38:05 - End Time 2025-03-15 04:38:05 [2025-03-15 04:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683744', 'tblTempUsageDetail_20' ) start [2025-03-15 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683744', 'tblTempUsageDetail_20' ) end [2025-03-15 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683744', 'tblTempVendorCDR_20' ) start [2025-03-15 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683744', 'tblTempVendorCDR_20' ) end [2025-03-15 04:38:17] Production.INFO: ProcessCDR(1,14683744,1,1,2) [2025-03-15 04:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683744', 'tblTempUsageDetail_20' ) start [2025-03-15 04:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683744', 'tblTempUsageDetail_20' ) end [2025-03-15 04:38:20] Production.ERROR: pbx prc_insertCDR start [2025-03-15 04:38:20] Production.ERROR: pbx prc_insertCDR end [2025-03-15 04:38:20] Production.INFO: ==32326== Releasing lock... [2025-03-15 04:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 04:38:20] Production.INFO: 33.25 MB #Memory Used# [2025-03-15 04:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 01:39:05 [end_date_ymd] => 2025-03-15 04:39:05 [RateCDR] => 1 ) [2025-03-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-03-15 01:39:05' and `end` < '2025-03-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-03-15 04:39:18] Production.INFO: count ==719 [2025-03-15 04:39:18] Production.ERROR: pbx CDR StartTime 2025-03-15 01:39:05 - End Time 2025-03-15 04:39:05 [2025-03-15 04:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683749', 'tblTempUsageDetail_20' ) start [2025-03-15 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683749', 'tblTempUsageDetail_20' ) end [2025-03-15 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683749', 'tblTempVendorCDR_20' ) start [2025-03-15 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683749', 'tblTempVendorCDR_20' ) end [2025-03-15 04:39:18] Production.INFO: ProcessCDR(1,14683749,1,1,2) [2025-03-15 04:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683749', 'tblTempUsageDetail_20' ) start [2025-03-15 04:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683749', 'tblTempUsageDetail_20' ) end [2025-03-15 04:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 04:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 04:39:21] Production.INFO: ==32420== Releasing lock... [2025-03-15 04:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 04:39:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-15 04:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 01:40:05 [end_date_ymd] => 2025-03-15 04:40:05 [RateCDR] => 1 ) [2025-03-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-03-15 01:40:05' and `end` < '2025-03-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-03-15 04:40:17] Production.INFO: count ==717 [2025-03-15 04:40:17] Production.ERROR: pbx CDR StartTime 2025-03-15 01:40:05 - End Time 2025-03-15 04:40:05 [2025-03-15 04:40:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 04:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683754', 'tblTempUsageDetail_20' ) start [2025-03-15 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683754', 'tblTempUsageDetail_20' ) end [2025-03-15 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683754', 'tblTempVendorCDR_20' ) start [2025-03-15 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683754', 'tblTempVendorCDR_20' ) end [2025-03-15 04:40:18] Production.INFO: ProcessCDR(1,14683754,1,1,2) [2025-03-15 04:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683754', 'tblTempUsageDetail_20' ) start [2025-03-15 04:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683754', 'tblTempUsageDetail_20' ) end [2025-03-15 04:40:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 04:40:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 04:40:21] Production.INFO: ==32523== Releasing lock... [2025-03-15 04:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 04:40:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-15 04:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 01:41:06 [end_date_ymd] => 2025-03-15 04:41:06 [RateCDR] => 1 ) [2025-03-15 04:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 01:41:06' and `end` < '2025-03-15 04:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 04:41:18] Production.INFO: count ==715 [2025-03-15 04:41:18] Production.ERROR: pbx CDR StartTime 2025-03-15 01:41:06 - End Time 2025-03-15 04:41:06 [2025-03-15 04:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683760', 'tblTempUsageDetail_20' ) start [2025-03-15 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683760', 'tblTempUsageDetail_20' ) end [2025-03-15 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683760', 'tblTempVendorCDR_20' ) start [2025-03-15 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683760', 'tblTempVendorCDR_20' ) end [2025-03-15 04:41:18] Production.INFO: ProcessCDR(1,14683760,1,1,2) [2025-03-15 04:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683760', 'tblTempUsageDetail_20' ) start [2025-03-15 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683760', 'tblTempUsageDetail_20' ) end [2025-03-15 04:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 04:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 04:41:21] Production.INFO: ==32623== Releasing lock... [2025-03-15 04:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 04:41:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-15 04:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 01:42:05 [end_date_ymd] => 2025-03-15 04:42:05 [RateCDR] => 1 ) [2025-03-15 04:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 01:42:05' and `end` < '2025-03-15 04:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 04:42:17] Production.INFO: count ==716 [2025-03-15 04:42:18] Production.ERROR: pbx CDR StartTime 2025-03-15 01:42:05 - End Time 2025-03-15 04:42:05 [2025-03-15 04:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683765', 'tblTempUsageDetail_20' ) start [2025-03-15 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683765', 'tblTempUsageDetail_20' ) end [2025-03-15 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683765', 'tblTempVendorCDR_20' ) start [2025-03-15 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683765', 'tblTempVendorCDR_20' ) end [2025-03-15 04:42:18] Production.INFO: ProcessCDR(1,14683765,1,1,2) [2025-03-15 04:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683765', 'tblTempUsageDetail_20' ) start [2025-03-15 04:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683765', 'tblTempUsageDetail_20' ) end [2025-03-15 04:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 04:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 04:42:21] Production.INFO: ==32716== Releasing lock... [2025-03-15 04:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 04:42:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-15 04:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 01:43:05 [end_date_ymd] => 2025-03-15 04:43:05 [RateCDR] => 1 ) [2025-03-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-03-15 01:43:05' and `end` < '2025-03-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-03-15 04:43:17] Production.INFO: count ==714 [2025-03-15 04:43:17] Production.ERROR: pbx CDR StartTime 2025-03-15 01:43:05 - End Time 2025-03-15 04:43:05 [2025-03-15 04:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683770', 'tblTempUsageDetail_20' ) start [2025-03-15 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683770', 'tblTempUsageDetail_20' ) end [2025-03-15 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683770', 'tblTempVendorCDR_20' ) start [2025-03-15 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683770', 'tblTempVendorCDR_20' ) end [2025-03-15 04:43:17] Production.INFO: ProcessCDR(1,14683770,1,1,2) [2025-03-15 04:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683770', 'tblTempUsageDetail_20' ) start [2025-03-15 04:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683770', 'tblTempUsageDetail_20' ) end [2025-03-15 04:43:20] Production.ERROR: pbx prc_insertCDR start [2025-03-15 04:43:20] Production.ERROR: pbx prc_insertCDR end [2025-03-15 04:43:20] Production.INFO: ==360== Releasing lock... [2025-03-15 04:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 04:43:20] Production.INFO: 33.25 MB #Memory Used# [2025-03-15 04:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 01:44:05 [end_date_ymd] => 2025-03-15 04:44:05 [RateCDR] => 1 ) [2025-03-15 04:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 01:44:05' and `end` < '2025-03-15 04:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 04:44:17] Production.INFO: count ==713 [2025-03-15 04:44:18] Production.ERROR: pbx CDR StartTime 2025-03-15 01:44:05 - End Time 2025-03-15 04:44:05 [2025-03-15 04:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683775', 'tblTempUsageDetail_20' ) start [2025-03-15 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683775', 'tblTempUsageDetail_20' ) end [2025-03-15 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683775', 'tblTempVendorCDR_20' ) start [2025-03-15 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683775', 'tblTempVendorCDR_20' ) end [2025-03-15 04:44:18] Production.INFO: ProcessCDR(1,14683775,1,1,2) [2025-03-15 04:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683775', 'tblTempUsageDetail_20' ) start [2025-03-15 04:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683775', 'tblTempUsageDetail_20' ) end [2025-03-15 04:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 04:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 04:44:21] Production.INFO: ==496== Releasing lock... [2025-03-15 04:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 04:44:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-15 04:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 01:45:05 [end_date_ymd] => 2025-03-15 04:45:05 [RateCDR] => 1 ) [2025-03-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-03-15 01:45:05' and `end` < '2025-03-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-03-15 04:45:17] Production.INFO: count ==716 [2025-03-15 04:45:17] Production.ERROR: pbx CDR StartTime 2025-03-15 01:45:05 - End Time 2025-03-15 04:45:05 [2025-03-15 04:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683780', 'tblTempUsageDetail_20' ) start [2025-03-15 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683780', 'tblTempUsageDetail_20' ) end [2025-03-15 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683780', 'tblTempVendorCDR_20' ) start [2025-03-15 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683780', 'tblTempVendorCDR_20' ) end [2025-03-15 04:45:17] Production.INFO: ProcessCDR(1,14683780,1,1,2) [2025-03-15 04:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683780', 'tblTempUsageDetail_20' ) start [2025-03-15 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683780', 'tblTempUsageDetail_20' ) end [2025-03-15 04:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 04:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 04:45:21] Production.INFO: ==590== Releasing lock... [2025-03-15 04:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 04:45:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-15 04:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 01:46:05 [end_date_ymd] => 2025-03-15 04:46:05 [RateCDR] => 1 ) [2025-03-15 04:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 01:46:05' and `end` < '2025-03-15 04:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 04:46:18] Production.INFO: count ==714 [2025-03-15 04:46:18] Production.ERROR: pbx CDR StartTime 2025-03-15 01:46:05 - End Time 2025-03-15 04:46:05 [2025-03-15 04:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 04:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683785', 'tblTempUsageDetail_20' ) start [2025-03-15 04:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683785', 'tblTempUsageDetail_20' ) end [2025-03-15 04:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683785', 'tblTempVendorCDR_20' ) start [2025-03-15 04:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683785', 'tblTempVendorCDR_20' ) end [2025-03-15 04:46:18] Production.INFO: ProcessCDR(1,14683785,1,1,2) [2025-03-15 04:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683785', 'tblTempUsageDetail_20' ) start [2025-03-15 04:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683785', 'tblTempUsageDetail_20' ) end [2025-03-15 04:46:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 04:46:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 04:46:23] Production.INFO: ==723== Releasing lock... [2025-03-15 04:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 04:46:23] Production.INFO: 33.5 MB #Memory Used# [2025-03-15 04:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 01:47:05 [end_date_ymd] => 2025-03-15 04:47:05 [RateCDR] => 1 ) [2025-03-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-03-15 01:47:05' and `end` < '2025-03-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-03-15 04:47:19] Production.INFO: count ==713 [2025-03-15 04:47:20] Production.ERROR: pbx CDR StartTime 2025-03-15 01:47:05 - End Time 2025-03-15 04:47:05 [2025-03-15 04:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 04:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683790', 'tblTempUsageDetail_20' ) start [2025-03-15 04:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683790', 'tblTempUsageDetail_20' ) end [2025-03-15 04:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683790', 'tblTempVendorCDR_20' ) start [2025-03-15 04:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683790', 'tblTempVendorCDR_20' ) end [2025-03-15 04:47:20] Production.INFO: ProcessCDR(1,14683790,1,1,2) [2025-03-15 04:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683790', 'tblTempUsageDetail_20' ) start [2025-03-15 04:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683790', 'tblTempUsageDetail_20' ) end [2025-03-15 04:47:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 04:47:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 04:47:23] Production.INFO: ==819== Releasing lock... [2025-03-15 04:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 04:47:23] Production.INFO: 34 MB #Memory Used# [2025-03-15 04:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 01:48:05 [end_date_ymd] => 2025-03-15 04:48:05 [RateCDR] => 1 ) [2025-03-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-03-15 01:48:05' and `end` < '2025-03-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-03-15 04:48:17] Production.INFO: count ==713 [2025-03-15 04:48:17] Production.ERROR: pbx CDR StartTime 2025-03-15 01:48:05 - End Time 2025-03-15 04:48:05 [2025-03-15 04:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 04:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683795', 'tblTempUsageDetail_20' ) start [2025-03-15 04:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683795', 'tblTempUsageDetail_20' ) end [2025-03-15 04:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683795', 'tblTempVendorCDR_20' ) start [2025-03-15 04:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683795', 'tblTempVendorCDR_20' ) end [2025-03-15 04:48:17] Production.INFO: ProcessCDR(1,14683795,1,1,2) [2025-03-15 04:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683795', 'tblTempUsageDetail_20' ) start [2025-03-15 04:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683795', 'tblTempUsageDetail_20' ) end [2025-03-15 04:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 04:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 04:48:21] Production.INFO: ==918== Releasing lock... [2025-03-15 04:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 04:48:21] Production.INFO: 34 MB #Memory Used# [2025-03-15 04:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 01:49:05 [end_date_ymd] => 2025-03-15 04:49:05 [RateCDR] => 1 ) [2025-03-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-03-15 01:49:05' and `end` < '2025-03-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-03-15 04:49:19] Production.INFO: count ==727 [2025-03-15 04:49:19] Production.ERROR: pbx CDR StartTime 2025-03-15 01:49:05 - End Time 2025-03-15 04:49:05 [2025-03-15 04:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683800', 'tblTempUsageDetail_20' ) start [2025-03-15 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683800', 'tblTempUsageDetail_20' ) end [2025-03-15 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683800', 'tblTempVendorCDR_20' ) start [2025-03-15 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683800', 'tblTempVendorCDR_20' ) end [2025-03-15 04:49:19] Production.INFO: ProcessCDR(1,14683800,1,1,2) [2025-03-15 04:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683800', 'tblTempUsageDetail_20' ) start [2025-03-15 04:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683800', 'tblTempUsageDetail_20' ) end [2025-03-15 04:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 04:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 04:49:22] Production.INFO: ==1012== Releasing lock... [2025-03-15 04:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 04:49:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-15 04:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 01:50:06 [end_date_ymd] => 2025-03-15 04:50:06 [RateCDR] => 1 ) [2025-03-15 04:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 01:50:06' and `end` < '2025-03-15 04:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 04:50:19] Production.INFO: count ==720 [2025-03-15 04:50:19] Production.ERROR: pbx CDR StartTime 2025-03-15 01:50:06 - End Time 2025-03-15 04:50:06 [2025-03-15 04:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683806', 'tblTempUsageDetail_20' ) start [2025-03-15 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683806', 'tblTempUsageDetail_20' ) end [2025-03-15 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683806', 'tblTempVendorCDR_20' ) start [2025-03-15 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683806', 'tblTempVendorCDR_20' ) end [2025-03-15 04:50:19] Production.INFO: ProcessCDR(1,14683806,1,1,2) [2025-03-15 04:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683806', 'tblTempUsageDetail_20' ) start [2025-03-15 04:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683806', 'tblTempUsageDetail_20' ) end [2025-03-15 04:50:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 04:50:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 04:50:23] Production.INFO: ==1106== Releasing lock... [2025-03-15 04:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 04:50:23] Production.INFO: 34 MB #Memory Used# [2025-03-15 04:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 01:51:06 [end_date_ymd] => 2025-03-15 04:51:06 [RateCDR] => 1 ) [2025-03-15 04:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 01:51:06' and `end` < '2025-03-15 04:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 04:51:18] Production.INFO: count ==716 [2025-03-15 04:51:19] Production.ERROR: pbx CDR StartTime 2025-03-15 01:51:06 - End Time 2025-03-15 04:51:06 [2025-03-15 04:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683811', 'tblTempUsageDetail_20' ) start [2025-03-15 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683811', 'tblTempUsageDetail_20' ) end [2025-03-15 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683811', 'tblTempVendorCDR_20' ) start [2025-03-15 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683811', 'tblTempVendorCDR_20' ) end [2025-03-15 04:51:19] Production.INFO: ProcessCDR(1,14683811,1,1,2) [2025-03-15 04:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683811', 'tblTempUsageDetail_20' ) start [2025-03-15 04:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683811', 'tblTempUsageDetail_20' ) end [2025-03-15 04:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 04:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 04:51:22] Production.INFO: ==1207== Releasing lock... [2025-03-15 04:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 04:51:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-15 04:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 01:52:05 [end_date_ymd] => 2025-03-15 04:52:05 [RateCDR] => 1 ) [2025-03-15 04:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 01:52:05' and `end` < '2025-03-15 04:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 04:52:17] Production.INFO: count ==716 [2025-03-15 04:52:18] Production.ERROR: pbx CDR StartTime 2025-03-15 01:52:05 - End Time 2025-03-15 04:52:05 [2025-03-15 04:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683816', 'tblTempUsageDetail_20' ) start [2025-03-15 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683816', 'tblTempUsageDetail_20' ) end [2025-03-15 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683816', 'tblTempVendorCDR_20' ) start [2025-03-15 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683816', 'tblTempVendorCDR_20' ) end [2025-03-15 04:52:18] Production.INFO: ProcessCDR(1,14683816,1,1,2) [2025-03-15 04:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683816', 'tblTempUsageDetail_20' ) start [2025-03-15 04:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683816', 'tblTempUsageDetail_20' ) end [2025-03-15 04:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 04:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 04:52:21] Production.INFO: ==1319== Releasing lock... [2025-03-15 04:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 04:52:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-15 04:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 01:53:05 [end_date_ymd] => 2025-03-15 04:53:05 [RateCDR] => 1 ) [2025-03-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-03-15 01:53:05' and `end` < '2025-03-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-03-15 04:53:18] Production.INFO: count ==715 [2025-03-15 04:53:18] Production.ERROR: pbx CDR StartTime 2025-03-15 01:53:05 - End Time 2025-03-15 04:53:05 [2025-03-15 04:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683821', 'tblTempUsageDetail_20' ) start [2025-03-15 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683821', 'tblTempUsageDetail_20' ) end [2025-03-15 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683821', 'tblTempVendorCDR_20' ) start [2025-03-15 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683821', 'tblTempVendorCDR_20' ) end [2025-03-15 04:53:18] Production.INFO: ProcessCDR(1,14683821,1,1,2) [2025-03-15 04:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683821', 'tblTempUsageDetail_20' ) start [2025-03-15 04:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683821', 'tblTempUsageDetail_20' ) end [2025-03-15 04:53:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 04:53:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 04:53:23] Production.INFO: ==1429== Releasing lock... [2025-03-15 04:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 04:53:23] Production.INFO: 33.5 MB #Memory Used# [2025-03-15 04:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 01:54:05 [end_date_ymd] => 2025-03-15 04:54:05 [RateCDR] => 1 ) [2025-03-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-03-15 01:54:05' and `end` < '2025-03-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-03-15 04:54:18] Production.INFO: count ==712 [2025-03-15 04:54:18] Production.ERROR: pbx CDR StartTime 2025-03-15 01:54:05 - End Time 2025-03-15 04:54:05 [2025-03-15 04:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683826', 'tblTempUsageDetail_20' ) start [2025-03-15 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683826', 'tblTempUsageDetail_20' ) end [2025-03-15 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683826', 'tblTempVendorCDR_20' ) start [2025-03-15 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683826', 'tblTempVendorCDR_20' ) end [2025-03-15 04:54:18] Production.INFO: ProcessCDR(1,14683826,1,1,2) [2025-03-15 04:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683826', 'tblTempUsageDetail_20' ) start [2025-03-15 04:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683826', 'tblTempUsageDetail_20' ) end [2025-03-15 04:54:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 04:54:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 04:54:23] Production.INFO: ==1555== Releasing lock... [2025-03-15 04:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 04:54:23] Production.INFO: 33.25 MB #Memory Used# [2025-03-15 04:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 01:55:05 [end_date_ymd] => 2025-03-15 04:55:05 [RateCDR] => 1 ) [2025-03-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-03-15 01:55:05' and `end` < '2025-03-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-03-15 04:55:19] Production.INFO: count ==713 [2025-03-15 04:55:19] Production.ERROR: pbx CDR StartTime 2025-03-15 01:55:05 - End Time 2025-03-15 04:55:05 [2025-03-15 04:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683831', 'tblTempUsageDetail_20' ) start [2025-03-15 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683831', 'tblTempUsageDetail_20' ) end [2025-03-15 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683831', 'tblTempVendorCDR_20' ) start [2025-03-15 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683831', 'tblTempVendorCDR_20' ) end [2025-03-15 04:55:19] Production.INFO: ProcessCDR(1,14683831,1,1,2) [2025-03-15 04:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683831', 'tblTempUsageDetail_20' ) start [2025-03-15 04:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683831', 'tblTempUsageDetail_20' ) end [2025-03-15 04:55:24] Production.ERROR: pbx prc_insertCDR start [2025-03-15 04:55:24] Production.ERROR: pbx prc_insertCDR end [2025-03-15 04:55:24] Production.INFO: ==1660== Releasing lock... [2025-03-15 04:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 04:55:24] Production.INFO: 33.5 MB #Memory Used# [2025-03-15 04:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 01:56:05 [end_date_ymd] => 2025-03-15 04:56:05 [RateCDR] => 1 ) [2025-03-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-03-15 01:56:05' and `end` < '2025-03-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-03-15 04:56:18] Production.INFO: count ==712 [2025-03-15 04:56:18] Production.ERROR: pbx CDR StartTime 2025-03-15 01:56:05 - End Time 2025-03-15 04:56:05 [2025-03-15 04:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 04:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683836', 'tblTempUsageDetail_20' ) start [2025-03-15 04:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683836', 'tblTempUsageDetail_20' ) end [2025-03-15 04:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683836', 'tblTempVendorCDR_20' ) start [2025-03-15 04:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683836', 'tblTempVendorCDR_20' ) end [2025-03-15 04:56:18] Production.INFO: ProcessCDR(1,14683836,1,1,2) [2025-03-15 04:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683836', 'tblTempUsageDetail_20' ) start [2025-03-15 04:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683836', 'tblTempUsageDetail_20' ) end [2025-03-15 04:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 04:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 04:56:21] Production.INFO: ==1753== Releasing lock... [2025-03-15 04:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 04:56:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-15 04:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 01:57:05 [end_date_ymd] => 2025-03-15 04:57:05 [RateCDR] => 1 ) [2025-03-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-03-15 01:57:05' and `end` < '2025-03-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-03-15 04:57:18] Production.INFO: count ==704 [2025-03-15 04:57:18] Production.ERROR: pbx CDR StartTime 2025-03-15 01:57:05 - End Time 2025-03-15 04:57:05 [2025-03-15 04:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683841', 'tblTempUsageDetail_20' ) start [2025-03-15 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683841', 'tblTempUsageDetail_20' ) end [2025-03-15 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683841', 'tblTempVendorCDR_20' ) start [2025-03-15 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683841', 'tblTempVendorCDR_20' ) end [2025-03-15 04:57:18] Production.INFO: ProcessCDR(1,14683841,1,1,2) [2025-03-15 04:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683841', 'tblTempUsageDetail_20' ) start [2025-03-15 04:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683841', 'tblTempUsageDetail_20' ) end [2025-03-15 04:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 04:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 04:57:21] Production.INFO: ==1853== Releasing lock... [2025-03-15 04:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 04:57:21] Production.INFO: 34 MB #Memory Used# [2025-03-15 04:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 01:58:05 [end_date_ymd] => 2025-03-15 04:58:05 [RateCDR] => 1 ) [2025-03-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-03-15 01:58:05' and `end` < '2025-03-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-03-15 04:58:19] Production.INFO: count ==704 [2025-03-15 04:58:19] Production.ERROR: pbx CDR StartTime 2025-03-15 01:58:05 - End Time 2025-03-15 04:58:05 [2025-03-15 04:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683846', 'tblTempUsageDetail_20' ) start [2025-03-15 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683846', 'tblTempUsageDetail_20' ) end [2025-03-15 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683846', 'tblTempVendorCDR_20' ) start [2025-03-15 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683846', 'tblTempVendorCDR_20' ) end [2025-03-15 04:58:19] Production.INFO: ProcessCDR(1,14683846,1,1,2) [2025-03-15 04:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683846', 'tblTempUsageDetail_20' ) start [2025-03-15 04:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683846', 'tblTempUsageDetail_20' ) end [2025-03-15 04:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 04:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 04:58:22] Production.INFO: ==1943== Releasing lock... [2025-03-15 04:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 04:58:22] Production.INFO: 34 MB #Memory Used# [2025-03-15 04:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 01:59:05 [end_date_ymd] => 2025-03-15 04:59:05 [RateCDR] => 1 ) [2025-03-15 04:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 01:59:05' and `end` < '2025-03-15 04:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 04:59:17] Production.INFO: count ==701 [2025-03-15 04:59:18] Production.ERROR: pbx CDR StartTime 2025-03-15 01:59:05 - End Time 2025-03-15 04:59:05 [2025-03-15 04:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683851', 'tblTempUsageDetail_20' ) start [2025-03-15 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683851', 'tblTempUsageDetail_20' ) end [2025-03-15 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683851', 'tblTempVendorCDR_20' ) start [2025-03-15 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683851', 'tblTempVendorCDR_20' ) end [2025-03-15 04:59:18] Production.INFO: ProcessCDR(1,14683851,1,1,2) [2025-03-15 04:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 04:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 04:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683851', 'tblTempUsageDetail_20' ) start [2025-03-15 04:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683851', 'tblTempUsageDetail_20' ) end [2025-03-15 04:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 04:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 04:59:21] Production.INFO: ==2079== Releasing lock... [2025-03-15 04:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 04:59:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-15 05:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 02:00:06 [end_date_ymd] => 2025-03-15 05:00:06 [RateCDR] => 1 ) [2025-03-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-03-15 02:00:06' and `end` < '2025-03-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-03-15 05:00:19] Production.INFO: count ==698 [2025-03-15 05:00:19] Production.ERROR: pbx CDR StartTime 2025-03-15 02:00:06 - End Time 2025-03-15 05:00:06 [2025-03-15 05:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683857', 'tblTempUsageDetail_20' ) start [2025-03-15 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683857', 'tblTempUsageDetail_20' ) end [2025-03-15 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683857', 'tblTempVendorCDR_20' ) start [2025-03-15 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683857', 'tblTempVendorCDR_20' ) end [2025-03-15 05:00:19] Production.INFO: ProcessCDR(1,14683857,1,1,2) [2025-03-15 05:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683857', 'tblTempUsageDetail_20' ) start [2025-03-15 05:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683857', 'tblTempUsageDetail_20' ) end [2025-03-15 05:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 05:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 05:00:22] Production.INFO: ==2164== Releasing lock... [2025-03-15 05:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 05:00:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-15 05:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 02:01:05 [end_date_ymd] => 2025-03-15 05:01:05 [RateCDR] => 1 ) [2025-03-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-03-15 02:01:05' and `end` < '2025-03-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-03-15 05:01:17] Production.INFO: count ==697 [2025-03-15 05:01:18] Production.ERROR: pbx CDR StartTime 2025-03-15 02:01:05 - End Time 2025-03-15 05:01:05 [2025-03-15 05:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683862', 'tblTempUsageDetail_20' ) start [2025-03-15 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683862', 'tblTempUsageDetail_20' ) end [2025-03-15 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683862', 'tblTempVendorCDR_20' ) start [2025-03-15 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683862', 'tblTempVendorCDR_20' ) end [2025-03-15 05:01:18] Production.INFO: ProcessCDR(1,14683862,1,1,2) [2025-03-15 05:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683862', 'tblTempUsageDetail_20' ) start [2025-03-15 05:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683862', 'tblTempUsageDetail_20' ) end [2025-03-15 05:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 05:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 05:01:21] Production.INFO: ==2264== Releasing lock... [2025-03-15 05:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 05:01:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-15 05:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 02:02:05 [end_date_ymd] => 2025-03-15 05:02:05 [RateCDR] => 1 ) [2025-03-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-03-15 02:02:05' and `end` < '2025-03-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-03-15 05:02:18] Production.INFO: count ==700 [2025-03-15 05:02:18] Production.ERROR: pbx CDR StartTime 2025-03-15 02:02:05 - End Time 2025-03-15 05:02:05 [2025-03-15 05:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683867', 'tblTempUsageDetail_20' ) start [2025-03-15 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683867', 'tblTempUsageDetail_20' ) end [2025-03-15 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683867', 'tblTempVendorCDR_20' ) start [2025-03-15 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683867', 'tblTempVendorCDR_20' ) end [2025-03-15 05:02:18] Production.INFO: ProcessCDR(1,14683867,1,1,2) [2025-03-15 05:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683867', 'tblTempUsageDetail_20' ) start [2025-03-15 05:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683867', 'tblTempUsageDetail_20' ) end [2025-03-15 05:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 05:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 05:02:21] Production.INFO: ==2345== Releasing lock... [2025-03-15 05:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 05:02:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-15 05:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 02:03:05 [end_date_ymd] => 2025-03-15 05:03:05 [RateCDR] => 1 ) [2025-03-15 05:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 02:03:05' and `end` < '2025-03-15 05:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 05:03:17] Production.INFO: count ==704 [2025-03-15 05:03:18] Production.ERROR: pbx CDR StartTime 2025-03-15 02:03:05 - End Time 2025-03-15 05:03:05 [2025-03-15 05:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683872', 'tblTempUsageDetail_20' ) start [2025-03-15 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683872', 'tblTempUsageDetail_20' ) end [2025-03-15 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683872', 'tblTempVendorCDR_20' ) start [2025-03-15 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683872', 'tblTempVendorCDR_20' ) end [2025-03-15 05:03:18] Production.INFO: ProcessCDR(1,14683872,1,1,2) [2025-03-15 05:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683872', 'tblTempUsageDetail_20' ) start [2025-03-15 05:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683872', 'tblTempUsageDetail_20' ) end [2025-03-15 05:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 05:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 05:03:21] Production.INFO: ==2430== Releasing lock... [2025-03-15 05:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 05:03:21] Production.INFO: 34 MB #Memory Used# [2025-03-15 05:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 02:04:06 [end_date_ymd] => 2025-03-15 05:04:06 [RateCDR] => 1 ) [2025-03-15 05:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 02:04:06' and `end` < '2025-03-15 05:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 05:04:18] Production.INFO: count ==707 [2025-03-15 05:04:18] Production.ERROR: pbx CDR StartTime 2025-03-15 02:04:06 - End Time 2025-03-15 05:04:06 [2025-03-15 05:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683877', 'tblTempUsageDetail_20' ) start [2025-03-15 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683877', 'tblTempUsageDetail_20' ) end [2025-03-15 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683877', 'tblTempVendorCDR_20' ) start [2025-03-15 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683877', 'tblTempVendorCDR_20' ) end [2025-03-15 05:04:18] Production.INFO: ProcessCDR(1,14683877,1,1,2) [2025-03-15 05:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683877', 'tblTempUsageDetail_20' ) start [2025-03-15 05:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683877', 'tblTempUsageDetail_20' ) end [2025-03-15 05:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 05:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 05:04:22] Production.INFO: ==2513== Releasing lock... [2025-03-15 05:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 05:04:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-15 05:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 02:05:05 [end_date_ymd] => 2025-03-15 05:05:05 [RateCDR] => 1 ) [2025-03-15 05:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 02:05:05' and `end` < '2025-03-15 05:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 05:05:17] Production.INFO: count ==705 [2025-03-15 05:05:17] Production.ERROR: pbx CDR StartTime 2025-03-15 02:05:05 - End Time 2025-03-15 05:05:05 [2025-03-15 05:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683882', 'tblTempUsageDetail_20' ) start [2025-03-15 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683882', 'tblTempUsageDetail_20' ) end [2025-03-15 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683882', 'tblTempVendorCDR_20' ) start [2025-03-15 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683882', 'tblTempVendorCDR_20' ) end [2025-03-15 05:05:17] Production.INFO: ProcessCDR(1,14683882,1,1,2) [2025-03-15 05:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683882', 'tblTempUsageDetail_20' ) start [2025-03-15 05:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683882', 'tblTempUsageDetail_20' ) end [2025-03-15 05:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 05:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 05:05:21] Production.INFO: ==2595== Releasing lock... [2025-03-15 05:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 05:05:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-15 05:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 02:06:05 [end_date_ymd] => 2025-03-15 05:06:05 [RateCDR] => 1 ) [2025-03-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-03-15 02:06:05' and `end` < '2025-03-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-03-15 05:06:18] Production.INFO: count ==705 [2025-03-15 05:06:18] Production.ERROR: pbx CDR StartTime 2025-03-15 02:06:05 - End Time 2025-03-15 05:06:05 [2025-03-15 05:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683887', 'tblTempUsageDetail_20' ) start [2025-03-15 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683887', 'tblTempUsageDetail_20' ) end [2025-03-15 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683887', 'tblTempVendorCDR_20' ) start [2025-03-15 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683887', 'tblTempVendorCDR_20' ) end [2025-03-15 05:06:18] Production.INFO: ProcessCDR(1,14683887,1,1,2) [2025-03-15 05:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683887', 'tblTempUsageDetail_20' ) start [2025-03-15 05:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683887', 'tblTempUsageDetail_20' ) end [2025-03-15 05:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 05:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 05:06:21] Production.INFO: ==2676== Releasing lock... [2025-03-15 05:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 05:06:21] Production.INFO: 34 MB #Memory Used# [2025-03-15 05:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 02:07:05 [end_date_ymd] => 2025-03-15 05:07:05 [RateCDR] => 1 ) [2025-03-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-03-15 02:07:05' and `end` < '2025-03-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-03-15 05:07:20] Production.INFO: count ==708 [2025-03-15 05:07:20] Production.ERROR: pbx CDR StartTime 2025-03-15 02:07:05 - End Time 2025-03-15 05:07:05 [2025-03-15 05:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 05:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683892', 'tblTempUsageDetail_20' ) start [2025-03-15 05:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683892', 'tblTempUsageDetail_20' ) end [2025-03-15 05:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683892', 'tblTempVendorCDR_20' ) start [2025-03-15 05:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683892', 'tblTempVendorCDR_20' ) end [2025-03-15 05:07:20] Production.INFO: ProcessCDR(1,14683892,1,1,2) [2025-03-15 05:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683892', 'tblTempUsageDetail_20' ) start [2025-03-15 05:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683892', 'tblTempUsageDetail_20' ) end [2025-03-15 05:07:24] Production.ERROR: pbx prc_insertCDR start [2025-03-15 05:07:24] Production.ERROR: pbx prc_insertCDR end [2025-03-15 05:07:24] Production.INFO: ==2761== Releasing lock... [2025-03-15 05:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 05:07:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-15 05:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 02:08:05 [end_date_ymd] => 2025-03-15 05:08:05 [RateCDR] => 1 ) [2025-03-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-03-15 02:08:05' and `end` < '2025-03-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-03-15 05:08:18] Production.INFO: count ==708 [2025-03-15 05:08:18] Production.ERROR: pbx CDR StartTime 2025-03-15 02:08:05 - End Time 2025-03-15 05:08:05 [2025-03-15 05:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683897', 'tblTempUsageDetail_20' ) start [2025-03-15 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683897', 'tblTempUsageDetail_20' ) end [2025-03-15 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683897', 'tblTempVendorCDR_20' ) start [2025-03-15 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683897', 'tblTempVendorCDR_20' ) end [2025-03-15 05:08:18] Production.INFO: ProcessCDR(1,14683897,1,1,2) [2025-03-15 05:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683897', 'tblTempUsageDetail_20' ) start [2025-03-15 05:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683897', 'tblTempUsageDetail_20' ) end [2025-03-15 05:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 05:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 05:08:21] Production.INFO: ==2845== Releasing lock... [2025-03-15 05:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 05:08:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-15 05:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 02:09:05 [end_date_ymd] => 2025-03-15 05:09:05 [RateCDR] => 1 ) [2025-03-15 05:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 02:09:05' and `end` < '2025-03-15 05:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 05:09:18] Production.INFO: count ==707 [2025-03-15 05:09:18] Production.ERROR: pbx CDR StartTime 2025-03-15 02:09:05 - End Time 2025-03-15 05:09:05 [2025-03-15 05:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683902', 'tblTempUsageDetail_20' ) start [2025-03-15 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683902', 'tblTempUsageDetail_20' ) end [2025-03-15 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683902', 'tblTempVendorCDR_20' ) start [2025-03-15 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683902', 'tblTempVendorCDR_20' ) end [2025-03-15 05:09:18] Production.INFO: ProcessCDR(1,14683902,1,1,2) [2025-03-15 05:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683902', 'tblTempUsageDetail_20' ) start [2025-03-15 05:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683902', 'tblTempUsageDetail_20' ) end [2025-03-15 05:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 05:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 05:09:21] Production.INFO: ==2928== Releasing lock... [2025-03-15 05:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 05:09:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-15 05:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 02:10:05 [end_date_ymd] => 2025-03-15 05:10:05 [RateCDR] => 1 ) [2025-03-15 05:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 02:10:05' and `end` < '2025-03-15 05:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 05:10:18] Production.INFO: count ==698 [2025-03-15 05:10:18] Production.ERROR: pbx CDR StartTime 2025-03-15 02:10:05 - End Time 2025-03-15 05:10:05 [2025-03-15 05:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683908', 'tblTempUsageDetail_20' ) start [2025-03-15 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683908', 'tblTempUsageDetail_20' ) end [2025-03-15 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683908', 'tblTempVendorCDR_20' ) start [2025-03-15 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683908', 'tblTempVendorCDR_20' ) end [2025-03-15 05:10:18] Production.INFO: ProcessCDR(1,14683908,1,1,2) [2025-03-15 05:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683908', 'tblTempUsageDetail_20' ) start [2025-03-15 05:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683908', 'tblTempUsageDetail_20' ) end [2025-03-15 05:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 05:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 05:10:22] Production.INFO: ==3014== Releasing lock... [2025-03-15 05:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 05:10:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-15 05:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 02:11:05 [end_date_ymd] => 2025-03-15 05:11:05 [RateCDR] => 1 ) [2025-03-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-03-15 02:11:05' and `end` < '2025-03-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-03-15 05:11:18] Production.INFO: count ==692 [2025-03-15 05:11:18] Production.ERROR: pbx CDR StartTime 2025-03-15 02:11:05 - End Time 2025-03-15 05:11:05 [2025-03-15 05:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683913', 'tblTempUsageDetail_20' ) start [2025-03-15 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683913', 'tblTempUsageDetail_20' ) end [2025-03-15 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683913', 'tblTempVendorCDR_20' ) start [2025-03-15 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683913', 'tblTempVendorCDR_20' ) end [2025-03-15 05:11:18] Production.INFO: ProcessCDR(1,14683913,1,1,2) [2025-03-15 05:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683913', 'tblTempUsageDetail_20' ) start [2025-03-15 05:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683913', 'tblTempUsageDetail_20' ) end [2025-03-15 05:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 05:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 05:11:21] Production.INFO: ==3104== Releasing lock... [2025-03-15 05:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 05:11:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-15 05:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 02:12:05 [end_date_ymd] => 2025-03-15 05:12:05 [RateCDR] => 1 ) [2025-03-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-03-15 02:12:05' and `end` < '2025-03-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-03-15 05:12:17] Production.INFO: count ==692 [2025-03-15 05:12:18] Production.ERROR: pbx CDR StartTime 2025-03-15 02:12:05 - End Time 2025-03-15 05:12:05 [2025-03-15 05:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683918', 'tblTempUsageDetail_20' ) start [2025-03-15 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683918', 'tblTempUsageDetail_20' ) end [2025-03-15 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683918', 'tblTempVendorCDR_20' ) start [2025-03-15 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683918', 'tblTempVendorCDR_20' ) end [2025-03-15 05:12:18] Production.INFO: ProcessCDR(1,14683918,1,1,2) [2025-03-15 05:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683918', 'tblTempUsageDetail_20' ) start [2025-03-15 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683918', 'tblTempUsageDetail_20' ) end [2025-03-15 05:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 05:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 05:12:21] Production.INFO: ==3189== Releasing lock... [2025-03-15 05:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 05:12:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-15 05:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 02:13:05 [end_date_ymd] => 2025-03-15 05:13:05 [RateCDR] => 1 ) [2025-03-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-03-15 02:13:05' and `end` < '2025-03-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-03-15 05:13:18] Production.INFO: count ==692 [2025-03-15 05:13:18] Production.ERROR: pbx CDR StartTime 2025-03-15 02:13:05 - End Time 2025-03-15 05:13:05 [2025-03-15 05:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683923', 'tblTempUsageDetail_20' ) start [2025-03-15 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683923', 'tblTempUsageDetail_20' ) end [2025-03-15 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683923', 'tblTempVendorCDR_20' ) start [2025-03-15 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683923', 'tblTempVendorCDR_20' ) end [2025-03-15 05:13:18] Production.INFO: ProcessCDR(1,14683923,1,1,2) [2025-03-15 05:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683923', 'tblTempUsageDetail_20' ) start [2025-03-15 05:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683923', 'tblTempUsageDetail_20' ) end [2025-03-15 05:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 05:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 05:13:21] Production.INFO: ==3274== Releasing lock... [2025-03-15 05:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 05:13:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-15 05:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 02:14:05 [end_date_ymd] => 2025-03-15 05:14:05 [RateCDR] => 1 ) [2025-03-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-03-15 02:14:05' and `end` < '2025-03-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-03-15 05:14:17] Production.INFO: count ==692 [2025-03-15 05:14:17] Production.ERROR: pbx CDR StartTime 2025-03-15 02:14:05 - End Time 2025-03-15 05:14:05 [2025-03-15 05:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683928', 'tblTempUsageDetail_20' ) start [2025-03-15 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683928', 'tblTempUsageDetail_20' ) end [2025-03-15 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683928', 'tblTempVendorCDR_20' ) start [2025-03-15 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683928', 'tblTempVendorCDR_20' ) end [2025-03-15 05:14:17] Production.INFO: ProcessCDR(1,14683928,1,1,2) [2025-03-15 05:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683928', 'tblTempUsageDetail_20' ) start [2025-03-15 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683928', 'tblTempUsageDetail_20' ) end [2025-03-15 05:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 05:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 05:14:21] Production.INFO: ==3358== Releasing lock... [2025-03-15 05:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 05:14:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-15 05:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 02:15:06 [end_date_ymd] => 2025-03-15 05:15:06 [RateCDR] => 1 ) [2025-03-15 05:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 02:15:06' and `end` < '2025-03-15 05:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 05:15:18] Production.INFO: count ==691 [2025-03-15 05:15:18] Production.ERROR: pbx CDR StartTime 2025-03-15 02:15:06 - End Time 2025-03-15 05:15:06 [2025-03-15 05:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683933', 'tblTempUsageDetail_20' ) start [2025-03-15 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683933', 'tblTempUsageDetail_20' ) end [2025-03-15 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683933', 'tblTempVendorCDR_20' ) start [2025-03-15 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683933', 'tblTempVendorCDR_20' ) end [2025-03-15 05:15:18] Production.INFO: ProcessCDR(1,14683933,1,1,2) [2025-03-15 05:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683933', 'tblTempUsageDetail_20' ) start [2025-03-15 05:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683933', 'tblTempUsageDetail_20' ) end [2025-03-15 05:15:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 05:15:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 05:15:22] Production.INFO: ==3481== Releasing lock... [2025-03-15 05:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 05:15:22] Production.INFO: 33 MB #Memory Used# [2025-03-15 05:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 02:16:04 [end_date_ymd] => 2025-03-15 05:16:04 [RateCDR] => 1 ) [2025-03-15 05: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-03-15 02:16:04' and `end` < '2025-03-15 05: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-03-15 05:16:17] Production.INFO: count ==691 [2025-03-15 05:16:17] Production.ERROR: pbx CDR StartTime 2025-03-15 02:16:04 - End Time 2025-03-15 05:16:04 [2025-03-15 05:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683938', 'tblTempUsageDetail_20' ) start [2025-03-15 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683938', 'tblTempUsageDetail_20' ) end [2025-03-15 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683938', 'tblTempVendorCDR_20' ) start [2025-03-15 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683938', 'tblTempVendorCDR_20' ) end [2025-03-15 05:16:17] Production.INFO: ProcessCDR(1,14683938,1,1,2) [2025-03-15 05:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683938', 'tblTempUsageDetail_20' ) start [2025-03-15 05:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683938', 'tblTempUsageDetail_20' ) end [2025-03-15 05:16:20] Production.ERROR: pbx prc_insertCDR start [2025-03-15 05:16:20] Production.ERROR: pbx prc_insertCDR end [2025-03-15 05:16:20] Production.INFO: ==3563== Releasing lock... [2025-03-15 05:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 05:16:20] Production.INFO: 33 MB #Memory Used# [2025-03-15 05:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 02:17:05 [end_date_ymd] => 2025-03-15 05:17:05 [RateCDR] => 1 ) [2025-03-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-03-15 02:17:05' and `end` < '2025-03-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-03-15 05:17:18] Production.INFO: count ==690 [2025-03-15 05:17:18] Production.ERROR: pbx CDR StartTime 2025-03-15 02:17:05 - End Time 2025-03-15 05:17:05 [2025-03-15 05:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683943', 'tblTempUsageDetail_20' ) start [2025-03-15 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683943', 'tblTempUsageDetail_20' ) end [2025-03-15 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683943', 'tblTempVendorCDR_20' ) start [2025-03-15 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683943', 'tblTempVendorCDR_20' ) end [2025-03-15 05:17:18] Production.INFO: ProcessCDR(1,14683943,1,1,2) [2025-03-15 05:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683943', 'tblTempUsageDetail_20' ) start [2025-03-15 05:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683943', 'tblTempUsageDetail_20' ) end [2025-03-15 05:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 05:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 05:17:21] Production.INFO: ==3645== Releasing lock... [2025-03-15 05:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 05:17:21] Production.INFO: 33 MB #Memory Used# [2025-03-15 05:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 02:18:05 [end_date_ymd] => 2025-03-15 05:18:05 [RateCDR] => 1 ) [2025-03-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-03-15 02:18:05' and `end` < '2025-03-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-03-15 05:18:17] Production.INFO: count ==690 [2025-03-15 05:18:17] Production.ERROR: pbx CDR StartTime 2025-03-15 02:18:05 - End Time 2025-03-15 05:18:05 [2025-03-15 05:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683948', 'tblTempUsageDetail_20' ) start [2025-03-15 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683948', 'tblTempUsageDetail_20' ) end [2025-03-15 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683948', 'tblTempVendorCDR_20' ) start [2025-03-15 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683948', 'tblTempVendorCDR_20' ) end [2025-03-15 05:18:17] Production.INFO: ProcessCDR(1,14683948,1,1,2) [2025-03-15 05:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683948', 'tblTempUsageDetail_20' ) start [2025-03-15 05:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683948', 'tblTempUsageDetail_20' ) end [2025-03-15 05:18:20] Production.ERROR: pbx prc_insertCDR start [2025-03-15 05:18:20] Production.ERROR: pbx prc_insertCDR end [2025-03-15 05:18:20] Production.INFO: ==3738== Releasing lock... [2025-03-15 05:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 05:18:20] Production.INFO: 33 MB #Memory Used# [2025-03-15 05:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 02:19:06 [end_date_ymd] => 2025-03-15 05:19:06 [RateCDR] => 1 ) [2025-03-15 05:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 02:19:06' and `end` < '2025-03-15 05:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 05:19:18] Production.INFO: count ==690 [2025-03-15 05:19:18] Production.ERROR: pbx CDR StartTime 2025-03-15 02:19:06 - End Time 2025-03-15 05:19:06 [2025-03-15 05:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683953', 'tblTempUsageDetail_20' ) start [2025-03-15 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683953', 'tblTempUsageDetail_20' ) end [2025-03-15 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683953', 'tblTempVendorCDR_20' ) start [2025-03-15 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683953', 'tblTempVendorCDR_20' ) end [2025-03-15 05:19:18] Production.INFO: ProcessCDR(1,14683953,1,1,2) [2025-03-15 05:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683953', 'tblTempUsageDetail_20' ) start [2025-03-15 05:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683953', 'tblTempUsageDetail_20' ) end [2025-03-15 05:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 05:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 05:19:21] Production.INFO: ==3821== Releasing lock... [2025-03-15 05:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 05:19:21] Production.INFO: 33 MB #Memory Used# [2025-03-15 05:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 02:20:06 [end_date_ymd] => 2025-03-15 05:20:06 [RateCDR] => 1 ) [2025-03-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-03-15 02:20:06' and `end` < '2025-03-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-03-15 05:20:18] Production.INFO: count ==690 [2025-03-15 05:20:18] Production.ERROR: pbx CDR StartTime 2025-03-15 02:20:06 - End Time 2025-03-15 05:20:06 [2025-03-15 05:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683959', 'tblTempUsageDetail_20' ) start [2025-03-15 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683959', 'tblTempUsageDetail_20' ) end [2025-03-15 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683959', 'tblTempVendorCDR_20' ) start [2025-03-15 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683959', 'tblTempVendorCDR_20' ) end [2025-03-15 05:20:18] Production.INFO: ProcessCDR(1,14683959,1,1,2) [2025-03-15 05:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683959', 'tblTempUsageDetail_20' ) start [2025-03-15 05:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683959', 'tblTempUsageDetail_20' ) end [2025-03-15 05:20:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 05:20:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 05:20:21] Production.INFO: ==3908== Releasing lock... [2025-03-15 05:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 05:20:21] Production.INFO: 33 MB #Memory Used# [2025-03-15 05:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 02:21:05 [end_date_ymd] => 2025-03-15 05:21:05 [RateCDR] => 1 ) [2025-03-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-03-15 02:21:05' and `end` < '2025-03-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-03-15 05:21:17] Production.INFO: count ==690 [2025-03-15 05:21:17] Production.ERROR: pbx CDR StartTime 2025-03-15 02:21:05 - End Time 2025-03-15 05:21:05 [2025-03-15 05:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683964', 'tblTempUsageDetail_20' ) start [2025-03-15 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683964', 'tblTempUsageDetail_20' ) end [2025-03-15 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683964', 'tblTempVendorCDR_20' ) start [2025-03-15 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683964', 'tblTempVendorCDR_20' ) end [2025-03-15 05:21:18] Production.INFO: ProcessCDR(1,14683964,1,1,2) [2025-03-15 05:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683964', 'tblTempUsageDetail_20' ) start [2025-03-15 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683964', 'tblTempUsageDetail_20' ) end [2025-03-15 05:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 05:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 05:21:21] Production.INFO: ==3991== Releasing lock... [2025-03-15 05:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 05:21:21] Production.INFO: 33 MB #Memory Used# [2025-03-15 05:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 02:22:05 [end_date_ymd] => 2025-03-15 05:22:05 [RateCDR] => 1 ) [2025-03-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-03-15 02:22:05' and `end` < '2025-03-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-03-15 05:22:17] Production.INFO: count ==690 [2025-03-15 05:22:17] Production.ERROR: pbx CDR StartTime 2025-03-15 02:22:05 - End Time 2025-03-15 05:22:05 [2025-03-15 05:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683969', 'tblTempUsageDetail_20' ) start [2025-03-15 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683969', 'tblTempUsageDetail_20' ) end [2025-03-15 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683969', 'tblTempVendorCDR_20' ) start [2025-03-15 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683969', 'tblTempVendorCDR_20' ) end [2025-03-15 05:22:17] Production.INFO: ProcessCDR(1,14683969,1,1,2) [2025-03-15 05:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683969', 'tblTempUsageDetail_20' ) start [2025-03-15 05:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683969', 'tblTempUsageDetail_20' ) end [2025-03-15 05:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 05:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 05:22:21] Production.INFO: ==4080== Releasing lock... [2025-03-15 05:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 05:22:21] Production.INFO: 33 MB #Memory Used# [2025-03-15 05:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 02:23:05 [end_date_ymd] => 2025-03-15 05:23:05 [RateCDR] => 1 ) [2025-03-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-03-15 02:23:05' and `end` < '2025-03-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-03-15 05:23:17] Production.INFO: count ==686 [2025-03-15 05:23:17] Production.ERROR: pbx CDR StartTime 2025-03-15 02:23:05 - End Time 2025-03-15 05:23:05 [2025-03-15 05:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683974', 'tblTempUsageDetail_20' ) start [2025-03-15 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683974', 'tblTempUsageDetail_20' ) end [2025-03-15 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683974', 'tblTempVendorCDR_20' ) start [2025-03-15 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683974', 'tblTempVendorCDR_20' ) end [2025-03-15 05:23:17] Production.INFO: ProcessCDR(1,14683974,1,1,2) [2025-03-15 05:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683974', 'tblTempUsageDetail_20' ) start [2025-03-15 05:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683974', 'tblTempUsageDetail_20' ) end [2025-03-15 05:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 05:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 05:23:21] Production.INFO: ==4163== Releasing lock... [2025-03-15 05:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 05:23:21] Production.INFO: 33 MB #Memory Used# [2025-03-15 05:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 02:24:06 [end_date_ymd] => 2025-03-15 05:24:06 [RateCDR] => 1 ) [2025-03-15 05:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 02:24:06' and `end` < '2025-03-15 05:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 05:24:18] Production.INFO: count ==683 [2025-03-15 05:24:18] Production.ERROR: pbx CDR StartTime 2025-03-15 02:24:06 - End Time 2025-03-15 05:24:06 [2025-03-15 05:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683979', 'tblTempUsageDetail_20' ) start [2025-03-15 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683979', 'tblTempUsageDetail_20' ) end [2025-03-15 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683979', 'tblTempVendorCDR_20' ) start [2025-03-15 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683979', 'tblTempVendorCDR_20' ) end [2025-03-15 05:24:18] Production.INFO: ProcessCDR(1,14683979,1,1,2) [2025-03-15 05:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683979', 'tblTempUsageDetail_20' ) start [2025-03-15 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683979', 'tblTempUsageDetail_20' ) end [2025-03-15 05:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 05:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 05:24:21] Production.INFO: ==4245== Releasing lock... [2025-03-15 05:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 05:24:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-15 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 02:25:05 [end_date_ymd] => 2025-03-15 05:25:05 [RateCDR] => 1 ) [2025-03-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-03-15 02:25:05' and `end` < '2025-03-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-03-15 05:25:17] Production.INFO: count ==683 [2025-03-15 05:25:17] Production.ERROR: pbx CDR StartTime 2025-03-15 02:25:05 - End Time 2025-03-15 05:25:05 [2025-03-15 05:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683984', 'tblTempUsageDetail_20' ) start [2025-03-15 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683984', 'tblTempUsageDetail_20' ) end [2025-03-15 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683984', 'tblTempVendorCDR_20' ) start [2025-03-15 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683984', 'tblTempVendorCDR_20' ) end [2025-03-15 05:25:17] Production.INFO: ProcessCDR(1,14683984,1,1,2) [2025-03-15 05:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683984', 'tblTempUsageDetail_20' ) start [2025-03-15 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683984', 'tblTempUsageDetail_20' ) end [2025-03-15 05:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 05:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 05:25:21] Production.INFO: ==4332== Releasing lock... [2025-03-15 05:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 05:25:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-15 05:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 02:26:06 [end_date_ymd] => 2025-03-15 05:26:06 [RateCDR] => 1 ) [2025-03-15 05:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 02:26:06' and `end` < '2025-03-15 05:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 05:26:18] Production.INFO: count ==682 [2025-03-15 05:26:18] Production.ERROR: pbx CDR StartTime 2025-03-15 02:26:06 - End Time 2025-03-15 05:26:06 [2025-03-15 05:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683989', 'tblTempUsageDetail_20' ) start [2025-03-15 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683989', 'tblTempUsageDetail_20' ) end [2025-03-15 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683989', 'tblTempVendorCDR_20' ) start [2025-03-15 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683989', 'tblTempVendorCDR_20' ) end [2025-03-15 05:26:18] Production.INFO: ProcessCDR(1,14683989,1,1,2) [2025-03-15 05:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683989', 'tblTempUsageDetail_20' ) start [2025-03-15 05:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683989', 'tblTempUsageDetail_20' ) end [2025-03-15 05:26:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 05:26:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 05:26:22] Production.INFO: ==4419== Releasing lock... [2025-03-15 05:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 05:26:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-15 05:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 02:27:05 [end_date_ymd] => 2025-03-15 05:27:05 [RateCDR] => 1 ) [2025-03-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-03-15 02:27:05' and `end` < '2025-03-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-03-15 05:27:17] Production.INFO: count ==679 [2025-03-15 05:27:17] Production.ERROR: pbx CDR StartTime 2025-03-15 02:27:05 - End Time 2025-03-15 05:27:05 [2025-03-15 05:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683994', 'tblTempUsageDetail_20' ) start [2025-03-15 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683994', 'tblTempUsageDetail_20' ) end [2025-03-15 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683994', 'tblTempVendorCDR_20' ) start [2025-03-15 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683994', 'tblTempVendorCDR_20' ) end [2025-03-15 05:27:17] Production.INFO: ProcessCDR(1,14683994,1,1,2) [2025-03-15 05:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683994', 'tblTempUsageDetail_20' ) start [2025-03-15 05:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683994', 'tblTempUsageDetail_20' ) end [2025-03-15 05:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 05:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 05:27:21] Production.INFO: ==4503== Releasing lock... [2025-03-15 05:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 05:27:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-15 05:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 02:28:06 [end_date_ymd] => 2025-03-15 05:28:06 [RateCDR] => 1 ) [2025-03-15 05:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 02:28:06' and `end` < '2025-03-15 05:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 05:28:18] Production.INFO: count ==677 [2025-03-15 05:28:18] Production.ERROR: pbx CDR StartTime 2025-03-15 02:28:06 - End Time 2025-03-15 05:28:06 [2025-03-15 05:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683999', 'tblTempUsageDetail_20' ) start [2025-03-15 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14683999', 'tblTempUsageDetail_20' ) end [2025-03-15 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683999', 'tblTempVendorCDR_20' ) start [2025-03-15 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14683999', 'tblTempVendorCDR_20' ) end [2025-03-15 05:28:18] Production.INFO: ProcessCDR(1,14683999,1,1,2) [2025-03-15 05:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14683999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14683999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14683999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14683999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683999', 'tblTempUsageDetail_20' ) start [2025-03-15 05:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14683999', 'tblTempUsageDetail_20' ) end [2025-03-15 05:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 05:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 05:28:22] Production.INFO: ==4591== Releasing lock... [2025-03-15 05:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 05:28:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-15 05:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 02:29:05 [end_date_ymd] => 2025-03-15 05:29:05 [RateCDR] => 1 ) [2025-03-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-03-15 02:29:05' and `end` < '2025-03-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-03-15 05:29:17] Production.INFO: count ==677 [2025-03-15 05:29:17] Production.ERROR: pbx CDR StartTime 2025-03-15 02:29:05 - End Time 2025-03-15 05:29:05 [2025-03-15 05:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684004', 'tblTempUsageDetail_20' ) start [2025-03-15 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684004', 'tblTempUsageDetail_20' ) end [2025-03-15 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684004', 'tblTempVendorCDR_20' ) start [2025-03-15 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684004', 'tblTempVendorCDR_20' ) end [2025-03-15 05:29:17] Production.INFO: ProcessCDR(1,14684004,1,1,2) [2025-03-15 05:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684004', 'tblTempUsageDetail_20' ) start [2025-03-15 05:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684004', 'tblTempUsageDetail_20' ) end [2025-03-15 05:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 05:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 05:29:21] Production.INFO: ==4676== Releasing lock... [2025-03-15 05:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 05:29:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-15 05:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 02:30:06 [end_date_ymd] => 2025-03-15 05:30:06 [RateCDR] => 1 ) [2025-03-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-03-15 02:30:06' and `end` < '2025-03-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-03-15 05:30:18] Production.INFO: count ==669 [2025-03-15 05:30:18] Production.ERROR: pbx CDR StartTime 2025-03-15 02:30:06 - End Time 2025-03-15 05:30:06 [2025-03-15 05:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684010', 'tblTempUsageDetail_20' ) start [2025-03-15 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684010', 'tblTempUsageDetail_20' ) end [2025-03-15 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684010', 'tblTempVendorCDR_20' ) start [2025-03-15 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684010', 'tblTempVendorCDR_20' ) end [2025-03-15 05:30:18] Production.INFO: ProcessCDR(1,14684010,1,1,2) [2025-03-15 05:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684010', 'tblTempUsageDetail_20' ) start [2025-03-15 05:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684010', 'tblTempUsageDetail_20' ) end [2025-03-15 05:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 05:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 05:30:22] Production.INFO: ==4799== Releasing lock... [2025-03-15 05:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 05:30:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-15 05:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 02:31:05 [end_date_ymd] => 2025-03-15 05:31:05 [RateCDR] => 1 ) [2025-03-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-03-15 02:31:05' and `end` < '2025-03-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-03-15 05:31:17] Production.INFO: count ==657 [2025-03-15 05:31:17] Production.ERROR: pbx CDR StartTime 2025-03-15 02:31:05 - End Time 2025-03-15 05:31:05 [2025-03-15 05:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684015', 'tblTempUsageDetail_20' ) start [2025-03-15 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684015', 'tblTempUsageDetail_20' ) end [2025-03-15 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684015', 'tblTempVendorCDR_20' ) start [2025-03-15 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684015', 'tblTempVendorCDR_20' ) end [2025-03-15 05:31:17] Production.INFO: ProcessCDR(1,14684015,1,1,2) [2025-03-15 05:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684015', 'tblTempUsageDetail_20' ) start [2025-03-15 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684015', 'tblTempUsageDetail_20' ) end [2025-03-15 05:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 05:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 05:31:21] Production.INFO: ==4890== Releasing lock... [2025-03-15 05:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 05:31:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-15 05:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 02:32:06 [end_date_ymd] => 2025-03-15 05:32:06 [RateCDR] => 1 ) [2025-03-15 05:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 02:32:06' and `end` < '2025-03-15 05:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 05:32:18] Production.INFO: count ==653 [2025-03-15 05:32:18] Production.ERROR: pbx CDR StartTime 2025-03-15 02:32:06 - End Time 2025-03-15 05:32:06 [2025-03-15 05:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684020', 'tblTempUsageDetail_20' ) start [2025-03-15 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684020', 'tblTempUsageDetail_20' ) end [2025-03-15 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684020', 'tblTempVendorCDR_20' ) start [2025-03-15 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684020', 'tblTempVendorCDR_20' ) end [2025-03-15 05:32:18] Production.INFO: ProcessCDR(1,14684020,1,1,2) [2025-03-15 05:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684020', 'tblTempUsageDetail_20' ) start [2025-03-15 05:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684020', 'tblTempUsageDetail_20' ) end [2025-03-15 05:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 05:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 05:32:22] Production.INFO: ==4973== Releasing lock... [2025-03-15 05:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 05:32:22] Production.INFO: 33 MB #Memory Used# [2025-03-15 05:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 02:33:05 [end_date_ymd] => 2025-03-15 05:33:05 [RateCDR] => 1 ) [2025-03-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-03-15 02:33:05' and `end` < '2025-03-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-03-15 05:33:17] Production.INFO: count ==653 [2025-03-15 05:33:17] Production.ERROR: pbx CDR StartTime 2025-03-15 02:33:05 - End Time 2025-03-15 05:33:05 [2025-03-15 05:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684025', 'tblTempUsageDetail_20' ) start [2025-03-15 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684025', 'tblTempUsageDetail_20' ) end [2025-03-15 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684025', 'tblTempVendorCDR_20' ) start [2025-03-15 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684025', 'tblTempVendorCDR_20' ) end [2025-03-15 05:33:18] Production.INFO: ProcessCDR(1,14684025,1,1,2) [2025-03-15 05:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684025', 'tblTempUsageDetail_20' ) start [2025-03-15 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684025', 'tblTempUsageDetail_20' ) end [2025-03-15 05:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 05:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 05:33:21] Production.INFO: ==5058== Releasing lock... [2025-03-15 05:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 05:33:21] Production.INFO: 33 MB #Memory Used# [2025-03-15 05:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 02:34:05 [end_date_ymd] => 2025-03-15 05:34:05 [RateCDR] => 1 ) [2025-03-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-03-15 02:34:05' and `end` < '2025-03-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-03-15 05:34:17] Production.INFO: count ==652 [2025-03-15 05:34:18] Production.ERROR: pbx CDR StartTime 2025-03-15 02:34:05 - End Time 2025-03-15 05:34:05 [2025-03-15 05:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684030', 'tblTempUsageDetail_20' ) start [2025-03-15 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684030', 'tblTempUsageDetail_20' ) end [2025-03-15 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684030', 'tblTempVendorCDR_20' ) start [2025-03-15 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684030', 'tblTempVendorCDR_20' ) end [2025-03-15 05:34:18] Production.INFO: ProcessCDR(1,14684030,1,1,2) [2025-03-15 05:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684030', 'tblTempUsageDetail_20' ) start [2025-03-15 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684030', 'tblTempUsageDetail_20' ) end [2025-03-15 05:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 05:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 05:34:21] Production.INFO: ==5143== Releasing lock... [2025-03-15 05:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 05:34:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-15 05:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 02:35:05 [end_date_ymd] => 2025-03-15 05:35:05 [RateCDR] => 1 ) [2025-03-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-03-15 02:35:05' and `end` < '2025-03-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-03-15 05:35:17] Production.INFO: count ==652 [2025-03-15 05:35:17] Production.ERROR: pbx CDR StartTime 2025-03-15 02:35:05 - End Time 2025-03-15 05:35:05 [2025-03-15 05:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684035', 'tblTempUsageDetail_20' ) start [2025-03-15 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684035', 'tblTempUsageDetail_20' ) end [2025-03-15 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684035', 'tblTempVendorCDR_20' ) start [2025-03-15 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684035', 'tblTempVendorCDR_20' ) end [2025-03-15 05:35:17] Production.INFO: ProcessCDR(1,14684035,1,1,2) [2025-03-15 05:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684035', 'tblTempUsageDetail_20' ) start [2025-03-15 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684035', 'tblTempUsageDetail_20' ) end [2025-03-15 05:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 05:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 05:35:21] Production.INFO: ==5222== Releasing lock... [2025-03-15 05:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 05:35:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-15 05:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 02:36:05 [end_date_ymd] => 2025-03-15 05:36:05 [RateCDR] => 1 ) [2025-03-15 05:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 02:36:05' and `end` < '2025-03-15 05:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 05:36:18] Production.INFO: count ==652 [2025-03-15 05:36:18] Production.ERROR: pbx CDR StartTime 2025-03-15 02:36:05 - End Time 2025-03-15 05:36:05 [2025-03-15 05:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684040', 'tblTempUsageDetail_20' ) start [2025-03-15 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684040', 'tblTempUsageDetail_20' ) end [2025-03-15 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684040', 'tblTempVendorCDR_20' ) start [2025-03-15 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684040', 'tblTempVendorCDR_20' ) end [2025-03-15 05:36:18] Production.INFO: ProcessCDR(1,14684040,1,1,2) [2025-03-15 05:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684040', 'tblTempUsageDetail_20' ) start [2025-03-15 05:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684040', 'tblTempUsageDetail_20' ) end [2025-03-15 05:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 05:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 05:36:21] Production.INFO: ==5306== Releasing lock... [2025-03-15 05:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 05:36:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-15 05:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 02:37:05 [end_date_ymd] => 2025-03-15 05:37:05 [RateCDR] => 1 ) [2025-03-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-03-15 02:37:05' and `end` < '2025-03-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-03-15 05:37:17] Production.INFO: count ==652 [2025-03-15 05:37:17] Production.ERROR: pbx CDR StartTime 2025-03-15 02:37:05 - End Time 2025-03-15 05:37:05 [2025-03-15 05:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684045', 'tblTempUsageDetail_20' ) start [2025-03-15 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684045', 'tblTempUsageDetail_20' ) end [2025-03-15 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684045', 'tblTempVendorCDR_20' ) start [2025-03-15 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684045', 'tblTempVendorCDR_20' ) end [2025-03-15 05:37:17] Production.INFO: ProcessCDR(1,14684045,1,1,2) [2025-03-15 05:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684045', 'tblTempUsageDetail_20' ) start [2025-03-15 05:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684045', 'tblTempUsageDetail_20' ) end [2025-03-15 05:37:20] Production.ERROR: pbx prc_insertCDR start [2025-03-15 05:37:20] Production.ERROR: pbx prc_insertCDR end [2025-03-15 05:37:20] Production.INFO: ==5386== Releasing lock... [2025-03-15 05:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 05:37:20] Production.INFO: 33.25 MB #Memory Used# [2025-03-15 05:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 02:38:05 [end_date_ymd] => 2025-03-15 05:38:05 [RateCDR] => 1 ) [2025-03-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-03-15 02:38:05' and `end` < '2025-03-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-03-15 05:38:17] Production.INFO: count ==652 [2025-03-15 05:38:18] Production.ERROR: pbx CDR StartTime 2025-03-15 02:38:05 - End Time 2025-03-15 05:38:05 [2025-03-15 05:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684050', 'tblTempUsageDetail_20' ) start [2025-03-15 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684050', 'tblTempUsageDetail_20' ) end [2025-03-15 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684050', 'tblTempVendorCDR_20' ) start [2025-03-15 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684050', 'tblTempVendorCDR_20' ) end [2025-03-15 05:38:18] Production.INFO: ProcessCDR(1,14684050,1,1,2) [2025-03-15 05:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684050', 'tblTempUsageDetail_20' ) start [2025-03-15 05:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684050', 'tblTempUsageDetail_20' ) end [2025-03-15 05:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 05:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 05:38:21] Production.INFO: ==5470== Releasing lock... [2025-03-15 05:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 05:38:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-15 05:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 02:39:05 [end_date_ymd] => 2025-03-15 05:39:05 [RateCDR] => 1 ) [2025-03-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-03-15 02:39:05' and `end` < '2025-03-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-03-15 05:39:17] Production.INFO: count ==652 [2025-03-15 05:39:17] Production.ERROR: pbx CDR StartTime 2025-03-15 02:39:05 - End Time 2025-03-15 05:39:05 [2025-03-15 05:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684055', 'tblTempUsageDetail_20' ) start [2025-03-15 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684055', 'tblTempUsageDetail_20' ) end [2025-03-15 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684055', 'tblTempVendorCDR_20' ) start [2025-03-15 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684055', 'tblTempVendorCDR_20' ) end [2025-03-15 05:39:17] Production.INFO: ProcessCDR(1,14684055,1,1,2) [2025-03-15 05:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684055', 'tblTempUsageDetail_20' ) start [2025-03-15 05:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684055', 'tblTempUsageDetail_20' ) end [2025-03-15 05:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 05:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 05:39:21] Production.INFO: ==5556== Releasing lock... [2025-03-15 05:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 05:39:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-15 05:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 02:40:06 [end_date_ymd] => 2025-03-15 05:40:06 [RateCDR] => 1 ) [2025-03-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-03-15 02:40:06' and `end` < '2025-03-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-03-15 05:40:18] Production.INFO: count ==638 [2025-03-15 05:40:18] Production.ERROR: pbx CDR StartTime 2025-03-15 02:40:06 - End Time 2025-03-15 05:40:06 [2025-03-15 05:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684060', 'tblTempUsageDetail_20' ) start [2025-03-15 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684060', 'tblTempUsageDetail_20' ) end [2025-03-15 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684060', 'tblTempVendorCDR_20' ) start [2025-03-15 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684060', 'tblTempVendorCDR_20' ) end [2025-03-15 05:40:18] Production.INFO: ProcessCDR(1,14684060,1,1,2) [2025-03-15 05:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684060', 'tblTempUsageDetail_20' ) start [2025-03-15 05:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684060', 'tblTempUsageDetail_20' ) end [2025-03-15 05:40:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 05:40:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 05:40:21] Production.INFO: ==5646== Releasing lock... [2025-03-15 05:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 05:40:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-15 05:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 02:41:05 [end_date_ymd] => 2025-03-15 05:41:05 [RateCDR] => 1 ) [2025-03-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-03-15 02:41:05' and `end` < '2025-03-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-03-15 05:41:17] Production.INFO: count ==633 [2025-03-15 05:41:17] Production.ERROR: pbx CDR StartTime 2025-03-15 02:41:05 - End Time 2025-03-15 05:41:05 [2025-03-15 05:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684066', 'tblTempUsageDetail_20' ) start [2025-03-15 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684066', 'tblTempUsageDetail_20' ) end [2025-03-15 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684066', 'tblTempVendorCDR_20' ) start [2025-03-15 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684066', 'tblTempVendorCDR_20' ) end [2025-03-15 05:41:17] Production.INFO: ProcessCDR(1,14684066,1,1,2) [2025-03-15 05:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684066', 'tblTempUsageDetail_20' ) start [2025-03-15 05:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684066', 'tblTempUsageDetail_20' ) end [2025-03-15 05:41:20] Production.ERROR: pbx prc_insertCDR start [2025-03-15 05:41:20] Production.ERROR: pbx prc_insertCDR end [2025-03-15 05:41:20] Production.INFO: ==5730== Releasing lock... [2025-03-15 05:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 05:41:20] Production.INFO: 33.5 MB #Memory Used# [2025-03-15 05:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 02:42:05 [end_date_ymd] => 2025-03-15 05:42:05 [RateCDR] => 1 ) [2025-03-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-03-15 02:42:05' and `end` < '2025-03-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-03-15 05:42:18] Production.INFO: count ==632 [2025-03-15 05:42:18] Production.ERROR: pbx CDR StartTime 2025-03-15 02:42:05 - End Time 2025-03-15 05:42:05 [2025-03-15 05:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684071', 'tblTempUsageDetail_20' ) start [2025-03-15 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684071', 'tblTempUsageDetail_20' ) end [2025-03-15 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684071', 'tblTempVendorCDR_20' ) start [2025-03-15 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684071', 'tblTempVendorCDR_20' ) end [2025-03-15 05:42:18] Production.INFO: ProcessCDR(1,14684071,1,1,2) [2025-03-15 05:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684071', 'tblTempUsageDetail_20' ) start [2025-03-15 05:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684071', 'tblTempUsageDetail_20' ) end [2025-03-15 05:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 05:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 05:42:21] Production.INFO: ==5814== Releasing lock... [2025-03-15 05:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 05:42:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-15 05:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 02:43:05 [end_date_ymd] => 2025-03-15 05:43:05 [RateCDR] => 1 ) [2025-03-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-03-15 02:43:05' and `end` < '2025-03-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-03-15 05:43:17] Production.INFO: count ==629 [2025-03-15 05:43:17] Production.ERROR: pbx CDR StartTime 2025-03-15 02:43:05 - End Time 2025-03-15 05:43:05 [2025-03-15 05:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684076', 'tblTempUsageDetail_20' ) start [2025-03-15 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684076', 'tblTempUsageDetail_20' ) end [2025-03-15 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684076', 'tblTempVendorCDR_20' ) start [2025-03-15 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684076', 'tblTempVendorCDR_20' ) end [2025-03-15 05:43:17] Production.INFO: ProcessCDR(1,14684076,1,1,2) [2025-03-15 05:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684076', 'tblTempUsageDetail_20' ) start [2025-03-15 05:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684076', 'tblTempUsageDetail_20' ) end [2025-03-15 05:43:20] Production.ERROR: pbx prc_insertCDR start [2025-03-15 05:43:20] Production.ERROR: pbx prc_insertCDR end [2025-03-15 05:43:20] Production.INFO: ==5895== Releasing lock... [2025-03-15 05:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 05:43:20] Production.INFO: 33 MB #Memory Used# [2025-03-15 05:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 02:44:05 [end_date_ymd] => 2025-03-15 05:44:05 [RateCDR] => 1 ) [2025-03-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-03-15 02:44:05' and `end` < '2025-03-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-03-15 05:44:17] Production.INFO: count ==629 [2025-03-15 05:44:17] Production.ERROR: pbx CDR StartTime 2025-03-15 02:44:05 - End Time 2025-03-15 05:44:05 [2025-03-15 05:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684081', 'tblTempUsageDetail_20' ) start [2025-03-15 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684081', 'tblTempUsageDetail_20' ) end [2025-03-15 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684081', 'tblTempVendorCDR_20' ) start [2025-03-15 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684081', 'tblTempVendorCDR_20' ) end [2025-03-15 05:44:18] Production.INFO: ProcessCDR(1,14684081,1,1,2) [2025-03-15 05:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684081', 'tblTempUsageDetail_20' ) start [2025-03-15 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684081', 'tblTempUsageDetail_20' ) end [2025-03-15 05:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 05:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 05:44:21] Production.INFO: ==5978== Releasing lock... [2025-03-15 05:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 05:44:21] Production.INFO: 33 MB #Memory Used# [2025-03-15 05:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 02:45:05 [end_date_ymd] => 2025-03-15 05:45:05 [RateCDR] => 1 ) [2025-03-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-03-15 02:45:05' and `end` < '2025-03-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-03-15 05:45:17] Production.INFO: count ==626 [2025-03-15 05:45:18] Production.ERROR: pbx CDR StartTime 2025-03-15 02:45:05 - End Time 2025-03-15 05:45:05 [2025-03-15 05:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684086', 'tblTempUsageDetail_20' ) start [2025-03-15 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684086', 'tblTempUsageDetail_20' ) end [2025-03-15 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684086', 'tblTempVendorCDR_20' ) start [2025-03-15 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684086', 'tblTempVendorCDR_20' ) end [2025-03-15 05:45:18] Production.INFO: ProcessCDR(1,14684086,1,1,2) [2025-03-15 05:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684086', 'tblTempUsageDetail_20' ) start [2025-03-15 05:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684086', 'tblTempUsageDetail_20' ) end [2025-03-15 05:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 05:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 05:45:21] Production.INFO: ==6062== Releasing lock... [2025-03-15 05:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 05:45:21] Production.INFO: 33 MB #Memory Used# [2025-03-15 05:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 02:46:05 [end_date_ymd] => 2025-03-15 05:46:05 [RateCDR] => 1 ) [2025-03-15 05:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 02:46:05' and `end` < '2025-03-15 05:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 05:46:17] Production.INFO: count ==624 [2025-03-15 05:46:17] Production.ERROR: pbx CDR StartTime 2025-03-15 02:46:05 - End Time 2025-03-15 05:46:05 [2025-03-15 05:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684091', 'tblTempUsageDetail_20' ) start [2025-03-15 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684091', 'tblTempUsageDetail_20' ) end [2025-03-15 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684091', 'tblTempVendorCDR_20' ) start [2025-03-15 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684091', 'tblTempVendorCDR_20' ) end [2025-03-15 05:46:17] Production.INFO: ProcessCDR(1,14684091,1,1,2) [2025-03-15 05:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684091', 'tblTempUsageDetail_20' ) start [2025-03-15 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684091', 'tblTempUsageDetail_20' ) end [2025-03-15 05:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 05:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 05:46:21] Production.INFO: ==6184== Releasing lock... [2025-03-15 05:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 05:46:21] Production.INFO: 33 MB #Memory Used# [2025-03-15 05:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 02:47:06 [end_date_ymd] => 2025-03-15 05:47:06 [RateCDR] => 1 ) [2025-03-15 05:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 02:47:06' and `end` < '2025-03-15 05:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 05:47:18] Production.INFO: count ==624 [2025-03-15 05:47:18] Production.ERROR: pbx CDR StartTime 2025-03-15 02:47:06 - End Time 2025-03-15 05:47:06 [2025-03-15 05:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684096', 'tblTempUsageDetail_20' ) start [2025-03-15 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684096', 'tblTempUsageDetail_20' ) end [2025-03-15 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684096', 'tblTempVendorCDR_20' ) start [2025-03-15 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684096', 'tblTempVendorCDR_20' ) end [2025-03-15 05:47:18] Production.INFO: ProcessCDR(1,14684096,1,1,2) [2025-03-15 05:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684096', 'tblTempUsageDetail_20' ) start [2025-03-15 05:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684096', 'tblTempUsageDetail_20' ) end [2025-03-15 05:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 05:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 05:47:21] Production.INFO: ==6270== Releasing lock... [2025-03-15 05:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 05:47:21] Production.INFO: 33 MB #Memory Used# [2025-03-15 05:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 02:48:05 [end_date_ymd] => 2025-03-15 05:48:05 [RateCDR] => 1 ) [2025-03-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-03-15 02:48:05' and `end` < '2025-03-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-03-15 05:48:17] Production.INFO: count ==620 [2025-03-15 05:48:17] Production.ERROR: pbx CDR StartTime 2025-03-15 02:48:05 - End Time 2025-03-15 05:48:05 [2025-03-15 05:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684101', 'tblTempUsageDetail_20' ) start [2025-03-15 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684101', 'tblTempUsageDetail_20' ) end [2025-03-15 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684101', 'tblTempVendorCDR_20' ) start [2025-03-15 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684101', 'tblTempVendorCDR_20' ) end [2025-03-15 05:48:17] Production.INFO: ProcessCDR(1,14684101,1,1,2) [2025-03-15 05:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684101', 'tblTempUsageDetail_20' ) start [2025-03-15 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684101', 'tblTempUsageDetail_20' ) end [2025-03-15 05:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 05:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 05:48:21] Production.INFO: ==6352== Releasing lock... [2025-03-15 05:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 05:48:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-15 05:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 02:49:05 [end_date_ymd] => 2025-03-15 05:49:05 [RateCDR] => 1 ) [2025-03-15 05:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 02:49:05' and `end` < '2025-03-15 05:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 05:49:17] Production.INFO: count ==608 [2025-03-15 05:49:17] Production.ERROR: pbx CDR StartTime 2025-03-15 02:49:05 - End Time 2025-03-15 05:49:05 [2025-03-15 05:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684106', 'tblTempUsageDetail_20' ) start [2025-03-15 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684106', 'tblTempUsageDetail_20' ) end [2025-03-15 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684106', 'tblTempVendorCDR_20' ) start [2025-03-15 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684106', 'tblTempVendorCDR_20' ) end [2025-03-15 05:49:17] Production.INFO: ProcessCDR(1,14684106,1,1,2) [2025-03-15 05:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684106', 'tblTempUsageDetail_20' ) start [2025-03-15 05:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684106', 'tblTempUsageDetail_20' ) end [2025-03-15 05:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 05:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 05:49:21] Production.INFO: ==6435== Releasing lock... [2025-03-15 05:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 05:49:21] Production.INFO: 33 MB #Memory Used# [2025-03-15 05:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 02:50:06 [end_date_ymd] => 2025-03-15 05:50:06 [RateCDR] => 1 ) [2025-03-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-03-15 02:50:06' and `end` < '2025-03-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-03-15 05:50:18] Production.INFO: count ==596 [2025-03-15 05:50:18] Production.ERROR: pbx CDR StartTime 2025-03-15 02:50:06 - End Time 2025-03-15 05:50:06 [2025-03-15 05:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684112', 'tblTempUsageDetail_20' ) start [2025-03-15 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684112', 'tblTempUsageDetail_20' ) end [2025-03-15 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684112', 'tblTempVendorCDR_20' ) start [2025-03-15 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684112', 'tblTempVendorCDR_20' ) end [2025-03-15 05:50:18] Production.INFO: ProcessCDR(1,14684112,1,1,2) [2025-03-15 05:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684112', 'tblTempUsageDetail_20' ) start [2025-03-15 05:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684112', 'tblTempUsageDetail_20' ) end [2025-03-15 05:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 05:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 05:50:22] Production.INFO: ==6523== Releasing lock... [2025-03-15 05:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 05:50:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-15 05:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 02:51:05 [end_date_ymd] => 2025-03-15 05:51:05 [RateCDR] => 1 ) [2025-03-15 05:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 02:51:05' and `end` < '2025-03-15 05:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 05:51:17] Production.INFO: count ==596 [2025-03-15 05:51:18] Production.ERROR: pbx CDR StartTime 2025-03-15 02:51:05 - End Time 2025-03-15 05:51:05 [2025-03-15 05:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684117', 'tblTempUsageDetail_20' ) start [2025-03-15 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684117', 'tblTempUsageDetail_20' ) end [2025-03-15 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684117', 'tblTempVendorCDR_20' ) start [2025-03-15 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684117', 'tblTempVendorCDR_20' ) end [2025-03-15 05:51:18] Production.INFO: ProcessCDR(1,14684117,1,1,2) [2025-03-15 05:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684117', 'tblTempUsageDetail_20' ) start [2025-03-15 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684117', 'tblTempUsageDetail_20' ) end [2025-03-15 05:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 05:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 05:51:21] Production.INFO: ==6607== Releasing lock... [2025-03-15 05:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 05:51:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-15 05:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 02:52:05 [end_date_ymd] => 2025-03-15 05:52:05 [RateCDR] => 1 ) [2025-03-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-03-15 02:52:05' and `end` < '2025-03-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-03-15 05:52:18] Production.INFO: count ==594 [2025-03-15 05:52:18] Production.ERROR: pbx CDR StartTime 2025-03-15 02:52:05 - End Time 2025-03-15 05:52:05 [2025-03-15 05:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684122', 'tblTempUsageDetail_20' ) start [2025-03-15 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684122', 'tblTempUsageDetail_20' ) end [2025-03-15 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684122', 'tblTempVendorCDR_20' ) start [2025-03-15 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684122', 'tblTempVendorCDR_20' ) end [2025-03-15 05:52:18] Production.INFO: ProcessCDR(1,14684122,1,1,2) [2025-03-15 05:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684122', 'tblTempUsageDetail_20' ) start [2025-03-15 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684122', 'tblTempUsageDetail_20' ) end [2025-03-15 05:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 05:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 05:52:21] Production.INFO: ==6694== Releasing lock... [2025-03-15 05:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 05:52:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-15 05:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 02:53:05 [end_date_ymd] => 2025-03-15 05:53:05 [RateCDR] => 1 ) [2025-03-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-03-15 02:53:05' and `end` < '2025-03-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-03-15 05:53:17] Production.INFO: count ==594 [2025-03-15 05:53:17] Production.ERROR: pbx CDR StartTime 2025-03-15 02:53:05 - End Time 2025-03-15 05:53:05 [2025-03-15 05:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684127', 'tblTempUsageDetail_20' ) start [2025-03-15 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684127', 'tblTempUsageDetail_20' ) end [2025-03-15 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684127', 'tblTempVendorCDR_20' ) start [2025-03-15 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684127', 'tblTempVendorCDR_20' ) end [2025-03-15 05:53:17] Production.INFO: ProcessCDR(1,14684127,1,1,2) [2025-03-15 05:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684127', 'tblTempUsageDetail_20' ) start [2025-03-15 05:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684127', 'tblTempUsageDetail_20' ) end [2025-03-15 05:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 05:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 05:53:21] Production.INFO: ==6779== Releasing lock... [2025-03-15 05:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 05:53:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-15 05:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 02:54:05 [end_date_ymd] => 2025-03-15 05:54:05 [RateCDR] => 1 ) [2025-03-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-03-15 02:54:05' and `end` < '2025-03-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-03-15 05:54:17] Production.INFO: count ==594 [2025-03-15 05:54:17] Production.ERROR: pbx CDR StartTime 2025-03-15 02:54:05 - End Time 2025-03-15 05:54:05 [2025-03-15 05:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684132', 'tblTempUsageDetail_20' ) start [2025-03-15 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684132', 'tblTempUsageDetail_20' ) end [2025-03-15 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684132', 'tblTempVendorCDR_20' ) start [2025-03-15 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684132', 'tblTempVendorCDR_20' ) end [2025-03-15 05:54:17] Production.INFO: ProcessCDR(1,14684132,1,1,2) [2025-03-15 05:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684132', 'tblTempUsageDetail_20' ) start [2025-03-15 05:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684132', 'tblTempUsageDetail_20' ) end [2025-03-15 05:54:20] Production.ERROR: pbx prc_insertCDR start [2025-03-15 05:54:20] Production.ERROR: pbx prc_insertCDR end [2025-03-15 05:54:20] Production.INFO: ==6863== Releasing lock... [2025-03-15 05:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 05:54:20] Production.INFO: 33.25 MB #Memory Used# [2025-03-15 05:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 02:55:05 [end_date_ymd] => 2025-03-15 05:55:05 [RateCDR] => 1 ) [2025-03-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-03-15 02:55:05' and `end` < '2025-03-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-03-15 05:55:17] Production.INFO: count ==590 [2025-03-15 05:55:17] Production.ERROR: pbx CDR StartTime 2025-03-15 02:55:05 - End Time 2025-03-15 05:55:05 [2025-03-15 05:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684137', 'tblTempUsageDetail_20' ) start [2025-03-15 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684137', 'tblTempUsageDetail_20' ) end [2025-03-15 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684137', 'tblTempVendorCDR_20' ) start [2025-03-15 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684137', 'tblTempVendorCDR_20' ) end [2025-03-15 05:55:17] Production.INFO: ProcessCDR(1,14684137,1,1,2) [2025-03-15 05:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684137', 'tblTempUsageDetail_20' ) start [2025-03-15 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684137', 'tblTempUsageDetail_20' ) end [2025-03-15 05:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 05:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 05:55:21] Production.INFO: ==6947== Releasing lock... [2025-03-15 05:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 05:55:21] Production.INFO: 33 MB #Memory Used# [2025-03-15 05:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 02:56:05 [end_date_ymd] => 2025-03-15 05:56:05 [RateCDR] => 1 ) [2025-03-15 05:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 02:56:05' and `end` < '2025-03-15 05:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 05:56:17] Production.INFO: count ==590 [2025-03-15 05:56:17] Production.ERROR: pbx CDR StartTime 2025-03-15 02:56:05 - End Time 2025-03-15 05:56:05 [2025-03-15 05:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684142', 'tblTempUsageDetail_20' ) start [2025-03-15 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684142', 'tblTempUsageDetail_20' ) end [2025-03-15 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684142', 'tblTempVendorCDR_20' ) start [2025-03-15 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684142', 'tblTempVendorCDR_20' ) end [2025-03-15 05:56:17] Production.INFO: ProcessCDR(1,14684142,1,1,2) [2025-03-15 05:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684142', 'tblTempUsageDetail_20' ) start [2025-03-15 05:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684142', 'tblTempUsageDetail_20' ) end [2025-03-15 05:56:20] Production.ERROR: pbx prc_insertCDR start [2025-03-15 05:56:20] Production.ERROR: pbx prc_insertCDR end [2025-03-15 05:56:20] Production.INFO: ==7035== Releasing lock... [2025-03-15 05:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 05:56:20] Production.INFO: 33 MB #Memory Used# [2025-03-15 05:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 02:57:05 [end_date_ymd] => 2025-03-15 05:57:05 [RateCDR] => 1 ) [2025-03-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-03-15 02:57:05' and `end` < '2025-03-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-03-15 05:57:18] Production.INFO: count ==587 [2025-03-15 05:57:18] Production.ERROR: pbx CDR StartTime 2025-03-15 02:57:05 - End Time 2025-03-15 05:57:05 [2025-03-15 05:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684147', 'tblTempUsageDetail_20' ) start [2025-03-15 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684147', 'tblTempUsageDetail_20' ) end [2025-03-15 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684147', 'tblTempVendorCDR_20' ) start [2025-03-15 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684147', 'tblTempVendorCDR_20' ) end [2025-03-15 05:57:18] Production.INFO: ProcessCDR(1,14684147,1,1,2) [2025-03-15 05:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684147', 'tblTempUsageDetail_20' ) start [2025-03-15 05:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684147', 'tblTempUsageDetail_20' ) end [2025-03-15 05:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 05:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 05:57:21] Production.INFO: ==7116== Releasing lock... [2025-03-15 05:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 05:57:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-15 05:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 02:58:06 [end_date_ymd] => 2025-03-15 05:58:06 [RateCDR] => 1 ) [2025-03-15 05:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 02:58:06' and `end` < '2025-03-15 05:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 05:58:18] Production.INFO: count ==580 [2025-03-15 05:58:18] Production.ERROR: pbx CDR StartTime 2025-03-15 02:58:06 - End Time 2025-03-15 05:58:06 [2025-03-15 05:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684152', 'tblTempUsageDetail_20' ) start [2025-03-15 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684152', 'tblTempUsageDetail_20' ) end [2025-03-15 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684152', 'tblTempVendorCDR_20' ) start [2025-03-15 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684152', 'tblTempVendorCDR_20' ) end [2025-03-15 05:58:18] Production.INFO: ProcessCDR(1,14684152,1,1,2) [2025-03-15 05:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684152', 'tblTempUsageDetail_20' ) start [2025-03-15 05:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684152', 'tblTempUsageDetail_20' ) end [2025-03-15 05:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 05:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 05:58:21] Production.INFO: ==7200== Releasing lock... [2025-03-15 05:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 05:58:21] Production.INFO: 33 MB #Memory Used# [2025-03-15 05:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 02:59:05 [end_date_ymd] => 2025-03-15 05:59:05 [RateCDR] => 1 ) [2025-03-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-03-15 02:59:05' and `end` < '2025-03-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-03-15 05:59:17] Production.INFO: count ==580 [2025-03-15 05:59:17] Production.ERROR: pbx CDR StartTime 2025-03-15 02:59:05 - End Time 2025-03-15 05:59:05 [2025-03-15 05:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684157', 'tblTempUsageDetail_20' ) start [2025-03-15 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684157', 'tblTempUsageDetail_20' ) end [2025-03-15 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684157', 'tblTempVendorCDR_20' ) start [2025-03-15 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684157', 'tblTempVendorCDR_20' ) end [2025-03-15 05:59:17] Production.INFO: ProcessCDR(1,14684157,1,1,2) [2025-03-15 05:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 05:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 05:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684157', 'tblTempUsageDetail_20' ) start [2025-03-15 05:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684157', 'tblTempUsageDetail_20' ) end [2025-03-15 05:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 05:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 05:59:21] Production.INFO: ==7279== Releasing lock... [2025-03-15 05:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 05:59:21] Production.INFO: 33 MB #Memory Used# [2025-03-15 06:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 03:00:06 [end_date_ymd] => 2025-03-15 06:00:06 [RateCDR] => 1 ) [2025-03-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-03-15 03:00:06' and `end` < '2025-03-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-03-15 06:00:18] Production.INFO: count ==569 [2025-03-15 06:00:19] Production.ERROR: pbx CDR StartTime 2025-03-15 03:00:06 - End Time 2025-03-15 06:00:06 [2025-03-15 06:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684163', 'tblTempUsageDetail_20' ) start [2025-03-15 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684163', 'tblTempUsageDetail_20' ) end [2025-03-15 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684163', 'tblTempVendorCDR_20' ) start [2025-03-15 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684163', 'tblTempVendorCDR_20' ) end [2025-03-15 06:00:19] Production.INFO: ProcessCDR(1,14684163,1,1,2) [2025-03-15 06:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684163', 'tblTempUsageDetail_20' ) start [2025-03-15 06:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684163', 'tblTempUsageDetail_20' ) end [2025-03-15 06:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 06:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 06:00:22] Production.INFO: ==7363== Releasing lock... [2025-03-15 06:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 06:00:22] Production.INFO: 33 MB #Memory Used# [2025-03-15 06:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 03:01:05 [end_date_ymd] => 2025-03-15 06:01:05 [RateCDR] => 1 ) [2025-03-15 06:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 03:01:05' and `end` < '2025-03-15 06:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 06:01:17] Production.INFO: count ==564 [2025-03-15 06:01:17] Production.ERROR: pbx CDR StartTime 2025-03-15 03:01:05 - End Time 2025-03-15 06:01:05 [2025-03-15 06:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684168', 'tblTempUsageDetail_20' ) start [2025-03-15 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684168', 'tblTempUsageDetail_20' ) end [2025-03-15 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684168', 'tblTempVendorCDR_20' ) start [2025-03-15 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684168', 'tblTempVendorCDR_20' ) end [2025-03-15 06:01:17] Production.INFO: ProcessCDR(1,14684168,1,1,2) [2025-03-15 06:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684168', 'tblTempUsageDetail_20' ) start [2025-03-15 06:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684168', 'tblTempUsageDetail_20' ) end [2025-03-15 06:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 06:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 06:01:21] Production.INFO: ==7499== Releasing lock... [2025-03-15 06:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 06:01:21] Production.INFO: 33 MB #Memory Used# [2025-03-15 06:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 03:02:05 [end_date_ymd] => 2025-03-15 06:02:05 [RateCDR] => 1 ) [2025-03-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-03-15 03:02:05' and `end` < '2025-03-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-03-15 06:02:17] Production.INFO: count ==551 [2025-03-15 06:02:18] Production.ERROR: pbx CDR StartTime 2025-03-15 03:02:05 - End Time 2025-03-15 06:02:05 [2025-03-15 06:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684173', 'tblTempUsageDetail_20' ) start [2025-03-15 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684173', 'tblTempUsageDetail_20' ) end [2025-03-15 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684173', 'tblTempVendorCDR_20' ) start [2025-03-15 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684173', 'tblTempVendorCDR_20' ) end [2025-03-15 06:02:18] Production.INFO: ProcessCDR(1,14684173,1,1,2) [2025-03-15 06:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684173', 'tblTempUsageDetail_20' ) start [2025-03-15 06:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684173', 'tblTempUsageDetail_20' ) end [2025-03-15 06:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 06:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 06:02:21] Production.INFO: ==7585== Releasing lock... [2025-03-15 06:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 06:02:21] Production.INFO: 33 MB #Memory Used# [2025-03-15 06:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 03:03:05 [end_date_ymd] => 2025-03-15 06:03:05 [RateCDR] => 1 ) [2025-03-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-03-15 03:03:05' and `end` < '2025-03-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-03-15 06:03:17] Production.INFO: count ==548 [2025-03-15 06:03:17] Production.ERROR: pbx CDR StartTime 2025-03-15 03:03:05 - End Time 2025-03-15 06:03:05 [2025-03-15 06:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684178', 'tblTempUsageDetail_20' ) start [2025-03-15 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684178', 'tblTempUsageDetail_20' ) end [2025-03-15 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684178', 'tblTempVendorCDR_20' ) start [2025-03-15 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684178', 'tblTempVendorCDR_20' ) end [2025-03-15 06:03:17] Production.INFO: ProcessCDR(1,14684178,1,1,2) [2025-03-15 06:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684178', 'tblTempUsageDetail_20' ) start [2025-03-15 06:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684178', 'tblTempUsageDetail_20' ) end [2025-03-15 06:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 06:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 06:03:21] Production.INFO: ==7667== Releasing lock... [2025-03-15 06:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 06:03:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-15 06:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 03:04:05 [end_date_ymd] => 2025-03-15 06:04:05 [RateCDR] => 1 ) [2025-03-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-03-15 03:04:05' and `end` < '2025-03-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-03-15 06:04:17] Production.INFO: count ==548 [2025-03-15 06:04:18] Production.ERROR: pbx CDR StartTime 2025-03-15 03:04:05 - End Time 2025-03-15 06:04:05 [2025-03-15 06:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684183', 'tblTempUsageDetail_20' ) start [2025-03-15 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684183', 'tblTempUsageDetail_20' ) end [2025-03-15 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684183', 'tblTempVendorCDR_20' ) start [2025-03-15 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684183', 'tblTempVendorCDR_20' ) end [2025-03-15 06:04:18] Production.INFO: ProcessCDR(1,14684183,1,1,2) [2025-03-15 06:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684183', 'tblTempUsageDetail_20' ) start [2025-03-15 06:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684183', 'tblTempUsageDetail_20' ) end [2025-03-15 06:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 06:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 06:04:21] Production.INFO: ==7747== Releasing lock... [2025-03-15 06:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 06:04:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-15 06:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 03:05:05 [end_date_ymd] => 2025-03-15 06:05:05 [RateCDR] => 1 ) [2025-03-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-03-15 03:05:05' and `end` < '2025-03-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-03-15 06:05:17] Production.INFO: count ==546 [2025-03-15 06:05:17] Production.ERROR: pbx CDR StartTime 2025-03-15 03:05:05 - End Time 2025-03-15 06:05:05 [2025-03-15 06:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684188', 'tblTempUsageDetail_20' ) start [2025-03-15 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684188', 'tblTempUsageDetail_20' ) end [2025-03-15 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684188', 'tblTempVendorCDR_20' ) start [2025-03-15 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684188', 'tblTempVendorCDR_20' ) end [2025-03-15 06:05:17] Production.INFO: ProcessCDR(1,14684188,1,1,2) [2025-03-15 06:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684188', 'tblTempUsageDetail_20' ) start [2025-03-15 06:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684188', 'tblTempUsageDetail_20' ) end [2025-03-15 06:05:20] Production.ERROR: pbx prc_insertCDR start [2025-03-15 06:05:20] Production.ERROR: pbx prc_insertCDR end [2025-03-15 06:05:20] Production.INFO: ==7831== Releasing lock... [2025-03-15 06:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 06:05:20] Production.INFO: 33 MB #Memory Used# [2025-03-15 06:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 03:06:05 [end_date_ymd] => 2025-03-15 06:06:05 [RateCDR] => 1 ) [2025-03-15 06:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 03:06:05' and `end` < '2025-03-15 06:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 06:06:17] Production.INFO: count ==535 [2025-03-15 06:06:17] Production.ERROR: pbx CDR StartTime 2025-03-15 03:06:05 - End Time 2025-03-15 06:06:05 [2025-03-15 06:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684193', 'tblTempUsageDetail_20' ) start [2025-03-15 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684193', 'tblTempUsageDetail_20' ) end [2025-03-15 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684193', 'tblTempVendorCDR_20' ) start [2025-03-15 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684193', 'tblTempVendorCDR_20' ) end [2025-03-15 06:06:17] Production.INFO: ProcessCDR(1,14684193,1,1,2) [2025-03-15 06:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684193', 'tblTempUsageDetail_20' ) start [2025-03-15 06:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684193', 'tblTempUsageDetail_20' ) end [2025-03-15 06:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 06:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 06:06:21] Production.INFO: ==7911== Releasing lock... [2025-03-15 06:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 06:06:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-15 06:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 03:07:06 [end_date_ymd] => 2025-03-15 06:07:06 [RateCDR] => 1 ) [2025-03-15 06:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 03:07:06' and `end` < '2025-03-15 06:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 06:07:18] Production.INFO: count ==532 [2025-03-15 06:07:18] Production.ERROR: pbx CDR StartTime 2025-03-15 03:07:06 - End Time 2025-03-15 06:07:06 [2025-03-15 06:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684198', 'tblTempUsageDetail_20' ) start [2025-03-15 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684198', 'tblTempUsageDetail_20' ) end [2025-03-15 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684198', 'tblTempVendorCDR_20' ) start [2025-03-15 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684198', 'tblTempVendorCDR_20' ) end [2025-03-15 06:07:18] Production.INFO: ProcessCDR(1,14684198,1,1,2) [2025-03-15 06:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684198', 'tblTempUsageDetail_20' ) start [2025-03-15 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684198', 'tblTempUsageDetail_20' ) end [2025-03-15 06:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 06:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 06:07:21] Production.INFO: ==7993== Releasing lock... [2025-03-15 06:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 06:07:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-15 06:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 03:08:05 [end_date_ymd] => 2025-03-15 06:08:05 [RateCDR] => 1 ) [2025-03-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-03-15 03:08:05' and `end` < '2025-03-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-03-15 06:08:17] Production.INFO: count ==531 [2025-03-15 06:08:17] Production.ERROR: pbx CDR StartTime 2025-03-15 03:08:05 - End Time 2025-03-15 06:08:05 [2025-03-15 06:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684203', 'tblTempUsageDetail_20' ) start [2025-03-15 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684203', 'tblTempUsageDetail_20' ) end [2025-03-15 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684203', 'tblTempVendorCDR_20' ) start [2025-03-15 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684203', 'tblTempVendorCDR_20' ) end [2025-03-15 06:08:17] Production.INFO: ProcessCDR(1,14684203,1,1,2) [2025-03-15 06:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684203', 'tblTempUsageDetail_20' ) start [2025-03-15 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684203', 'tblTempUsageDetail_20' ) end [2025-03-15 06:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 06:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 06:08:21] Production.INFO: ==8074== Releasing lock... [2025-03-15 06:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 06:08:21] Production.INFO: 32 MB #Memory Used# [2025-03-15 06:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 03:09:06 [end_date_ymd] => 2025-03-15 06:09:06 [RateCDR] => 1 ) [2025-03-15 06:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 03:09:06' and `end` < '2025-03-15 06:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 06:09:18] Production.INFO: count ==531 [2025-03-15 06:09:18] Production.ERROR: pbx CDR StartTime 2025-03-15 03:09:06 - End Time 2025-03-15 06:09:06 [2025-03-15 06:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684208', 'tblTempUsageDetail_20' ) start [2025-03-15 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684208', 'tblTempUsageDetail_20' ) end [2025-03-15 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684208', 'tblTempVendorCDR_20' ) start [2025-03-15 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684208', 'tblTempVendorCDR_20' ) end [2025-03-15 06:09:18] Production.INFO: ProcessCDR(1,14684208,1,1,2) [2025-03-15 06:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684208', 'tblTempUsageDetail_20' ) start [2025-03-15 06:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684208', 'tblTempUsageDetail_20' ) end [2025-03-15 06:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 06:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 06:09:21] Production.INFO: ==8155== Releasing lock... [2025-03-15 06:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 06:09:21] Production.INFO: 32 MB #Memory Used# [2025-03-15 06:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 03:10:06 [end_date_ymd] => 2025-03-15 06:10:06 [RateCDR] => 1 ) [2025-03-15 06:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 03:10:06' and `end` < '2025-03-15 06:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 06:10:19] Production.INFO: count ==531 [2025-03-15 06:10:19] Production.ERROR: pbx CDR StartTime 2025-03-15 03:10:06 - End Time 2025-03-15 06:10:06 [2025-03-15 06:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684214', 'tblTempUsageDetail_20' ) start [2025-03-15 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684214', 'tblTempUsageDetail_20' ) end [2025-03-15 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684214', 'tblTempVendorCDR_20' ) start [2025-03-15 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684214', 'tblTempVendorCDR_20' ) end [2025-03-15 06:10:19] Production.INFO: ProcessCDR(1,14684214,1,1,2) [2025-03-15 06:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684214', 'tblTempUsageDetail_20' ) start [2025-03-15 06:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684214', 'tblTempUsageDetail_20' ) end [2025-03-15 06:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 06:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 06:10:22] Production.INFO: ==8244== Releasing lock... [2025-03-15 06:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 06:10:22] Production.INFO: 32 MB #Memory Used# [2025-03-15 06:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 03:11:05 [end_date_ymd] => 2025-03-15 06:11:05 [RateCDR] => 1 ) [2025-03-15 06:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 03:11:05' and `end` < '2025-03-15 06:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 06:11:17] Production.INFO: count ==531 [2025-03-15 06:11:17] Production.ERROR: pbx CDR StartTime 2025-03-15 03:11:05 - End Time 2025-03-15 06:11:05 [2025-03-15 06:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684219', 'tblTempUsageDetail_20' ) start [2025-03-15 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684219', 'tblTempUsageDetail_20' ) end [2025-03-15 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684219', 'tblTempVendorCDR_20' ) start [2025-03-15 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684219', 'tblTempVendorCDR_20' ) end [2025-03-15 06:11:17] Production.INFO: ProcessCDR(1,14684219,1,1,2) [2025-03-15 06:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684219', 'tblTempUsageDetail_20' ) start [2025-03-15 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684219', 'tblTempUsageDetail_20' ) end [2025-03-15 06:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 06:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 06:11:21] Production.INFO: ==8332== Releasing lock... [2025-03-15 06:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 06:11:21] Production.INFO: 32 MB #Memory Used# [2025-03-15 06:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 03:12:06 [end_date_ymd] => 2025-03-15 06:12:06 [RateCDR] => 1 ) [2025-03-15 06:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 03:12:06' and `end` < '2025-03-15 06:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 06:12:18] Production.INFO: count ==531 [2025-03-15 06:12:18] Production.ERROR: pbx CDR StartTime 2025-03-15 03:12:06 - End Time 2025-03-15 06:12:06 [2025-03-15 06:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684224', 'tblTempUsageDetail_20' ) start [2025-03-15 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684224', 'tblTempUsageDetail_20' ) end [2025-03-15 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684224', 'tblTempVendorCDR_20' ) start [2025-03-15 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684224', 'tblTempVendorCDR_20' ) end [2025-03-15 06:12:18] Production.INFO: ProcessCDR(1,14684224,1,1,2) [2025-03-15 06:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684224', 'tblTempUsageDetail_20' ) start [2025-03-15 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684224', 'tblTempUsageDetail_20' ) end [2025-03-15 06:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 06:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 06:12:21] Production.INFO: ==8412== Releasing lock... [2025-03-15 06:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 06:12:21] Production.INFO: 32 MB #Memory Used# [2025-03-15 06:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 03:13:05 [end_date_ymd] => 2025-03-15 06:13:05 [RateCDR] => 1 ) [2025-03-15 06:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 03:13:05' and `end` < '2025-03-15 06:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 06:13:17] Production.INFO: count ==526 [2025-03-15 06:13:17] Production.ERROR: pbx CDR StartTime 2025-03-15 03:13:05 - End Time 2025-03-15 06:13:05 [2025-03-15 06:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684229', 'tblTempUsageDetail_20' ) start [2025-03-15 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684229', 'tblTempUsageDetail_20' ) end [2025-03-15 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684229', 'tblTempVendorCDR_20' ) start [2025-03-15 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684229', 'tblTempVendorCDR_20' ) end [2025-03-15 06:13:17] Production.INFO: ProcessCDR(1,14684229,1,1,2) [2025-03-15 06:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684229', 'tblTempUsageDetail_20' ) start [2025-03-15 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684229', 'tblTempUsageDetail_20' ) end [2025-03-15 06:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 06:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 06:13:21] Production.INFO: ==8493== Releasing lock... [2025-03-15 06:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 06:13:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-15 06:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 03:14:05 [end_date_ymd] => 2025-03-15 06:14:05 [RateCDR] => 1 ) [2025-03-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-03-15 03:14:05' and `end` < '2025-03-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-03-15 06:14:17] Production.INFO: count ==525 [2025-03-15 06:14:17] Production.ERROR: pbx CDR StartTime 2025-03-15 03:14:05 - End Time 2025-03-15 06:14:05 [2025-03-15 06:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684234', 'tblTempUsageDetail_20' ) start [2025-03-15 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684234', 'tblTempUsageDetail_20' ) end [2025-03-15 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684234', 'tblTempVendorCDR_20' ) start [2025-03-15 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684234', 'tblTempVendorCDR_20' ) end [2025-03-15 06:14:17] Production.INFO: ProcessCDR(1,14684234,1,1,2) [2025-03-15 06:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684234', 'tblTempUsageDetail_20' ) start [2025-03-15 06:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684234', 'tblTempUsageDetail_20' ) end [2025-03-15 06:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 06:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 06:14:21] Production.INFO: ==8574== Releasing lock... [2025-03-15 06:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 06:14:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-15 06:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 03:15:06 [end_date_ymd] => 2025-03-15 06:15:06 [RateCDR] => 1 ) [2025-03-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-03-15 03:15:06' and `end` < '2025-03-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-03-15 06:15:18] Production.INFO: count ==520 [2025-03-15 06:15:18] Production.ERROR: pbx CDR StartTime 2025-03-15 03:15:06 - End Time 2025-03-15 06:15:06 [2025-03-15 06:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684239', 'tblTempUsageDetail_20' ) start [2025-03-15 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684239', 'tblTempUsageDetail_20' ) end [2025-03-15 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684239', 'tblTempVendorCDR_20' ) start [2025-03-15 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684239', 'tblTempVendorCDR_20' ) end [2025-03-15 06:15:18] Production.INFO: ProcessCDR(1,14684239,1,1,2) [2025-03-15 06:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684239', 'tblTempUsageDetail_20' ) start [2025-03-15 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684239', 'tblTempUsageDetail_20' ) end [2025-03-15 06:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 06:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 06:15:21] Production.INFO: ==8654== Releasing lock... [2025-03-15 06:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 06:15:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-15 06:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 03:16:05 [end_date_ymd] => 2025-03-15 06:16:05 [RateCDR] => 1 ) [2025-03-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-03-15 03:16:05' and `end` < '2025-03-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-03-15 06:16:17] Production.INFO: count ==510 [2025-03-15 06:16:17] Production.ERROR: pbx CDR StartTime 2025-03-15 03:16:05 - End Time 2025-03-15 06:16:05 [2025-03-15 06:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684244', 'tblTempUsageDetail_20' ) start [2025-03-15 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684244', 'tblTempUsageDetail_20' ) end [2025-03-15 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684244', 'tblTempVendorCDR_20' ) start [2025-03-15 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684244', 'tblTempVendorCDR_20' ) end [2025-03-15 06:16:17] Production.INFO: ProcessCDR(1,14684244,1,1,2) [2025-03-15 06:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684244', 'tblTempUsageDetail_20' ) start [2025-03-15 06:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684244', 'tblTempUsageDetail_20' ) end [2025-03-15 06:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 06:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 06:16:21] Production.INFO: ==8775== Releasing lock... [2025-03-15 06:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 06:16:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-15 06:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 03:17:05 [end_date_ymd] => 2025-03-15 06:17:05 [RateCDR] => 1 ) [2025-03-15 06:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 03:17:05' and `end` < '2025-03-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-03-15 06:17:18] Production.INFO: count ==504 [2025-03-15 06:17:18] Production.ERROR: pbx CDR StartTime 2025-03-15 03:17:05 - End Time 2025-03-15 06:17:05 [2025-03-15 06:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684249', 'tblTempUsageDetail_20' ) start [2025-03-15 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684249', 'tblTempUsageDetail_20' ) end [2025-03-15 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684249', 'tblTempVendorCDR_20' ) start [2025-03-15 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684249', 'tblTempVendorCDR_20' ) end [2025-03-15 06:17:18] Production.INFO: ProcessCDR(1,14684249,1,1,2) [2025-03-15 06:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684249', 'tblTempUsageDetail_20' ) start [2025-03-15 06:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684249', 'tblTempUsageDetail_20' ) end [2025-03-15 06:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 06:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 06:17:21] Production.INFO: ==8873== Releasing lock... [2025-03-15 06:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 06:17:21] Production.INFO: 32 MB #Memory Used# [2025-03-15 06:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 03:18:05 [end_date_ymd] => 2025-03-15 06:18:05 [RateCDR] => 1 ) [2025-03-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-03-15 03:18:05' and `end` < '2025-03-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-03-15 06:18:17] Production.INFO: count ==501 [2025-03-15 06:18:17] Production.ERROR: pbx CDR StartTime 2025-03-15 03:18:05 - End Time 2025-03-15 06:18:05 [2025-03-15 06:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684254', 'tblTempUsageDetail_20' ) start [2025-03-15 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684254', 'tblTempUsageDetail_20' ) end [2025-03-15 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684254', 'tblTempVendorCDR_20' ) start [2025-03-15 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684254', 'tblTempVendorCDR_20' ) end [2025-03-15 06:18:17] Production.INFO: ProcessCDR(1,14684254,1,1,2) [2025-03-15 06:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684254', 'tblTempUsageDetail_20' ) start [2025-03-15 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684254', 'tblTempUsageDetail_20' ) end [2025-03-15 06:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 06:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 06:18:21] Production.INFO: ==8994== Releasing lock... [2025-03-15 06:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 06:18:21] Production.INFO: 32 MB #Memory Used# [2025-03-15 06:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 03:19:05 [end_date_ymd] => 2025-03-15 06:19:05 [RateCDR] => 1 ) [2025-03-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-03-15 03:19:05' and `end` < '2025-03-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-03-15 06:19:18] Production.INFO: count ==484 [2025-03-15 06:19:18] Production.ERROR: pbx CDR StartTime 2025-03-15 03:19:05 - End Time 2025-03-15 06:19:05 [2025-03-15 06:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684259', 'tblTempUsageDetail_20' ) start [2025-03-15 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684259', 'tblTempUsageDetail_20' ) end [2025-03-15 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684259', 'tblTempVendorCDR_20' ) start [2025-03-15 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684259', 'tblTempVendorCDR_20' ) end [2025-03-15 06:19:18] Production.INFO: ProcessCDR(1,14684259,1,1,2) [2025-03-15 06:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684259', 'tblTempUsageDetail_20' ) start [2025-03-15 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684259', 'tblTempUsageDetail_20' ) end [2025-03-15 06:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 06:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 06:19:21] Production.INFO: ==9112== Releasing lock... [2025-03-15 06:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 06:19:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-15 06:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 03:20:06 [end_date_ymd] => 2025-03-15 06:20:06 [RateCDR] => 1 ) [2025-03-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-03-15 03:20:06' and `end` < '2025-03-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-03-15 06:20:18] Production.INFO: count ==465 [2025-03-15 06:20:18] Production.ERROR: pbx CDR StartTime 2025-03-15 03:20:06 - End Time 2025-03-15 06:20:06 [2025-03-15 06:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684265', 'tblTempUsageDetail_20' ) start [2025-03-15 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684265', 'tblTempUsageDetail_20' ) end [2025-03-15 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684265', 'tblTempVendorCDR_20' ) start [2025-03-15 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684265', 'tblTempVendorCDR_20' ) end [2025-03-15 06:20:18] Production.INFO: ProcessCDR(1,14684265,1,1,2) [2025-03-15 06:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684265', 'tblTempUsageDetail_20' ) start [2025-03-15 06:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684265', 'tblTempUsageDetail_20' ) end [2025-03-15 06:20:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 06:20:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 06:20:21] Production.INFO: ==9196== Releasing lock... [2025-03-15 06:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 06:20:21] Production.INFO: 32 MB #Memory Used# [2025-03-15 06:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 03:21:05 [end_date_ymd] => 2025-03-15 06:21:05 [RateCDR] => 1 ) [2025-03-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-03-15 03:21:05' and `end` < '2025-03-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-03-15 06:21:17] Production.INFO: count ==440 [2025-03-15 06:21:17] Production.ERROR: pbx CDR StartTime 2025-03-15 03:21:05 - End Time 2025-03-15 06:21:05 [2025-03-15 06:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684270', 'tblTempUsageDetail_20' ) start [2025-03-15 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684270', 'tblTempUsageDetail_20' ) end [2025-03-15 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684270', 'tblTempVendorCDR_20' ) start [2025-03-15 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684270', 'tblTempVendorCDR_20' ) end [2025-03-15 06:21:17] Production.INFO: ProcessCDR(1,14684270,1,1,2) [2025-03-15 06:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684270', 'tblTempUsageDetail_20' ) start [2025-03-15 06:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684270', 'tblTempUsageDetail_20' ) end [2025-03-15 06:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 06:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 06:21:21] Production.INFO: ==9279== Releasing lock... [2025-03-15 06:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 06:21:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-15 06:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 03:22:05 [end_date_ymd] => 2025-03-15 06:22:05 [RateCDR] => 1 ) [2025-03-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-03-15 03:22:05' and `end` < '2025-03-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-03-15 06:22:18] Production.INFO: count ==425 [2025-03-15 06:22:18] Production.ERROR: pbx CDR StartTime 2025-03-15 03:22:05 - End Time 2025-03-15 06:22:05 [2025-03-15 06:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684275', 'tblTempUsageDetail_20' ) start [2025-03-15 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684275', 'tblTempUsageDetail_20' ) end [2025-03-15 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684275', 'tblTempVendorCDR_20' ) start [2025-03-15 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684275', 'tblTempVendorCDR_20' ) end [2025-03-15 06:22:18] Production.INFO: ProcessCDR(1,14684275,1,1,2) [2025-03-15 06:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684275', 'tblTempUsageDetail_20' ) start [2025-03-15 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684275', 'tblTempUsageDetail_20' ) end [2025-03-15 06:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 06:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 06:22:21] Production.INFO: ==9359== Releasing lock... [2025-03-15 06:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 06:22:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-15 06:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 03:23:05 [end_date_ymd] => 2025-03-15 06:23:05 [RateCDR] => 1 ) [2025-03-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-03-15 03:23:05' and `end` < '2025-03-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-03-15 06:23:17] Production.INFO: count ==413 [2025-03-15 06:23:17] Production.ERROR: pbx CDR StartTime 2025-03-15 03:23:05 - End Time 2025-03-15 06:23:05 [2025-03-15 06:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684280', 'tblTempUsageDetail_20' ) start [2025-03-15 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684280', 'tblTempUsageDetail_20' ) end [2025-03-15 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684280', 'tblTempVendorCDR_20' ) start [2025-03-15 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684280', 'tblTempVendorCDR_20' ) end [2025-03-15 06:23:17] Production.INFO: ProcessCDR(1,14684280,1,1,2) [2025-03-15 06:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684280', 'tblTempUsageDetail_20' ) start [2025-03-15 06:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684280', 'tblTempUsageDetail_20' ) end [2025-03-15 06:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 06:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 06:23:21] Production.INFO: ==9440== Releasing lock... [2025-03-15 06:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 06:23:21] Production.INFO: 32 MB #Memory Used# [2025-03-15 06:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 03:24:05 [end_date_ymd] => 2025-03-15 06:24:05 [RateCDR] => 1 ) [2025-03-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-03-15 03:24:05' and `end` < '2025-03-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-03-15 06:24:17] Production.INFO: count ==401 [2025-03-15 06:24:18] Production.ERROR: pbx CDR StartTime 2025-03-15 03:24:05 - End Time 2025-03-15 06:24:05 [2025-03-15 06:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684285', 'tblTempUsageDetail_20' ) start [2025-03-15 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684285', 'tblTempUsageDetail_20' ) end [2025-03-15 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684285', 'tblTempVendorCDR_20' ) start [2025-03-15 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684285', 'tblTempVendorCDR_20' ) end [2025-03-15 06:24:18] Production.INFO: ProcessCDR(1,14684285,1,1,2) [2025-03-15 06:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684285', 'tblTempUsageDetail_20' ) start [2025-03-15 06:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684285', 'tblTempUsageDetail_20' ) end [2025-03-15 06:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 06:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 06:24:21] Production.INFO: ==9521== Releasing lock... [2025-03-15 06:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 06:24:21] Production.INFO: 32 MB #Memory Used# [2025-03-15 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 03:25:05 [end_date_ymd] => 2025-03-15 06:25:05 [RateCDR] => 1 ) [2025-03-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-03-15 03:25:05' and `end` < '2025-03-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-03-15 06:25:18] Production.INFO: count ==401 [2025-03-15 06:25:18] Production.ERROR: pbx CDR StartTime 2025-03-15 03:25:05 - End Time 2025-03-15 06:25:05 [2025-03-15 06:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684290', 'tblTempUsageDetail_20' ) start [2025-03-15 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684290', 'tblTempUsageDetail_20' ) end [2025-03-15 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684290', 'tblTempVendorCDR_20' ) start [2025-03-15 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684290', 'tblTempVendorCDR_20' ) end [2025-03-15 06:25:18] Production.INFO: ProcessCDR(1,14684290,1,1,2) [2025-03-15 06:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684290', 'tblTempUsageDetail_20' ) start [2025-03-15 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684290', 'tblTempUsageDetail_20' ) end [2025-03-15 06:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 06:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 06:25:21] Production.INFO: ==9608== Releasing lock... [2025-03-15 06:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 06:25:21] Production.INFO: 32 MB #Memory Used# [2025-03-15 06:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 03:26:05 [end_date_ymd] => 2025-03-15 06:26:05 [RateCDR] => 1 ) [2025-03-15 06:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 03:26:05' and `end` < '2025-03-15 06:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 06:26:17] Production.INFO: count ==386 [2025-03-15 06:26:17] Production.ERROR: pbx CDR StartTime 2025-03-15 03:26:05 - End Time 2025-03-15 06:26:05 [2025-03-15 06:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684295', 'tblTempUsageDetail_20' ) start [2025-03-15 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684295', 'tblTempUsageDetail_20' ) end [2025-03-15 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684295', 'tblTempVendorCDR_20' ) start [2025-03-15 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684295', 'tblTempVendorCDR_20' ) end [2025-03-15 06:26:17] Production.INFO: ProcessCDR(1,14684295,1,1,2) [2025-03-15 06:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684295', 'tblTempUsageDetail_20' ) start [2025-03-15 06:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684295', 'tblTempUsageDetail_20' ) end [2025-03-15 06:26:20] Production.ERROR: pbx prc_insertCDR start [2025-03-15 06:26:20] Production.ERROR: pbx prc_insertCDR end [2025-03-15 06:26:20] Production.INFO: ==9692== Releasing lock... [2025-03-15 06:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 06:26:20] Production.INFO: 32 MB #Memory Used# [2025-03-15 06:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 03:27:05 [end_date_ymd] => 2025-03-15 06:27:05 [RateCDR] => 1 ) [2025-03-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-03-15 03:27:05' and `end` < '2025-03-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-03-15 06:27:17] Production.INFO: count ==368 [2025-03-15 06:27:17] Production.ERROR: pbx CDR StartTime 2025-03-15 03:27:05 - End Time 2025-03-15 06:27:05 [2025-03-15 06:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684300', 'tblTempUsageDetail_20' ) start [2025-03-15 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684300', 'tblTempUsageDetail_20' ) end [2025-03-15 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684300', 'tblTempVendorCDR_20' ) start [2025-03-15 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684300', 'tblTempVendorCDR_20' ) end [2025-03-15 06:27:17] Production.INFO: ProcessCDR(1,14684300,1,1,2) [2025-03-15 06:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684300', 'tblTempUsageDetail_20' ) start [2025-03-15 06:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684300', 'tblTempUsageDetail_20' ) end [2025-03-15 06:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 06:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 06:27:21] Production.INFO: ==9773== Releasing lock... [2025-03-15 06:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 06:27:21] Production.INFO: 31 MB #Memory Used# [2025-03-15 06:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 03:28:05 [end_date_ymd] => 2025-03-15 06:28:05 [RateCDR] => 1 ) [2025-03-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-03-15 03:28:05' and `end` < '2025-03-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-03-15 06:28:17] Production.INFO: count ==359 [2025-03-15 06:28:17] Production.ERROR: pbx CDR StartTime 2025-03-15 03:28:05 - End Time 2025-03-15 06:28:05 [2025-03-15 06:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684305', 'tblTempUsageDetail_20' ) start [2025-03-15 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684305', 'tblTempUsageDetail_20' ) end [2025-03-15 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684305', 'tblTempVendorCDR_20' ) start [2025-03-15 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684305', 'tblTempVendorCDR_20' ) end [2025-03-15 06:28:17] Production.INFO: ProcessCDR(1,14684305,1,1,2) [2025-03-15 06:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684305', 'tblTempUsageDetail_20' ) start [2025-03-15 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684305', 'tblTempUsageDetail_20' ) end [2025-03-15 06:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 06:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 06:28:21] Production.INFO: ==9853== Releasing lock... [2025-03-15 06:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 06:28:21] Production.INFO: 31 MB #Memory Used# [2025-03-15 06:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 03:29:05 [end_date_ymd] => 2025-03-15 06:29:05 [RateCDR] => 1 ) [2025-03-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-03-15 03:29:05' and `end` < '2025-03-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-03-15 06:29:17] Production.INFO: count ==353 [2025-03-15 06:29:17] Production.ERROR: pbx CDR StartTime 2025-03-15 03:29:05 - End Time 2025-03-15 06:29:05 [2025-03-15 06:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684310', 'tblTempUsageDetail_20' ) start [2025-03-15 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684310', 'tblTempUsageDetail_20' ) end [2025-03-15 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684310', 'tblTempVendorCDR_20' ) start [2025-03-15 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684310', 'tblTempVendorCDR_20' ) end [2025-03-15 06:29:17] Production.INFO: ProcessCDR(1,14684310,1,1,2) [2025-03-15 06:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684310', 'tblTempUsageDetail_20' ) start [2025-03-15 06:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684310', 'tblTempUsageDetail_20' ) end [2025-03-15 06:29:20] Production.ERROR: pbx prc_insertCDR start [2025-03-15 06:29:20] Production.ERROR: pbx prc_insertCDR end [2025-03-15 06:29:20] Production.INFO: ==9938== Releasing lock... [2025-03-15 06:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 06:29:20] Production.INFO: 31 MB #Memory Used# [2025-03-15 06:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 03:30:06 [end_date_ymd] => 2025-03-15 06:30:06 [RateCDR] => 1 ) [2025-03-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-03-15 03:30:06' and `end` < '2025-03-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-03-15 06:30:18] Production.INFO: count ==339 [2025-03-15 06:30:18] Production.ERROR: pbx CDR StartTime 2025-03-15 03:30:06 - End Time 2025-03-15 06:30:06 [2025-03-15 06:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684315', 'tblTempUsageDetail_20' ) start [2025-03-15 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684315', 'tblTempUsageDetail_20' ) end [2025-03-15 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684315', 'tblTempVendorCDR_20' ) start [2025-03-15 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684315', 'tblTempVendorCDR_20' ) end [2025-03-15 06:30:18] Production.INFO: ProcessCDR(1,14684315,1,1,2) [2025-03-15 06:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684315', 'tblTempUsageDetail_20' ) start [2025-03-15 06:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684315', 'tblTempUsageDetail_20' ) end [2025-03-15 06:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 06:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 06:30:22] Production.INFO: ==10024== Releasing lock... [2025-03-15 06:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 06:30:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-15 06:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 03:31:05 [end_date_ymd] => 2025-03-15 06:31:05 [RateCDR] => 1 ) [2025-03-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-03-15 03:31:05' and `end` < '2025-03-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-03-15 06:31:17] Production.INFO: count ==322 [2025-03-15 06:31:17] Production.ERROR: pbx CDR StartTime 2025-03-15 03:31:05 - End Time 2025-03-15 06:31:05 [2025-03-15 06:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684321', 'tblTempUsageDetail_20' ) start [2025-03-15 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684321', 'tblTempUsageDetail_20' ) end [2025-03-15 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684321', 'tblTempVendorCDR_20' ) start [2025-03-15 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684321', 'tblTempVendorCDR_20' ) end [2025-03-15 06:31:17] Production.INFO: ProcessCDR(1,14684321,1,1,2) [2025-03-15 06:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684321', 'tblTempUsageDetail_20' ) start [2025-03-15 06:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684321', 'tblTempUsageDetail_20' ) end [2025-03-15 06:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 06:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 06:31:21] Production.INFO: ==10109== Releasing lock... [2025-03-15 06:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 06:31:21] Production.INFO: 31 MB #Memory Used# [2025-03-15 06:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 03:32:05 [end_date_ymd] => 2025-03-15 06:32:05 [RateCDR] => 1 ) [2025-03-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-03-15 03:32:05' and `end` < '2025-03-15 06:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 06:32:18] Production.INFO: count ==313 [2025-03-15 06:32:18] Production.ERROR: pbx CDR StartTime 2025-03-15 03:32:05 - End Time 2025-03-15 06:32:05 [2025-03-15 06:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684326', 'tblTempUsageDetail_20' ) start [2025-03-15 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684326', 'tblTempUsageDetail_20' ) end [2025-03-15 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684326', 'tblTempVendorCDR_20' ) start [2025-03-15 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684326', 'tblTempVendorCDR_20' ) end [2025-03-15 06:32:18] Production.INFO: ProcessCDR(1,14684326,1,1,2) [2025-03-15 06:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684326', 'tblTempUsageDetail_20' ) start [2025-03-15 06:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684326', 'tblTempUsageDetail_20' ) end [2025-03-15 06:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 06:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 06:32:21] Production.INFO: ==10232== Releasing lock... [2025-03-15 06:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 06:32:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-15 06:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 03:33:05 [end_date_ymd] => 2025-03-15 06:33:05 [RateCDR] => 1 ) [2025-03-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-03-15 03:33:05' and `end` < '2025-03-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-03-15 06:33:17] Production.INFO: count ==287 [2025-03-15 06:33:17] Production.ERROR: pbx CDR StartTime 2025-03-15 03:33:05 - End Time 2025-03-15 06:33:05 [2025-03-15 06:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684331', 'tblTempUsageDetail_20' ) start [2025-03-15 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684331', 'tblTempUsageDetail_20' ) end [2025-03-15 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684331', 'tblTempVendorCDR_20' ) start [2025-03-15 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684331', 'tblTempVendorCDR_20' ) end [2025-03-15 06:33:17] Production.INFO: ProcessCDR(1,14684331,1,1,2) [2025-03-15 06:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684331', 'tblTempUsageDetail_20' ) start [2025-03-15 06:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684331', 'tblTempUsageDetail_20' ) end [2025-03-15 06:33:20] Production.ERROR: pbx prc_insertCDR start [2025-03-15 06:33:20] Production.ERROR: pbx prc_insertCDR end [2025-03-15 06:33:20] Production.INFO: ==10319== Releasing lock... [2025-03-15 06:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 06:33:20] Production.INFO: 31 MB #Memory Used# [2025-03-15 06:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 03:34:05 [end_date_ymd] => 2025-03-15 06:34:05 [RateCDR] => 1 ) [2025-03-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-03-15 03:34:05' and `end` < '2025-03-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-03-15 06:34:17] Production.INFO: count ==279 [2025-03-15 06:34:17] Production.ERROR: pbx CDR StartTime 2025-03-15 03:34:05 - End Time 2025-03-15 06:34:05 [2025-03-15 06:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684336', 'tblTempUsageDetail_20' ) start [2025-03-15 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684336', 'tblTempUsageDetail_20' ) end [2025-03-15 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684336', 'tblTempVendorCDR_20' ) start [2025-03-15 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684336', 'tblTempVendorCDR_20' ) end [2025-03-15 06:34:17] Production.INFO: ProcessCDR(1,14684336,1,1,2) [2025-03-15 06:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684336', 'tblTempUsageDetail_20' ) start [2025-03-15 06:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684336', 'tblTempUsageDetail_20' ) end [2025-03-15 06:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 06:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 06:34:21] Production.INFO: ==10405== Releasing lock... [2025-03-15 06:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 06:34:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-15 06:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 03:35:05 [end_date_ymd] => 2025-03-15 06:35:05 [RateCDR] => 1 ) [2025-03-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-03-15 03:35:05' and `end` < '2025-03-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-03-15 06:35:17] Production.INFO: count ==273 [2025-03-15 06:35:17] Production.ERROR: pbx CDR StartTime 2025-03-15 03:35:05 - End Time 2025-03-15 06:35:05 [2025-03-15 06:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684341', 'tblTempUsageDetail_20' ) start [2025-03-15 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684341', 'tblTempUsageDetail_20' ) end [2025-03-15 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684341', 'tblTempVendorCDR_20' ) start [2025-03-15 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684341', 'tblTempVendorCDR_20' ) end [2025-03-15 06:35:17] Production.INFO: ProcessCDR(1,14684341,1,1,2) [2025-03-15 06:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684341', 'tblTempUsageDetail_20' ) start [2025-03-15 06:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684341', 'tblTempUsageDetail_20' ) end [2025-03-15 06:35:20] Production.ERROR: pbx prc_insertCDR start [2025-03-15 06:35:20] Production.ERROR: pbx prc_insertCDR end [2025-03-15 06:35:20] Production.INFO: ==10480== Releasing lock... [2025-03-15 06:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 06:35:20] Production.INFO: 30.5 MB #Memory Used# [2025-03-15 06:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 03:36:05 [end_date_ymd] => 2025-03-15 06:36:05 [RateCDR] => 1 ) [2025-03-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-03-15 03:36:05' and `end` < '2025-03-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-03-15 06:36:17] Production.INFO: count ==273 [2025-03-15 06:36:17] Production.ERROR: pbx CDR StartTime 2025-03-15 03:36:05 - End Time 2025-03-15 06:36:05 [2025-03-15 06:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684346', 'tblTempUsageDetail_20' ) start [2025-03-15 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684346', 'tblTempUsageDetail_20' ) end [2025-03-15 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684346', 'tblTempVendorCDR_20' ) start [2025-03-15 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684346', 'tblTempVendorCDR_20' ) end [2025-03-15 06:36:17] Production.INFO: ProcessCDR(1,14684346,1,1,2) [2025-03-15 06:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684346', 'tblTempUsageDetail_20' ) start [2025-03-15 06:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684346', 'tblTempUsageDetail_20' ) end [2025-03-15 06:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 06:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 06:36:21] Production.INFO: ==10553== Releasing lock... [2025-03-15 06:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 06:36:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-15 06:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 03:37:05 [end_date_ymd] => 2025-03-15 06:37:05 [RateCDR] => 1 ) [2025-03-15 06:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 03:37:05' and `end` < '2025-03-15 06:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 06:37:17] Production.INFO: count ==272 [2025-03-15 06:37:17] Production.ERROR: pbx CDR StartTime 2025-03-15 03:37:05 - End Time 2025-03-15 06:37:05 [2025-03-15 06:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684351', 'tblTempUsageDetail_20' ) start [2025-03-15 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684351', 'tblTempUsageDetail_20' ) end [2025-03-15 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684351', 'tblTempVendorCDR_20' ) start [2025-03-15 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684351', 'tblTempVendorCDR_20' ) end [2025-03-15 06:37:17] Production.INFO: ProcessCDR(1,14684351,1,1,2) [2025-03-15 06:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684351', 'tblTempUsageDetail_20' ) start [2025-03-15 06:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684351', 'tblTempUsageDetail_20' ) end [2025-03-15 06:37:20] Production.ERROR: pbx prc_insertCDR start [2025-03-15 06:37:20] Production.ERROR: pbx prc_insertCDR end [2025-03-15 06:37:20] Production.INFO: ==10625== Releasing lock... [2025-03-15 06:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 06:37:20] Production.INFO: 30.5 MB #Memory Used# [2025-03-15 06:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 03:38:05 [end_date_ymd] => 2025-03-15 06:38:05 [RateCDR] => 1 ) [2025-03-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-03-15 03:38:05' and `end` < '2025-03-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-03-15 06:38:17] Production.INFO: count ==272 [2025-03-15 06:38:17] Production.ERROR: pbx CDR StartTime 2025-03-15 03:38:05 - End Time 2025-03-15 06:38:05 [2025-03-15 06:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684356', 'tblTempUsageDetail_20' ) start [2025-03-15 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684356', 'tblTempUsageDetail_20' ) end [2025-03-15 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684356', 'tblTempVendorCDR_20' ) start [2025-03-15 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684356', 'tblTempVendorCDR_20' ) end [2025-03-15 06:38:17] Production.INFO: ProcessCDR(1,14684356,1,1,2) [2025-03-15 06:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684356', 'tblTempUsageDetail_20' ) start [2025-03-15 06:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684356', 'tblTempUsageDetail_20' ) end [2025-03-15 06:38:20] Production.ERROR: pbx prc_insertCDR start [2025-03-15 06:38:20] Production.ERROR: pbx prc_insertCDR end [2025-03-15 06:38:20] Production.INFO: ==10701== Releasing lock... [2025-03-15 06:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 06:38:20] Production.INFO: 30.5 MB #Memory Used# [2025-03-15 06:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 03:39:05 [end_date_ymd] => 2025-03-15 06:39:05 [RateCDR] => 1 ) [2025-03-15 06:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 03:39:05' and `end` < '2025-03-15 06:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 06:39:17] Production.INFO: count ==271 [2025-03-15 06:39:17] Production.ERROR: pbx CDR StartTime 2025-03-15 03:39:05 - End Time 2025-03-15 06:39:05 [2025-03-15 06:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684361', 'tblTempUsageDetail_20' ) start [2025-03-15 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684361', 'tblTempUsageDetail_20' ) end [2025-03-15 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684361', 'tblTempVendorCDR_20' ) start [2025-03-15 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684361', 'tblTempVendorCDR_20' ) end [2025-03-15 06:39:17] Production.INFO: ProcessCDR(1,14684361,1,1,2) [2025-03-15 06:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684361', 'tblTempUsageDetail_20' ) start [2025-03-15 06:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684361', 'tblTempUsageDetail_20' ) end [2025-03-15 06:39:20] Production.ERROR: pbx prc_insertCDR start [2025-03-15 06:39:20] Production.ERROR: pbx prc_insertCDR end [2025-03-15 06:39:20] Production.INFO: ==10776== Releasing lock... [2025-03-15 06:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 06:39:20] Production.INFO: 30.25 MB #Memory Used# [2025-03-15 06:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 03:40:06 [end_date_ymd] => 2025-03-15 06:40:06 [RateCDR] => 1 ) [2025-03-15 06:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 03:40:06' and `end` < '2025-03-15 06:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 06:40:18] Production.INFO: count ==271 [2025-03-15 06:40:18] Production.ERROR: pbx CDR StartTime 2025-03-15 03:40:06 - End Time 2025-03-15 06:40:06 [2025-03-15 06:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684367', 'tblTempUsageDetail_20' ) start [2025-03-15 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684367', 'tblTempUsageDetail_20' ) end [2025-03-15 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684367', 'tblTempVendorCDR_20' ) start [2025-03-15 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684367', 'tblTempVendorCDR_20' ) end [2025-03-15 06:40:18] Production.INFO: ProcessCDR(1,14684367,1,1,2) [2025-03-15 06:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684367', 'tblTempUsageDetail_20' ) start [2025-03-15 06:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684367', 'tblTempUsageDetail_20' ) end [2025-03-15 06:40:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 06:40:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 06:40:21] Production.INFO: ==10850== Releasing lock... [2025-03-15 06:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 06:40:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-15 06:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 03:41:05 [end_date_ymd] => 2025-03-15 06:41:05 [RateCDR] => 1 ) [2025-03-15 06:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 03:41:05' and `end` < '2025-03-15 06:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 06:41:18] Production.INFO: count ==268 [2025-03-15 06:41:18] Production.ERROR: pbx CDR StartTime 2025-03-15 03:41:05 - End Time 2025-03-15 06:41:05 [2025-03-15 06:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684372', 'tblTempUsageDetail_20' ) start [2025-03-15 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684372', 'tblTempUsageDetail_20' ) end [2025-03-15 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684372', 'tblTempVendorCDR_20' ) start [2025-03-15 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684372', 'tblTempVendorCDR_20' ) end [2025-03-15 06:41:18] Production.INFO: ProcessCDR(1,14684372,1,1,2) [2025-03-15 06:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684372', 'tblTempUsageDetail_20' ) start [2025-03-15 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684372', 'tblTempUsageDetail_20' ) end [2025-03-15 06:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 06:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 06:41:21] Production.INFO: ==10927== Releasing lock... [2025-03-15 06:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 06:41:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-15 06:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 03:42:05 [end_date_ymd] => 2025-03-15 06:42:05 [RateCDR] => 1 ) [2025-03-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-03-15 03:42:05' and `end` < '2025-03-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-03-15 06:42:17] Production.INFO: count ==266 [2025-03-15 06:42:17] Production.ERROR: pbx CDR StartTime 2025-03-15 03:42:05 - End Time 2025-03-15 06:42:05 [2025-03-15 06:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684377', 'tblTempUsageDetail_20' ) start [2025-03-15 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684377', 'tblTempUsageDetail_20' ) end [2025-03-15 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684377', 'tblTempVendorCDR_20' ) start [2025-03-15 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684377', 'tblTempVendorCDR_20' ) end [2025-03-15 06:42:17] Production.INFO: ProcessCDR(1,14684377,1,1,2) [2025-03-15 06:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684377', 'tblTempUsageDetail_20' ) start [2025-03-15 06:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684377', 'tblTempUsageDetail_20' ) end [2025-03-15 06:42:20] Production.ERROR: pbx prc_insertCDR start [2025-03-15 06:42:20] Production.ERROR: pbx prc_insertCDR end [2025-03-15 06:42:20] Production.INFO: ==10997== Releasing lock... [2025-03-15 06:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 06:42:20] Production.INFO: 30.5 MB #Memory Used# [2025-03-15 06:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 03:43:05 [end_date_ymd] => 2025-03-15 06:43:05 [RateCDR] => 1 ) [2025-03-15 06:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 03:43:05' and `end` < '2025-03-15 06:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 06:43:18] Production.INFO: count ==262 [2025-03-15 06:43:18] Production.ERROR: pbx CDR StartTime 2025-03-15 03:43:05 - End Time 2025-03-15 06:43:05 [2025-03-15 06:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684382', 'tblTempUsageDetail_20' ) start [2025-03-15 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684382', 'tblTempUsageDetail_20' ) end [2025-03-15 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684382', 'tblTempVendorCDR_20' ) start [2025-03-15 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684382', 'tblTempVendorCDR_20' ) end [2025-03-15 06:43:18] Production.INFO: ProcessCDR(1,14684382,1,1,2) [2025-03-15 06:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684382', 'tblTempUsageDetail_20' ) start [2025-03-15 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684382', 'tblTempUsageDetail_20' ) end [2025-03-15 06:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 06:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 06:43:21] Production.INFO: ==11070== Releasing lock... [2025-03-15 06:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 06:43:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-15 06:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 03:44:04 [end_date_ymd] => 2025-03-15 06:44:04 [RateCDR] => 1 ) [2025-03-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-03-15 03:44:04' and `end` < '2025-03-15 06:44:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 06:44:17] Production.INFO: count ==258 [2025-03-15 06:44:17] Production.ERROR: pbx CDR StartTime 2025-03-15 03:44:04 - End Time 2025-03-15 06:44:04 [2025-03-15 06:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684387', 'tblTempUsageDetail_20' ) start [2025-03-15 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684387', 'tblTempUsageDetail_20' ) end [2025-03-15 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684387', 'tblTempVendorCDR_20' ) start [2025-03-15 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684387', 'tblTempVendorCDR_20' ) end [2025-03-15 06:44:17] Production.INFO: ProcessCDR(1,14684387,1,1,2) [2025-03-15 06:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684387', 'tblTempUsageDetail_20' ) start [2025-03-15 06:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684387', 'tblTempUsageDetail_20' ) end [2025-03-15 06:44:20] Production.ERROR: pbx prc_insertCDR start [2025-03-15 06:44:20] Production.ERROR: pbx prc_insertCDR end [2025-03-15 06:44:20] Production.INFO: ==11142== Releasing lock... [2025-03-15 06:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 06:44:20] Production.INFO: 30.25 MB #Memory Used# [2025-03-15 06:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 03:45:05 [end_date_ymd] => 2025-03-15 06:45:05 [RateCDR] => 1 ) [2025-03-15 06:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 03:45:05' and `end` < '2025-03-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-03-15 06:45:17] Production.INFO: count ==258 [2025-03-15 06:45:17] Production.ERROR: pbx CDR StartTime 2025-03-15 03:45:05 - End Time 2025-03-15 06:45:05 [2025-03-15 06:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684392', 'tblTempUsageDetail_20' ) start [2025-03-15 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684392', 'tblTempUsageDetail_20' ) end [2025-03-15 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684392', 'tblTempVendorCDR_20' ) start [2025-03-15 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684392', 'tblTempVendorCDR_20' ) end [2025-03-15 06:45:17] Production.INFO: ProcessCDR(1,14684392,1,1,2) [2025-03-15 06:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684392', 'tblTempUsageDetail_20' ) start [2025-03-15 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684392', 'tblTempUsageDetail_20' ) end [2025-03-15 06:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 06:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 06:45:21] Production.INFO: ==11221== Releasing lock... [2025-03-15 06:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 06:45:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-15 06:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 03:46:05 [end_date_ymd] => 2025-03-15 06:46:05 [RateCDR] => 1 ) [2025-03-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-03-15 03:46:05' and `end` < '2025-03-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-03-15 06:46:17] Production.INFO: count ==258 [2025-03-15 06:46:17] Production.ERROR: pbx CDR StartTime 2025-03-15 03:46:05 - End Time 2025-03-15 06:46:05 [2025-03-15 06:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684397', 'tblTempUsageDetail_20' ) start [2025-03-15 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684397', 'tblTempUsageDetail_20' ) end [2025-03-15 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684397', 'tblTempVendorCDR_20' ) start [2025-03-15 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684397', 'tblTempVendorCDR_20' ) end [2025-03-15 06:46:17] Production.INFO: ProcessCDR(1,14684397,1,1,2) [2025-03-15 06:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684397', 'tblTempUsageDetail_20' ) start [2025-03-15 06:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684397', 'tblTempUsageDetail_20' ) end [2025-03-15 06:46:20] Production.ERROR: pbx prc_insertCDR start [2025-03-15 06:46:20] Production.ERROR: pbx prc_insertCDR end [2025-03-15 06:46:20] Production.INFO: ==11292== Releasing lock... [2025-03-15 06:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 06:46:20] Production.INFO: 30.25 MB #Memory Used# [2025-03-15 06:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 03:47:06 [end_date_ymd] => 2025-03-15 06:47:06 [RateCDR] => 1 ) [2025-03-15 06:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 03:47:06' and `end` < '2025-03-15 06:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 06:47:18] Production.INFO: count ==262 [2025-03-15 06:47:18] Production.ERROR: pbx CDR StartTime 2025-03-15 03:47:06 - End Time 2025-03-15 06:47:06 [2025-03-15 06:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684402', 'tblTempUsageDetail_20' ) start [2025-03-15 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684402', 'tblTempUsageDetail_20' ) end [2025-03-15 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684402', 'tblTempVendorCDR_20' ) start [2025-03-15 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684402', 'tblTempVendorCDR_20' ) end [2025-03-15 06:47:18] Production.INFO: ProcessCDR(1,14684402,1,1,2) [2025-03-15 06:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684402', 'tblTempUsageDetail_20' ) start [2025-03-15 06:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684402', 'tblTempUsageDetail_20' ) end [2025-03-15 06:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 06:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 06:47:21] Production.INFO: ==11404== Releasing lock... [2025-03-15 06:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 06:47:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-15 06:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 03:48:05 [end_date_ymd] => 2025-03-15 06:48:05 [RateCDR] => 1 ) [2025-03-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-03-15 03:48:05' and `end` < '2025-03-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-03-15 06:48:17] Production.INFO: count ==256 [2025-03-15 06:48:17] Production.ERROR: pbx CDR StartTime 2025-03-15 03:48:05 - End Time 2025-03-15 06:48:05 [2025-03-15 06:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684407', 'tblTempUsageDetail_20' ) start [2025-03-15 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684407', 'tblTempUsageDetail_20' ) end [2025-03-15 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684407', 'tblTempVendorCDR_20' ) start [2025-03-15 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684407', 'tblTempVendorCDR_20' ) end [2025-03-15 06:48:17] Production.INFO: ProcessCDR(1,14684407,1,1,2) [2025-03-15 06:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684407', 'tblTempUsageDetail_20' ) start [2025-03-15 06:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684407', 'tblTempUsageDetail_20' ) end [2025-03-15 06:48:20] Production.ERROR: pbx prc_insertCDR start [2025-03-15 06:48:20] Production.ERROR: pbx prc_insertCDR end [2025-03-15 06:48:20] Production.INFO: ==11483== Releasing lock... [2025-03-15 06:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 06:48:20] Production.INFO: 30.25 MB #Memory Used# [2025-03-15 06:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 03:49:05 [end_date_ymd] => 2025-03-15 06:49:05 [RateCDR] => 1 ) [2025-03-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-03-15 03:49:05' and `end` < '2025-03-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-03-15 06:49:17] Production.INFO: count ==245 [2025-03-15 06:49:17] Production.ERROR: pbx CDR StartTime 2025-03-15 03:49:05 - End Time 2025-03-15 06:49:05 [2025-03-15 06:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684412', 'tblTempUsageDetail_20' ) start [2025-03-15 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684412', 'tblTempUsageDetail_20' ) end [2025-03-15 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684412', 'tblTempVendorCDR_20' ) start [2025-03-15 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684412', 'tblTempVendorCDR_20' ) end [2025-03-15 06:49:17] Production.INFO: ProcessCDR(1,14684412,1,1,2) [2025-03-15 06:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684412', 'tblTempUsageDetail_20' ) start [2025-03-15 06:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684412', 'tblTempUsageDetail_20' ) end [2025-03-15 06:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 06:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 06:49:21] Production.INFO: ==11558== Releasing lock... [2025-03-15 06:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 06:49:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-15 06:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 03:50:07 [end_date_ymd] => 2025-03-15 06:50:07 [RateCDR] => 1 ) [2025-03-15 06:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 03:50:07' and `end` < '2025-03-15 06:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 06:50:20] Production.INFO: count ==227 [2025-03-15 06:50:20] Production.ERROR: pbx CDR StartTime 2025-03-15 03:50:07 - End Time 2025-03-15 06:50:07 [2025-03-15 06:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 06:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684418', 'tblTempUsageDetail_20' ) start [2025-03-15 06:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684418', 'tblTempUsageDetail_20' ) end [2025-03-15 06:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684418', 'tblTempVendorCDR_20' ) start [2025-03-15 06:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684418', 'tblTempVendorCDR_20' ) end [2025-03-15 06:50:20] Production.INFO: ProcessCDR(1,14684418,1,1,2) [2025-03-15 06:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684418', 'tblTempUsageDetail_20' ) start [2025-03-15 06:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684418', 'tblTempUsageDetail_20' ) end [2025-03-15 06:50:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 06:50:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 06:50:23] Production.INFO: ==11633== Releasing lock... [2025-03-15 06:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 06:50:23] Production.INFO: 30.25 MB #Memory Used# [2025-03-15 06:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 03:51:05 [end_date_ymd] => 2025-03-15 06:51:05 [RateCDR] => 1 ) [2025-03-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-03-15 03:51:05' and `end` < '2025-03-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-03-15 06:51:17] Production.INFO: count ==207 [2025-03-15 06:51:17] Production.ERROR: pbx CDR StartTime 2025-03-15 03:51:05 - End Time 2025-03-15 06:51:05 [2025-03-15 06:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684423', 'tblTempUsageDetail_20' ) start [2025-03-15 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684423', 'tblTempUsageDetail_20' ) end [2025-03-15 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684423', 'tblTempVendorCDR_20' ) start [2025-03-15 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684423', 'tblTempVendorCDR_20' ) end [2025-03-15 06:51:17] Production.INFO: ProcessCDR(1,14684423,1,1,2) [2025-03-15 06:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684423', 'tblTempUsageDetail_20' ) start [2025-03-15 06:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684423', 'tblTempUsageDetail_20' ) end [2025-03-15 06:51:20] Production.ERROR: pbx prc_insertCDR start [2025-03-15 06:51:20] Production.ERROR: pbx prc_insertCDR end [2025-03-15 06:51:20] Production.INFO: ==11706== Releasing lock... [2025-03-15 06:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 06:51:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-15 06:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 03:52:06 [end_date_ymd] => 2025-03-15 06:52:06 [RateCDR] => 1 ) [2025-03-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-03-15 03:52:06' and `end` < '2025-03-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-03-15 06:52:18] Production.INFO: count ==205 [2025-03-15 06:52:18] Production.ERROR: pbx CDR StartTime 2025-03-15 03:52:06 - End Time 2025-03-15 06:52:06 [2025-03-15 06:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684428', 'tblTempUsageDetail_20' ) start [2025-03-15 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684428', 'tblTempUsageDetail_20' ) end [2025-03-15 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684428', 'tblTempVendorCDR_20' ) start [2025-03-15 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684428', 'tblTempVendorCDR_20' ) end [2025-03-15 06:52:18] Production.INFO: ProcessCDR(1,14684428,1,1,2) [2025-03-15 06:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684428', 'tblTempUsageDetail_20' ) start [2025-03-15 06:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684428', 'tblTempUsageDetail_20' ) end [2025-03-15 06:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 06:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 06:52:21] Production.INFO: ==11780== Releasing lock... [2025-03-15 06:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 06:52:21] Production.INFO: 30 MB #Memory Used# [2025-03-15 06:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 03:53:05 [end_date_ymd] => 2025-03-15 06:53:05 [RateCDR] => 1 ) [2025-03-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-03-15 03:53:05' and `end` < '2025-03-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-03-15 06:53:17] Production.INFO: count ==204 [2025-03-15 06:53:17] Production.ERROR: pbx CDR StartTime 2025-03-15 03:53:05 - End Time 2025-03-15 06:53:05 [2025-03-15 06:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684433', 'tblTempUsageDetail_20' ) start [2025-03-15 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684433', 'tblTempUsageDetail_20' ) end [2025-03-15 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684433', 'tblTempVendorCDR_20' ) start [2025-03-15 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684433', 'tblTempVendorCDR_20' ) end [2025-03-15 06:53:17] Production.INFO: ProcessCDR(1,14684433,1,1,2) [2025-03-15 06:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684433', 'tblTempUsageDetail_20' ) start [2025-03-15 06:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684433', 'tblTempUsageDetail_20' ) end [2025-03-15 06:53:20] Production.ERROR: pbx prc_insertCDR start [2025-03-15 06:53:20] Production.ERROR: pbx prc_insertCDR end [2025-03-15 06:53:20] Production.INFO: ==11852== Releasing lock... [2025-03-15 06:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 06:53:20] Production.INFO: 30 MB #Memory Used# [2025-03-15 06:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 03:54:05 [end_date_ymd] => 2025-03-15 06:54:05 [RateCDR] => 1 ) [2025-03-15 06:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 03:54:05' and `end` < '2025-03-15 06:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 06:54:18] Production.INFO: count ==204 [2025-03-15 06:54:18] Production.ERROR: pbx CDR StartTime 2025-03-15 03:54:05 - End Time 2025-03-15 06:54:05 [2025-03-15 06:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684438', 'tblTempUsageDetail_20' ) start [2025-03-15 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684438', 'tblTempUsageDetail_20' ) end [2025-03-15 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684438', 'tblTempVendorCDR_20' ) start [2025-03-15 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684438', 'tblTempVendorCDR_20' ) end [2025-03-15 06:54:18] Production.INFO: ProcessCDR(1,14684438,1,1,2) [2025-03-15 06:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684438', 'tblTempUsageDetail_20' ) start [2025-03-15 06:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684438', 'tblTempUsageDetail_20' ) end [2025-03-15 06:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 06:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 06:54:21] Production.INFO: ==11938== Releasing lock... [2025-03-15 06:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 06:54:21] Production.INFO: 30 MB #Memory Used# [2025-03-15 06:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 03:55:05 [end_date_ymd] => 2025-03-15 06:55:05 [RateCDR] => 1 ) [2025-03-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-03-15 03:55:05' and `end` < '2025-03-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-03-15 06:55:17] Production.INFO: count ==196 [2025-03-15 06:55:17] Production.ERROR: pbx CDR StartTime 2025-03-15 03:55:05 - End Time 2025-03-15 06:55:05 [2025-03-15 06:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684443', 'tblTempUsageDetail_20' ) start [2025-03-15 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684443', 'tblTempUsageDetail_20' ) end [2025-03-15 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684443', 'tblTempVendorCDR_20' ) start [2025-03-15 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684443', 'tblTempVendorCDR_20' ) end [2025-03-15 06:55:17] Production.INFO: ProcessCDR(1,14684443,1,1,2) [2025-03-15 06:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684443', 'tblTempUsageDetail_20' ) start [2025-03-15 06:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684443', 'tblTempUsageDetail_20' ) end [2025-03-15 06:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 06:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 06:55:21] Production.INFO: ==12032== Releasing lock... [2025-03-15 06:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 06:55:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-15 06:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 03:56:05 [end_date_ymd] => 2025-03-15 06:56:05 [RateCDR] => 1 ) [2025-03-15 06:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 03:56:05' and `end` < '2025-03-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-03-15 06:56:18] Production.INFO: count ==195 [2025-03-15 06:56:18] Production.ERROR: pbx CDR StartTime 2025-03-15 03:56:05 - End Time 2025-03-15 06:56:05 [2025-03-15 06:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684448', 'tblTempUsageDetail_20' ) start [2025-03-15 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684448', 'tblTempUsageDetail_20' ) end [2025-03-15 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684448', 'tblTempVendorCDR_20' ) start [2025-03-15 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684448', 'tblTempVendorCDR_20' ) end [2025-03-15 06:56:18] Production.INFO: ProcessCDR(1,14684448,1,1,2) [2025-03-15 06:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684448', 'tblTempUsageDetail_20' ) start [2025-03-15 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684448', 'tblTempUsageDetail_20' ) end [2025-03-15 06:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 06:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 06:56:21] Production.INFO: ==12132== Releasing lock... [2025-03-15 06:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 06:56:21] Production.INFO: 30 MB #Memory Used# [2025-03-15 06:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 03:57:05 [end_date_ymd] => 2025-03-15 06:57:05 [RateCDR] => 1 ) [2025-03-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-03-15 03:57:05' and `end` < '2025-03-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-03-15 06:57:17] Production.INFO: count ==192 [2025-03-15 06:57:17] Production.ERROR: pbx CDR StartTime 2025-03-15 03:57:05 - End Time 2025-03-15 06:57:05 [2025-03-15 06:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684453', 'tblTempUsageDetail_20' ) start [2025-03-15 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684453', 'tblTempUsageDetail_20' ) end [2025-03-15 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684453', 'tblTempVendorCDR_20' ) start [2025-03-15 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684453', 'tblTempVendorCDR_20' ) end [2025-03-15 06:57:17] Production.INFO: ProcessCDR(1,14684453,1,1,2) [2025-03-15 06:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684453', 'tblTempUsageDetail_20' ) start [2025-03-15 06:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684453', 'tblTempUsageDetail_20' ) end [2025-03-15 06:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 06:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 06:57:21] Production.INFO: ==12232== Releasing lock... [2025-03-15 06:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 06:57:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-15 06:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 03:58:06 [end_date_ymd] => 2025-03-15 06:58:06 [RateCDR] => 1 ) [2025-03-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-03-15 03:58:06' and `end` < '2025-03-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-03-15 06:58:18] Production.INFO: count ==192 [2025-03-15 06:58:18] Production.ERROR: pbx CDR StartTime 2025-03-15 03:58:06 - End Time 2025-03-15 06:58:06 [2025-03-15 06:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684458', 'tblTempUsageDetail_20' ) start [2025-03-15 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684458', 'tblTempUsageDetail_20' ) end [2025-03-15 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684458', 'tblTempVendorCDR_20' ) start [2025-03-15 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684458', 'tblTempVendorCDR_20' ) end [2025-03-15 06:58:18] Production.INFO: ProcessCDR(1,14684458,1,1,2) [2025-03-15 06:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684458', 'tblTempUsageDetail_20' ) start [2025-03-15 06:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684458', 'tblTempUsageDetail_20' ) end [2025-03-15 06:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 06:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 06:58:21] Production.INFO: ==12331== Releasing lock... [2025-03-15 06:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 06:58:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-15 06:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 03:59:05 [end_date_ymd] => 2025-03-15 06:59:05 [RateCDR] => 1 ) [2025-03-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-03-15 03:59:05' and `end` < '2025-03-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-03-15 06:59:17] Production.INFO: count ==182 [2025-03-15 06:59:17] Production.ERROR: pbx CDR StartTime 2025-03-15 03:59:05 - End Time 2025-03-15 06:59:05 [2025-03-15 06:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684463', 'tblTempUsageDetail_20' ) start [2025-03-15 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684463', 'tblTempUsageDetail_20' ) end [2025-03-15 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684463', 'tblTempVendorCDR_20' ) start [2025-03-15 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684463', 'tblTempVendorCDR_20' ) end [2025-03-15 06:59:17] Production.INFO: ProcessCDR(1,14684463,1,1,2) [2025-03-15 06:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 06:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 06:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684463', 'tblTempUsageDetail_20' ) start [2025-03-15 06:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684463', 'tblTempUsageDetail_20' ) end [2025-03-15 06:59:20] Production.ERROR: pbx prc_insertCDR start [2025-03-15 06:59:20] Production.ERROR: pbx prc_insertCDR end [2025-03-15 06:59:20] Production.INFO: ==12436== Releasing lock... [2025-03-15 06:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 06:59:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-15 07:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 04:00:06 [end_date_ymd] => 2025-03-15 07:00:06 [RateCDR] => 1 ) [2025-03-15 07:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 04:00:06' and `end` < '2025-03-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-03-15 07:00:19] Production.INFO: count ==167 [2025-03-15 07:00:19] Production.ERROR: pbx CDR StartTime 2025-03-15 04:00:06 - End Time 2025-03-15 07:00:06 [2025-03-15 07:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684469', 'tblTempUsageDetail_20' ) start [2025-03-15 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684469', 'tblTempUsageDetail_20' ) end [2025-03-15 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684469', 'tblTempVendorCDR_20' ) start [2025-03-15 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684469', 'tblTempVendorCDR_20' ) end [2025-03-15 07:00:19] Production.INFO: ProcessCDR(1,14684469,1,1,2) [2025-03-15 07:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684469', 'tblTempUsageDetail_20' ) start [2025-03-15 07:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684469', 'tblTempUsageDetail_20' ) end [2025-03-15 07:00:24] Production.ERROR: pbx prc_insertCDR start [2025-03-15 07:00:24] Production.ERROR: pbx prc_insertCDR end [2025-03-15 07:00:24] Production.INFO: ==12537== Releasing lock... [2025-03-15 07:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 07:00:24] Production.INFO: 29.5 MB #Memory Used# [2025-03-15 07:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 04:01:05 [end_date_ymd] => 2025-03-15 07:01:05 [RateCDR] => 1 ) [2025-03-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-03-15 04:01:05' and `end` < '2025-03-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-03-15 07:01:17] Production.INFO: count ==165 [2025-03-15 07:01:17] Production.ERROR: pbx CDR StartTime 2025-03-15 04:01:05 - End Time 2025-03-15 07:01:05 [2025-03-15 07:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 07:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684474', 'tblTempUsageDetail_20' ) start [2025-03-15 07:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684474', 'tblTempUsageDetail_20' ) end [2025-03-15 07:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684474', 'tblTempVendorCDR_20' ) start [2025-03-15 07:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684474', 'tblTempVendorCDR_20' ) end [2025-03-15 07:01:17] Production.INFO: ProcessCDR(1,14684474,1,1,2) [2025-03-15 07:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684474', 'tblTempUsageDetail_20' ) start [2025-03-15 07:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684474', 'tblTempUsageDetail_20' ) end [2025-03-15 07:01:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 07:01:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 07:01:22] Production.INFO: ==12728== Releasing lock... [2025-03-15 07:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 07:01:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-15 07:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 04:02:05 [end_date_ymd] => 2025-03-15 07:02:05 [RateCDR] => 1 ) [2025-03-15 07:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 04:02:05' and `end` < '2025-03-15 07:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 07:02:17] Production.INFO: count ==165 [2025-03-15 07:02:17] Production.ERROR: pbx CDR StartTime 2025-03-15 04:02:05 - End Time 2025-03-15 07:02:05 [2025-03-15 07:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 07:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684479', 'tblTempUsageDetail_20' ) start [2025-03-15 07:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684479', 'tblTempUsageDetail_20' ) end [2025-03-15 07:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684479', 'tblTempVendorCDR_20' ) start [2025-03-15 07:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684479', 'tblTempVendorCDR_20' ) end [2025-03-15 07:02:17] Production.INFO: ProcessCDR(1,14684479,1,1,2) [2025-03-15 07:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684479', 'tblTempUsageDetail_20' ) start [2025-03-15 07:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684479', 'tblTempUsageDetail_20' ) end [2025-03-15 07:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 07:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 07:02:21] Production.INFO: ==12828== Releasing lock... [2025-03-15 07:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 07:02:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-15 07:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 04:03:05 [end_date_ymd] => 2025-03-15 07:03:05 [RateCDR] => 1 ) [2025-03-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-03-15 04:03:05' and `end` < '2025-03-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-03-15 07:03:17] Production.INFO: count ==166 [2025-03-15 07:03:17] Production.ERROR: pbx CDR StartTime 2025-03-15 04:03:05 - End Time 2025-03-15 07:03:05 [2025-03-15 07:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 07:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684484', 'tblTempUsageDetail_20' ) start [2025-03-15 07:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684484', 'tblTempUsageDetail_20' ) end [2025-03-15 07:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684484', 'tblTempVendorCDR_20' ) start [2025-03-15 07:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684484', 'tblTempVendorCDR_20' ) end [2025-03-15 07:03:17] Production.INFO: ProcessCDR(1,14684484,1,1,2) [2025-03-15 07:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684484', 'tblTempUsageDetail_20' ) start [2025-03-15 07:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684484', 'tblTempUsageDetail_20' ) end [2025-03-15 07:03:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 07:03:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 07:03:23] Production.INFO: ==12968== Releasing lock... [2025-03-15 07:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 07:03:23] Production.INFO: 29.5 MB #Memory Used# [2025-03-15 07:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 04:04:05 [end_date_ymd] => 2025-03-15 07:04:05 [RateCDR] => 1 ) [2025-03-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-03-15 04:04:05' and `end` < '2025-03-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-03-15 07:04:18] Production.INFO: count ==167 [2025-03-15 07:04:18] Production.ERROR: pbx CDR StartTime 2025-03-15 04:04:05 - End Time 2025-03-15 07:04:05 [2025-03-15 07:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684489', 'tblTempUsageDetail_20' ) start [2025-03-15 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684489', 'tblTempUsageDetail_20' ) end [2025-03-15 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684489', 'tblTempVendorCDR_20' ) start [2025-03-15 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684489', 'tblTempVendorCDR_20' ) end [2025-03-15 07:04:18] Production.INFO: ProcessCDR(1,14684489,1,1,2) [2025-03-15 07:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684489', 'tblTempUsageDetail_20' ) start [2025-03-15 07:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684489', 'tblTempUsageDetail_20' ) end [2025-03-15 07:04:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 07:04:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 07:04:23] Production.INFO: ==13068== Releasing lock... [2025-03-15 07:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 07:04:23] Production.INFO: 29.25 MB #Memory Used# [2025-03-15 07:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 04:05:05 [end_date_ymd] => 2025-03-15 07:05:05 [RateCDR] => 1 ) [2025-03-15 07:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 04:05:05' and `end` < '2025-03-15 07:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 07:05:17] Production.INFO: count ==164 [2025-03-15 07:05:17] Production.ERROR: pbx CDR StartTime 2025-03-15 04:05:05 - End Time 2025-03-15 07:05:05 [2025-03-15 07:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 07:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684494', 'tblTempUsageDetail_20' ) start [2025-03-15 07:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684494', 'tblTempUsageDetail_20' ) end [2025-03-15 07:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684494', 'tblTempVendorCDR_20' ) start [2025-03-15 07:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684494', 'tblTempVendorCDR_20' ) end [2025-03-15 07:05:17] Production.INFO: ProcessCDR(1,14684494,1,1,2) [2025-03-15 07:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684494', 'tblTempUsageDetail_20' ) start [2025-03-15 07:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684494', 'tblTempUsageDetail_20' ) end [2025-03-15 07:05:20] Production.ERROR: pbx prc_insertCDR start [2025-03-15 07:05:20] Production.ERROR: pbx prc_insertCDR end [2025-03-15 07:05:20] Production.INFO: ==13243== Releasing lock... [2025-03-15 07:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 07:05:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-15 07:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 04:06:05 [end_date_ymd] => 2025-03-15 07:06:05 [RateCDR] => 1 ) [2025-03-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-03-15 04:06:05' and `end` < '2025-03-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-03-15 07:06:17] Production.INFO: count ==165 [2025-03-15 07:06:17] Production.ERROR: pbx CDR StartTime 2025-03-15 04:06:05 - End Time 2025-03-15 07:06:05 [2025-03-15 07:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 07:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684499', 'tblTempUsageDetail_20' ) start [2025-03-15 07:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684499', 'tblTempUsageDetail_20' ) end [2025-03-15 07:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684499', 'tblTempVendorCDR_20' ) start [2025-03-15 07:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684499', 'tblTempVendorCDR_20' ) end [2025-03-15 07:06:17] Production.INFO: ProcessCDR(1,14684499,1,1,2) [2025-03-15 07:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684499', 'tblTempUsageDetail_20' ) start [2025-03-15 07:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684499', 'tblTempUsageDetail_20' ) end [2025-03-15 07:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 07:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 07:06:21] Production.INFO: ==13342== Releasing lock... [2025-03-15 07:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 07:06:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-15 07:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 04:07:04 [end_date_ymd] => 2025-03-15 07:07:04 [RateCDR] => 1 ) [2025-03-15 07: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-03-15 04:07:04' and `end` < '2025-03-15 07: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-03-15 07:07:18] Production.INFO: count ==168 [2025-03-15 07:07:18] Production.ERROR: pbx CDR StartTime 2025-03-15 04:07:04 - End Time 2025-03-15 07:07:04 [2025-03-15 07:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684504', 'tblTempUsageDetail_20' ) start [2025-03-15 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684504', 'tblTempUsageDetail_20' ) end [2025-03-15 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684504', 'tblTempVendorCDR_20' ) start [2025-03-15 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684504', 'tblTempVendorCDR_20' ) end [2025-03-15 07:07:18] Production.INFO: ProcessCDR(1,14684504,1,1,2) [2025-03-15 07:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684504', 'tblTempUsageDetail_20' ) start [2025-03-15 07:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684504', 'tblTempUsageDetail_20' ) end [2025-03-15 07:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 07:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 07:07:21] Production.INFO: ==13441== Releasing lock... [2025-03-15 07:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 07:07:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-15 07:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 04:08:05 [end_date_ymd] => 2025-03-15 07:08:05 [RateCDR] => 1 ) [2025-03-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-03-15 04:08:05' and `end` < '2025-03-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-03-15 07:08:17] Production.INFO: count ==168 [2025-03-15 07:08:17] Production.ERROR: pbx CDR StartTime 2025-03-15 04:08:05 - End Time 2025-03-15 07:08:05 [2025-03-15 07:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 07:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684509', 'tblTempUsageDetail_20' ) start [2025-03-15 07:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684509', 'tblTempUsageDetail_20' ) end [2025-03-15 07:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684509', 'tblTempVendorCDR_20' ) start [2025-03-15 07:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684509', 'tblTempVendorCDR_20' ) end [2025-03-15 07:08:17] Production.INFO: ProcessCDR(1,14684509,1,1,2) [2025-03-15 07:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684509', 'tblTempUsageDetail_20' ) start [2025-03-15 07:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684509', 'tblTempUsageDetail_20' ) end [2025-03-15 07:08:20] Production.ERROR: pbx prc_insertCDR start [2025-03-15 07:08:20] Production.ERROR: pbx prc_insertCDR end [2025-03-15 07:08:20] Production.INFO: ==13624== Releasing lock... [2025-03-15 07:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 07:08:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-15 07:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 04:09:05 [end_date_ymd] => 2025-03-15 07:09:05 [RateCDR] => 1 ) [2025-03-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-03-15 04:09:05' and `end` < '2025-03-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-03-15 07:09:17] Production.INFO: count ==166 [2025-03-15 07:09:17] Production.ERROR: pbx CDR StartTime 2025-03-15 04:09:05 - End Time 2025-03-15 07:09:05 [2025-03-15 07:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 07:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684514', 'tblTempUsageDetail_20' ) start [2025-03-15 07:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684514', 'tblTempUsageDetail_20' ) end [2025-03-15 07:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684514', 'tblTempVendorCDR_20' ) start [2025-03-15 07:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684514', 'tblTempVendorCDR_20' ) end [2025-03-15 07:09:17] Production.INFO: ProcessCDR(1,14684514,1,1,2) [2025-03-15 07:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684514', 'tblTempUsageDetail_20' ) start [2025-03-15 07:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684514', 'tblTempUsageDetail_20' ) end [2025-03-15 07:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 07:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 07:09:21] Production.INFO: ==13722== Releasing lock... [2025-03-15 07:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 07:09:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-15 07:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 04:10:06 [end_date_ymd] => 2025-03-15 07:10:06 [RateCDR] => 1 ) [2025-03-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-03-15 04:10:06' and `end` < '2025-03-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-03-15 07:10:18] Production.INFO: count ==158 [2025-03-15 07:10:18] Production.ERROR: pbx CDR StartTime 2025-03-15 04:10:06 - End Time 2025-03-15 07:10:06 [2025-03-15 07:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 07:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684520', 'tblTempUsageDetail_20' ) start [2025-03-15 07:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684520', 'tblTempUsageDetail_20' ) end [2025-03-15 07:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684520', 'tblTempVendorCDR_20' ) start [2025-03-15 07:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684520', 'tblTempVendorCDR_20' ) end [2025-03-15 07:10:18] Production.INFO: ProcessCDR(1,14684520,1,1,2) [2025-03-15 07:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684520', 'tblTempUsageDetail_20' ) start [2025-03-15 07:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684520', 'tblTempUsageDetail_20' ) end [2025-03-15 07:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 07:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 07:10:22] Production.INFO: ==13823== Releasing lock... [2025-03-15 07:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 07:10:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-15 07:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 04:11:05 [end_date_ymd] => 2025-03-15 07:11:05 [RateCDR] => 1 ) [2025-03-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-03-15 04:11:05' and `end` < '2025-03-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-03-15 07:11:18] Production.INFO: count ==157 [2025-03-15 07:11:18] Production.ERROR: pbx CDR StartTime 2025-03-15 04:11:05 - End Time 2025-03-15 07:11:05 [2025-03-15 07:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684525', 'tblTempUsageDetail_20' ) start [2025-03-15 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684525', 'tblTempUsageDetail_20' ) end [2025-03-15 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684525', 'tblTempVendorCDR_20' ) start [2025-03-15 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684525', 'tblTempVendorCDR_20' ) end [2025-03-15 07:11:18] Production.INFO: ProcessCDR(1,14684525,1,1,2) [2025-03-15 07:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684525', 'tblTempUsageDetail_20' ) start [2025-03-15 07:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684525', 'tblTempUsageDetail_20' ) end [2025-03-15 07:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 07:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 07:11:21] Production.INFO: ==13927== Releasing lock... [2025-03-15 07:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 07:11:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-15 07:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 04:12:05 [end_date_ymd] => 2025-03-15 07:12:05 [RateCDR] => 1 ) [2025-03-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-03-15 04:12:05' and `end` < '2025-03-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-03-15 07:12:17] Production.INFO: count ==157 [2025-03-15 07:12:17] Production.ERROR: pbx CDR StartTime 2025-03-15 04:12:05 - End Time 2025-03-15 07:12:05 [2025-03-15 07:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 07:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684530', 'tblTempUsageDetail_20' ) start [2025-03-15 07:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684530', 'tblTempUsageDetail_20' ) end [2025-03-15 07:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684530', 'tblTempVendorCDR_20' ) start [2025-03-15 07:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684530', 'tblTempVendorCDR_20' ) end [2025-03-15 07:12:17] Production.INFO: ProcessCDR(1,14684530,1,1,2) [2025-03-15 07:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684530', 'tblTempUsageDetail_20' ) start [2025-03-15 07:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684530', 'tblTempUsageDetail_20' ) end [2025-03-15 07:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 07:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 07:12:21] Production.INFO: ==14105== Releasing lock... [2025-03-15 07:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 07:12:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-15 07:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 04:13:05 [end_date_ymd] => 2025-03-15 07:13:05 [RateCDR] => 1 ) [2025-03-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-03-15 04:13:05' and `end` < '2025-03-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-03-15 07:13:17] Production.INFO: count ==157 [2025-03-15 07:13:17] Production.ERROR: pbx CDR StartTime 2025-03-15 04:13:05 - End Time 2025-03-15 07:13:05 [2025-03-15 07:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 07:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684535', 'tblTempUsageDetail_20' ) start [2025-03-15 07:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684535', 'tblTempUsageDetail_20' ) end [2025-03-15 07:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684535', 'tblTempVendorCDR_20' ) start [2025-03-15 07:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684535', 'tblTempVendorCDR_20' ) end [2025-03-15 07:13:17] Production.INFO: ProcessCDR(1,14684535,1,1,2) [2025-03-15 07:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684535', 'tblTempUsageDetail_20' ) start [2025-03-15 07:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684535', 'tblTempUsageDetail_20' ) end [2025-03-15 07:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 07:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 07:13:21] Production.INFO: ==14206== Releasing lock... [2025-03-15 07:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 07:13:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-15 07:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 04:14:05 [end_date_ymd] => 2025-03-15 07:14:05 [RateCDR] => 1 ) [2025-03-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-03-15 04:14:05' and `end` < '2025-03-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-03-15 07:14:17] Production.INFO: count ==161 [2025-03-15 07:14:17] Production.ERROR: pbx CDR StartTime 2025-03-15 04:14:05 - End Time 2025-03-15 07:14:05 [2025-03-15 07:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 07:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684540', 'tblTempUsageDetail_20' ) start [2025-03-15 07:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684540', 'tblTempUsageDetail_20' ) end [2025-03-15 07:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684540', 'tblTempVendorCDR_20' ) start [2025-03-15 07:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684540', 'tblTempVendorCDR_20' ) end [2025-03-15 07:14:17] Production.INFO: ProcessCDR(1,14684540,1,1,2) [2025-03-15 07:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684540', 'tblTempUsageDetail_20' ) start [2025-03-15 07:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684540', 'tblTempUsageDetail_20' ) end [2025-03-15 07:14:20] Production.ERROR: pbx prc_insertCDR start [2025-03-15 07:14:20] Production.ERROR: pbx prc_insertCDR end [2025-03-15 07:14:20] Production.INFO: ==14303== Releasing lock... [2025-03-15 07:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 07:14:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-15 07:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 04:15:05 [end_date_ymd] => 2025-03-15 07:15:05 [RateCDR] => 1 ) [2025-03-15 07:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 04:15:05' and `end` < '2025-03-15 07:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 07:15:19] Production.INFO: count ==165 [2025-03-15 07:15:19] Production.ERROR: pbx CDR StartTime 2025-03-15 04:15:05 - End Time 2025-03-15 07:15:05 [2025-03-15 07:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684545', 'tblTempUsageDetail_20' ) start [2025-03-15 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684545', 'tblTempUsageDetail_20' ) end [2025-03-15 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684545', 'tblTempVendorCDR_20' ) start [2025-03-15 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684545', 'tblTempVendorCDR_20' ) end [2025-03-15 07:15:19] Production.INFO: ProcessCDR(1,14684545,1,1,2) [2025-03-15 07:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684545', 'tblTempUsageDetail_20' ) start [2025-03-15 07:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684545', 'tblTempUsageDetail_20' ) end [2025-03-15 07:15:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 07:15:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 07:15:23] Production.INFO: ==14481== Releasing lock... [2025-03-15 07:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 07:15:23] Production.INFO: 29.5 MB #Memory Used# [2025-03-15 07:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 04:16:05 [end_date_ymd] => 2025-03-15 07:16:05 [RateCDR] => 1 ) [2025-03-15 07:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 04:16:05' and `end` < '2025-03-15 07:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 07:16:18] Production.INFO: count ==165 [2025-03-15 07:16:18] Production.ERROR: pbx CDR StartTime 2025-03-15 04:16:05 - End Time 2025-03-15 07:16:05 [2025-03-15 07:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684550', 'tblTempUsageDetail_20' ) start [2025-03-15 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684550', 'tblTempUsageDetail_20' ) end [2025-03-15 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684550', 'tblTempVendorCDR_20' ) start [2025-03-15 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684550', 'tblTempVendorCDR_20' ) end [2025-03-15 07:16:18] Production.INFO: ProcessCDR(1,14684550,1,1,2) [2025-03-15 07:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684550', 'tblTempUsageDetail_20' ) start [2025-03-15 07:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684550', 'tblTempUsageDetail_20' ) end [2025-03-15 07:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 07:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 07:16:21] Production.INFO: ==14578== Releasing lock... [2025-03-15 07:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 07:16:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-15 07:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 04:17:05 [end_date_ymd] => 2025-03-15 07:17:05 [RateCDR] => 1 ) [2025-03-15 07:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 04:17:05' and `end` < '2025-03-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-03-15 07:17:18] Production.INFO: count ==165 [2025-03-15 07:17:18] Production.ERROR: pbx CDR StartTime 2025-03-15 04:17:05 - End Time 2025-03-15 07:17:05 [2025-03-15 07:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684555', 'tblTempUsageDetail_20' ) start [2025-03-15 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684555', 'tblTempUsageDetail_20' ) end [2025-03-15 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684555', 'tblTempVendorCDR_20' ) start [2025-03-15 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684555', 'tblTempVendorCDR_20' ) end [2025-03-15 07:17:18] Production.INFO: ProcessCDR(1,14684555,1,1,2) [2025-03-15 07:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684555', 'tblTempUsageDetail_20' ) start [2025-03-15 07:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684555', 'tblTempUsageDetail_20' ) end [2025-03-15 07:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 07:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 07:17:21] Production.INFO: ==14678== Releasing lock... [2025-03-15 07:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 07:17:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-15 07:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 04:18:05 [end_date_ymd] => 2025-03-15 07:18:05 [RateCDR] => 1 ) [2025-03-15 07:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 04:18:05' and `end` < '2025-03-15 07:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 07:18:17] Production.INFO: count ==163 [2025-03-15 07:18:17] Production.ERROR: pbx CDR StartTime 2025-03-15 04:18:05 - End Time 2025-03-15 07:18:05 [2025-03-15 07:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 07:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684560', 'tblTempUsageDetail_20' ) start [2025-03-15 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684560', 'tblTempUsageDetail_20' ) end [2025-03-15 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684560', 'tblTempVendorCDR_20' ) start [2025-03-15 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684560', 'tblTempVendorCDR_20' ) end [2025-03-15 07:18:18] Production.INFO: ProcessCDR(1,14684560,1,1,2) [2025-03-15 07:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684560', 'tblTempUsageDetail_20' ) start [2025-03-15 07:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684560', 'tblTempUsageDetail_20' ) end [2025-03-15 07:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 07:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 07:18:22] Production.INFO: ==14794== Releasing lock... [2025-03-15 07:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 07:18:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-15 07:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 04:19:06 [end_date_ymd] => 2025-03-15 07:19:06 [RateCDR] => 1 ) [2025-03-15 07:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 04:19:06' and `end` < '2025-03-15 07:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 07:19:18] Production.INFO: count ==153 [2025-03-15 07:19:18] Production.ERROR: pbx CDR StartTime 2025-03-15 04:19:06 - End Time 2025-03-15 07:19:06 [2025-03-15 07:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684565', 'tblTempUsageDetail_20' ) start [2025-03-15 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684565', 'tblTempUsageDetail_20' ) end [2025-03-15 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684565', 'tblTempVendorCDR_20' ) start [2025-03-15 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684565', 'tblTempVendorCDR_20' ) end [2025-03-15 07:19:18] Production.INFO: ProcessCDR(1,14684565,1,1,2) [2025-03-15 07:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684565', 'tblTempUsageDetail_20' ) start [2025-03-15 07:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684565', 'tblTempUsageDetail_20' ) end [2025-03-15 07:19:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 07:19:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 07:19:22] Production.INFO: ==14866== Releasing lock... [2025-03-15 07:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 07:19:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-15 07:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 04:20:06 [end_date_ymd] => 2025-03-15 07:20:06 [RateCDR] => 1 ) [2025-03-15 07:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 04:20:06' and `end` < '2025-03-15 07:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 07:20:18] Production.INFO: count ==141 [2025-03-15 07:20:18] Production.ERROR: pbx CDR StartTime 2025-03-15 04:20:06 - End Time 2025-03-15 07:20:06 [2025-03-15 07:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684571', 'tblTempUsageDetail_20' ) start [2025-03-15 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684571', 'tblTempUsageDetail_20' ) end [2025-03-15 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684571', 'tblTempVendorCDR_20' ) start [2025-03-15 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684571', 'tblTempVendorCDR_20' ) end [2025-03-15 07:20:18] Production.INFO: ProcessCDR(1,14684571,1,1,2) [2025-03-15 07:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684571', 'tblTempUsageDetail_20' ) start [2025-03-15 07:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684571', 'tblTempUsageDetail_20' ) end [2025-03-15 07:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 07:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 07:20:22] Production.INFO: ==14940== Releasing lock... [2025-03-15 07:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 07:20:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-15 07:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 04:21:06 [end_date_ymd] => 2025-03-15 07:21:06 [RateCDR] => 1 ) [2025-03-15 07:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 04:21:06' and `end` < '2025-03-15 07:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 07:21:18] Production.INFO: count ==132 [2025-03-15 07:21:18] Production.ERROR: pbx CDR StartTime 2025-03-15 04:21:06 - End Time 2025-03-15 07:21:06 [2025-03-15 07:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684576', 'tblTempUsageDetail_20' ) start [2025-03-15 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684576', 'tblTempUsageDetail_20' ) end [2025-03-15 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684576', 'tblTempVendorCDR_20' ) start [2025-03-15 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684576', 'tblTempVendorCDR_20' ) end [2025-03-15 07:21:18] Production.INFO: ProcessCDR(1,14684576,1,1,2) [2025-03-15 07:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684576', 'tblTempUsageDetail_20' ) start [2025-03-15 07:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684576', 'tblTempUsageDetail_20' ) end [2025-03-15 07:21:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 07:21:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 07:21:22] Production.INFO: ==15016== Releasing lock... [2025-03-15 07:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 07:21:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-15 07:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 04:22:05 [end_date_ymd] => 2025-03-15 07:22:05 [RateCDR] => 1 ) [2025-03-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-03-15 04:22:05' and `end` < '2025-03-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-03-15 07:22:18] Production.INFO: count ==133 [2025-03-15 07:22:18] Production.ERROR: pbx CDR StartTime 2025-03-15 04:22:05 - End Time 2025-03-15 07:22:05 [2025-03-15 07:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684581', 'tblTempUsageDetail_20' ) start [2025-03-15 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684581', 'tblTempUsageDetail_20' ) end [2025-03-15 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684581', 'tblTempVendorCDR_20' ) start [2025-03-15 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684581', 'tblTempVendorCDR_20' ) end [2025-03-15 07:22:18] Production.INFO: ProcessCDR(1,14684581,1,1,2) [2025-03-15 07:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684581', 'tblTempUsageDetail_20' ) start [2025-03-15 07:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684581', 'tblTempUsageDetail_20' ) end [2025-03-15 07:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 07:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 07:22:22] Production.INFO: ==15088== Releasing lock... [2025-03-15 07:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 07:22:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-15 07:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 04:23:05 [end_date_ymd] => 2025-03-15 07:23:05 [RateCDR] => 1 ) [2025-03-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-03-15 04:23:05' and `end` < '2025-03-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-03-15 07:23:17] Production.INFO: count ==133 [2025-03-15 07:23:17] Production.ERROR: pbx CDR StartTime 2025-03-15 04:23:05 - End Time 2025-03-15 07:23:05 [2025-03-15 07:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684586', 'tblTempUsageDetail_20' ) start [2025-03-15 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684586', 'tblTempUsageDetail_20' ) end [2025-03-15 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684586', 'tblTempVendorCDR_20' ) start [2025-03-15 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684586', 'tblTempVendorCDR_20' ) end [2025-03-15 07:23:18] Production.INFO: ProcessCDR(1,14684586,1,1,2) [2025-03-15 07:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684586', 'tblTempUsageDetail_20' ) start [2025-03-15 07:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684586', 'tblTempUsageDetail_20' ) end [2025-03-15 07:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 07:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 07:23:21] Production.INFO: ==15161== Releasing lock... [2025-03-15 07:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 07:23:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-15 07:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 04:24:05 [end_date_ymd] => 2025-03-15 07:24:05 [RateCDR] => 1 ) [2025-03-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-03-15 04:24:05' and `end` < '2025-03-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-03-15 07:24:18] Production.INFO: count ==135 [2025-03-15 07:24:18] Production.ERROR: pbx CDR StartTime 2025-03-15 04:24:05 - End Time 2025-03-15 07:24:05 [2025-03-15 07:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684591', 'tblTempUsageDetail_20' ) start [2025-03-15 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684591', 'tblTempUsageDetail_20' ) end [2025-03-15 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684591', 'tblTempVendorCDR_20' ) start [2025-03-15 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684591', 'tblTempVendorCDR_20' ) end [2025-03-15 07:24:18] Production.INFO: ProcessCDR(1,14684591,1,1,2) [2025-03-15 07:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684591', 'tblTempUsageDetail_20' ) start [2025-03-15 07:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684591', 'tblTempUsageDetail_20' ) end [2025-03-15 07:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 07:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 07:24:21] Production.INFO: ==15232== Releasing lock... [2025-03-15 07:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 07:24:21] Production.INFO: 29 MB #Memory Used# [2025-03-15 07:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 04:25:06 [end_date_ymd] => 2025-03-15 07:25:06 [RateCDR] => 1 ) [2025-03-15 07:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 04:25:06' and `end` < '2025-03-15 07:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 07:25:18] Production.INFO: count ==135 [2025-03-15 07:25:18] Production.ERROR: pbx CDR StartTime 2025-03-15 04:25:06 - End Time 2025-03-15 07:25:06 [2025-03-15 07:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684596', 'tblTempUsageDetail_20' ) start [2025-03-15 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684596', 'tblTempUsageDetail_20' ) end [2025-03-15 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684596', 'tblTempVendorCDR_20' ) start [2025-03-15 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684596', 'tblTempVendorCDR_20' ) end [2025-03-15 07:25:18] Production.INFO: ProcessCDR(1,14684596,1,1,2) [2025-03-15 07:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684596', 'tblTempUsageDetail_20' ) start [2025-03-15 07:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684596', 'tblTempUsageDetail_20' ) end [2025-03-15 07:25:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 07:25:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 07:25:22] Production.INFO: ==15313== Releasing lock... [2025-03-15 07:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 07:25:22] Production.INFO: 29 MB #Memory Used# [2025-03-15 07:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 04:26:05 [end_date_ymd] => 2025-03-15 07:26:05 [RateCDR] => 1 ) [2025-03-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-03-15 04:26:05' and `end` < '2025-03-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-03-15 07:26:18] Production.INFO: count ==130 [2025-03-15 07:26:18] Production.ERROR: pbx CDR StartTime 2025-03-15 04:26:05 - End Time 2025-03-15 07:26:05 [2025-03-15 07:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684601', 'tblTempUsageDetail_20' ) start [2025-03-15 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684601', 'tblTempUsageDetail_20' ) end [2025-03-15 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684601', 'tblTempVendorCDR_20' ) start [2025-03-15 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684601', 'tblTempVendorCDR_20' ) end [2025-03-15 07:26:18] Production.INFO: ProcessCDR(1,14684601,1,1,2) [2025-03-15 07:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684601', 'tblTempUsageDetail_20' ) start [2025-03-15 07:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684601', 'tblTempUsageDetail_20' ) end [2025-03-15 07:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 07:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 07:26:21] Production.INFO: ==15388== Releasing lock... [2025-03-15 07:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 07:26:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-15 07:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 04:27:05 [end_date_ymd] => 2025-03-15 07:27:05 [RateCDR] => 1 ) [2025-03-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-03-15 04:27:05' and `end` < '2025-03-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-03-15 07:27:18] Production.INFO: count ==126 [2025-03-15 07:27:18] Production.ERROR: pbx CDR StartTime 2025-03-15 04:27:05 - End Time 2025-03-15 07:27:05 [2025-03-15 07:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684606', 'tblTempUsageDetail_20' ) start [2025-03-15 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684606', 'tblTempUsageDetail_20' ) end [2025-03-15 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684606', 'tblTempVendorCDR_20' ) start [2025-03-15 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684606', 'tblTempVendorCDR_20' ) end [2025-03-15 07:27:18] Production.INFO: ProcessCDR(1,14684606,1,1,2) [2025-03-15 07:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684606', 'tblTempUsageDetail_20' ) start [2025-03-15 07:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684606', 'tblTempUsageDetail_20' ) end [2025-03-15 07:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 07:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 07:27:21] Production.INFO: ==15467== Releasing lock... [2025-03-15 07:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 07:27:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-15 07:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 04:28:05 [end_date_ymd] => 2025-03-15 07:28:05 [RateCDR] => 1 ) [2025-03-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-03-15 04:28:05' and `end` < '2025-03-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-03-15 07:28:18] Production.INFO: count ==127 [2025-03-15 07:28:18] Production.ERROR: pbx CDR StartTime 2025-03-15 04:28:05 - End Time 2025-03-15 07:28:05 [2025-03-15 07:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684611', 'tblTempUsageDetail_20' ) start [2025-03-15 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684611', 'tblTempUsageDetail_20' ) end [2025-03-15 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684611', 'tblTempVendorCDR_20' ) start [2025-03-15 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684611', 'tblTempVendorCDR_20' ) end [2025-03-15 07:28:18] Production.INFO: ProcessCDR(1,14684611,1,1,2) [2025-03-15 07:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684611', 'tblTempUsageDetail_20' ) start [2025-03-15 07:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684611', 'tblTempUsageDetail_20' ) end [2025-03-15 07:28:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 07:28:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 07:28:22] Production.INFO: ==15537== Releasing lock... [2025-03-15 07:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 07:28:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-15 07:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 04:29:06 [end_date_ymd] => 2025-03-15 07:29:06 [RateCDR] => 1 ) [2025-03-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-03-15 04:29:06' and `end` < '2025-03-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-03-15 07:29:18] Production.INFO: count ==127 [2025-03-15 07:29:18] Production.ERROR: pbx CDR StartTime 2025-03-15 04:29:06 - End Time 2025-03-15 07:29:06 [2025-03-15 07:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684616', 'tblTempUsageDetail_20' ) start [2025-03-15 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684616', 'tblTempUsageDetail_20' ) end [2025-03-15 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684616', 'tblTempVendorCDR_20' ) start [2025-03-15 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684616', 'tblTempVendorCDR_20' ) end [2025-03-15 07:29:18] Production.INFO: ProcessCDR(1,14684616,1,1,2) [2025-03-15 07:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684616', 'tblTempUsageDetail_20' ) start [2025-03-15 07:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684616', 'tblTempUsageDetail_20' ) end [2025-03-15 07:29:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 07:29:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 07:29:22] Production.INFO: ==15610== Releasing lock... [2025-03-15 07:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 07:29:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-15 07:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 04:30:06 [end_date_ymd] => 2025-03-15 07:30:06 [RateCDR] => 1 ) [2025-03-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-03-15 04:30:06' and `end` < '2025-03-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-03-15 07:30:18] Production.INFO: count ==133 [2025-03-15 07:30:18] Production.ERROR: pbx CDR StartTime 2025-03-15 04:30:06 - End Time 2025-03-15 07:30:06 [2025-03-15 07:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684622', 'tblTempUsageDetail_20' ) start [2025-03-15 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684622', 'tblTempUsageDetail_20' ) end [2025-03-15 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684622', 'tblTempVendorCDR_20' ) start [2025-03-15 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684622', 'tblTempVendorCDR_20' ) end [2025-03-15 07:30:18] Production.INFO: ProcessCDR(1,14684622,1,1,2) [2025-03-15 07:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684622', 'tblTempUsageDetail_20' ) start [2025-03-15 07:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684622', 'tblTempUsageDetail_20' ) end [2025-03-15 07:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 07:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 07:30:22] Production.INFO: ==15686== Releasing lock... [2025-03-15 07:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 07:30:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-15 07:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 04:31:06 [end_date_ymd] => 2025-03-15 07:31:06 [RateCDR] => 1 ) [2025-03-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-03-15 04:31:06' and `end` < '2025-03-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-03-15 07:31:18] Production.INFO: count ==133 [2025-03-15 07:31:18] Production.ERROR: pbx CDR StartTime 2025-03-15 04:31:06 - End Time 2025-03-15 07:31:06 [2025-03-15 07:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684627', 'tblTempUsageDetail_20' ) start [2025-03-15 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684627', 'tblTempUsageDetail_20' ) end [2025-03-15 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684627', 'tblTempVendorCDR_20' ) start [2025-03-15 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684627', 'tblTempVendorCDR_20' ) end [2025-03-15 07:31:18] Production.INFO: ProcessCDR(1,14684627,1,1,2) [2025-03-15 07:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684627', 'tblTempUsageDetail_20' ) start [2025-03-15 07:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684627', 'tblTempUsageDetail_20' ) end [2025-03-15 07:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 07:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 07:31:22] Production.INFO: ==15760== Releasing lock... [2025-03-15 07:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 07:31:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-15 07:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 04:32:06 [end_date_ymd] => 2025-03-15 07:32:06 [RateCDR] => 1 ) [2025-03-15 07:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 04:32:06' and `end` < '2025-03-15 07:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 07:32:18] Production.INFO: count ==133 [2025-03-15 07:32:18] Production.ERROR: pbx CDR StartTime 2025-03-15 04:32:06 - End Time 2025-03-15 07:32:06 [2025-03-15 07:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684632', 'tblTempUsageDetail_20' ) start [2025-03-15 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684632', 'tblTempUsageDetail_20' ) end [2025-03-15 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684632', 'tblTempVendorCDR_20' ) start [2025-03-15 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684632', 'tblTempVendorCDR_20' ) end [2025-03-15 07:32:18] Production.INFO: ProcessCDR(1,14684632,1,1,2) [2025-03-15 07:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684632', 'tblTempUsageDetail_20' ) start [2025-03-15 07:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684632', 'tblTempUsageDetail_20' ) end [2025-03-15 07:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 07:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 07:32:21] Production.INFO: ==15832== Releasing lock... [2025-03-15 07:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 07:32:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-15 07:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 04:33:06 [end_date_ymd] => 2025-03-15 07:33:06 [RateCDR] => 1 ) [2025-03-15 07:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 04:33:06' and `end` < '2025-03-15 07:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 07:33:18] Production.INFO: count ==133 [2025-03-15 07:33:18] Production.ERROR: pbx CDR StartTime 2025-03-15 04:33:06 - End Time 2025-03-15 07:33:06 [2025-03-15 07:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684637', 'tblTempUsageDetail_20' ) start [2025-03-15 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684637', 'tblTempUsageDetail_20' ) end [2025-03-15 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684637', 'tblTempVendorCDR_20' ) start [2025-03-15 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684637', 'tblTempVendorCDR_20' ) end [2025-03-15 07:33:18] Production.INFO: ProcessCDR(1,14684637,1,1,2) [2025-03-15 07:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684637', 'tblTempUsageDetail_20' ) start [2025-03-15 07:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684637', 'tblTempUsageDetail_20' ) end [2025-03-15 07:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 07:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 07:33:22] Production.INFO: ==15905== Releasing lock... [2025-03-15 07:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 07:33:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-15 07:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 04:34:05 [end_date_ymd] => 2025-03-15 07:34:05 [RateCDR] => 1 ) [2025-03-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-03-15 04:34:05' and `end` < '2025-03-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-03-15 07:34:17] Production.INFO: count ==137 [2025-03-15 07:34:17] Production.ERROR: pbx CDR StartTime 2025-03-15 04:34:05 - End Time 2025-03-15 07:34:05 [2025-03-15 07:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684642', 'tblTempUsageDetail_20' ) start [2025-03-15 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684642', 'tblTempUsageDetail_20' ) end [2025-03-15 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684642', 'tblTempVendorCDR_20' ) start [2025-03-15 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684642', 'tblTempVendorCDR_20' ) end [2025-03-15 07:34:17] Production.INFO: ProcessCDR(1,14684642,1,1,2) [2025-03-15 07:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684642', 'tblTempUsageDetail_20' ) start [2025-03-15 07:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684642', 'tblTempUsageDetail_20' ) end [2025-03-15 07:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 07:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 07:34:21] Production.INFO: ==16020== Releasing lock... [2025-03-15 07:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 07:34:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-15 07:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 04:35:05 [end_date_ymd] => 2025-03-15 07:35:05 [RateCDR] => 1 ) [2025-03-15 07:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 04:35:05' and `end` < '2025-03-15 07:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 07:35:17] Production.INFO: count ==134 [2025-03-15 07:35:17] Production.ERROR: pbx CDR StartTime 2025-03-15 04:35:05 - End Time 2025-03-15 07:35:05 [2025-03-15 07:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684647', 'tblTempUsageDetail_20' ) start [2025-03-15 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684647', 'tblTempUsageDetail_20' ) end [2025-03-15 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684647', 'tblTempVendorCDR_20' ) start [2025-03-15 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684647', 'tblTempVendorCDR_20' ) end [2025-03-15 07:35:17] Production.INFO: ProcessCDR(1,14684647,1,1,2) [2025-03-15 07:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684647', 'tblTempUsageDetail_20' ) start [2025-03-15 07:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684647', 'tblTempUsageDetail_20' ) end [2025-03-15 07:35:20] Production.ERROR: pbx prc_insertCDR start [2025-03-15 07:35:20] Production.ERROR: pbx prc_insertCDR end [2025-03-15 07:35:20] Production.INFO: ==16097== Releasing lock... [2025-03-15 07:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 07:35:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-15 07:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 04:36:05 [end_date_ymd] => 2025-03-15 07:36:05 [RateCDR] => 1 ) [2025-03-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-03-15 04:36:05' and `end` < '2025-03-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-03-15 07:36:17] Production.INFO: count ==134 [2025-03-15 07:36:17] Production.ERROR: pbx CDR StartTime 2025-03-15 04:36:05 - End Time 2025-03-15 07:36:05 [2025-03-15 07:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684652', 'tblTempUsageDetail_20' ) start [2025-03-15 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684652', 'tblTempUsageDetail_20' ) end [2025-03-15 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684652', 'tblTempVendorCDR_20' ) start [2025-03-15 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684652', 'tblTempVendorCDR_20' ) end [2025-03-15 07:36:17] Production.INFO: ProcessCDR(1,14684652,1,1,2) [2025-03-15 07:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684652', 'tblTempUsageDetail_20' ) start [2025-03-15 07:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684652', 'tblTempUsageDetail_20' ) end [2025-03-15 07:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 07:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 07:36:21] Production.INFO: ==16172== Releasing lock... [2025-03-15 07:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 07:36:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-15 07:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 04:37:05 [end_date_ymd] => 2025-03-15 07:37:05 [RateCDR] => 1 ) [2025-03-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-03-15 04:37:05' and `end` < '2025-03-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-03-15 07:37:17] Production.INFO: count ==134 [2025-03-15 07:37:17] Production.ERROR: pbx CDR StartTime 2025-03-15 04:37:05 - End Time 2025-03-15 07:37:05 [2025-03-15 07:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684657', 'tblTempUsageDetail_20' ) start [2025-03-15 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684657', 'tblTempUsageDetail_20' ) end [2025-03-15 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684657', 'tblTempVendorCDR_20' ) start [2025-03-15 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684657', 'tblTempVendorCDR_20' ) end [2025-03-15 07:37:17] Production.INFO: ProcessCDR(1,14684657,1,1,2) [2025-03-15 07:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684657', 'tblTempUsageDetail_20' ) start [2025-03-15 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684657', 'tblTempUsageDetail_20' ) end [2025-03-15 07:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 07:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 07:37:21] Production.INFO: ==16248== Releasing lock... [2025-03-15 07:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 07:37:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-15 07:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 04:38:05 [end_date_ymd] => 2025-03-15 07:38:05 [RateCDR] => 1 ) [2025-03-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-03-15 04:38:05' and `end` < '2025-03-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-03-15 07:38:17] Production.INFO: count ==134 [2025-03-15 07:38:17] Production.ERROR: pbx CDR StartTime 2025-03-15 04:38:05 - End Time 2025-03-15 07:38:05 [2025-03-15 07:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 07:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684661', 'tblTempUsageDetail_20' ) start [2025-03-15 07:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684661', 'tblTempUsageDetail_20' ) end [2025-03-15 07:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684661', 'tblTempVendorCDR_20' ) start [2025-03-15 07:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684661', 'tblTempVendorCDR_20' ) end [2025-03-15 07:38:17] Production.INFO: ProcessCDR(1,14684661,1,1,2) [2025-03-15 07:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684661', 'tblTempUsageDetail_20' ) start [2025-03-15 07:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684661', 'tblTempUsageDetail_20' ) end [2025-03-15 07:38:20] Production.ERROR: pbx prc_insertCDR start [2025-03-15 07:38:20] Production.ERROR: pbx prc_insertCDR end [2025-03-15 07:38:20] Production.INFO: ==16323== Releasing lock... [2025-03-15 07:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 07:38:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-15 07:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 04:39:05 [end_date_ymd] => 2025-03-15 07:39:05 [RateCDR] => 1 ) [2025-03-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-03-15 04:39:05' and `end` < '2025-03-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-03-15 07:39:17] Production.INFO: count ==134 [2025-03-15 07:39:18] Production.ERROR: pbx CDR StartTime 2025-03-15 04:39:05 - End Time 2025-03-15 07:39:05 [2025-03-15 07:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684667', 'tblTempUsageDetail_20' ) start [2025-03-15 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684667', 'tblTempUsageDetail_20' ) end [2025-03-15 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684667', 'tblTempVendorCDR_20' ) start [2025-03-15 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684667', 'tblTempVendorCDR_20' ) end [2025-03-15 07:39:18] Production.INFO: ProcessCDR(1,14684667,1,1,2) [2025-03-15 07:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684667', 'tblTempUsageDetail_20' ) start [2025-03-15 07:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684667', 'tblTempUsageDetail_20' ) end [2025-03-15 07:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 07:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 07:39:21] Production.INFO: ==16399== Releasing lock... [2025-03-15 07:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 07:39:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-15 07:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 04:40:05 [end_date_ymd] => 2025-03-15 07:40:05 [RateCDR] => 1 ) [2025-03-15 07:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 04:40:05' and `end` < '2025-03-15 07:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 07:40:17] Production.INFO: count ==126 [2025-03-15 07:40:17] Production.ERROR: pbx CDR StartTime 2025-03-15 04:40:05 - End Time 2025-03-15 07:40:05 [2025-03-15 07:40:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 07:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684672', 'tblTempUsageDetail_20' ) start [2025-03-15 07:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684672', 'tblTempUsageDetail_20' ) end [2025-03-15 07:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684672', 'tblTempVendorCDR_20' ) start [2025-03-15 07:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684672', 'tblTempVendorCDR_20' ) end [2025-03-15 07:40:17] Production.INFO: ProcessCDR(1,14684672,1,1,2) [2025-03-15 07:40:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:40:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:40:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684672', 'tblTempUsageDetail_20' ) start [2025-03-15 07:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684672', 'tblTempUsageDetail_20' ) end [2025-03-15 07:40:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 07:40:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 07:40:21] Production.INFO: ==16477== Releasing lock... [2025-03-15 07:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 07:40:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-15 07:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 04:41:05 [end_date_ymd] => 2025-03-15 07:41:05 [RateCDR] => 1 ) [2025-03-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-03-15 04:41:05' and `end` < '2025-03-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-03-15 07:41:18] Production.INFO: count ==124 [2025-03-15 07:41:18] Production.ERROR: pbx CDR StartTime 2025-03-15 04:41:05 - End Time 2025-03-15 07:41:05 [2025-03-15 07:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684678', 'tblTempUsageDetail_20' ) start [2025-03-15 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684678', 'tblTempUsageDetail_20' ) end [2025-03-15 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684678', 'tblTempVendorCDR_20' ) start [2025-03-15 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684678', 'tblTempVendorCDR_20' ) end [2025-03-15 07:41:18] Production.INFO: ProcessCDR(1,14684678,1,1,2) [2025-03-15 07:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684678', 'tblTempUsageDetail_20' ) start [2025-03-15 07:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684678', 'tblTempUsageDetail_20' ) end [2025-03-15 07:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 07:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 07:41:21] Production.INFO: ==16557== Releasing lock... [2025-03-15 07:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 07:41:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-15 07:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 04:42:05 [end_date_ymd] => 2025-03-15 07:42:05 [RateCDR] => 1 ) [2025-03-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-03-15 04:42:05' and `end` < '2025-03-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-03-15 07:42:17] Production.INFO: count ==123 [2025-03-15 07:42:17] Production.ERROR: pbx CDR StartTime 2025-03-15 04:42:05 - End Time 2025-03-15 07:42:05 [2025-03-15 07:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684683', 'tblTempUsageDetail_20' ) start [2025-03-15 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684683', 'tblTempUsageDetail_20' ) end [2025-03-15 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684683', 'tblTempVendorCDR_20' ) start [2025-03-15 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684683', 'tblTempVendorCDR_20' ) end [2025-03-15 07:42:17] Production.INFO: ProcessCDR(1,14684683,1,1,2) [2025-03-15 07:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684683', 'tblTempUsageDetail_20' ) start [2025-03-15 07:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684683', 'tblTempUsageDetail_20' ) end [2025-03-15 07:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 07:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 07:42:21] Production.INFO: ==16631== Releasing lock... [2025-03-15 07:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 07:42:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-15 07:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 04:43:06 [end_date_ymd] => 2025-03-15 07:43:06 [RateCDR] => 1 ) [2025-03-15 07:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 04:43:06' and `end` < '2025-03-15 07:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 07:43:18] Production.INFO: count ==123 [2025-03-15 07:43:18] Production.ERROR: pbx CDR StartTime 2025-03-15 04:43:06 - End Time 2025-03-15 07:43:06 [2025-03-15 07:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684688', 'tblTempUsageDetail_20' ) start [2025-03-15 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684688', 'tblTempUsageDetail_20' ) end [2025-03-15 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684688', 'tblTempVendorCDR_20' ) start [2025-03-15 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684688', 'tblTempVendorCDR_20' ) end [2025-03-15 07:43:18] Production.INFO: ProcessCDR(1,14684688,1,1,2) [2025-03-15 07:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684688', 'tblTempUsageDetail_20' ) start [2025-03-15 07:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684688', 'tblTempUsageDetail_20' ) end [2025-03-15 07:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 07:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 07:43:21] Production.INFO: ==16708== Releasing lock... [2025-03-15 07:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 07:43:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-15 07:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 04:44:05 [end_date_ymd] => 2025-03-15 07:44:05 [RateCDR] => 1 ) [2025-03-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-03-15 04:44:05' and `end` < '2025-03-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-03-15 07:44:17] Production.INFO: count ==121 [2025-03-15 07:44:17] Production.ERROR: pbx CDR StartTime 2025-03-15 04:44:05 - End Time 2025-03-15 07:44:05 [2025-03-15 07:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684693', 'tblTempUsageDetail_20' ) start [2025-03-15 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684693', 'tblTempUsageDetail_20' ) end [2025-03-15 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684693', 'tblTempVendorCDR_20' ) start [2025-03-15 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684693', 'tblTempVendorCDR_20' ) end [2025-03-15 07:44:17] Production.INFO: ProcessCDR(1,14684693,1,1,2) [2025-03-15 07:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684693', 'tblTempUsageDetail_20' ) start [2025-03-15 07:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684693', 'tblTempUsageDetail_20' ) end [2025-03-15 07:44:20] Production.ERROR: pbx prc_insertCDR start [2025-03-15 07:44:20] Production.ERROR: pbx prc_insertCDR end [2025-03-15 07:44:20] Production.INFO: ==16785== Releasing lock... [2025-03-15 07:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 07:44:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-15 07:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 04:45:05 [end_date_ymd] => 2025-03-15 07:45:05 [RateCDR] => 1 ) [2025-03-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-03-15 04:45:05' and `end` < '2025-03-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-03-15 07:45:18] Production.INFO: count ==117 [2025-03-15 07:45:18] Production.ERROR: pbx CDR StartTime 2025-03-15 04:45:05 - End Time 2025-03-15 07:45:05 [2025-03-15 07:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684698', 'tblTempUsageDetail_20' ) start [2025-03-15 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684698', 'tblTempUsageDetail_20' ) end [2025-03-15 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684698', 'tblTempVendorCDR_20' ) start [2025-03-15 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684698', 'tblTempVendorCDR_20' ) end [2025-03-15 07:45:18] Production.INFO: ProcessCDR(1,14684698,1,1,2) [2025-03-15 07:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684698', 'tblTempUsageDetail_20' ) start [2025-03-15 07:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684698', 'tblTempUsageDetail_20' ) end [2025-03-15 07:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 07:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 07:45:21] Production.INFO: ==16863== Releasing lock... [2025-03-15 07:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 07:45:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-15 07:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 04:46:05 [end_date_ymd] => 2025-03-15 07:46:05 [RateCDR] => 1 ) [2025-03-15 07:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 04:46:05' and `end` < '2025-03-15 07:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 07:46:17] Production.INFO: count ==116 [2025-03-15 07:46:17] Production.ERROR: pbx CDR StartTime 2025-03-15 04:46:05 - End Time 2025-03-15 07:46:05 [2025-03-15 07:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684703', 'tblTempUsageDetail_20' ) start [2025-03-15 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684703', 'tblTempUsageDetail_20' ) end [2025-03-15 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684703', 'tblTempVendorCDR_20' ) start [2025-03-15 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684703', 'tblTempVendorCDR_20' ) end [2025-03-15 07:46:17] Production.INFO: ProcessCDR(1,14684703,1,1,2) [2025-03-15 07:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684703', 'tblTempUsageDetail_20' ) start [2025-03-15 07:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684703', 'tblTempUsageDetail_20' ) end [2025-03-15 07:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 07:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 07:46:21] Production.INFO: ==16945== Releasing lock... [2025-03-15 07:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 07:46:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-15 07:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 04:47:05 [end_date_ymd] => 2025-03-15 07:47:05 [RateCDR] => 1 ) [2025-03-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-03-15 04:47:05' and `end` < '2025-03-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-03-15 07:47:18] Production.INFO: count ==116 [2025-03-15 07:47:18] Production.ERROR: pbx CDR StartTime 2025-03-15 04:47:05 - End Time 2025-03-15 07:47:05 [2025-03-15 07:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684708', 'tblTempUsageDetail_20' ) start [2025-03-15 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684708', 'tblTempUsageDetail_20' ) end [2025-03-15 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684708', 'tblTempVendorCDR_20' ) start [2025-03-15 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684708', 'tblTempVendorCDR_20' ) end [2025-03-15 07:47:18] Production.INFO: ProcessCDR(1,14684708,1,1,2) [2025-03-15 07:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684708', 'tblTempUsageDetail_20' ) start [2025-03-15 07:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684708', 'tblTempUsageDetail_20' ) end [2025-03-15 07:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 07:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 07:47:21] Production.INFO: ==17017== Releasing lock... [2025-03-15 07:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 07:47:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-15 07:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 04:48:05 [end_date_ymd] => 2025-03-15 07:48:05 [RateCDR] => 1 ) [2025-03-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-03-15 04:48:05' and `end` < '2025-03-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-03-15 07:48:17] Production.INFO: count ==116 [2025-03-15 07:48:17] Production.ERROR: pbx CDR StartTime 2025-03-15 04:48:05 - End Time 2025-03-15 07:48:05 [2025-03-15 07:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684713', 'tblTempUsageDetail_20' ) start [2025-03-15 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684713', 'tblTempUsageDetail_20' ) end [2025-03-15 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684713', 'tblTempVendorCDR_20' ) start [2025-03-15 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684713', 'tblTempVendorCDR_20' ) end [2025-03-15 07:48:17] Production.INFO: ProcessCDR(1,14684713,1,1,2) [2025-03-15 07:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684713', 'tblTempUsageDetail_20' ) start [2025-03-15 07:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684713', 'tblTempUsageDetail_20' ) end [2025-03-15 07:48:20] Production.ERROR: pbx prc_insertCDR start [2025-03-15 07:48:20] Production.ERROR: pbx prc_insertCDR end [2025-03-15 07:48:20] Production.INFO: ==17094== Releasing lock... [2025-03-15 07:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 07:48:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-15 07:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 04:49:05 [end_date_ymd] => 2025-03-15 07:49:05 [RateCDR] => 1 ) [2025-03-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-03-15 04:49:05' and `end` < '2025-03-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-03-15 07:49:17] Production.INFO: count ==102 [2025-03-15 07:49:17] Production.ERROR: pbx CDR StartTime 2025-03-15 04:49:05 - End Time 2025-03-15 07:49:05 [2025-03-15 07:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684718', 'tblTempUsageDetail_20' ) start [2025-03-15 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684718', 'tblTempUsageDetail_20' ) end [2025-03-15 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684718', 'tblTempVendorCDR_20' ) start [2025-03-15 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684718', 'tblTempVendorCDR_20' ) end [2025-03-15 07:49:17] Production.INFO: ProcessCDR(1,14684718,1,1,2) [2025-03-15 07:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684718', 'tblTempUsageDetail_20' ) start [2025-03-15 07:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684718', 'tblTempUsageDetail_20' ) end [2025-03-15 07:49:20] Production.ERROR: pbx prc_insertCDR start [2025-03-15 07:49:20] Production.ERROR: pbx prc_insertCDR end [2025-03-15 07:49:21] Production.INFO: ==17213== Releasing lock... [2025-03-15 07:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 07:49:21] Production.INFO: 29 MB #Memory Used# [2025-03-15 07:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 04:50:05 [end_date_ymd] => 2025-03-15 07:50:05 [RateCDR] => 1 ) [2025-03-15 07:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 04:50:05' and `end` < '2025-03-15 07:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 07:50:18] Production.INFO: count ==103 [2025-03-15 07:50:18] Production.ERROR: pbx CDR StartTime 2025-03-15 04:50:05 - End Time 2025-03-15 07:50:05 [2025-03-15 07:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684723', 'tblTempUsageDetail_20' ) start [2025-03-15 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684723', 'tblTempUsageDetail_20' ) end [2025-03-15 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684723', 'tblTempVendorCDR_20' ) start [2025-03-15 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684723', 'tblTempVendorCDR_20' ) end [2025-03-15 07:50:18] Production.INFO: ProcessCDR(1,14684723,1,1,2) [2025-03-15 07:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684723', 'tblTempUsageDetail_20' ) start [2025-03-15 07:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684723', 'tblTempUsageDetail_20' ) end [2025-03-15 07:50:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 07:50:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 07:50:21] Production.INFO: ==17292== Releasing lock... [2025-03-15 07:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 07:50:21] Production.INFO: 29 MB #Memory Used# [2025-03-15 07:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 04:51:05 [end_date_ymd] => 2025-03-15 07:51:05 [RateCDR] => 1 ) [2025-03-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-03-15 04:51:05' and `end` < '2025-03-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-03-15 07:51:17] Production.INFO: count ==103 [2025-03-15 07:51:17] Production.ERROR: pbx CDR StartTime 2025-03-15 04:51:05 - End Time 2025-03-15 07:51:05 [2025-03-15 07:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684729', 'tblTempUsageDetail_20' ) start [2025-03-15 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684729', 'tblTempUsageDetail_20' ) end [2025-03-15 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684729', 'tblTempVendorCDR_20' ) start [2025-03-15 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684729', 'tblTempVendorCDR_20' ) end [2025-03-15 07:51:17] Production.INFO: ProcessCDR(1,14684729,1,1,2) [2025-03-15 07:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684729', 'tblTempUsageDetail_20' ) start [2025-03-15 07:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684729', 'tblTempUsageDetail_20' ) end [2025-03-15 07:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 07:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 07:51:21] Production.INFO: ==17370== Releasing lock... [2025-03-15 07:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 07:51:21] Production.INFO: 29 MB #Memory Used# [2025-03-15 07:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 04:52:05 [end_date_ymd] => 2025-03-15 07:52:05 [RateCDR] => 1 ) [2025-03-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-03-15 04:52:05' and `end` < '2025-03-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-03-15 07:52:17] Production.INFO: count ==107 [2025-03-15 07:52:17] Production.ERROR: pbx CDR StartTime 2025-03-15 04:52:05 - End Time 2025-03-15 07:52:05 [2025-03-15 07:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684734', 'tblTempUsageDetail_20' ) start [2025-03-15 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684734', 'tblTempUsageDetail_20' ) end [2025-03-15 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684734', 'tblTempVendorCDR_20' ) start [2025-03-15 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684734', 'tblTempVendorCDR_20' ) end [2025-03-15 07:52:17] Production.INFO: ProcessCDR(1,14684734,1,1,2) [2025-03-15 07:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684734', 'tblTempUsageDetail_20' ) start [2025-03-15 07:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684734', 'tblTempUsageDetail_20' ) end [2025-03-15 07:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 07:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 07:52:21] Production.INFO: ==17442== Releasing lock... [2025-03-15 07:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 07:52:21] Production.INFO: 29 MB #Memory Used# [2025-03-15 07:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 04:53:06 [end_date_ymd] => 2025-03-15 07:53:06 [RateCDR] => 1 ) [2025-03-15 07:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 04:53:06' and `end` < '2025-03-15 07:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 07:53:18] Production.INFO: count ==106 [2025-03-15 07:53:18] Production.ERROR: pbx CDR StartTime 2025-03-15 04:53:06 - End Time 2025-03-15 07:53:06 [2025-03-15 07:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684739', 'tblTempUsageDetail_20' ) start [2025-03-15 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684739', 'tblTempUsageDetail_20' ) end [2025-03-15 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684739', 'tblTempVendorCDR_20' ) start [2025-03-15 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684739', 'tblTempVendorCDR_20' ) end [2025-03-15 07:53:18] Production.INFO: ProcessCDR(1,14684739,1,1,2) [2025-03-15 07:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684739', 'tblTempUsageDetail_20' ) start [2025-03-15 07:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684739', 'tblTempUsageDetail_20' ) end [2025-03-15 07:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 07:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 07:53:21] Production.INFO: ==17520== Releasing lock... [2025-03-15 07:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 07:53:21] Production.INFO: 29 MB #Memory Used# [2025-03-15 07:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 04:54:06 [end_date_ymd] => 2025-03-15 07:54:06 [RateCDR] => 1 ) [2025-03-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-03-15 04:54:06' and `end` < '2025-03-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-03-15 07:54:18] Production.INFO: count ==105 [2025-03-15 07:54:18] Production.ERROR: pbx CDR StartTime 2025-03-15 04:54:06 - End Time 2025-03-15 07:54:06 [2025-03-15 07:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684744', 'tblTempUsageDetail_20' ) start [2025-03-15 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684744', 'tblTempUsageDetail_20' ) end [2025-03-15 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684744', 'tblTempVendorCDR_20' ) start [2025-03-15 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684744', 'tblTempVendorCDR_20' ) end [2025-03-15 07:54:18] Production.INFO: ProcessCDR(1,14684744,1,1,2) [2025-03-15 07:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684744', 'tblTempUsageDetail_20' ) start [2025-03-15 07:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684744', 'tblTempUsageDetail_20' ) end [2025-03-15 07:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 07:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 07:54:21] Production.INFO: ==17597== Releasing lock... [2025-03-15 07:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 07:54:21] Production.INFO: 29 MB #Memory Used# [2025-03-15 07:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 04:55:05 [end_date_ymd] => 2025-03-15 07:55:05 [RateCDR] => 1 ) [2025-03-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-03-15 04:55:05' and `end` < '2025-03-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-03-15 07:55:17] Production.INFO: count ==104 [2025-03-15 07:55:17] Production.ERROR: pbx CDR StartTime 2025-03-15 04:55:05 - End Time 2025-03-15 07:55:05 [2025-03-15 07:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684749', 'tblTempUsageDetail_20' ) start [2025-03-15 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684749', 'tblTempUsageDetail_20' ) end [2025-03-15 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684749', 'tblTempVendorCDR_20' ) start [2025-03-15 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684749', 'tblTempVendorCDR_20' ) end [2025-03-15 07:55:17] Production.INFO: ProcessCDR(1,14684749,1,1,2) [2025-03-15 07:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684749', 'tblTempUsageDetail_20' ) start [2025-03-15 07:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684749', 'tblTempUsageDetail_20' ) end [2025-03-15 07:55:20] Production.ERROR: pbx prc_insertCDR start [2025-03-15 07:55:20] Production.ERROR: pbx prc_insertCDR end [2025-03-15 07:55:20] Production.INFO: ==17673== Releasing lock... [2025-03-15 07:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 07:55:20] Production.INFO: 29 MB #Memory Used# [2025-03-15 07:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 04:56:05 [end_date_ymd] => 2025-03-15 07:56:05 [RateCDR] => 1 ) [2025-03-15 07:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 04:56:05' and `end` < '2025-03-15 07:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 07:56:18] Production.INFO: count ==104 [2025-03-15 07:56:18] Production.ERROR: pbx CDR StartTime 2025-03-15 04:56:05 - End Time 2025-03-15 07:56:05 [2025-03-15 07:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684754', 'tblTempUsageDetail_20' ) start [2025-03-15 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684754', 'tblTempUsageDetail_20' ) end [2025-03-15 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684754', 'tblTempVendorCDR_20' ) start [2025-03-15 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684754', 'tblTempVendorCDR_20' ) end [2025-03-15 07:56:18] Production.INFO: ProcessCDR(1,14684754,1,1,2) [2025-03-15 07:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684754', 'tblTempUsageDetail_20' ) start [2025-03-15 07:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684754', 'tblTempUsageDetail_20' ) end [2025-03-15 07:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 07:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 07:56:21] Production.INFO: ==17750== Releasing lock... [2025-03-15 07:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 07:56:21] Production.INFO: 29 MB #Memory Used# [2025-03-15 07:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 04:57:05 [end_date_ymd] => 2025-03-15 07:57:05 [RateCDR] => 1 ) [2025-03-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-03-15 04:57:05' and `end` < '2025-03-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-03-15 07:57:17] Production.INFO: count ==104 [2025-03-15 07:57:17] Production.ERROR: pbx CDR StartTime 2025-03-15 04:57:05 - End Time 2025-03-15 07:57:05 [2025-03-15 07:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684759', 'tblTempUsageDetail_20' ) start [2025-03-15 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684759', 'tblTempUsageDetail_20' ) end [2025-03-15 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684759', 'tblTempVendorCDR_20' ) start [2025-03-15 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684759', 'tblTempVendorCDR_20' ) end [2025-03-15 07:57:17] Production.INFO: ProcessCDR(1,14684759,1,1,2) [2025-03-15 07:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684759', 'tblTempUsageDetail_20' ) start [2025-03-15 07:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684759', 'tblTempUsageDetail_20' ) end [2025-03-15 07:57:20] Production.ERROR: pbx prc_insertCDR start [2025-03-15 07:57:20] Production.ERROR: pbx prc_insertCDR end [2025-03-15 07:57:20] Production.INFO: ==17828== Releasing lock... [2025-03-15 07:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 07:57:20] Production.INFO: 29 MB #Memory Used# [2025-03-15 07:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 04:58:05 [end_date_ymd] => 2025-03-15 07:58:05 [RateCDR] => 1 ) [2025-03-15 07:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 04:58:05' and `end` < '2025-03-15 07:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 07:58:17] Production.INFO: count ==104 [2025-03-15 07:58:17] Production.ERROR: pbx CDR StartTime 2025-03-15 04:58:05 - End Time 2025-03-15 07:58:05 [2025-03-15 07:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684764', 'tblTempUsageDetail_20' ) start [2025-03-15 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684764', 'tblTempUsageDetail_20' ) end [2025-03-15 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684764', 'tblTempVendorCDR_20' ) start [2025-03-15 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684764', 'tblTempVendorCDR_20' ) end [2025-03-15 07:58:17] Production.INFO: ProcessCDR(1,14684764,1,1,2) [2025-03-15 07:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684764', 'tblTempUsageDetail_20' ) start [2025-03-15 07:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684764', 'tblTempUsageDetail_20' ) end [2025-03-15 07:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 07:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 07:58:21] Production.INFO: ==17905== Releasing lock... [2025-03-15 07:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 07:58:21] Production.INFO: 29 MB #Memory Used# [2025-03-15 07:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 04:59:05 [end_date_ymd] => 2025-03-15 07:59:05 [RateCDR] => 1 ) [2025-03-15 07:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 04:59:05' and `end` < '2025-03-15 07:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 07:59:18] Production.INFO: count ==105 [2025-03-15 07:59:18] Production.ERROR: pbx CDR StartTime 2025-03-15 04:59:05 - End Time 2025-03-15 07:59:05 [2025-03-15 07:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684769', 'tblTempUsageDetail_20' ) start [2025-03-15 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684769', 'tblTempUsageDetail_20' ) end [2025-03-15 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684769', 'tblTempVendorCDR_20' ) start [2025-03-15 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684769', 'tblTempVendorCDR_20' ) end [2025-03-15 07:59:18] Production.INFO: ProcessCDR(1,14684769,1,1,2) [2025-03-15 07:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 07:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 07:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684769', 'tblTempUsageDetail_20' ) start [2025-03-15 07:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684769', 'tblTempUsageDetail_20' ) end [2025-03-15 07:59:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 07:59:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 07:59:23] Production.INFO: ==17979== Releasing lock... [2025-03-15 07:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 07:59:23] Production.INFO: 29 MB #Memory Used# [2025-03-15 08:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 05:00:07 [end_date_ymd] => 2025-03-15 08:00:07 [RateCDR] => 1 ) [2025-03-15 08:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 05:00:07' and `end` < '2025-03-15 08:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 08:00:19] Production.INFO: count ==97 [2025-03-15 08:00:19] Production.ERROR: pbx CDR StartTime 2025-03-15 05:00:07 - End Time 2025-03-15 08:00:07 [2025-03-15 08:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684775', 'tblTempUsageDetail_20' ) start [2025-03-15 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684775', 'tblTempUsageDetail_20' ) end [2025-03-15 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684775', 'tblTempVendorCDR_20' ) start [2025-03-15 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684775', 'tblTempVendorCDR_20' ) end [2025-03-15 08:00:19] Production.INFO: ProcessCDR(1,14684775,1,1,2) [2025-03-15 08:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684775', 'tblTempUsageDetail_20' ) start [2025-03-15 08:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684775', 'tblTempUsageDetail_20' ) end [2025-03-15 08:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 08:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 08:00:22] Production.INFO: ==18060== Releasing lock... [2025-03-15 08:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 08:00:22] Production.INFO: 29 MB #Memory Used# [2025-03-15 08:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 05:01:05 [end_date_ymd] => 2025-03-15 08:01:05 [RateCDR] => 1 ) [2025-03-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-03-15 05:01:05' and `end` < '2025-03-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-03-15 08:01:17] Production.INFO: count ==99 [2025-03-15 08:01:17] Production.ERROR: pbx CDR StartTime 2025-03-15 05:01:05 - End Time 2025-03-15 08:01:05 [2025-03-15 08:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684780', 'tblTempUsageDetail_20' ) start [2025-03-15 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684780', 'tblTempUsageDetail_20' ) end [2025-03-15 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684780', 'tblTempVendorCDR_20' ) start [2025-03-15 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684780', 'tblTempVendorCDR_20' ) end [2025-03-15 08:01:17] Production.INFO: ProcessCDR(1,14684780,1,1,2) [2025-03-15 08:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684780', 'tblTempUsageDetail_20' ) start [2025-03-15 08:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684780', 'tblTempUsageDetail_20' ) end [2025-03-15 08:01:20] Production.ERROR: pbx prc_insertCDR start [2025-03-15 08:01:20] Production.ERROR: pbx prc_insertCDR end [2025-03-15 08:01:20] Production.INFO: ==18147== Releasing lock... [2025-03-15 08:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 08:01:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-15 08:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 05:02:06 [end_date_ymd] => 2025-03-15 08:02:06 [RateCDR] => 1 ) [2025-03-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-03-15 05:02:06' and `end` < '2025-03-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-03-15 08:02:18] Production.INFO: count ==98 [2025-03-15 08:02:18] Production.ERROR: pbx CDR StartTime 2025-03-15 05:02:06 - End Time 2025-03-15 08:02:06 [2025-03-15 08:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684785', 'tblTempUsageDetail_20' ) start [2025-03-15 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684785', 'tblTempUsageDetail_20' ) end [2025-03-15 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684785', 'tblTempVendorCDR_20' ) start [2025-03-15 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684785', 'tblTempVendorCDR_20' ) end [2025-03-15 08:02:18] Production.INFO: ProcessCDR(1,14684785,1,1,2) [2025-03-15 08:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684785', 'tblTempUsageDetail_20' ) start [2025-03-15 08:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684785', 'tblTempUsageDetail_20' ) end [2025-03-15 08:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 08:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 08:02:22] Production.INFO: ==18226== Releasing lock... [2025-03-15 08:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 08:02:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-15 08:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 05:03:05 [end_date_ymd] => 2025-03-15 08:03:05 [RateCDR] => 1 ) [2025-03-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-03-15 05:03:05' and `end` < '2025-03-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-03-15 08:03:17] Production.INFO: count ==94 [2025-03-15 08:03:17] Production.ERROR: pbx CDR StartTime 2025-03-15 05:03:05 - End Time 2025-03-15 08:03:05 [2025-03-15 08:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684790', 'tblTempUsageDetail_20' ) start [2025-03-15 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684790', 'tblTempUsageDetail_20' ) end [2025-03-15 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684790', 'tblTempVendorCDR_20' ) start [2025-03-15 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684790', 'tblTempVendorCDR_20' ) end [2025-03-15 08:03:17] Production.INFO: ProcessCDR(1,14684790,1,1,2) [2025-03-15 08:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684790', 'tblTempUsageDetail_20' ) start [2025-03-15 08:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684790', 'tblTempUsageDetail_20' ) end [2025-03-15 08:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 08:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 08:03:21] Production.INFO: ==18302== Releasing lock... [2025-03-15 08:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 08:03:21] Production.INFO: 29 MB #Memory Used# [2025-03-15 08:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 05:04:05 [end_date_ymd] => 2025-03-15 08:04:05 [RateCDR] => 1 ) [2025-03-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-03-15 05:04:05' and `end` < '2025-03-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-03-15 08:04:18] Production.INFO: count ==91 [2025-03-15 08:04:18] Production.ERROR: pbx CDR StartTime 2025-03-15 05:04:05 - End Time 2025-03-15 08:04:05 [2025-03-15 08:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684795', 'tblTempUsageDetail_20' ) start [2025-03-15 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684795', 'tblTempUsageDetail_20' ) end [2025-03-15 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684795', 'tblTempVendorCDR_20' ) start [2025-03-15 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684795', 'tblTempVendorCDR_20' ) end [2025-03-15 08:04:18] Production.INFO: ProcessCDR(1,14684795,1,1,2) [2025-03-15 08:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684795', 'tblTempUsageDetail_20' ) start [2025-03-15 08:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684795', 'tblTempUsageDetail_20' ) end [2025-03-15 08:04:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 08:04:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 08:04:23] Production.INFO: ==18381== Releasing lock... [2025-03-15 08:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 08:04:23] Production.INFO: 29 MB #Memory Used# [2025-03-15 08:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 05:05:05 [end_date_ymd] => 2025-03-15 08:05:05 [RateCDR] => 1 ) [2025-03-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-03-15 05:05:05' and `end` < '2025-03-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-03-15 08:05:17] Production.INFO: count ==101 [2025-03-15 08:05:17] Production.ERROR: pbx CDR StartTime 2025-03-15 05:05:05 - End Time 2025-03-15 08:05:05 [2025-03-15 08:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684800', 'tblTempUsageDetail_20' ) start [2025-03-15 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684800', 'tblTempUsageDetail_20' ) end [2025-03-15 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684800', 'tblTempVendorCDR_20' ) start [2025-03-15 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684800', 'tblTempVendorCDR_20' ) end [2025-03-15 08:05:17] Production.INFO: ProcessCDR(1,14684800,1,1,2) [2025-03-15 08:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684800', 'tblTempUsageDetail_20' ) start [2025-03-15 08:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684800', 'tblTempUsageDetail_20' ) end [2025-03-15 08:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 08:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 08:05:21] Production.INFO: ==18500== Releasing lock... [2025-03-15 08:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 08:05:21] Production.INFO: 29 MB #Memory Used# [2025-03-15 08:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 05:06:05 [end_date_ymd] => 2025-03-15 08:06:05 [RateCDR] => 1 ) [2025-03-15 08:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 05:06:05' and `end` < '2025-03-15 08:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 08:06:17] Production.INFO: count ==99 [2025-03-15 08:06:17] Production.ERROR: pbx CDR StartTime 2025-03-15 05:06:05 - End Time 2025-03-15 08:06:05 [2025-03-15 08:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684805', 'tblTempUsageDetail_20' ) start [2025-03-15 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684805', 'tblTempUsageDetail_20' ) end [2025-03-15 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684805', 'tblTempVendorCDR_20' ) start [2025-03-15 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684805', 'tblTempVendorCDR_20' ) end [2025-03-15 08:06:17] Production.INFO: ProcessCDR(1,14684805,1,1,2) [2025-03-15 08:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684805', 'tblTempUsageDetail_20' ) start [2025-03-15 08:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684805', 'tblTempUsageDetail_20' ) end [2025-03-15 08:06:20] Production.ERROR: pbx prc_insertCDR start [2025-03-15 08:06:20] Production.ERROR: pbx prc_insertCDR end [2025-03-15 08:06:20] Production.INFO: ==18579== Releasing lock... [2025-03-15 08:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 08:06:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-15 08:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 05:07:05 [end_date_ymd] => 2025-03-15 08:07:05 [RateCDR] => 1 ) [2025-03-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-03-15 05:07:05' and `end` < '2025-03-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-03-15 08:07:18] Production.INFO: count ==97 [2025-03-15 08:07:18] Production.ERROR: pbx CDR StartTime 2025-03-15 05:07:05 - End Time 2025-03-15 08:07:05 [2025-03-15 08:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684810', 'tblTempUsageDetail_20' ) start [2025-03-15 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684810', 'tblTempUsageDetail_20' ) end [2025-03-15 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684810', 'tblTempVendorCDR_20' ) start [2025-03-15 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684810', 'tblTempVendorCDR_20' ) end [2025-03-15 08:07:18] Production.INFO: ProcessCDR(1,14684810,1,1,2) [2025-03-15 08:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684810', 'tblTempUsageDetail_20' ) start [2025-03-15 08:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684810', 'tblTempUsageDetail_20' ) end [2025-03-15 08:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 08:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 08:07:21] Production.INFO: ==18653== Releasing lock... [2025-03-15 08:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 08:07:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-15 08:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 05:08:05 [end_date_ymd] => 2025-03-15 08:08:05 [RateCDR] => 1 ) [2025-03-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-03-15 05:08:05' and `end` < '2025-03-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-03-15 08:08:18] Production.INFO: count ==98 [2025-03-15 08:08:18] Production.ERROR: pbx CDR StartTime 2025-03-15 05:08:05 - End Time 2025-03-15 08:08:05 [2025-03-15 08:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684815', 'tblTempUsageDetail_20' ) start [2025-03-15 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684815', 'tblTempUsageDetail_20' ) end [2025-03-15 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684815', 'tblTempVendorCDR_20' ) start [2025-03-15 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684815', 'tblTempVendorCDR_20' ) end [2025-03-15 08:08:18] Production.INFO: ProcessCDR(1,14684815,1,1,2) [2025-03-15 08:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684815', 'tblTempUsageDetail_20' ) start [2025-03-15 08:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684815', 'tblTempUsageDetail_20' ) end [2025-03-15 08:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 08:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 08:08:21] Production.INFO: ==18730== Releasing lock... [2025-03-15 08:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 08:08:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-15 08:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 05:09:05 [end_date_ymd] => 2025-03-15 08:09:05 [RateCDR] => 1 ) [2025-03-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-03-15 05:09:05' and `end` < '2025-03-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-03-15 08:09:17] Production.INFO: count ==98 [2025-03-15 08:09:17] Production.ERROR: pbx CDR StartTime 2025-03-15 05:09:05 - End Time 2025-03-15 08:09:05 [2025-03-15 08:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684820', 'tblTempUsageDetail_20' ) start [2025-03-15 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684820', 'tblTempUsageDetail_20' ) end [2025-03-15 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684820', 'tblTempVendorCDR_20' ) start [2025-03-15 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684820', 'tblTempVendorCDR_20' ) end [2025-03-15 08:09:17] Production.INFO: ProcessCDR(1,14684820,1,1,2) [2025-03-15 08:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684820', 'tblTempUsageDetail_20' ) start [2025-03-15 08:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684820', 'tblTempUsageDetail_20' ) end [2025-03-15 08:09:20] Production.ERROR: pbx prc_insertCDR start [2025-03-15 08:09:20] Production.ERROR: pbx prc_insertCDR end [2025-03-15 08:09:20] Production.INFO: ==18807== Releasing lock... [2025-03-15 08:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 08:09:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-15 08:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 05:10:07 [end_date_ymd] => 2025-03-15 08:10:07 [RateCDR] => 1 ) [2025-03-15 08:10:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 05:10:07' and `end` < '2025-03-15 08:10:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 08:10:19] Production.INFO: count ==103 [2025-03-15 08:10:19] Production.ERROR: pbx CDR StartTime 2025-03-15 05:10:07 - End Time 2025-03-15 08:10:07 [2025-03-15 08:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684826', 'tblTempUsageDetail_20' ) start [2025-03-15 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684826', 'tblTempUsageDetail_20' ) end [2025-03-15 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684826', 'tblTempVendorCDR_20' ) start [2025-03-15 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684826', 'tblTempVendorCDR_20' ) end [2025-03-15 08:10:19] Production.INFO: ProcessCDR(1,14684826,1,1,2) [2025-03-15 08:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684826', 'tblTempUsageDetail_20' ) start [2025-03-15 08:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684826', 'tblTempUsageDetail_20' ) end [2025-03-15 08:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 08:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 08:10:22] Production.INFO: ==18884== Releasing lock... [2025-03-15 08:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 08:10:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-15 08:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 05:11:05 [end_date_ymd] => 2025-03-15 08:11:05 [RateCDR] => 1 ) [2025-03-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-03-15 05:11:05' and `end` < '2025-03-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-03-15 08:11:17] Production.INFO: count ==103 [2025-03-15 08:11:17] Production.ERROR: pbx CDR StartTime 2025-03-15 05:11:05 - End Time 2025-03-15 08:11:05 [2025-03-15 08:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684831', 'tblTempUsageDetail_20' ) start [2025-03-15 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684831', 'tblTempUsageDetail_20' ) end [2025-03-15 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684831', 'tblTempVendorCDR_20' ) start [2025-03-15 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684831', 'tblTempVendorCDR_20' ) end [2025-03-15 08:11:17] Production.INFO: ProcessCDR(1,14684831,1,1,2) [2025-03-15 08:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684831', 'tblTempUsageDetail_20' ) start [2025-03-15 08:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684831', 'tblTempUsageDetail_20' ) end [2025-03-15 08:11:20] Production.ERROR: pbx prc_insertCDR start [2025-03-15 08:11:20] Production.ERROR: pbx prc_insertCDR end [2025-03-15 08:11:20] Production.INFO: ==18961== Releasing lock... [2025-03-15 08:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 08:11:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-15 08:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 05:12:05 [end_date_ymd] => 2025-03-15 08:12:05 [RateCDR] => 1 ) [2025-03-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-03-15 05:12:05' and `end` < '2025-03-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-03-15 08:12:18] Production.INFO: count ==103 [2025-03-15 08:12:18] Production.ERROR: pbx CDR StartTime 2025-03-15 05:12:05 - End Time 2025-03-15 08:12:05 [2025-03-15 08:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684836', 'tblTempUsageDetail_20' ) start [2025-03-15 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684836', 'tblTempUsageDetail_20' ) end [2025-03-15 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684836', 'tblTempVendorCDR_20' ) start [2025-03-15 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684836', 'tblTempVendorCDR_20' ) end [2025-03-15 08:12:18] Production.INFO: ProcessCDR(1,14684836,1,1,2) [2025-03-15 08:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684836', 'tblTempUsageDetail_20' ) start [2025-03-15 08:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684836', 'tblTempUsageDetail_20' ) end [2025-03-15 08:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 08:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 08:12:21] Production.INFO: ==19035== Releasing lock... [2025-03-15 08:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 08:12:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-15 08:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 05:13:05 [end_date_ymd] => 2025-03-15 08:13:05 [RateCDR] => 1 ) [2025-03-15 08:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 05:13:05' and `end` < '2025-03-15 08:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 08:13:17] Production.INFO: count ==103 [2025-03-15 08:13:17] Production.ERROR: pbx CDR StartTime 2025-03-15 05:13:05 - End Time 2025-03-15 08:13:05 [2025-03-15 08:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684841', 'tblTempUsageDetail_20' ) start [2025-03-15 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684841', 'tblTempUsageDetail_20' ) end [2025-03-15 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684841', 'tblTempVendorCDR_20' ) start [2025-03-15 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684841', 'tblTempVendorCDR_20' ) end [2025-03-15 08:13:17] Production.INFO: ProcessCDR(1,14684841,1,1,2) [2025-03-15 08:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684841', 'tblTempUsageDetail_20' ) start [2025-03-15 08:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684841', 'tblTempUsageDetail_20' ) end [2025-03-15 08:13:20] Production.ERROR: pbx prc_insertCDR start [2025-03-15 08:13:20] Production.ERROR: pbx prc_insertCDR end [2025-03-15 08:13:20] Production.INFO: ==19112== Releasing lock... [2025-03-15 08:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 08:13:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-15 08:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 05:14:06 [end_date_ymd] => 2025-03-15 08:14:06 [RateCDR] => 1 ) [2025-03-15 08:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 05:14:06' and `end` < '2025-03-15 08:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 08:14:18] Production.INFO: count ==103 [2025-03-15 08:14:18] Production.ERROR: pbx CDR StartTime 2025-03-15 05:14:06 - End Time 2025-03-15 08:14:06 [2025-03-15 08:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684846', 'tblTempUsageDetail_20' ) start [2025-03-15 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684846', 'tblTempUsageDetail_20' ) end [2025-03-15 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684846', 'tblTempVendorCDR_20' ) start [2025-03-15 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684846', 'tblTempVendorCDR_20' ) end [2025-03-15 08:14:18] Production.INFO: ProcessCDR(1,14684846,1,1,2) [2025-03-15 08:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684846', 'tblTempUsageDetail_20' ) start [2025-03-15 08:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684846', 'tblTempUsageDetail_20' ) end [2025-03-15 08:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 08:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 08:14:21] Production.INFO: ==19184== Releasing lock... [2025-03-15 08:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 08:14:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-15 08:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 05:15:05 [end_date_ymd] => 2025-03-15 08:15:05 [RateCDR] => 1 ) [2025-03-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-03-15 05:15:05' and `end` < '2025-03-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-03-15 08:15:17] Production.INFO: count ==103 [2025-03-15 08:15:17] Production.ERROR: pbx CDR StartTime 2025-03-15 05:15:05 - End Time 2025-03-15 08:15:05 [2025-03-15 08:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684851', 'tblTempUsageDetail_20' ) start [2025-03-15 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684851', 'tblTempUsageDetail_20' ) end [2025-03-15 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684851', 'tblTempVendorCDR_20' ) start [2025-03-15 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684851', 'tblTempVendorCDR_20' ) end [2025-03-15 08:15:17] Production.INFO: ProcessCDR(1,14684851,1,1,2) [2025-03-15 08:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684851', 'tblTempUsageDetail_20' ) start [2025-03-15 08:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684851', 'tblTempUsageDetail_20' ) end [2025-03-15 08:15:20] Production.ERROR: pbx prc_insertCDR start [2025-03-15 08:15:20] Production.ERROR: pbx prc_insertCDR end [2025-03-15 08:15:21] Production.INFO: ==19256== Releasing lock... [2025-03-15 08:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 08:15:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-15 08:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 05:16:05 [end_date_ymd] => 2025-03-15 08:16:05 [RateCDR] => 1 ) [2025-03-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-03-15 05:16:05' and `end` < '2025-03-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-03-15 08:16:17] Production.INFO: count ==103 [2025-03-15 08:16:17] Production.ERROR: pbx CDR StartTime 2025-03-15 05:16:05 - End Time 2025-03-15 08:16:05 [2025-03-15 08:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 08:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684856', 'tblTempUsageDetail_20' ) start [2025-03-15 08:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684856', 'tblTempUsageDetail_20' ) end [2025-03-15 08:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684856', 'tblTempVendorCDR_20' ) start [2025-03-15 08:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684856', 'tblTempVendorCDR_20' ) end [2025-03-15 08:16:17] Production.INFO: ProcessCDR(1,14684856,1,1,2) [2025-03-15 08:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684856', 'tblTempUsageDetail_20' ) start [2025-03-15 08:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684856', 'tblTempUsageDetail_20' ) end [2025-03-15 08:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 08:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 08:16:21] Production.INFO: ==19330== Releasing lock... [2025-03-15 08:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 08:16:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-15 08:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 05:17:05 [end_date_ymd] => 2025-03-15 08:17:05 [RateCDR] => 1 ) [2025-03-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-03-15 05:17:05' and `end` < '2025-03-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-03-15 08:17:17] Production.INFO: count ==104 [2025-03-15 08:17:17] Production.ERROR: pbx CDR StartTime 2025-03-15 05:17:05 - End Time 2025-03-15 08:17:05 [2025-03-15 08:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684861', 'tblTempUsageDetail_20' ) start [2025-03-15 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684861', 'tblTempUsageDetail_20' ) end [2025-03-15 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684861', 'tblTempVendorCDR_20' ) start [2025-03-15 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684861', 'tblTempVendorCDR_20' ) end [2025-03-15 08:17:17] Production.INFO: ProcessCDR(1,14684861,1,1,2) [2025-03-15 08:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684861', 'tblTempUsageDetail_20' ) start [2025-03-15 08:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684861', 'tblTempUsageDetail_20' ) end [2025-03-15 08:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 08:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 08:17:22] Production.INFO: ==19403== Releasing lock... [2025-03-15 08:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 08:17:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-15 08:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 05:18:05 [end_date_ymd] => 2025-03-15 08:18:05 [RateCDR] => 1 ) [2025-03-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-03-15 05:18:05' and `end` < '2025-03-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-03-15 08:18:18] Production.INFO: count ==108 [2025-03-15 08:18:18] Production.ERROR: pbx CDR StartTime 2025-03-15 05:18:05 - End Time 2025-03-15 08:18:05 [2025-03-15 08:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684866', 'tblTempUsageDetail_20' ) start [2025-03-15 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684866', 'tblTempUsageDetail_20' ) end [2025-03-15 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684866', 'tblTempVendorCDR_20' ) start [2025-03-15 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684866', 'tblTempVendorCDR_20' ) end [2025-03-15 08:18:18] Production.INFO: ProcessCDR(1,14684866,1,1,2) [2025-03-15 08:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684866', 'tblTempUsageDetail_20' ) start [2025-03-15 08:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684866', 'tblTempUsageDetail_20' ) end [2025-03-15 08:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 08:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 08:18:21] Production.INFO: ==19479== Releasing lock... [2025-03-15 08:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 08:18:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-15 08:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 05:19:05 [end_date_ymd] => 2025-03-15 08:19:05 [RateCDR] => 1 ) [2025-03-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-03-15 05:19:05' and `end` < '2025-03-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-03-15 08:19:17] Production.INFO: count ==112 [2025-03-15 08:19:17] Production.ERROR: pbx CDR StartTime 2025-03-15 05:19:05 - End Time 2025-03-15 08:19:05 [2025-03-15 08:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684871', 'tblTempUsageDetail_20' ) start [2025-03-15 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684871', 'tblTempUsageDetail_20' ) end [2025-03-15 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684871', 'tblTempVendorCDR_20' ) start [2025-03-15 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684871', 'tblTempVendorCDR_20' ) end [2025-03-15 08:19:17] Production.INFO: ProcessCDR(1,14684871,1,1,2) [2025-03-15 08:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684871', 'tblTempUsageDetail_20' ) start [2025-03-15 08:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684871', 'tblTempUsageDetail_20' ) end [2025-03-15 08:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 08:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 08:19:21] Production.INFO: ==19556== Releasing lock... [2025-03-15 08:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 08:19:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-15 08:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 05:20:05 [end_date_ymd] => 2025-03-15 08:20:05 [RateCDR] => 1 ) [2025-03-15 08:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 05:20:05' and `end` < '2025-03-15 08:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 08:20:17] Production.INFO: count ==112 [2025-03-15 08:20:17] Production.ERROR: pbx CDR StartTime 2025-03-15 05:20:05 - End Time 2025-03-15 08:20:05 [2025-03-15 08:20:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 08:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684876', 'tblTempUsageDetail_20' ) start [2025-03-15 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684876', 'tblTempUsageDetail_20' ) end [2025-03-15 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684876', 'tblTempVendorCDR_20' ) start [2025-03-15 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684876', 'tblTempVendorCDR_20' ) end [2025-03-15 08:20:18] Production.INFO: ProcessCDR(1,14684876,1,1,2) [2025-03-15 08:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684876', 'tblTempUsageDetail_20' ) start [2025-03-15 08:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684876', 'tblTempUsageDetail_20' ) end [2025-03-15 08:20:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 08:20:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 08:20:21] Production.INFO: ==19669== Releasing lock... [2025-03-15 08:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 08:20:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-15 08:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 05:21:05 [end_date_ymd] => 2025-03-15 08:21:05 [RateCDR] => 1 ) [2025-03-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-03-15 05:21:05' and `end` < '2025-03-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-03-15 08:21:17] Production.INFO: count ==112 [2025-03-15 08:21:17] Production.ERROR: pbx CDR StartTime 2025-03-15 05:21:05 - End Time 2025-03-15 08:21:05 [2025-03-15 08:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684882', 'tblTempUsageDetail_20' ) start [2025-03-15 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684882', 'tblTempUsageDetail_20' ) end [2025-03-15 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684882', 'tblTempVendorCDR_20' ) start [2025-03-15 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684882', 'tblTempVendorCDR_20' ) end [2025-03-15 08:21:17] Production.INFO: ProcessCDR(1,14684882,1,1,2) [2025-03-15 08:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684882', 'tblTempUsageDetail_20' ) start [2025-03-15 08:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684882', 'tblTempUsageDetail_20' ) end [2025-03-15 08:21:20] Production.ERROR: pbx prc_insertCDR start [2025-03-15 08:21:20] Production.ERROR: pbx prc_insertCDR end [2025-03-15 08:21:20] Production.INFO: ==19743== Releasing lock... [2025-03-15 08:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 08:21:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-15 08:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 05:22:05 [end_date_ymd] => 2025-03-15 08:22:05 [RateCDR] => 1 ) [2025-03-15 08:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 05:22:05' and `end` < '2025-03-15 08:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 08:22:17] Production.INFO: count ==112 [2025-03-15 08:22:17] Production.ERROR: pbx CDR StartTime 2025-03-15 05:22:05 - End Time 2025-03-15 08:22:05 [2025-03-15 08:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684887', 'tblTempUsageDetail_20' ) start [2025-03-15 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684887', 'tblTempUsageDetail_20' ) end [2025-03-15 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684887', 'tblTempVendorCDR_20' ) start [2025-03-15 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684887', 'tblTempVendorCDR_20' ) end [2025-03-15 08:22:17] Production.INFO: ProcessCDR(1,14684887,1,1,2) [2025-03-15 08:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684887', 'tblTempUsageDetail_20' ) start [2025-03-15 08:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684887', 'tblTempUsageDetail_20' ) end [2025-03-15 08:22:20] Production.ERROR: pbx prc_insertCDR start [2025-03-15 08:22:20] Production.ERROR: pbx prc_insertCDR end [2025-03-15 08:22:20] Production.INFO: ==19815== Releasing lock... [2025-03-15 08:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 08:22:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-15 08:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 05:23:05 [end_date_ymd] => 2025-03-15 08:23:05 [RateCDR] => 1 ) [2025-03-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-03-15 05:23:05' and `end` < '2025-03-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-03-15 08:23:17] Production.INFO: count ==119 [2025-03-15 08:23:17] Production.ERROR: pbx CDR StartTime 2025-03-15 05:23:05 - End Time 2025-03-15 08:23:05 [2025-03-15 08:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684892', 'tblTempUsageDetail_20' ) start [2025-03-15 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684892', 'tblTempUsageDetail_20' ) end [2025-03-15 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684892', 'tblTempVendorCDR_20' ) start [2025-03-15 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684892', 'tblTempVendorCDR_20' ) end [2025-03-15 08:23:17] Production.INFO: ProcessCDR(1,14684892,1,1,2) [2025-03-15 08:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684892', 'tblTempUsageDetail_20' ) start [2025-03-15 08:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684892', 'tblTempUsageDetail_20' ) end [2025-03-15 08:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 08:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 08:23:21] Production.INFO: ==19891== Releasing lock... [2025-03-15 08:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 08:23:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-15 08:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 05:24:05 [end_date_ymd] => 2025-03-15 08:24:05 [RateCDR] => 1 ) [2025-03-15 08:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 05:24:05' and `end` < '2025-03-15 08:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 08:24:17] Production.INFO: count ==119 [2025-03-15 08:24:17] Production.ERROR: pbx CDR StartTime 2025-03-15 05:24:05 - End Time 2025-03-15 08:24:05 [2025-03-15 08:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684897', 'tblTempUsageDetail_20' ) start [2025-03-15 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684897', 'tblTempUsageDetail_20' ) end [2025-03-15 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684897', 'tblTempVendorCDR_20' ) start [2025-03-15 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684897', 'tblTempVendorCDR_20' ) end [2025-03-15 08:24:17] Production.INFO: ProcessCDR(1,14684897,1,1,2) [2025-03-15 08:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684897', 'tblTempUsageDetail_20' ) start [2025-03-15 08:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684897', 'tblTempUsageDetail_20' ) end [2025-03-15 08:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 08:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 08:24:21] Production.INFO: ==19962== Releasing lock... [2025-03-15 08:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 08:24:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-15 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 05:25:05 [end_date_ymd] => 2025-03-15 08:25:05 [RateCDR] => 1 ) [2025-03-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-03-15 05:25:05' and `end` < '2025-03-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-03-15 08:25:18] Production.INFO: count ==124 [2025-03-15 08:25:18] Production.ERROR: pbx CDR StartTime 2025-03-15 05:25:05 - End Time 2025-03-15 08:25:05 [2025-03-15 08:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684902', 'tblTempUsageDetail_20' ) start [2025-03-15 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684902', 'tblTempUsageDetail_20' ) end [2025-03-15 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684902', 'tblTempVendorCDR_20' ) start [2025-03-15 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684902', 'tblTempVendorCDR_20' ) end [2025-03-15 08:25:18] Production.INFO: ProcessCDR(1,14684902,1,1,2) [2025-03-15 08:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684902', 'tblTempUsageDetail_20' ) start [2025-03-15 08:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684902', 'tblTempUsageDetail_20' ) end [2025-03-15 08:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 08:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 08:25:21] Production.INFO: ==20040== Releasing lock... [2025-03-15 08:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 08:25:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-15 08:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 05:26:05 [end_date_ymd] => 2025-03-15 08:26:05 [RateCDR] => 1 ) [2025-03-15 08:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 05:26:05' and `end` < '2025-03-15 08:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 08:26:17] Production.INFO: count ==125 [2025-03-15 08:26:17] Production.ERROR: pbx CDR StartTime 2025-03-15 05:26:05 - End Time 2025-03-15 08:26:05 [2025-03-15 08:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684907', 'tblTempUsageDetail_20' ) start [2025-03-15 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684907', 'tblTempUsageDetail_20' ) end [2025-03-15 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684907', 'tblTempVendorCDR_20' ) start [2025-03-15 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684907', 'tblTempVendorCDR_20' ) end [2025-03-15 08:26:17] Production.INFO: ProcessCDR(1,14684907,1,1,2) [2025-03-15 08:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684907', 'tblTempUsageDetail_20' ) start [2025-03-15 08:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684907', 'tblTempUsageDetail_20' ) end [2025-03-15 08:26:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 08:26:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 08:26:22] Production.INFO: ==20118== Releasing lock... [2025-03-15 08:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 08:26:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-15 08:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 05:27:06 [end_date_ymd] => 2025-03-15 08:27:06 [RateCDR] => 1 ) [2025-03-15 08:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 05:27:06' and `end` < '2025-03-15 08:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 08:27:18] Production.INFO: count ==125 [2025-03-15 08:27:18] Production.ERROR: pbx CDR StartTime 2025-03-15 05:27:06 - End Time 2025-03-15 08:27:06 [2025-03-15 08:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684912', 'tblTempUsageDetail_20' ) start [2025-03-15 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684912', 'tblTempUsageDetail_20' ) end [2025-03-15 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684912', 'tblTempVendorCDR_20' ) start [2025-03-15 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684912', 'tblTempVendorCDR_20' ) end [2025-03-15 08:27:18] Production.INFO: ProcessCDR(1,14684912,1,1,2) [2025-03-15 08:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684912', 'tblTempUsageDetail_20' ) start [2025-03-15 08:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684912', 'tblTempUsageDetail_20' ) end [2025-03-15 08:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 08:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 08:27:21] Production.INFO: ==20193== Releasing lock... [2025-03-15 08:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 08:27:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-15 08:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 05:28:05 [end_date_ymd] => 2025-03-15 08:28:05 [RateCDR] => 1 ) [2025-03-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-03-15 05:28:05' and `end` < '2025-03-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-03-15 08:28:17] Production.INFO: count ==125 [2025-03-15 08:28:17] Production.ERROR: pbx CDR StartTime 2025-03-15 05:28:05 - End Time 2025-03-15 08:28:05 [2025-03-15 08:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684917', 'tblTempUsageDetail_20' ) start [2025-03-15 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684917', 'tblTempUsageDetail_20' ) end [2025-03-15 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684917', 'tblTempVendorCDR_20' ) start [2025-03-15 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684917', 'tblTempVendorCDR_20' ) end [2025-03-15 08:28:17] Production.INFO: ProcessCDR(1,14684917,1,1,2) [2025-03-15 08:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684917', 'tblTempUsageDetail_20' ) start [2025-03-15 08:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684917', 'tblTempUsageDetail_20' ) end [2025-03-15 08:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 08:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 08:28:21] Production.INFO: ==20266== Releasing lock... [2025-03-15 08:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 08:28:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-15 08:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 05:29:06 [end_date_ymd] => 2025-03-15 08:29:06 [RateCDR] => 1 ) [2025-03-15 08:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 05:29:06' and `end` < '2025-03-15 08:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 08:29:18] Production.INFO: count ==126 [2025-03-15 08:29:18] Production.ERROR: pbx CDR StartTime 2025-03-15 05:29:06 - End Time 2025-03-15 08:29:06 [2025-03-15 08:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684922', 'tblTempUsageDetail_20' ) start [2025-03-15 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684922', 'tblTempUsageDetail_20' ) end [2025-03-15 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684922', 'tblTempVendorCDR_20' ) start [2025-03-15 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684922', 'tblTempVendorCDR_20' ) end [2025-03-15 08:29:18] Production.INFO: ProcessCDR(1,14684922,1,1,2) [2025-03-15 08:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684922', 'tblTempUsageDetail_20' ) start [2025-03-15 08:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684922', 'tblTempUsageDetail_20' ) end [2025-03-15 08:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 08:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 08:29:21] Production.INFO: ==20339== Releasing lock... [2025-03-15 08:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 08:29:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-15 08:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 05:30:06 [end_date_ymd] => 2025-03-15 08:30:06 [RateCDR] => 1 ) [2025-03-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-03-15 05:30:06' and `end` < '2025-03-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-03-15 08:30:18] Production.INFO: count ==132 [2025-03-15 08:30:18] Production.ERROR: pbx CDR StartTime 2025-03-15 05:30:06 - End Time 2025-03-15 08:30:06 [2025-03-15 08:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684928', 'tblTempUsageDetail_20' ) start [2025-03-15 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684928', 'tblTempUsageDetail_20' ) end [2025-03-15 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684928', 'tblTempVendorCDR_20' ) start [2025-03-15 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684928', 'tblTempVendorCDR_20' ) end [2025-03-15 08:30:18] Production.INFO: ProcessCDR(1,14684928,1,1,2) [2025-03-15 08:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684928', 'tblTempUsageDetail_20' ) start [2025-03-15 08:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684928', 'tblTempUsageDetail_20' ) end [2025-03-15 08:30:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 08:30:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 08:30:21] Production.INFO: ==20417== Releasing lock... [2025-03-15 08:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 08:30:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-15 08:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 05:31:06 [end_date_ymd] => 2025-03-15 08:31:06 [RateCDR] => 1 ) [2025-03-15 08:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 05:31:06' and `end` < '2025-03-15 08:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 08:31:18] Production.INFO: count ==133 [2025-03-15 08:31:18] Production.ERROR: pbx CDR StartTime 2025-03-15 05:31:06 - End Time 2025-03-15 08:31:06 [2025-03-15 08:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684933', 'tblTempUsageDetail_20' ) start [2025-03-15 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684933', 'tblTempUsageDetail_20' ) end [2025-03-15 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684933', 'tblTempVendorCDR_20' ) start [2025-03-15 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684933', 'tblTempVendorCDR_20' ) end [2025-03-15 08:31:18] Production.INFO: ProcessCDR(1,14684933,1,1,2) [2025-03-15 08:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684933', 'tblTempUsageDetail_20' ) start [2025-03-15 08:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684933', 'tblTempUsageDetail_20' ) end [2025-03-15 08:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 08:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 08:31:21] Production.INFO: ==20493== Releasing lock... [2025-03-15 08:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 08:31:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-15 08:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 05:32:05 [end_date_ymd] => 2025-03-15 08:32:05 [RateCDR] => 1 ) [2025-03-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-03-15 05:32:05' and `end` < '2025-03-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-03-15 08:32:17] Production.INFO: count ==135 [2025-03-15 08:32:17] Production.ERROR: pbx CDR StartTime 2025-03-15 05:32:05 - End Time 2025-03-15 08:32:05 [2025-03-15 08:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 08:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684938', 'tblTempUsageDetail_20' ) start [2025-03-15 08:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684938', 'tblTempUsageDetail_20' ) end [2025-03-15 08:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684938', 'tblTempVendorCDR_20' ) start [2025-03-15 08:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684938', 'tblTempVendorCDR_20' ) end [2025-03-15 08:32:17] Production.INFO: ProcessCDR(1,14684938,1,1,2) [2025-03-15 08:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684938', 'tblTempUsageDetail_20' ) start [2025-03-15 08:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684938', 'tblTempUsageDetail_20' ) end [2025-03-15 08:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 08:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 08:32:21] Production.INFO: ==20570== Releasing lock... [2025-03-15 08:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 08:32:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-15 08:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 05:33:06 [end_date_ymd] => 2025-03-15 08:33:06 [RateCDR] => 1 ) [2025-03-15 08:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 05:33:06' and `end` < '2025-03-15 08:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 08:33:18] Production.INFO: count ==139 [2025-03-15 08:33:18] Production.ERROR: pbx CDR StartTime 2025-03-15 05:33:06 - End Time 2025-03-15 08:33:06 [2025-03-15 08:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684943', 'tblTempUsageDetail_20' ) start [2025-03-15 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684943', 'tblTempUsageDetail_20' ) end [2025-03-15 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684943', 'tblTempVendorCDR_20' ) start [2025-03-15 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684943', 'tblTempVendorCDR_20' ) end [2025-03-15 08:33:18] Production.INFO: ProcessCDR(1,14684943,1,1,2) [2025-03-15 08:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684943', 'tblTempUsageDetail_20' ) start [2025-03-15 08:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684943', 'tblTempUsageDetail_20' ) end [2025-03-15 08:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 08:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 08:33:21] Production.INFO: ==20653== Releasing lock... [2025-03-15 08:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 08:33:21] Production.INFO: 29 MB #Memory Used# [2025-03-15 08:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 05:34:05 [end_date_ymd] => 2025-03-15 08:34:05 [RateCDR] => 1 ) [2025-03-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-03-15 05:34:05' and `end` < '2025-03-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-03-15 08:34:17] Production.INFO: count ==139 [2025-03-15 08:34:17] Production.ERROR: pbx CDR StartTime 2025-03-15 05:34:05 - End Time 2025-03-15 08:34:05 [2025-03-15 08:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 08:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684948', 'tblTempUsageDetail_20' ) start [2025-03-15 08:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684948', 'tblTempUsageDetail_20' ) end [2025-03-15 08:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684948', 'tblTempVendorCDR_20' ) start [2025-03-15 08:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684948', 'tblTempVendorCDR_20' ) end [2025-03-15 08:34:17] Production.INFO: ProcessCDR(1,14684948,1,1,2) [2025-03-15 08:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684948', 'tblTempUsageDetail_20' ) start [2025-03-15 08:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684948', 'tblTempUsageDetail_20' ) end [2025-03-15 08:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 08:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 08:34:21] Production.INFO: ==20756== Releasing lock... [2025-03-15 08:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 08:34:21] Production.INFO: 29 MB #Memory Used# [2025-03-15 08:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 05:35:05 [end_date_ymd] => 2025-03-15 08:35:05 [RateCDR] => 1 ) [2025-03-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-03-15 05:35:05' and `end` < '2025-03-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-03-15 08:35:17] Production.INFO: count ==144 [2025-03-15 08:35:17] Production.ERROR: pbx CDR StartTime 2025-03-15 05:35:05 - End Time 2025-03-15 08:35:05 [2025-03-15 08:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684953', 'tblTempUsageDetail_20' ) start [2025-03-15 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684953', 'tblTempUsageDetail_20' ) end [2025-03-15 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684953', 'tblTempVendorCDR_20' ) start [2025-03-15 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684953', 'tblTempVendorCDR_20' ) end [2025-03-15 08:35:17] Production.INFO: ProcessCDR(1,14684953,1,1,2) [2025-03-15 08:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684953', 'tblTempUsageDetail_20' ) start [2025-03-15 08:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684953', 'tblTempUsageDetail_20' ) end [2025-03-15 08:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 08:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 08:35:22] Production.INFO: ==20856== Releasing lock... [2025-03-15 08:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 08:35:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-15 08:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 05:36:05 [end_date_ymd] => 2025-03-15 08:36:05 [RateCDR] => 1 ) [2025-03-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-03-15 05:36:05' and `end` < '2025-03-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-03-15 08:36:17] Production.INFO: count ==148 [2025-03-15 08:36:17] Production.ERROR: pbx CDR StartTime 2025-03-15 05:36:05 - End Time 2025-03-15 08:36:05 [2025-03-15 08:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684958', 'tblTempUsageDetail_20' ) start [2025-03-15 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684958', 'tblTempUsageDetail_20' ) end [2025-03-15 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684958', 'tblTempVendorCDR_20' ) start [2025-03-15 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684958', 'tblTempVendorCDR_20' ) end [2025-03-15 08:36:17] Production.INFO: ProcessCDR(1,14684958,1,1,2) [2025-03-15 08:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684958', 'tblTempUsageDetail_20' ) start [2025-03-15 08:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684958', 'tblTempUsageDetail_20' ) end [2025-03-15 08:36:20] Production.ERROR: pbx prc_insertCDR start [2025-03-15 08:36:20] Production.ERROR: pbx prc_insertCDR end [2025-03-15 08:36:20] Production.INFO: ==20994== Releasing lock... [2025-03-15 08:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 08:36:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-15 08:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 05:37:05 [end_date_ymd] => 2025-03-15 08:37:05 [RateCDR] => 1 ) [2025-03-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-03-15 05:37:05' and `end` < '2025-03-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-03-15 08:37:17] Production.INFO: count ==148 [2025-03-15 08:37:17] Production.ERROR: pbx CDR StartTime 2025-03-15 05:37:05 - End Time 2025-03-15 08:37:05 [2025-03-15 08:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684963', 'tblTempUsageDetail_20' ) start [2025-03-15 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684963', 'tblTempUsageDetail_20' ) end [2025-03-15 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684963', 'tblTempVendorCDR_20' ) start [2025-03-15 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684963', 'tblTempVendorCDR_20' ) end [2025-03-15 08:37:17] Production.INFO: ProcessCDR(1,14684963,1,1,2) [2025-03-15 08:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684963', 'tblTempUsageDetail_20' ) start [2025-03-15 08:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684963', 'tblTempUsageDetail_20' ) end [2025-03-15 08:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 08:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 08:37:21] Production.INFO: ==21095== Releasing lock... [2025-03-15 08:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 08:37:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-15 08:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 05:38:05 [end_date_ymd] => 2025-03-15 08:38:05 [RateCDR] => 1 ) [2025-03-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-03-15 05:38:05' and `end` < '2025-03-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-03-15 08:38:17] Production.INFO: count ==152 [2025-03-15 08:38:17] Production.ERROR: pbx CDR StartTime 2025-03-15 05:38:05 - End Time 2025-03-15 08:38:05 [2025-03-15 08:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 08:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684968', 'tblTempUsageDetail_20' ) start [2025-03-15 08:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684968', 'tblTempUsageDetail_20' ) end [2025-03-15 08:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684968', 'tblTempVendorCDR_20' ) start [2025-03-15 08:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684968', 'tblTempVendorCDR_20' ) end [2025-03-15 08:38:17] Production.INFO: ProcessCDR(1,14684968,1,1,2) [2025-03-15 08:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684968', 'tblTempUsageDetail_20' ) start [2025-03-15 08:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684968', 'tblTempUsageDetail_20' ) end [2025-03-15 08:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 08:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 08:38:21] Production.INFO: ==21190== Releasing lock... [2025-03-15 08:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 08:38:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-15 08:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 05:39:05 [end_date_ymd] => 2025-03-15 08:39:05 [RateCDR] => 1 ) [2025-03-15 08:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 05:39:05' and `end` < '2025-03-15 08:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 08:39:17] Production.INFO: count ==157 [2025-03-15 08:39:17] Production.ERROR: pbx CDR StartTime 2025-03-15 05:39:05 - End Time 2025-03-15 08:39:05 [2025-03-15 08:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684973', 'tblTempUsageDetail_20' ) start [2025-03-15 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684973', 'tblTempUsageDetail_20' ) end [2025-03-15 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684973', 'tblTempVendorCDR_20' ) start [2025-03-15 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684973', 'tblTempVendorCDR_20' ) end [2025-03-15 08:39:17] Production.INFO: ProcessCDR(1,14684973,1,1,2) [2025-03-15 08:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684973', 'tblTempUsageDetail_20' ) start [2025-03-15 08:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684973', 'tblTempUsageDetail_20' ) end [2025-03-15 08:39:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 08:39:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 08:39:22] Production.INFO: ==21291== Releasing lock... [2025-03-15 08:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 08:39:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-15 08:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 05:40:06 [end_date_ymd] => 2025-03-15 08:40:06 [RateCDR] => 1 ) [2025-03-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-03-15 05:40:06' and `end` < '2025-03-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-03-15 08:40:18] Production.INFO: count ==167 [2025-03-15 08:40:18] Production.ERROR: pbx CDR StartTime 2025-03-15 05:40:06 - End Time 2025-03-15 08:40:06 [2025-03-15 08:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684979', 'tblTempUsageDetail_20' ) start [2025-03-15 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684979', 'tblTempUsageDetail_20' ) end [2025-03-15 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684979', 'tblTempVendorCDR_20' ) start [2025-03-15 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684979', 'tblTempVendorCDR_20' ) end [2025-03-15 08:40:18] Production.INFO: ProcessCDR(1,14684979,1,1,2) [2025-03-15 08:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684979', 'tblTempUsageDetail_20' ) start [2025-03-15 08:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684979', 'tblTempUsageDetail_20' ) end [2025-03-15 08:40:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 08:40:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 08:40:21] Production.INFO: ==21391== Releasing lock... [2025-03-15 08:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 08:40:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-15 08:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 05:41:05 [end_date_ymd] => 2025-03-15 08:41:05 [RateCDR] => 1 ) [2025-03-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-03-15 05:41:05' and `end` < '2025-03-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-03-15 08:41:17] Production.INFO: count ==167 [2025-03-15 08:41:17] Production.ERROR: pbx CDR StartTime 2025-03-15 05:41:05 - End Time 2025-03-15 08:41:05 [2025-03-15 08:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684984', 'tblTempUsageDetail_20' ) start [2025-03-15 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684984', 'tblTempUsageDetail_20' ) end [2025-03-15 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684984', 'tblTempVendorCDR_20' ) start [2025-03-15 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684984', 'tblTempVendorCDR_20' ) end [2025-03-15 08:41:17] Production.INFO: ProcessCDR(1,14684984,1,1,2) [2025-03-15 08:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684984', 'tblTempUsageDetail_20' ) start [2025-03-15 08:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684984', 'tblTempUsageDetail_20' ) end [2025-03-15 08:41:20] Production.ERROR: pbx prc_insertCDR start [2025-03-15 08:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 08:41:21] Production.INFO: ==21523== Releasing lock... [2025-03-15 08:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 08:41:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-15 08:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 05:42:06 [end_date_ymd] => 2025-03-15 08:42:06 [RateCDR] => 1 ) [2025-03-15 08:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 05:42:06' and `end` < '2025-03-15 08:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 08:42:18] Production.INFO: count ==174 [2025-03-15 08:42:18] Production.ERROR: pbx CDR StartTime 2025-03-15 05:42:06 - End Time 2025-03-15 08:42:06 [2025-03-15 08:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684989', 'tblTempUsageDetail_20' ) start [2025-03-15 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684989', 'tblTempUsageDetail_20' ) end [2025-03-15 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684989', 'tblTempVendorCDR_20' ) start [2025-03-15 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684989', 'tblTempVendorCDR_20' ) end [2025-03-15 08:42:18] Production.INFO: ProcessCDR(1,14684989,1,1,2) [2025-03-15 08:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684989', 'tblTempUsageDetail_20' ) start [2025-03-15 08:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684989', 'tblTempUsageDetail_20' ) end [2025-03-15 08:42:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 08:42:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 08:42:23] Production.INFO: ==21665== Releasing lock... [2025-03-15 08:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 08:42:23] Production.INFO: 30 MB #Memory Used# [2025-03-15 08:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 05:43:05 [end_date_ymd] => 2025-03-15 08:43:05 [RateCDR] => 1 ) [2025-03-15 08:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 05:43:05' and `end` < '2025-03-15 08:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 08:43:17] Production.INFO: count ==175 [2025-03-15 08:43:18] Production.ERROR: pbx CDR StartTime 2025-03-15 05:43:05 - End Time 2025-03-15 08:43:05 [2025-03-15 08:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684994', 'tblTempUsageDetail_20' ) start [2025-03-15 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684994', 'tblTempUsageDetail_20' ) end [2025-03-15 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684994', 'tblTempVendorCDR_20' ) start [2025-03-15 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684994', 'tblTempVendorCDR_20' ) end [2025-03-15 08:43:18] Production.INFO: ProcessCDR(1,14684994,1,1,2) [2025-03-15 08:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684994', 'tblTempUsageDetail_20' ) start [2025-03-15 08:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684994', 'tblTempUsageDetail_20' ) end [2025-03-15 08:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 08:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 08:43:22] Production.INFO: ==21775== Releasing lock... [2025-03-15 08:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 08:43:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-15 08:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 05:44:06 [end_date_ymd] => 2025-03-15 08:44:06 [RateCDR] => 1 ) [2025-03-15 08:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 05:44:06' and `end` < '2025-03-15 08:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 08:44:18] Production.INFO: count ==176 [2025-03-15 08:44:18] Production.ERROR: pbx CDR StartTime 2025-03-15 05:44:06 - End Time 2025-03-15 08:44:06 [2025-03-15 08:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684999', 'tblTempUsageDetail_20' ) start [2025-03-15 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14684999', 'tblTempUsageDetail_20' ) end [2025-03-15 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684999', 'tblTempVendorCDR_20' ) start [2025-03-15 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14684999', 'tblTempVendorCDR_20' ) end [2025-03-15 08:44:18] Production.INFO: ProcessCDR(1,14684999,1,1,2) [2025-03-15 08:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14684999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14684999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14684999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14684999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684999', 'tblTempUsageDetail_20' ) start [2025-03-15 08:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14684999', 'tblTempUsageDetail_20' ) end [2025-03-15 08:44:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 08:44:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 08:44:23] Production.INFO: ==21883== Releasing lock... [2025-03-15 08:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 08:44:23] Production.INFO: 30.25 MB #Memory Used# [2025-03-15 08:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 05:45:05 [end_date_ymd] => 2025-03-15 08:45:05 [RateCDR] => 1 ) [2025-03-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-03-15 05:45:05' and `end` < '2025-03-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-03-15 08:45:17] Production.INFO: count ==176 [2025-03-15 08:45:17] Production.ERROR: pbx CDR StartTime 2025-03-15 05:45:05 - End Time 2025-03-15 08:45:05 [2025-03-15 08:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685004', 'tblTempUsageDetail_20' ) start [2025-03-15 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685004', 'tblTempUsageDetail_20' ) end [2025-03-15 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685004', 'tblTempVendorCDR_20' ) start [2025-03-15 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685004', 'tblTempVendorCDR_20' ) end [2025-03-15 08:45:17] Production.INFO: ProcessCDR(1,14685004,1,1,2) [2025-03-15 08:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685004', 'tblTempUsageDetail_20' ) start [2025-03-15 08:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685004', 'tblTempUsageDetail_20' ) end [2025-03-15 08:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 08:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 08:45:21] Production.INFO: ==21988== Releasing lock... [2025-03-15 08:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 08:45:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-15 08:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 05:46:05 [end_date_ymd] => 2025-03-15 08:46:05 [RateCDR] => 1 ) [2025-03-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-03-15 05:46:05' and `end` < '2025-03-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-03-15 08:46:18] Production.INFO: count ==182 [2025-03-15 08:46:18] Production.ERROR: pbx CDR StartTime 2025-03-15 05:46:05 - End Time 2025-03-15 08:46:05 [2025-03-15 08:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685009', 'tblTempUsageDetail_20' ) start [2025-03-15 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685009', 'tblTempUsageDetail_20' ) end [2025-03-15 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685009', 'tblTempVendorCDR_20' ) start [2025-03-15 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685009', 'tblTempVendorCDR_20' ) end [2025-03-15 08:46:18] Production.INFO: ProcessCDR(1,14685009,1,1,2) [2025-03-15 08:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685009', 'tblTempUsageDetail_20' ) start [2025-03-15 08:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685009', 'tblTempUsageDetail_20' ) end [2025-03-15 08:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 08:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 08:46:21] Production.INFO: ==22089== Releasing lock... [2025-03-15 08:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 08:46:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-15 08:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 05:47:05 [end_date_ymd] => 2025-03-15 08:47:05 [RateCDR] => 1 ) [2025-03-15 08:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 05:47:05' and `end` < '2025-03-15 08:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 08:47:17] Production.INFO: count ==183 [2025-03-15 08:47:17] Production.ERROR: pbx CDR StartTime 2025-03-15 05:47:05 - End Time 2025-03-15 08:47:05 [2025-03-15 08:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685014', 'tblTempUsageDetail_20' ) start [2025-03-15 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685014', 'tblTempUsageDetail_20' ) end [2025-03-15 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685014', 'tblTempVendorCDR_20' ) start [2025-03-15 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685014', 'tblTempVendorCDR_20' ) end [2025-03-15 08:47:17] Production.INFO: ProcessCDR(1,14685014,1,1,2) [2025-03-15 08:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685014', 'tblTempUsageDetail_20' ) start [2025-03-15 08:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685014', 'tblTempUsageDetail_20' ) end [2025-03-15 08:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 08:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 08:47:21] Production.INFO: ==22194== Releasing lock... [2025-03-15 08:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 08:47:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-15 08:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 05:48:05 [end_date_ymd] => 2025-03-15 08:48:05 [RateCDR] => 1 ) [2025-03-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-03-15 05:48:05' and `end` < '2025-03-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-03-15 08:48:17] Production.INFO: count ==190 [2025-03-15 08:48:17] Production.ERROR: pbx CDR StartTime 2025-03-15 05:48:05 - End Time 2025-03-15 08:48:05 [2025-03-15 08:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 08:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685019', 'tblTempUsageDetail_20' ) start [2025-03-15 08:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685019', 'tblTempUsageDetail_20' ) end [2025-03-15 08:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685019', 'tblTempVendorCDR_20' ) start [2025-03-15 08:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685019', 'tblTempVendorCDR_20' ) end [2025-03-15 08:48:17] Production.INFO: ProcessCDR(1,14685019,1,1,2) [2025-03-15 08:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685019', 'tblTempUsageDetail_20' ) start [2025-03-15 08:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685019', 'tblTempUsageDetail_20' ) end [2025-03-15 08:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 08:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 08:48:21] Production.INFO: ==22292== Releasing lock... [2025-03-15 08:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 08:48:21] Production.INFO: 30 MB #Memory Used# [2025-03-15 08:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 05:49:05 [end_date_ymd] => 2025-03-15 08:49:05 [RateCDR] => 1 ) [2025-03-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-03-15 05:49:05' and `end` < '2025-03-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-03-15 08:49:17] Production.INFO: count ==195 [2025-03-15 08:49:17] Production.ERROR: pbx CDR StartTime 2025-03-15 05:49:05 - End Time 2025-03-15 08:49:05 [2025-03-15 08:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 08:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685024', 'tblTempUsageDetail_20' ) start [2025-03-15 08:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685024', 'tblTempUsageDetail_20' ) end [2025-03-15 08:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685024', 'tblTempVendorCDR_20' ) start [2025-03-15 08:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685024', 'tblTempVendorCDR_20' ) end [2025-03-15 08:49:17] Production.INFO: ProcessCDR(1,14685024,1,1,2) [2025-03-15 08:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685024', 'tblTempUsageDetail_20' ) start [2025-03-15 08:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685024', 'tblTempUsageDetail_20' ) end [2025-03-15 08:49:20] Production.ERROR: pbx prc_insertCDR start [2025-03-15 08:49:20] Production.ERROR: pbx prc_insertCDR end [2025-03-15 08:49:20] Production.INFO: ==22386== Releasing lock... [2025-03-15 08:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 08:49:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-15 08:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 05:50:07 [end_date_ymd] => 2025-03-15 08:50:07 [RateCDR] => 1 ) [2025-03-15 08:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 05:50:07' and `end` < '2025-03-15 08:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 08:50:19] Production.INFO: count ==198 [2025-03-15 08:50:19] Production.ERROR: pbx CDR StartTime 2025-03-15 05:50:07 - End Time 2025-03-15 08:50:07 [2025-03-15 08:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685030', 'tblTempUsageDetail_20' ) start [2025-03-15 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685030', 'tblTempUsageDetail_20' ) end [2025-03-15 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685030', 'tblTempVendorCDR_20' ) start [2025-03-15 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685030', 'tblTempVendorCDR_20' ) end [2025-03-15 08:50:19] Production.INFO: ProcessCDR(1,14685030,1,1,2) [2025-03-15 08:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685030', 'tblTempUsageDetail_20' ) start [2025-03-15 08:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685030', 'tblTempUsageDetail_20' ) end [2025-03-15 08:50:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 08:50:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 08:50:23] Production.INFO: ==22462== Releasing lock... [2025-03-15 08:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 08:50:23] Production.INFO: 30 MB #Memory Used# [2025-03-15 08:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 05:51:05 [end_date_ymd] => 2025-03-15 08:51:05 [RateCDR] => 1 ) [2025-03-15 08:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 05:51:05' and `end` < '2025-03-15 08:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 08:51:17] Production.INFO: count ==198 [2025-03-15 08:51:17] Production.ERROR: pbx CDR StartTime 2025-03-15 05:51:05 - End Time 2025-03-15 08:51:05 [2025-03-15 08:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685035', 'tblTempUsageDetail_20' ) start [2025-03-15 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685035', 'tblTempUsageDetail_20' ) end [2025-03-15 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685035', 'tblTempVendorCDR_20' ) start [2025-03-15 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685035', 'tblTempVendorCDR_20' ) end [2025-03-15 08:51:17] Production.INFO: ProcessCDR(1,14685035,1,1,2) [2025-03-15 08:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685035', 'tblTempUsageDetail_20' ) start [2025-03-15 08:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685035', 'tblTempUsageDetail_20' ) end [2025-03-15 08:51:20] Production.ERROR: pbx prc_insertCDR start [2025-03-15 08:51:20] Production.ERROR: pbx prc_insertCDR end [2025-03-15 08:51:20] Production.INFO: ==22578== Releasing lock... [2025-03-15 08:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 08:51:20] Production.INFO: 30 MB #Memory Used# [2025-03-15 08:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 05:52:06 [end_date_ymd] => 2025-03-15 08:52:06 [RateCDR] => 1 ) [2025-03-15 08:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 05:52:06' and `end` < '2025-03-15 08:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 08:52:18] Production.INFO: count ==198 [2025-03-15 08:52:18] Production.ERROR: pbx CDR StartTime 2025-03-15 05:52:06 - End Time 2025-03-15 08:52:06 [2025-03-15 08:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685040', 'tblTempUsageDetail_20' ) start [2025-03-15 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685040', 'tblTempUsageDetail_20' ) end [2025-03-15 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685040', 'tblTempVendorCDR_20' ) start [2025-03-15 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685040', 'tblTempVendorCDR_20' ) end [2025-03-15 08:52:18] Production.INFO: ProcessCDR(1,14685040,1,1,2) [2025-03-15 08:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685040', 'tblTempUsageDetail_20' ) start [2025-03-15 08:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685040', 'tblTempUsageDetail_20' ) end [2025-03-15 08:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 08:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 08:52:22] Production.INFO: ==22653== Releasing lock... [2025-03-15 08:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 08:52:22] Production.INFO: 30 MB #Memory Used# [2025-03-15 08:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 05:53:06 [end_date_ymd] => 2025-03-15 08:53:06 [RateCDR] => 1 ) [2025-03-15 08:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 05:53:06' and `end` < '2025-03-15 08:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 08:53:18] Production.INFO: count ==202 [2025-03-15 08:53:18] Production.ERROR: pbx CDR StartTime 2025-03-15 05:53:06 - End Time 2025-03-15 08:53:06 [2025-03-15 08:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685045', 'tblTempUsageDetail_20' ) start [2025-03-15 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685045', 'tblTempUsageDetail_20' ) end [2025-03-15 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685045', 'tblTempVendorCDR_20' ) start [2025-03-15 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685045', 'tblTempVendorCDR_20' ) end [2025-03-15 08:53:18] Production.INFO: ProcessCDR(1,14685045,1,1,2) [2025-03-15 08:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685045', 'tblTempUsageDetail_20' ) start [2025-03-15 08:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685045', 'tblTempUsageDetail_20' ) end [2025-03-15 08:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 08:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 08:53:21] Production.INFO: ==22730== Releasing lock... [2025-03-15 08:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 08:53:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-15 08:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 05:54:06 [end_date_ymd] => 2025-03-15 08:54:06 [RateCDR] => 1 ) [2025-03-15 08:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 05:54:06' and `end` < '2025-03-15 08:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 08:54:18] Production.INFO: count ==202 [2025-03-15 08:54:18] Production.ERROR: pbx CDR StartTime 2025-03-15 05:54:06 - End Time 2025-03-15 08:54:06 [2025-03-15 08:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685050', 'tblTempUsageDetail_20' ) start [2025-03-15 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685050', 'tblTempUsageDetail_20' ) end [2025-03-15 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685050', 'tblTempVendorCDR_20' ) start [2025-03-15 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685050', 'tblTempVendorCDR_20' ) end [2025-03-15 08:54:18] Production.INFO: ProcessCDR(1,14685050,1,1,2) [2025-03-15 08:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685050', 'tblTempUsageDetail_20' ) start [2025-03-15 08:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685050', 'tblTempUsageDetail_20' ) end [2025-03-15 08:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 08:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 08:54:21] Production.INFO: ==22804== Releasing lock... [2025-03-15 08:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 08:54:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-15 08:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 05:55:05 [end_date_ymd] => 2025-03-15 08:55:05 [RateCDR] => 1 ) [2025-03-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-03-15 05:55:05' and `end` < '2025-03-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-03-15 08:55:17] Production.INFO: count ==202 [2025-03-15 08:55:17] Production.ERROR: pbx CDR StartTime 2025-03-15 05:55:05 - End Time 2025-03-15 08:55:05 [2025-03-15 08:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 08:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685055', 'tblTempUsageDetail_20' ) start [2025-03-15 08:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685055', 'tblTempUsageDetail_20' ) end [2025-03-15 08:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685055', 'tblTempVendorCDR_20' ) start [2025-03-15 08:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685055', 'tblTempVendorCDR_20' ) end [2025-03-15 08:55:17] Production.INFO: ProcessCDR(1,14685055,1,1,2) [2025-03-15 08:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685055', 'tblTempUsageDetail_20' ) start [2025-03-15 08:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685055', 'tblTempUsageDetail_20' ) end [2025-03-15 08:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 08:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 08:55:21] Production.INFO: ==22881== Releasing lock... [2025-03-15 08:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 08:55:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-15 08:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 05:56:05 [end_date_ymd] => 2025-03-15 08:56:05 [RateCDR] => 1 ) [2025-03-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-03-15 05:56:05' and `end` < '2025-03-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-03-15 08:56:17] Production.INFO: count ==202 [2025-03-15 08:56:18] Production.ERROR: pbx CDR StartTime 2025-03-15 05:56:05 - End Time 2025-03-15 08:56:05 [2025-03-15 08:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685060', 'tblTempUsageDetail_20' ) start [2025-03-15 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685060', 'tblTempUsageDetail_20' ) end [2025-03-15 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685060', 'tblTempVendorCDR_20' ) start [2025-03-15 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685060', 'tblTempVendorCDR_20' ) end [2025-03-15 08:56:18] Production.INFO: ProcessCDR(1,14685060,1,1,2) [2025-03-15 08:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685060', 'tblTempUsageDetail_20' ) start [2025-03-15 08:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685060', 'tblTempUsageDetail_20' ) end [2025-03-15 08:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 08:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 08:56:21] Production.INFO: ==22958== Releasing lock... [2025-03-15 08:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 08:56:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-15 08:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 05:57:05 [end_date_ymd] => 2025-03-15 08:57:05 [RateCDR] => 1 ) [2025-03-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-03-15 05:57:05' and `end` < '2025-03-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-03-15 08:57:17] Production.INFO: count ==202 [2025-03-15 08:57:17] Production.ERROR: pbx CDR StartTime 2025-03-15 05:57:05 - End Time 2025-03-15 08:57:05 [2025-03-15 08:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685065', 'tblTempUsageDetail_20' ) start [2025-03-15 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685065', 'tblTempUsageDetail_20' ) end [2025-03-15 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685065', 'tblTempVendorCDR_20' ) start [2025-03-15 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685065', 'tblTempVendorCDR_20' ) end [2025-03-15 08:57:17] Production.INFO: ProcessCDR(1,14685065,1,1,2) [2025-03-15 08:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685065', 'tblTempUsageDetail_20' ) start [2025-03-15 08:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685065', 'tblTempUsageDetail_20' ) end [2025-03-15 08:57:20] Production.ERROR: pbx prc_insertCDR start [2025-03-15 08:57:20] Production.ERROR: pbx prc_insertCDR end [2025-03-15 08:57:20] Production.INFO: ==23027== Releasing lock... [2025-03-15 08:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 08:57:20] Production.INFO: 30.25 MB #Memory Used# [2025-03-15 08:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 05:58:06 [end_date_ymd] => 2025-03-15 08:58:06 [RateCDR] => 1 ) [2025-03-15 08:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 05:58:06' and `end` < '2025-03-15 08:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 08:58:18] Production.INFO: count ==207 [2025-03-15 08:58:18] Production.ERROR: pbx CDR StartTime 2025-03-15 05:58:06 - End Time 2025-03-15 08:58:06 [2025-03-15 08:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685070', 'tblTempUsageDetail_20' ) start [2025-03-15 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685070', 'tblTempUsageDetail_20' ) end [2025-03-15 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685070', 'tblTempVendorCDR_20' ) start [2025-03-15 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685070', 'tblTempVendorCDR_20' ) end [2025-03-15 08:58:18] Production.INFO: ProcessCDR(1,14685070,1,1,2) [2025-03-15 08:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685070', 'tblTempUsageDetail_20' ) start [2025-03-15 08:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685070', 'tblTempUsageDetail_20' ) end [2025-03-15 08:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 08:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 08:58:21] Production.INFO: ==23101== Releasing lock... [2025-03-15 08:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 08:58:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-15 08:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 05:59:05 [end_date_ymd] => 2025-03-15 08:59:05 [RateCDR] => 1 ) [2025-03-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-03-15 05:59:05' and `end` < '2025-03-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-03-15 08:59:17] Production.INFO: count ==210 [2025-03-15 08:59:17] Production.ERROR: pbx CDR StartTime 2025-03-15 05:59:05 - End Time 2025-03-15 08:59:05 [2025-03-15 08:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685075', 'tblTempUsageDetail_20' ) start [2025-03-15 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685075', 'tblTempUsageDetail_20' ) end [2025-03-15 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685075', 'tblTempVendorCDR_20' ) start [2025-03-15 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685075', 'tblTempVendorCDR_20' ) end [2025-03-15 08:59:17] Production.INFO: ProcessCDR(1,14685075,1,1,2) [2025-03-15 08:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 08:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 08:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685075', 'tblTempUsageDetail_20' ) start [2025-03-15 08:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685075', 'tblTempUsageDetail_20' ) end [2025-03-15 08:59:20] Production.ERROR: pbx prc_insertCDR start [2025-03-15 08:59:20] Production.ERROR: pbx prc_insertCDR end [2025-03-15 08:59:20] Production.INFO: ==23175== Releasing lock... [2025-03-15 08:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 08:59:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-15 09:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 06:00:06 [end_date_ymd] => 2025-03-15 09:00:06 [RateCDR] => 1 ) [2025-03-15 09:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 06:00:06' and `end` < '2025-03-15 09:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 09:00:18] Production.INFO: count ==230 [2025-03-15 09:00:18] Production.ERROR: pbx CDR StartTime 2025-03-15 06:00:06 - End Time 2025-03-15 09:00:06 [2025-03-15 09:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685080', 'tblTempUsageDetail_20' ) start [2025-03-15 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685080', 'tblTempUsageDetail_20' ) end [2025-03-15 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685080', 'tblTempVendorCDR_20' ) start [2025-03-15 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685080', 'tblTempVendorCDR_20' ) end [2025-03-15 09:00:18] Production.INFO: ProcessCDR(1,14685080,1,1,2) [2025-03-15 09:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685080', 'tblTempUsageDetail_20' ) start [2025-03-15 09:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685080', 'tblTempUsageDetail_20' ) end [2025-03-15 09:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 09:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 09:00:22] Production.INFO: ==23249== Releasing lock... [2025-03-15 09:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 09:00:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-15 09:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 06:01:05 [end_date_ymd] => 2025-03-15 09:01:05 [RateCDR] => 1 ) [2025-03-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-03-15 06:01:05' and `end` < '2025-03-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-03-15 09:01:17] Production.INFO: count ==249 [2025-03-15 09:01:17] Production.ERROR: pbx CDR StartTime 2025-03-15 06:01:05 - End Time 2025-03-15 09:01:05 [2025-03-15 09:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 09:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685086', 'tblTempUsageDetail_20' ) start [2025-03-15 09:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685086', 'tblTempUsageDetail_20' ) end [2025-03-15 09:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685086', 'tblTempVendorCDR_20' ) start [2025-03-15 09:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685086', 'tblTempVendorCDR_20' ) end [2025-03-15 09:01:17] Production.INFO: ProcessCDR(1,14685086,1,1,2) [2025-03-15 09:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685086', 'tblTempUsageDetail_20' ) start [2025-03-15 09:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685086', 'tblTempUsageDetail_20' ) end [2025-03-15 09:01:20] Production.ERROR: pbx prc_insertCDR start [2025-03-15 09:01:20] Production.ERROR: pbx prc_insertCDR end [2025-03-15 09:01:20] Production.INFO: ==23337== Releasing lock... [2025-03-15 09:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 09:01:20] Production.INFO: 30.5 MB #Memory Used# [2025-03-15 09:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 06:02:05 [end_date_ymd] => 2025-03-15 09:02:05 [RateCDR] => 1 ) [2025-03-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-03-15 06:02:05' and `end` < '2025-03-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-03-15 09:02:17] Production.INFO: count ==259 [2025-03-15 09:02:17] Production.ERROR: pbx CDR StartTime 2025-03-15 06:02:05 - End Time 2025-03-15 09:02:05 [2025-03-15 09:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 09:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685091', 'tblTempUsageDetail_20' ) start [2025-03-15 09:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685091', 'tblTempUsageDetail_20' ) end [2025-03-15 09:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685091', 'tblTempVendorCDR_20' ) start [2025-03-15 09:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685091', 'tblTempVendorCDR_20' ) end [2025-03-15 09:02:17] Production.INFO: ProcessCDR(1,14685091,1,1,2) [2025-03-15 09:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685091', 'tblTempUsageDetail_20' ) start [2025-03-15 09:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685091', 'tblTempUsageDetail_20' ) end [2025-03-15 09:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 09:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 09:02:21] Production.INFO: ==23406== Releasing lock... [2025-03-15 09:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 09:02:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-15 09:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 06:03:05 [end_date_ymd] => 2025-03-15 09:03:05 [RateCDR] => 1 ) [2025-03-15 09:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 06:03:05' and `end` < '2025-03-15 09:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 09:03:17] Production.INFO: count ==266 [2025-03-15 09:03:17] Production.ERROR: pbx CDR StartTime 2025-03-15 06:03:05 - End Time 2025-03-15 09:03:05 [2025-03-15 09:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 09:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685096', 'tblTempUsageDetail_20' ) start [2025-03-15 09:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685096', 'tblTempUsageDetail_20' ) end [2025-03-15 09:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685096', 'tblTempVendorCDR_20' ) start [2025-03-15 09:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685096', 'tblTempVendorCDR_20' ) end [2025-03-15 09:03:17] Production.INFO: ProcessCDR(1,14685096,1,1,2) [2025-03-15 09:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685096', 'tblTempUsageDetail_20' ) start [2025-03-15 09:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685096', 'tblTempUsageDetail_20' ) end [2025-03-15 09:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 09:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 09:03:21] Production.INFO: ==23478== Releasing lock... [2025-03-15 09:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 09:03:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-15 09:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 06:04:05 [end_date_ymd] => 2025-03-15 09:04:05 [RateCDR] => 1 ) [2025-03-15 09:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 06:04:05' and `end` < '2025-03-15 09:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 09:04:17] Production.INFO: count ==275 [2025-03-15 09:04:18] Production.ERROR: pbx CDR StartTime 2025-03-15 06:04:05 - End Time 2025-03-15 09:04:05 [2025-03-15 09:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685101', 'tblTempUsageDetail_20' ) start [2025-03-15 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685101', 'tblTempUsageDetail_20' ) end [2025-03-15 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685101', 'tblTempVendorCDR_20' ) start [2025-03-15 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685101', 'tblTempVendorCDR_20' ) end [2025-03-15 09:04:18] Production.INFO: ProcessCDR(1,14685101,1,1,2) [2025-03-15 09:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685101', 'tblTempUsageDetail_20' ) start [2025-03-15 09:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685101', 'tblTempUsageDetail_20' ) end [2025-03-15 09:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 09:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 09:04:21] Production.INFO: ==23559== Releasing lock... [2025-03-15 09:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 09:04:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-15 09:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 06:05:04 [end_date_ymd] => 2025-03-15 09:05:04 [RateCDR] => 1 ) [2025-03-15 09: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-03-15 06:05:04' and `end` < '2025-03-15 09:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 09:05:16] Production.INFO: count ==281 [2025-03-15 09:05:16] Production.ERROR: pbx CDR StartTime 2025-03-15 06:05:04 - End Time 2025-03-15 09:05:04 [2025-03-15 09:05:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 09:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685106', 'tblTempUsageDetail_20' ) start [2025-03-15 09:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685106', 'tblTempUsageDetail_20' ) end [2025-03-15 09:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685106', 'tblTempVendorCDR_20' ) start [2025-03-15 09:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685106', 'tblTempVendorCDR_20' ) end [2025-03-15 09:05:16] Production.INFO: ProcessCDR(1,14685106,1,1,2) [2025-03-15 09:05:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:05:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:05:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685106', 'tblTempUsageDetail_20' ) start [2025-03-15 09:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685106', 'tblTempUsageDetail_20' ) end [2025-03-15 09:05:20] Production.ERROR: pbx prc_insertCDR start [2025-03-15 09:05:20] Production.ERROR: pbx prc_insertCDR end [2025-03-15 09:05:20] Production.INFO: ==23630== Releasing lock... [2025-03-15 09:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 09:05:20] Production.INFO: 31 MB #Memory Used# [2025-03-15 09:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 06:06:06 [end_date_ymd] => 2025-03-15 09:06:06 [RateCDR] => 1 ) [2025-03-15 09:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 06:06:06' and `end` < '2025-03-15 09:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 09:06:18] Production.INFO: count ==292 [2025-03-15 09:06:18] Production.ERROR: pbx CDR StartTime 2025-03-15 06:06:06 - End Time 2025-03-15 09:06:06 [2025-03-15 09:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685111', 'tblTempUsageDetail_20' ) start [2025-03-15 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685111', 'tblTempUsageDetail_20' ) end [2025-03-15 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685111', 'tblTempVendorCDR_20' ) start [2025-03-15 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685111', 'tblTempVendorCDR_20' ) end [2025-03-15 09:06:18] Production.INFO: ProcessCDR(1,14685111,1,1,2) [2025-03-15 09:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685111', 'tblTempUsageDetail_20' ) start [2025-03-15 09:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685111', 'tblTempUsageDetail_20' ) end [2025-03-15 09:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 09:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 09:06:21] Production.INFO: ==23704== Releasing lock... [2025-03-15 09:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 09:06:21] Production.INFO: 31 MB #Memory Used# [2025-03-15 09:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 06:07:05 [end_date_ymd] => 2025-03-15 09:07:05 [RateCDR] => 1 ) [2025-03-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-03-15 06:07:05' and `end` < '2025-03-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-03-15 09:07:17] Production.INFO: count ==296 [2025-03-15 09:07:17] Production.ERROR: pbx CDR StartTime 2025-03-15 06:07:05 - End Time 2025-03-15 09:07:05 [2025-03-15 09:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 09:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685116', 'tblTempUsageDetail_20' ) start [2025-03-15 09:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685116', 'tblTempUsageDetail_20' ) end [2025-03-15 09:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685116', 'tblTempVendorCDR_20' ) start [2025-03-15 09:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685116', 'tblTempVendorCDR_20' ) end [2025-03-15 09:07:17] Production.INFO: ProcessCDR(1,14685116,1,1,2) [2025-03-15 09:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685116', 'tblTempUsageDetail_20' ) start [2025-03-15 09:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685116', 'tblTempUsageDetail_20' ) end [2025-03-15 09:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 09:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 09:07:21] Production.INFO: ==23813== Releasing lock... [2025-03-15 09:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 09:07:21] Production.INFO: 31 MB #Memory Used# [2025-03-15 09:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 06:08:05 [end_date_ymd] => 2025-03-15 09:08:05 [RateCDR] => 1 ) [2025-03-15 09:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 06:08:05' and `end` < '2025-03-15 09:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 09:08:17] Production.INFO: count ==305 [2025-03-15 09:08:17] Production.ERROR: pbx CDR StartTime 2025-03-15 06:08:05 - End Time 2025-03-15 09:08:05 [2025-03-15 09:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 09:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685121', 'tblTempUsageDetail_20' ) start [2025-03-15 09:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685121', 'tblTempUsageDetail_20' ) end [2025-03-15 09:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685121', 'tblTempVendorCDR_20' ) start [2025-03-15 09:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685121', 'tblTempVendorCDR_20' ) end [2025-03-15 09:08:17] Production.INFO: ProcessCDR(1,14685121,1,1,2) [2025-03-15 09:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685121', 'tblTempUsageDetail_20' ) start [2025-03-15 09:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685121', 'tblTempUsageDetail_20' ) end [2025-03-15 09:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 09:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 09:08:21] Production.INFO: ==23887== Releasing lock... [2025-03-15 09:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 09:08:21] Production.INFO: 31 MB #Memory Used# [2025-03-15 09:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 06:09:06 [end_date_ymd] => 2025-03-15 09:09:06 [RateCDR] => 1 ) [2025-03-15 09:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 06:09:06' and `end` < '2025-03-15 09:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 09:09:18] Production.INFO: count ==322 [2025-03-15 09:09:18] Production.ERROR: pbx CDR StartTime 2025-03-15 06:09:06 - End Time 2025-03-15 09:09:06 [2025-03-15 09:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685126', 'tblTempUsageDetail_20' ) start [2025-03-15 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685126', 'tblTempUsageDetail_20' ) end [2025-03-15 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685126', 'tblTempVendorCDR_20' ) start [2025-03-15 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685126', 'tblTempVendorCDR_20' ) end [2025-03-15 09:09:18] Production.INFO: ProcessCDR(1,14685126,1,1,2) [2025-03-15 09:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685126', 'tblTempUsageDetail_20' ) start [2025-03-15 09:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685126', 'tblTempUsageDetail_20' ) end [2025-03-15 09:09:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 09:09:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 09:09:22] Production.INFO: ==23960== Releasing lock... [2025-03-15 09:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 09:09:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-15 09:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 06:10:06 [end_date_ymd] => 2025-03-15 09:10:06 [RateCDR] => 1 ) [2025-03-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-03-15 06:10:06' and `end` < '2025-03-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-03-15 09:10:18] Production.INFO: count ==344 [2025-03-15 09:10:18] Production.ERROR: pbx CDR StartTime 2025-03-15 06:10:06 - End Time 2025-03-15 09:10:06 [2025-03-15 09:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685131', 'tblTempUsageDetail_20' ) start [2025-03-15 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685131', 'tblTempUsageDetail_20' ) end [2025-03-15 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685131', 'tblTempVendorCDR_20' ) start [2025-03-15 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685131', 'tblTempVendorCDR_20' ) end [2025-03-15 09:10:18] Production.INFO: ProcessCDR(1,14685131,1,1,2) [2025-03-15 09:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685131', 'tblTempUsageDetail_20' ) start [2025-03-15 09:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685131', 'tblTempUsageDetail_20' ) end [2025-03-15 09:10:24] Production.ERROR: pbx prc_insertCDR start [2025-03-15 09:10:24] Production.ERROR: pbx prc_insertCDR end [2025-03-15 09:10:24] Production.INFO: ==24034== Releasing lock... [2025-03-15 09:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 09:10:24] Production.INFO: 31 MB #Memory Used# [2025-03-15 09:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 06:11:05 [end_date_ymd] => 2025-03-15 09:11:05 [RateCDR] => 1 ) [2025-03-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-03-15 06:11:05' and `end` < '2025-03-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-03-15 09:11:18] Production.INFO: count ==361 [2025-03-15 09:11:18] Production.ERROR: pbx CDR StartTime 2025-03-15 06:11:05 - End Time 2025-03-15 09:11:05 [2025-03-15 09:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685137', 'tblTempUsageDetail_20' ) start [2025-03-15 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685137', 'tblTempUsageDetail_20' ) end [2025-03-15 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685137', 'tblTempVendorCDR_20' ) start [2025-03-15 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685137', 'tblTempVendorCDR_20' ) end [2025-03-15 09:11:18] Production.INFO: ProcessCDR(1,14685137,1,1,2) [2025-03-15 09:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685137', 'tblTempUsageDetail_20' ) start [2025-03-15 09:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685137', 'tblTempUsageDetail_20' ) end [2025-03-15 09:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 09:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 09:11:21] Production.INFO: ==24107== Releasing lock... [2025-03-15 09:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 09:11:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-15 09:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 06:12:05 [end_date_ymd] => 2025-03-15 09:12:05 [RateCDR] => 1 ) [2025-03-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-03-15 06:12:05' and `end` < '2025-03-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-03-15 09:12:17] Production.INFO: count ==366 [2025-03-15 09:12:18] Production.ERROR: pbx CDR StartTime 2025-03-15 06:12:05 - End Time 2025-03-15 09:12:05 [2025-03-15 09:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685142', 'tblTempUsageDetail_20' ) start [2025-03-15 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685142', 'tblTempUsageDetail_20' ) end [2025-03-15 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685142', 'tblTempVendorCDR_20' ) start [2025-03-15 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685142', 'tblTempVendorCDR_20' ) end [2025-03-15 09:12:18] Production.INFO: ProcessCDR(1,14685142,1,1,2) [2025-03-15 09:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685142', 'tblTempUsageDetail_20' ) start [2025-03-15 09:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685142', 'tblTempUsageDetail_20' ) end [2025-03-15 09:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 09:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 09:12:21] Production.INFO: ==24183== Releasing lock... [2025-03-15 09:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 09:12:21] Production.INFO: 31 MB #Memory Used# [2025-03-15 09:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 06:13:05 [end_date_ymd] => 2025-03-15 09:13:05 [RateCDR] => 1 ) [2025-03-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-03-15 06:13:05' and `end` < '2025-03-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-03-15 09:13:17] Production.INFO: count ==366 [2025-03-15 09:13:17] Production.ERROR: pbx CDR StartTime 2025-03-15 06:13:05 - End Time 2025-03-15 09:13:05 [2025-03-15 09:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 09:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685147', 'tblTempUsageDetail_20' ) start [2025-03-15 09:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685147', 'tblTempUsageDetail_20' ) end [2025-03-15 09:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685147', 'tblTempVendorCDR_20' ) start [2025-03-15 09:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685147', 'tblTempVendorCDR_20' ) end [2025-03-15 09:13:17] Production.INFO: ProcessCDR(1,14685147,1,1,2) [2025-03-15 09:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685147', 'tblTempUsageDetail_20' ) start [2025-03-15 09:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685147', 'tblTempUsageDetail_20' ) end [2025-03-15 09:13:20] Production.ERROR: pbx prc_insertCDR start [2025-03-15 09:13:20] Production.ERROR: pbx prc_insertCDR end [2025-03-15 09:13:20] Production.INFO: ==24260== Releasing lock... [2025-03-15 09:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 09:13:20] Production.INFO: 31 MB #Memory Used# [2025-03-15 09:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 06:14:05 [end_date_ymd] => 2025-03-15 09:14:05 [RateCDR] => 1 ) [2025-03-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-03-15 06:14:05' and `end` < '2025-03-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-03-15 09:14:17] Production.INFO: count ==366 [2025-03-15 09:14:17] Production.ERROR: pbx CDR StartTime 2025-03-15 06:14:05 - End Time 2025-03-15 09:14:05 [2025-03-15 09:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 09:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685152', 'tblTempUsageDetail_20' ) start [2025-03-15 09:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685152', 'tblTempUsageDetail_20' ) end [2025-03-15 09:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685152', 'tblTempVendorCDR_20' ) start [2025-03-15 09:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685152', 'tblTempVendorCDR_20' ) end [2025-03-15 09:14:17] Production.INFO: ProcessCDR(1,14685152,1,1,2) [2025-03-15 09:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685152', 'tblTempUsageDetail_20' ) start [2025-03-15 09:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685152', 'tblTempUsageDetail_20' ) end [2025-03-15 09:14:20] Production.ERROR: pbx prc_insertCDR start [2025-03-15 09:14:20] Production.ERROR: pbx prc_insertCDR end [2025-03-15 09:14:20] Production.INFO: ==24333== Releasing lock... [2025-03-15 09:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 09:14:20] Production.INFO: 31 MB #Memory Used# [2025-03-15 09:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 06:15:05 [end_date_ymd] => 2025-03-15 09:15:05 [RateCDR] => 1 ) [2025-03-15 09:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 06:15:05' and `end` < '2025-03-15 09:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 09:15:18] Production.INFO: count ==367 [2025-03-15 09:15:18] Production.ERROR: pbx CDR StartTime 2025-03-15 06:15:05 - End Time 2025-03-15 09:15:05 [2025-03-15 09:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685157', 'tblTempUsageDetail_20' ) start [2025-03-15 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685157', 'tblTempUsageDetail_20' ) end [2025-03-15 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685157', 'tblTempVendorCDR_20' ) start [2025-03-15 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685157', 'tblTempVendorCDR_20' ) end [2025-03-15 09:15:18] Production.INFO: ProcessCDR(1,14685157,1,1,2) [2025-03-15 09:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685157', 'tblTempUsageDetail_20' ) start [2025-03-15 09:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685157', 'tblTempUsageDetail_20' ) end [2025-03-15 09:15:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 09:15:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 09:15:23] Production.INFO: ==24406== Releasing lock... [2025-03-15 09:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 09:15:23] Production.INFO: 31 MB #Memory Used# [2025-03-15 09:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 06:16:06 [end_date_ymd] => 2025-03-15 09:16:06 [RateCDR] => 1 ) [2025-03-15 09:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 06:16:06' and `end` < '2025-03-15 09:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 09:16:18] Production.INFO: count ==379 [2025-03-15 09:16:18] Production.ERROR: pbx CDR StartTime 2025-03-15 06:16:06 - End Time 2025-03-15 09:16:06 [2025-03-15 09:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685162', 'tblTempUsageDetail_20' ) start [2025-03-15 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685162', 'tblTempUsageDetail_20' ) end [2025-03-15 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685162', 'tblTempVendorCDR_20' ) start [2025-03-15 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685162', 'tblTempVendorCDR_20' ) end [2025-03-15 09:16:18] Production.INFO: ProcessCDR(1,14685162,1,1,2) [2025-03-15 09:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685162', 'tblTempUsageDetail_20' ) start [2025-03-15 09:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685162', 'tblTempUsageDetail_20' ) end [2025-03-15 09:16:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 09:16:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 09:16:23] Production.INFO: ==24475== Releasing lock... [2025-03-15 09:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 09:16:23] Production.INFO: 31.75 MB #Memory Used# [2025-03-15 09:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 06:17:05 [end_date_ymd] => 2025-03-15 09:17:05 [RateCDR] => 1 ) [2025-03-15 09:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 06:17:05' and `end` < '2025-03-15 09:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 09:17:17] Production.INFO: count ==386 [2025-03-15 09:17:17] Production.ERROR: pbx CDR StartTime 2025-03-15 06:17:05 - End Time 2025-03-15 09:17:05 [2025-03-15 09:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 09:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685167', 'tblTempUsageDetail_20' ) start [2025-03-15 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685167', 'tblTempUsageDetail_20' ) end [2025-03-15 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685167', 'tblTempVendorCDR_20' ) start [2025-03-15 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685167', 'tblTempVendorCDR_20' ) end [2025-03-15 09:17:18] Production.INFO: ProcessCDR(1,14685167,1,1,2) [2025-03-15 09:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685167', 'tblTempUsageDetail_20' ) start [2025-03-15 09:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685167', 'tblTempUsageDetail_20' ) end [2025-03-15 09:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 09:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 09:17:22] Production.INFO: ==24551== Releasing lock... [2025-03-15 09:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 09:17:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-15 09:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 06:18:05 [end_date_ymd] => 2025-03-15 09:18:05 [RateCDR] => 1 ) [2025-03-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-03-15 06:18:05' and `end` < '2025-03-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-03-15 09:18:17] Production.INFO: count ==386 [2025-03-15 09:18:17] Production.ERROR: pbx CDR StartTime 2025-03-15 06:18:05 - End Time 2025-03-15 09:18:05 [2025-03-15 09:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 09:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685172', 'tblTempUsageDetail_20' ) start [2025-03-15 09:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685172', 'tblTempUsageDetail_20' ) end [2025-03-15 09:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685172', 'tblTempVendorCDR_20' ) start [2025-03-15 09:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685172', 'tblTempVendorCDR_20' ) end [2025-03-15 09:18:17] Production.INFO: ProcessCDR(1,14685172,1,1,2) [2025-03-15 09:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685172', 'tblTempUsageDetail_20' ) start [2025-03-15 09:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685172', 'tblTempUsageDetail_20' ) end [2025-03-15 09:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 09:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 09:18:21] Production.INFO: ==24634== Releasing lock... [2025-03-15 09:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 09:18:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-15 09:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 06:19:05 [end_date_ymd] => 2025-03-15 09:19:05 [RateCDR] => 1 ) [2025-03-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-03-15 06:19:05' and `end` < '2025-03-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-03-15 09:19:17] Production.INFO: count ==393 [2025-03-15 09:19:17] Production.ERROR: pbx CDR StartTime 2025-03-15 06:19:05 - End Time 2025-03-15 09:19:05 [2025-03-15 09:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 09:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685177', 'tblTempUsageDetail_20' ) start [2025-03-15 09:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685177', 'tblTempUsageDetail_20' ) end [2025-03-15 09:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685177', 'tblTempVendorCDR_20' ) start [2025-03-15 09:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685177', 'tblTempVendorCDR_20' ) end [2025-03-15 09:19:17] Production.INFO: ProcessCDR(1,14685177,1,1,2) [2025-03-15 09:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685177', 'tblTempUsageDetail_20' ) start [2025-03-15 09:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685177', 'tblTempUsageDetail_20' ) end [2025-03-15 09:19:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 09:19:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 09:19:22] Production.INFO: ==24713== Releasing lock... [2025-03-15 09:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 09:19:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-15 09:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 06:20:06 [end_date_ymd] => 2025-03-15 09:20:06 [RateCDR] => 1 ) [2025-03-15 09:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 06:20:06' and `end` < '2025-03-15 09:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 09:20:18] Production.INFO: count ==412 [2025-03-15 09:20:18] Production.ERROR: pbx CDR StartTime 2025-03-15 06:20:06 - End Time 2025-03-15 09:20:06 [2025-03-15 09:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 09:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685183', 'tblTempUsageDetail_20' ) start [2025-03-15 09:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685183', 'tblTempUsageDetail_20' ) end [2025-03-15 09:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685183', 'tblTempVendorCDR_20' ) start [2025-03-15 09:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685183', 'tblTempVendorCDR_20' ) end [2025-03-15 09:20:18] Production.INFO: ProcessCDR(1,14685183,1,1,2) [2025-03-15 09:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685183', 'tblTempUsageDetail_20' ) start [2025-03-15 09:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685183', 'tblTempUsageDetail_20' ) end [2025-03-15 09:20:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 09:20:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 09:20:23] Production.INFO: ==24789== Releasing lock... [2025-03-15 09:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 09:20:23] Production.INFO: 31.75 MB #Memory Used# [2025-03-15 09:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 06:21:05 [end_date_ymd] => 2025-03-15 09:21:05 [RateCDR] => 1 ) [2025-03-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-03-15 06:21:05' and `end` < '2025-03-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-03-15 09:21:18] Production.INFO: count ==419 [2025-03-15 09:21:18] Production.ERROR: pbx CDR StartTime 2025-03-15 06:21:05 - End Time 2025-03-15 09:21:05 [2025-03-15 09:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685188', 'tblTempUsageDetail_20' ) start [2025-03-15 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685188', 'tblTempUsageDetail_20' ) end [2025-03-15 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685188', 'tblTempVendorCDR_20' ) start [2025-03-15 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685188', 'tblTempVendorCDR_20' ) end [2025-03-15 09:21:18] Production.INFO: ProcessCDR(1,14685188,1,1,2) [2025-03-15 09:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685188', 'tblTempUsageDetail_20' ) start [2025-03-15 09:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685188', 'tblTempUsageDetail_20' ) end [2025-03-15 09:21:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 09:21:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 09:21:23] Production.INFO: ==24866== Releasing lock... [2025-03-15 09:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 09:21:23] Production.INFO: 32 MB #Memory Used# [2025-03-15 09:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 06:22:05 [end_date_ymd] => 2025-03-15 09:22:05 [RateCDR] => 1 ) [2025-03-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-03-15 06:22:05' and `end` < '2025-03-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-03-15 09:22:17] Production.INFO: count ==431 [2025-03-15 09:22:17] Production.ERROR: pbx CDR StartTime 2025-03-15 06:22:05 - End Time 2025-03-15 09:22:05 [2025-03-15 09:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 09:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685193', 'tblTempUsageDetail_20' ) start [2025-03-15 09:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685193', 'tblTempUsageDetail_20' ) end [2025-03-15 09:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685193', 'tblTempVendorCDR_20' ) start [2025-03-15 09:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685193', 'tblTempVendorCDR_20' ) end [2025-03-15 09:22:17] Production.INFO: ProcessCDR(1,14685193,1,1,2) [2025-03-15 09:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685193', 'tblTempUsageDetail_20' ) start [2025-03-15 09:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685193', 'tblTempUsageDetail_20' ) end [2025-03-15 09:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 09:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 09:22:21] Production.INFO: ==24979== Releasing lock... [2025-03-15 09:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 09:22:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-15 09:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 06:23:05 [end_date_ymd] => 2025-03-15 09:23:05 [RateCDR] => 1 ) [2025-03-15 09:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 06:23:05' and `end` < '2025-03-15 09:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 09:23:17] Production.INFO: count ==447 [2025-03-15 09:23:18] Production.ERROR: pbx CDR StartTime 2025-03-15 06:23:05 - End Time 2025-03-15 09:23:05 [2025-03-15 09:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685198', 'tblTempUsageDetail_20' ) start [2025-03-15 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685198', 'tblTempUsageDetail_20' ) end [2025-03-15 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685198', 'tblTempVendorCDR_20' ) start [2025-03-15 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685198', 'tblTempVendorCDR_20' ) end [2025-03-15 09:23:18] Production.INFO: ProcessCDR(1,14685198,1,1,2) [2025-03-15 09:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685198', 'tblTempUsageDetail_20' ) start [2025-03-15 09:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685198', 'tblTempUsageDetail_20' ) end [2025-03-15 09:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 09:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 09:23:21] Production.INFO: ==25057== Releasing lock... [2025-03-15 09:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 09:23:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-15 09:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 06:24:05 [end_date_ymd] => 2025-03-15 09:24:05 [RateCDR] => 1 ) [2025-03-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-03-15 06:24:05' and `end` < '2025-03-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-03-15 09:24:17] Production.INFO: count ==463 [2025-03-15 09:24:17] Production.ERROR: pbx CDR StartTime 2025-03-15 06:24:05 - End Time 2025-03-15 09:24:05 [2025-03-15 09:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 09:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685203', 'tblTempUsageDetail_20' ) start [2025-03-15 09:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685203', 'tblTempUsageDetail_20' ) end [2025-03-15 09:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685203', 'tblTempVendorCDR_20' ) start [2025-03-15 09:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685203', 'tblTempVendorCDR_20' ) end [2025-03-15 09:24:17] Production.INFO: ProcessCDR(1,14685203,1,1,2) [2025-03-15 09:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685203', 'tblTempUsageDetail_20' ) start [2025-03-15 09:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685203', 'tblTempUsageDetail_20' ) end [2025-03-15 09:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 09:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 09:24:21] Production.INFO: ==25154== Releasing lock... [2025-03-15 09:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 09:24:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-15 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 06:25:05 [end_date_ymd] => 2025-03-15 09:25:05 [RateCDR] => 1 ) [2025-03-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-03-15 06:25:05' and `end` < '2025-03-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-03-15 09:25:17] Production.INFO: count ==466 [2025-03-15 09:25:17] Production.ERROR: pbx CDR StartTime 2025-03-15 06:25:05 - End Time 2025-03-15 09:25:05 [2025-03-15 09:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685208', 'tblTempUsageDetail_20' ) start [2025-03-15 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685208', 'tblTempUsageDetail_20' ) end [2025-03-15 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685208', 'tblTempVendorCDR_20' ) start [2025-03-15 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685208', 'tblTempVendorCDR_20' ) end [2025-03-15 09:25:17] Production.INFO: ProcessCDR(1,14685208,1,1,2) [2025-03-15 09:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685208', 'tblTempUsageDetail_20' ) start [2025-03-15 09:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685208', 'tblTempUsageDetail_20' ) end [2025-03-15 09:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 09:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 09:25:21] Production.INFO: ==25255== Releasing lock... [2025-03-15 09:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 09:25:21] Production.INFO: 32 MB #Memory Used# [2025-03-15 09:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 06:26:06 [end_date_ymd] => 2025-03-15 09:26:06 [RateCDR] => 1 ) [2025-03-15 09:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 06:26:06' and `end` < '2025-03-15 09:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 09:26:18] Production.INFO: count ==470 [2025-03-15 09:26:18] Production.ERROR: pbx CDR StartTime 2025-03-15 06:26:06 - End Time 2025-03-15 09:26:06 [2025-03-15 09:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685213', 'tblTempUsageDetail_20' ) start [2025-03-15 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685213', 'tblTempUsageDetail_20' ) end [2025-03-15 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685213', 'tblTempVendorCDR_20' ) start [2025-03-15 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685213', 'tblTempVendorCDR_20' ) end [2025-03-15 09:26:18] Production.INFO: ProcessCDR(1,14685213,1,1,2) [2025-03-15 09:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685213', 'tblTempUsageDetail_20' ) start [2025-03-15 09:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685213', 'tblTempUsageDetail_20' ) end [2025-03-15 09:26:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 09:26:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 09:26:22] Production.INFO: ==25366== Releasing lock... [2025-03-15 09:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 09:26:22] Production.INFO: 32 MB #Memory Used# [2025-03-15 09:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 06:27:05 [end_date_ymd] => 2025-03-15 09:27:05 [RateCDR] => 1 ) [2025-03-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-03-15 06:27:05' and `end` < '2025-03-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-03-15 09:27:17] Production.INFO: count ==470 [2025-03-15 09:27:18] Production.ERROR: pbx CDR StartTime 2025-03-15 06:27:05 - End Time 2025-03-15 09:27:05 [2025-03-15 09:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685218', 'tblTempUsageDetail_20' ) start [2025-03-15 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685218', 'tblTempUsageDetail_20' ) end [2025-03-15 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685218', 'tblTempVendorCDR_20' ) start [2025-03-15 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685218', 'tblTempVendorCDR_20' ) end [2025-03-15 09:27:18] Production.INFO: ProcessCDR(1,14685218,1,1,2) [2025-03-15 09:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685218', 'tblTempUsageDetail_20' ) start [2025-03-15 09:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685218', 'tblTempUsageDetail_20' ) end [2025-03-15 09:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 09:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 09:27:21] Production.INFO: ==25472== Releasing lock... [2025-03-15 09:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 09:27:21] Production.INFO: 32 MB #Memory Used# [2025-03-15 09:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 06:28:05 [end_date_ymd] => 2025-03-15 09:28:05 [RateCDR] => 1 ) [2025-03-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-03-15 06:28:05' and `end` < '2025-03-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-03-15 09:28:17] Production.INFO: count ==490 [2025-03-15 09:28:17] Production.ERROR: pbx CDR StartTime 2025-03-15 06:28:05 - End Time 2025-03-15 09:28:05 [2025-03-15 09:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 09:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685223', 'tblTempUsageDetail_20' ) start [2025-03-15 09:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685223', 'tblTempUsageDetail_20' ) end [2025-03-15 09:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685223', 'tblTempVendorCDR_20' ) start [2025-03-15 09:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685223', 'tblTempVendorCDR_20' ) end [2025-03-15 09:28:17] Production.INFO: ProcessCDR(1,14685223,1,1,2) [2025-03-15 09:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685223', 'tblTempUsageDetail_20' ) start [2025-03-15 09:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685223', 'tblTempUsageDetail_20' ) end [2025-03-15 09:28:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 09:28:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 09:28:23] Production.INFO: ==25578== Releasing lock... [2025-03-15 09:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 09:28:23] Production.INFO: 32 MB #Memory Used# [2025-03-15 09:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 06:29:05 [end_date_ymd] => 2025-03-15 09:29:05 [RateCDR] => 1 ) [2025-03-15 09:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 06:29:05' and `end` < '2025-03-15 09:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 09:29:17] Production.INFO: count ==492 [2025-03-15 09:29:18] Production.ERROR: pbx CDR StartTime 2025-03-15 06:29:05 - End Time 2025-03-15 09:29:05 [2025-03-15 09:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685228', 'tblTempUsageDetail_20' ) start [2025-03-15 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685228', 'tblTempUsageDetail_20' ) end [2025-03-15 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685228', 'tblTempVendorCDR_20' ) start [2025-03-15 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685228', 'tblTempVendorCDR_20' ) end [2025-03-15 09:29:18] Production.INFO: ProcessCDR(1,14685228,1,1,2) [2025-03-15 09:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685228', 'tblTempUsageDetail_20' ) start [2025-03-15 09:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685228', 'tblTempUsageDetail_20' ) end [2025-03-15 09:29:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 09:29:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 09:29:22] Production.INFO: ==25685== Releasing lock... [2025-03-15 09:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 09:29:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-15 09:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 06:30:06 [end_date_ymd] => 2025-03-15 09:30:06 [RateCDR] => 1 ) [2025-03-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-03-15 06:30:06' and `end` < '2025-03-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-03-15 09:30:18] Production.INFO: count ==503 [2025-03-15 09:30:18] Production.ERROR: pbx CDR StartTime 2025-03-15 06:30:06 - End Time 2025-03-15 09:30:06 [2025-03-15 09:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 09:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685234', 'tblTempUsageDetail_20' ) start [2025-03-15 09:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685234', 'tblTempUsageDetail_20' ) end [2025-03-15 09:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685234', 'tblTempVendorCDR_20' ) start [2025-03-15 09:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685234', 'tblTempVendorCDR_20' ) end [2025-03-15 09:30:18] Production.INFO: ProcessCDR(1,14685234,1,1,2) [2025-03-15 09:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685234', 'tblTempUsageDetail_20' ) start [2025-03-15 09:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685234', 'tblTempUsageDetail_20' ) end [2025-03-15 09:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 09:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 09:30:22] Production.INFO: ==25792== Releasing lock... [2025-03-15 09:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 09:30:22] Production.INFO: 32 MB #Memory Used# [2025-03-15 09:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 06:31:05 [end_date_ymd] => 2025-03-15 09:31:05 [RateCDR] => 1 ) [2025-03-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-03-15 06:31:05' and `end` < '2025-03-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-03-15 09:31:17] Production.INFO: count ==503 [2025-03-15 09:31:17] Production.ERROR: pbx CDR StartTime 2025-03-15 06:31:05 - End Time 2025-03-15 09:31:05 [2025-03-15 09:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 09:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685239', 'tblTempUsageDetail_20' ) start [2025-03-15 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685239', 'tblTempUsageDetail_20' ) end [2025-03-15 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685239', 'tblTempVendorCDR_20' ) start [2025-03-15 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685239', 'tblTempVendorCDR_20' ) end [2025-03-15 09:31:18] Production.INFO: ProcessCDR(1,14685239,1,1,2) [2025-03-15 09:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685239', 'tblTempUsageDetail_20' ) start [2025-03-15 09:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685239', 'tblTempUsageDetail_20' ) end [2025-03-15 09:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 09:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 09:31:21] Production.INFO: ==25901== Releasing lock... [2025-03-15 09:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 09:31:21] Production.INFO: 32 MB #Memory Used# [2025-03-15 09:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 06:32:05 [end_date_ymd] => 2025-03-15 09:32:05 [RateCDR] => 1 ) [2025-03-15 09:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 06:32:05' and `end` < '2025-03-15 09:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 09:32:17] Production.INFO: count ==509 [2025-03-15 09:32:18] Production.ERROR: pbx CDR StartTime 2025-03-15 06:32:05 - End Time 2025-03-15 09:32:05 [2025-03-15 09:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 09:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685244', 'tblTempUsageDetail_20' ) start [2025-03-15 09:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685244', 'tblTempUsageDetail_20' ) end [2025-03-15 09:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685244', 'tblTempVendorCDR_20' ) start [2025-03-15 09:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685244', 'tblTempVendorCDR_20' ) end [2025-03-15 09:32:18] Production.INFO: ProcessCDR(1,14685244,1,1,2) [2025-03-15 09:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685244', 'tblTempUsageDetail_20' ) start [2025-03-15 09:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685244', 'tblTempUsageDetail_20' ) end [2025-03-15 09:32:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 09:32:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 09:32:23] Production.INFO: ==26006== Releasing lock... [2025-03-15 09:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 09:32:23] Production.INFO: 32.5 MB #Memory Used# [2025-03-15 09:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 06:33:05 [end_date_ymd] => 2025-03-15 09:33:05 [RateCDR] => 1 ) [2025-03-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-03-15 06:33:05' and `end` < '2025-03-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-03-15 09:33:17] Production.INFO: count ==513 [2025-03-15 09:33:18] Production.ERROR: pbx CDR StartTime 2025-03-15 06:33:05 - End Time 2025-03-15 09:33:05 [2025-03-15 09:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685249', 'tblTempUsageDetail_20' ) start [2025-03-15 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685249', 'tblTempUsageDetail_20' ) end [2025-03-15 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685249', 'tblTempVendorCDR_20' ) start [2025-03-15 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685249', 'tblTempVendorCDR_20' ) end [2025-03-15 09:33:18] Production.INFO: ProcessCDR(1,14685249,1,1,2) [2025-03-15 09:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685249', 'tblTempUsageDetail_20' ) start [2025-03-15 09:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685249', 'tblTempUsageDetail_20' ) end [2025-03-15 09:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 09:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 09:33:21] Production.INFO: ==26110== Releasing lock... [2025-03-15 09:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 09:33:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-15 09:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 06:34:05 [end_date_ymd] => 2025-03-15 09:34:05 [RateCDR] => 1 ) [2025-03-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-03-15 06:34:05' and `end` < '2025-03-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-03-15 09:34:17] Production.INFO: count ==514 [2025-03-15 09:34:18] Production.ERROR: pbx CDR StartTime 2025-03-15 06:34:05 - End Time 2025-03-15 09:34:05 [2025-03-15 09:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685254', 'tblTempUsageDetail_20' ) start [2025-03-15 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685254', 'tblTempUsageDetail_20' ) end [2025-03-15 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685254', 'tblTempVendorCDR_20' ) start [2025-03-15 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685254', 'tblTempVendorCDR_20' ) end [2025-03-15 09:34:18] Production.INFO: ProcessCDR(1,14685254,1,1,2) [2025-03-15 09:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685254', 'tblTempUsageDetail_20' ) start [2025-03-15 09:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685254', 'tblTempUsageDetail_20' ) end [2025-03-15 09:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 09:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 09:34:21] Production.INFO: ==26219== Releasing lock... [2025-03-15 09:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 09:34:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-15 09:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 06:35:05 [end_date_ymd] => 2025-03-15 09:35:05 [RateCDR] => 1 ) [2025-03-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-03-15 06:35:05' and `end` < '2025-03-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-03-15 09:35:17] Production.INFO: count ==519 [2025-03-15 09:35:17] Production.ERROR: pbx CDR StartTime 2025-03-15 06:35:05 - End Time 2025-03-15 09:35:05 [2025-03-15 09:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 09:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685259', 'tblTempUsageDetail_20' ) start [2025-03-15 09:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685259', 'tblTempUsageDetail_20' ) end [2025-03-15 09:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685259', 'tblTempVendorCDR_20' ) start [2025-03-15 09:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685259', 'tblTempVendorCDR_20' ) end [2025-03-15 09:35:17] Production.INFO: ProcessCDR(1,14685259,1,1,2) [2025-03-15 09:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685259', 'tblTempUsageDetail_20' ) start [2025-03-15 09:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685259', 'tblTempUsageDetail_20' ) end [2025-03-15 09:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 09:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 09:35:21] Production.INFO: ==26322== Releasing lock... [2025-03-15 09:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 09:35:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-15 09:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 06:36:05 [end_date_ymd] => 2025-03-15 09:36:05 [RateCDR] => 1 ) [2025-03-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-03-15 06:36:05' and `end` < '2025-03-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-03-15 09:36:18] Production.INFO: count ==520 [2025-03-15 09:36:18] Production.ERROR: pbx CDR StartTime 2025-03-15 06:36:05 - End Time 2025-03-15 09:36:05 [2025-03-15 09:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685264', 'tblTempUsageDetail_20' ) start [2025-03-15 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685264', 'tblTempUsageDetail_20' ) end [2025-03-15 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685264', 'tblTempVendorCDR_20' ) start [2025-03-15 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685264', 'tblTempVendorCDR_20' ) end [2025-03-15 09:36:18] Production.INFO: ProcessCDR(1,14685264,1,1,2) [2025-03-15 09:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685264', 'tblTempUsageDetail_20' ) start [2025-03-15 09:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685264', 'tblTempUsageDetail_20' ) end [2025-03-15 09:36:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 09:36:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 09:36:22] Production.INFO: ==26427== Releasing lock... [2025-03-15 09:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 09:36:22] Production.INFO: 33 MB #Memory Used# [2025-03-15 09:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 06:37:05 [end_date_ymd] => 2025-03-15 09:37:05 [RateCDR] => 1 ) [2025-03-15 09:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 06:37:05' and `end` < '2025-03-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-03-15 09:37:17] Production.INFO: count ==521 [2025-03-15 09:37:17] Production.ERROR: pbx CDR StartTime 2025-03-15 06:37:05 - End Time 2025-03-15 09:37:05 [2025-03-15 09:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 09:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685269', 'tblTempUsageDetail_20' ) start [2025-03-15 09:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685269', 'tblTempUsageDetail_20' ) end [2025-03-15 09:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685269', 'tblTempVendorCDR_20' ) start [2025-03-15 09:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685269', 'tblTempVendorCDR_20' ) end [2025-03-15 09:37:17] Production.INFO: ProcessCDR(1,14685269,1,1,2) [2025-03-15 09:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685269', 'tblTempUsageDetail_20' ) start [2025-03-15 09:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685269', 'tblTempUsageDetail_20' ) end [2025-03-15 09:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 09:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 09:37:22] Production.INFO: ==26578== Releasing lock... [2025-03-15 09:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 09:37:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-15 09:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 06:38:05 [end_date_ymd] => 2025-03-15 09:38:05 [RateCDR] => 1 ) [2025-03-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-03-15 06:38:05' and `end` < '2025-03-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-03-15 09:38:17] Production.INFO: count ==522 [2025-03-15 09:38:17] Production.ERROR: pbx CDR StartTime 2025-03-15 06:38:05 - End Time 2025-03-15 09:38:05 [2025-03-15 09:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 09:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685274', 'tblTempUsageDetail_20' ) start [2025-03-15 09:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685274', 'tblTempUsageDetail_20' ) end [2025-03-15 09:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685274', 'tblTempVendorCDR_20' ) start [2025-03-15 09:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685274', 'tblTempVendorCDR_20' ) end [2025-03-15 09:38:17] Production.INFO: ProcessCDR(1,14685274,1,1,2) [2025-03-15 09:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685274', 'tblTempUsageDetail_20' ) start [2025-03-15 09:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685274', 'tblTempUsageDetail_20' ) end [2025-03-15 09:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 09:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 09:38:22] Production.INFO: ==26692== Releasing lock... [2025-03-15 09:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 09:38:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-15 09:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 06:39:05 [end_date_ymd] => 2025-03-15 09:39:05 [RateCDR] => 1 ) [2025-03-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-03-15 06:39:05' and `end` < '2025-03-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-03-15 09:39:17] Production.INFO: count ==522 [2025-03-15 09:39:17] Production.ERROR: pbx CDR StartTime 2025-03-15 06:39:05 - End Time 2025-03-15 09:39:05 [2025-03-15 09:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 09:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685279', 'tblTempUsageDetail_20' ) start [2025-03-15 09:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685279', 'tblTempUsageDetail_20' ) end [2025-03-15 09:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685279', 'tblTempVendorCDR_20' ) start [2025-03-15 09:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685279', 'tblTempVendorCDR_20' ) end [2025-03-15 09:39:17] Production.INFO: ProcessCDR(1,14685279,1,1,2) [2025-03-15 09:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685279', 'tblTempUsageDetail_20' ) start [2025-03-15 09:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685279', 'tblTempUsageDetail_20' ) end [2025-03-15 09:39:20] Production.ERROR: pbx prc_insertCDR start [2025-03-15 09:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 09:39:21] Production.INFO: ==26798== Releasing lock... [2025-03-15 09:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 09:39:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-15 09:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 06:40:06 [end_date_ymd] => 2025-03-15 09:40:06 [RateCDR] => 1 ) [2025-03-15 09:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 06:40:06' and `end` < '2025-03-15 09:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 09:40:18] Production.INFO: count ==530 [2025-03-15 09:40:18] Production.ERROR: pbx CDR StartTime 2025-03-15 06:40:06 - End Time 2025-03-15 09:40:06 [2025-03-15 09:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 09:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685285', 'tblTempUsageDetail_20' ) start [2025-03-15 09:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685285', 'tblTempUsageDetail_20' ) end [2025-03-15 09:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685285', 'tblTempVendorCDR_20' ) start [2025-03-15 09:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685285', 'tblTempVendorCDR_20' ) end [2025-03-15 09:40:18] Production.INFO: ProcessCDR(1,14685285,1,1,2) [2025-03-15 09:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685285', 'tblTempUsageDetail_20' ) start [2025-03-15 09:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685285', 'tblTempUsageDetail_20' ) end [2025-03-15 09:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 09:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 09:40:22] Production.INFO: ==26890== Releasing lock... [2025-03-15 09:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 09:40:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-15 09:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 06:41:05 [end_date_ymd] => 2025-03-15 09:41:05 [RateCDR] => 1 ) [2025-03-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-03-15 06:41:05' and `end` < '2025-03-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-03-15 09:41:17] Production.INFO: count ==530 [2025-03-15 09:41:18] Production.ERROR: pbx CDR StartTime 2025-03-15 06:41:05 - End Time 2025-03-15 09:41:05 [2025-03-15 09:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685290', 'tblTempUsageDetail_20' ) start [2025-03-15 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685290', 'tblTempUsageDetail_20' ) end [2025-03-15 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685290', 'tblTempVendorCDR_20' ) start [2025-03-15 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685290', 'tblTempVendorCDR_20' ) end [2025-03-15 09:41:18] Production.INFO: ProcessCDR(1,14685290,1,1,2) [2025-03-15 09:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685290', 'tblTempUsageDetail_20' ) start [2025-03-15 09:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685290', 'tblTempUsageDetail_20' ) end [2025-03-15 09:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 09:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 09:41:21] Production.INFO: ==26974== Releasing lock... [2025-03-15 09:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 09:41:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-15 09:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 06:42:05 [end_date_ymd] => 2025-03-15 09:42:05 [RateCDR] => 1 ) [2025-03-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-03-15 06:42:05' and `end` < '2025-03-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-03-15 09:42:18] Production.INFO: count ==532 [2025-03-15 09:42:18] Production.ERROR: pbx CDR StartTime 2025-03-15 06:42:05 - End Time 2025-03-15 09:42:05 [2025-03-15 09:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 09:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685295', 'tblTempUsageDetail_20' ) start [2025-03-15 09:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685295', 'tblTempUsageDetail_20' ) end [2025-03-15 09:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685295', 'tblTempVendorCDR_20' ) start [2025-03-15 09:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685295', 'tblTempVendorCDR_20' ) end [2025-03-15 09:42:18] Production.INFO: ProcessCDR(1,14685295,1,1,2) [2025-03-15 09:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685295', 'tblTempUsageDetail_20' ) start [2025-03-15 09:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685295', 'tblTempUsageDetail_20' ) end [2025-03-15 09:42:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 09:42:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 09:42:23] Production.INFO: ==27058== Releasing lock... [2025-03-15 09:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 09:42:23] Production.INFO: 32 MB #Memory Used# [2025-03-15 09:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 06:43:05 [end_date_ymd] => 2025-03-15 09:43:05 [RateCDR] => 1 ) [2025-03-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-03-15 06:43:05' and `end` < '2025-03-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-03-15 09:43:17] Production.INFO: count ==533 [2025-03-15 09:43:18] Production.ERROR: pbx CDR StartTime 2025-03-15 06:43:05 - End Time 2025-03-15 09:43:05 [2025-03-15 09:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 09:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685300', 'tblTempUsageDetail_20' ) start [2025-03-15 09:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685300', 'tblTempUsageDetail_20' ) end [2025-03-15 09:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685300', 'tblTempVendorCDR_20' ) start [2025-03-15 09:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685300', 'tblTempVendorCDR_20' ) end [2025-03-15 09:43:18] Production.INFO: ProcessCDR(1,14685300,1,1,2) [2025-03-15 09:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685300', 'tblTempUsageDetail_20' ) start [2025-03-15 09:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685300', 'tblTempUsageDetail_20' ) end [2025-03-15 09:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 09:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 09:43:22] Production.INFO: ==27146== Releasing lock... [2025-03-15 09:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 09:43:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-15 09:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 06:44:05 [end_date_ymd] => 2025-03-15 09:44:05 [RateCDR] => 1 ) [2025-03-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-03-15 06:44:05' and `end` < '2025-03-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-03-15 09:44:17] Production.INFO: count ==539 [2025-03-15 09:44:18] Production.ERROR: pbx CDR StartTime 2025-03-15 06:44:05 - End Time 2025-03-15 09:44:05 [2025-03-15 09:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685305', 'tblTempUsageDetail_20' ) start [2025-03-15 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685305', 'tblTempUsageDetail_20' ) end [2025-03-15 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685305', 'tblTempVendorCDR_20' ) start [2025-03-15 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685305', 'tblTempVendorCDR_20' ) end [2025-03-15 09:44:18] Production.INFO: ProcessCDR(1,14685305,1,1,2) [2025-03-15 09:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685305', 'tblTempUsageDetail_20' ) start [2025-03-15 09:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685305', 'tblTempUsageDetail_20' ) end [2025-03-15 09:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 09:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 09:44:21] Production.INFO: ==27224== Releasing lock... [2025-03-15 09:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 09:44:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-15 09:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 06:45:05 [end_date_ymd] => 2025-03-15 09:45:05 [RateCDR] => 1 ) [2025-03-15 09:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 06:45:05' and `end` < '2025-03-15 09:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 09:45:17] Production.INFO: count ==545 [2025-03-15 09:45:18] Production.ERROR: pbx CDR StartTime 2025-03-15 06:45:05 - End Time 2025-03-15 09:45:05 [2025-03-15 09:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 09:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685310', 'tblTempUsageDetail_20' ) start [2025-03-15 09:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685310', 'tblTempUsageDetail_20' ) end [2025-03-15 09:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685310', 'tblTempVendorCDR_20' ) start [2025-03-15 09:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685310', 'tblTempVendorCDR_20' ) end [2025-03-15 09:45:18] Production.INFO: ProcessCDR(1,14685310,1,1,2) [2025-03-15 09:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685310', 'tblTempUsageDetail_20' ) start [2025-03-15 09:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685310', 'tblTempUsageDetail_20' ) end [2025-03-15 09:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 09:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 09:45:21] Production.INFO: ==27305== Releasing lock... [2025-03-15 09:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 09:45:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-15 09:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 06:46:05 [end_date_ymd] => 2025-03-15 09:46:05 [RateCDR] => 1 ) [2025-03-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-03-15 06:46:05' and `end` < '2025-03-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-03-15 09:46:17] Production.INFO: count ==555 [2025-03-15 09:46:17] Production.ERROR: pbx CDR StartTime 2025-03-15 06:46:05 - End Time 2025-03-15 09:46:05 [2025-03-15 09:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 09:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685315', 'tblTempUsageDetail_20' ) start [2025-03-15 09:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685315', 'tblTempUsageDetail_20' ) end [2025-03-15 09:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685315', 'tblTempVendorCDR_20' ) start [2025-03-15 09:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685315', 'tblTempVendorCDR_20' ) end [2025-03-15 09:46:17] Production.INFO: ProcessCDR(1,14685315,1,1,2) [2025-03-15 09:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685315', 'tblTempUsageDetail_20' ) start [2025-03-15 09:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685315', 'tblTempUsageDetail_20' ) end [2025-03-15 09:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 09:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 09:46:22] Production.INFO: ==27384== Releasing lock... [2025-03-15 09:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 09:46:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-15 09:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 06:47:06 [end_date_ymd] => 2025-03-15 09:47:06 [RateCDR] => 1 ) [2025-03-15 09:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 06:47:06' and `end` < '2025-03-15 09:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 09:47:18] Production.INFO: count ==553 [2025-03-15 09:47:18] Production.ERROR: pbx CDR StartTime 2025-03-15 06:47:06 - End Time 2025-03-15 09:47:06 [2025-03-15 09:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685320', 'tblTempUsageDetail_20' ) start [2025-03-15 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685320', 'tblTempUsageDetail_20' ) end [2025-03-15 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685320', 'tblTempVendorCDR_20' ) start [2025-03-15 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685320', 'tblTempVendorCDR_20' ) end [2025-03-15 09:47:18] Production.INFO: ProcessCDR(1,14685320,1,1,2) [2025-03-15 09:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685320', 'tblTempUsageDetail_20' ) start [2025-03-15 09:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685320', 'tblTempUsageDetail_20' ) end [2025-03-15 09:47:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 09:47:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 09:47:23] Production.INFO: ==27466== Releasing lock... [2025-03-15 09:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 09:47:23] Production.INFO: 32.5 MB #Memory Used# [2025-03-15 09:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 06:48:05 [end_date_ymd] => 2025-03-15 09:48:05 [RateCDR] => 1 ) [2025-03-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-03-15 06:48:05' and `end` < '2025-03-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-03-15 09:48:17] Production.INFO: count ==562 [2025-03-15 09:48:17] Production.ERROR: pbx CDR StartTime 2025-03-15 06:48:05 - End Time 2025-03-15 09:48:05 [2025-03-15 09:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 09:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685325', 'tblTempUsageDetail_20' ) start [2025-03-15 09:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685325', 'tblTempUsageDetail_20' ) end [2025-03-15 09:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685325', 'tblTempVendorCDR_20' ) start [2025-03-15 09:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685325', 'tblTempVendorCDR_20' ) end [2025-03-15 09:48:17] Production.INFO: ProcessCDR(1,14685325,1,1,2) [2025-03-15 09:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685325', 'tblTempUsageDetail_20' ) start [2025-03-15 09:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685325', 'tblTempUsageDetail_20' ) end [2025-03-15 09:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 09:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 09:48:22] Production.INFO: ==27544== Releasing lock... [2025-03-15 09:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 09:48:22] Production.INFO: 33 MB #Memory Used# [2025-03-15 09:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 06:49:05 [end_date_ymd] => 2025-03-15 09:49:05 [RateCDR] => 1 ) [2025-03-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-03-15 06:49:05' and `end` < '2025-03-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-03-15 09:49:18] Production.INFO: count ==569 [2025-03-15 09:49:18] Production.ERROR: pbx CDR StartTime 2025-03-15 06:49:05 - End Time 2025-03-15 09:49:05 [2025-03-15 09:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685330', 'tblTempUsageDetail_20' ) start [2025-03-15 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685330', 'tblTempUsageDetail_20' ) end [2025-03-15 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685330', 'tblTempVendorCDR_20' ) start [2025-03-15 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685330', 'tblTempVendorCDR_20' ) end [2025-03-15 09:49:18] Production.INFO: ProcessCDR(1,14685330,1,1,2) [2025-03-15 09:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685330', 'tblTempUsageDetail_20' ) start [2025-03-15 09:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685330', 'tblTempUsageDetail_20' ) end [2025-03-15 09:49:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 09:49:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 09:49:23] Production.INFO: ==27627== Releasing lock... [2025-03-15 09:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 09:49:23] Production.INFO: 32.75 MB #Memory Used# [2025-03-15 09:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 06:50:06 [end_date_ymd] => 2025-03-15 09:50:06 [RateCDR] => 1 ) [2025-03-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-03-15 06:50:06' and `end` < '2025-03-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-03-15 09:50:18] Production.INFO: count ==577 [2025-03-15 09:50:18] Production.ERROR: pbx CDR StartTime 2025-03-15 06:50:06 - End Time 2025-03-15 09:50:06 [2025-03-15 09:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 09:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685336', 'tblTempUsageDetail_20' ) start [2025-03-15 09:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685336', 'tblTempUsageDetail_20' ) end [2025-03-15 09:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685336', 'tblTempVendorCDR_20' ) start [2025-03-15 09:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685336', 'tblTempVendorCDR_20' ) end [2025-03-15 09:50:18] Production.INFO: ProcessCDR(1,14685336,1,1,2) [2025-03-15 09:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685336', 'tblTempUsageDetail_20' ) start [2025-03-15 09:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685336', 'tblTempUsageDetail_20' ) end [2025-03-15 09:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 09:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 09:50:22] Production.INFO: ==27710== Releasing lock... [2025-03-15 09:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 09:50:22] Production.INFO: 33 MB #Memory Used# [2025-03-15 09:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 06:51:06 [end_date_ymd] => 2025-03-15 09:51:06 [RateCDR] => 1 ) [2025-03-15 09:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 06:51:06' and `end` < '2025-03-15 09:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 09:51:18] Production.INFO: count ==583 [2025-03-15 09:51:18] Production.ERROR: pbx CDR StartTime 2025-03-15 06:51:06 - End Time 2025-03-15 09:51:06 [2025-03-15 09:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 09:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685341', 'tblTempUsageDetail_20' ) start [2025-03-15 09:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685341', 'tblTempUsageDetail_20' ) end [2025-03-15 09:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685341', 'tblTempVendorCDR_20' ) start [2025-03-15 09:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685341', 'tblTempVendorCDR_20' ) end [2025-03-15 09:51:18] Production.INFO: ProcessCDR(1,14685341,1,1,2) [2025-03-15 09:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685341', 'tblTempUsageDetail_20' ) start [2025-03-15 09:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685341', 'tblTempUsageDetail_20' ) end [2025-03-15 09:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 09:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 09:51:21] Production.INFO: ==27797== Releasing lock... [2025-03-15 09:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 09:51:21] Production.INFO: 33 MB #Memory Used# [2025-03-15 09:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 06:52:05 [end_date_ymd] => 2025-03-15 09:52:05 [RateCDR] => 1 ) [2025-03-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-03-15 06:52:05' and `end` < '2025-03-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-03-15 09:52:17] Production.INFO: count ==582 [2025-03-15 09:52:17] Production.ERROR: pbx CDR StartTime 2025-03-15 06:52:05 - End Time 2025-03-15 09:52:05 [2025-03-15 09:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 09:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685346', 'tblTempUsageDetail_20' ) start [2025-03-15 09:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685346', 'tblTempUsageDetail_20' ) end [2025-03-15 09:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685346', 'tblTempVendorCDR_20' ) start [2025-03-15 09:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685346', 'tblTempVendorCDR_20' ) end [2025-03-15 09:52:17] Production.INFO: ProcessCDR(1,14685346,1,1,2) [2025-03-15 09:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685346', 'tblTempUsageDetail_20' ) start [2025-03-15 09:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685346', 'tblTempUsageDetail_20' ) end [2025-03-15 09:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 09:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 09:52:21] Production.INFO: ==27879== Releasing lock... [2025-03-15 09:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 09:52:21] Production.INFO: 33 MB #Memory Used# [2025-03-15 09:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 06:53:05 [end_date_ymd] => 2025-03-15 09:53:05 [RateCDR] => 1 ) [2025-03-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-03-15 06:53:05' and `end` < '2025-03-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-03-15 09:53:17] Production.INFO: count ==587 [2025-03-15 09:53:17] Production.ERROR: pbx CDR StartTime 2025-03-15 06:53:05 - End Time 2025-03-15 09:53:05 [2025-03-15 09:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 09:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685351', 'tblTempUsageDetail_20' ) start [2025-03-15 09:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685351', 'tblTempUsageDetail_20' ) end [2025-03-15 09:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685351', 'tblTempVendorCDR_20' ) start [2025-03-15 09:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685351', 'tblTempVendorCDR_20' ) end [2025-03-15 09:53:17] Production.INFO: ProcessCDR(1,14685351,1,1,2) [2025-03-15 09:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685351', 'tblTempUsageDetail_20' ) start [2025-03-15 09:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685351', 'tblTempUsageDetail_20' ) end [2025-03-15 09:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 09:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 09:53:21] Production.INFO: ==27999== Releasing lock... [2025-03-15 09:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 09:53:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-15 09:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 06:54:06 [end_date_ymd] => 2025-03-15 09:54:06 [RateCDR] => 1 ) [2025-03-15 09:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 06:54:06' and `end` < '2025-03-15 09:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 09:54:18] Production.INFO: count ==587 [2025-03-15 09:54:18] Production.ERROR: pbx CDR StartTime 2025-03-15 06:54:06 - End Time 2025-03-15 09:54:06 [2025-03-15 09:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685356', 'tblTempUsageDetail_20' ) start [2025-03-15 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685356', 'tblTempUsageDetail_20' ) end [2025-03-15 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685356', 'tblTempVendorCDR_20' ) start [2025-03-15 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685356', 'tblTempVendorCDR_20' ) end [2025-03-15 09:54:18] Production.INFO: ProcessCDR(1,14685356,1,1,2) [2025-03-15 09:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685356', 'tblTempUsageDetail_20' ) start [2025-03-15 09:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685356', 'tblTempUsageDetail_20' ) end [2025-03-15 09:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 09:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 09:54:22] Production.INFO: ==28087== Releasing lock... [2025-03-15 09:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 09:54:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-15 09:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 06:55:05 [end_date_ymd] => 2025-03-15 09:55:05 [RateCDR] => 1 ) [2025-03-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-03-15 06:55:05' and `end` < '2025-03-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-03-15 09:55:18] Production.INFO: count ==591 [2025-03-15 09:55:18] Production.ERROR: pbx CDR StartTime 2025-03-15 06:55:05 - End Time 2025-03-15 09:55:05 [2025-03-15 09:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 09:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685361', 'tblTempUsageDetail_20' ) start [2025-03-15 09:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685361', 'tblTempUsageDetail_20' ) end [2025-03-15 09:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685361', 'tblTempVendorCDR_20' ) start [2025-03-15 09:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685361', 'tblTempVendorCDR_20' ) end [2025-03-15 09:55:18] Production.INFO: ProcessCDR(1,14685361,1,1,2) [2025-03-15 09:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685361', 'tblTempUsageDetail_20' ) start [2025-03-15 09:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685361', 'tblTempUsageDetail_20' ) end [2025-03-15 09:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 09:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 09:55:21] Production.INFO: ==28167== Releasing lock... [2025-03-15 09:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 09:55:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-15 09:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 06:56:06 [end_date_ymd] => 2025-03-15 09:56:06 [RateCDR] => 1 ) [2025-03-15 09:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 06:56:06' and `end` < '2025-03-15 09:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 09:56:18] Production.INFO: count ==591 [2025-03-15 09:56:18] Production.ERROR: pbx CDR StartTime 2025-03-15 06:56:06 - End Time 2025-03-15 09:56:06 [2025-03-15 09:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 09:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685366', 'tblTempUsageDetail_20' ) start [2025-03-15 09:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685366', 'tblTempUsageDetail_20' ) end [2025-03-15 09:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685366', 'tblTempVendorCDR_20' ) start [2025-03-15 09:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685366', 'tblTempVendorCDR_20' ) end [2025-03-15 09:56:18] Production.INFO: ProcessCDR(1,14685366,1,1,2) [2025-03-15 09:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685366', 'tblTempUsageDetail_20' ) start [2025-03-15 09:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685366', 'tblTempUsageDetail_20' ) end [2025-03-15 09:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 09:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 09:56:21] Production.INFO: ==28248== Releasing lock... [2025-03-15 09:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 09:56:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-15 09:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 06:57:05 [end_date_ymd] => 2025-03-15 09:57:05 [RateCDR] => 1 ) [2025-03-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-03-15 06:57:05' and `end` < '2025-03-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-03-15 09:57:17] Production.INFO: count ==597 [2025-03-15 09:57:17] Production.ERROR: pbx CDR StartTime 2025-03-15 06:57:05 - End Time 2025-03-15 09:57:05 [2025-03-15 09:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 09:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685371', 'tblTempUsageDetail_20' ) start [2025-03-15 09:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685371', 'tblTempUsageDetail_20' ) end [2025-03-15 09:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685371', 'tblTempVendorCDR_20' ) start [2025-03-15 09:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685371', 'tblTempVendorCDR_20' ) end [2025-03-15 09:57:17] Production.INFO: ProcessCDR(1,14685371,1,1,2) [2025-03-15 09:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685371', 'tblTempUsageDetail_20' ) start [2025-03-15 09:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685371', 'tblTempUsageDetail_20' ) end [2025-03-15 09:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 09:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 09:57:21] Production.INFO: ==28329== Releasing lock... [2025-03-15 09:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 09:57:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-15 09:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 06:58:06 [end_date_ymd] => 2025-03-15 09:58:06 [RateCDR] => 1 ) [2025-03-15 09:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 06:58:06' and `end` < '2025-03-15 09:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 09:58:18] Production.INFO: count ==599 [2025-03-15 09:58:19] Production.ERROR: pbx CDR StartTime 2025-03-15 06:58:06 - End Time 2025-03-15 09:58:06 [2025-03-15 09:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685376', 'tblTempUsageDetail_20' ) start [2025-03-15 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685376', 'tblTempUsageDetail_20' ) end [2025-03-15 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685376', 'tblTempVendorCDR_20' ) start [2025-03-15 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685376', 'tblTempVendorCDR_20' ) end [2025-03-15 09:58:19] Production.INFO: ProcessCDR(1,14685376,1,1,2) [2025-03-15 09:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685376', 'tblTempUsageDetail_20' ) start [2025-03-15 09:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685376', 'tblTempUsageDetail_20' ) end [2025-03-15 09:58:24] Production.ERROR: pbx prc_insertCDR start [2025-03-15 09:58:24] Production.ERROR: pbx prc_insertCDR end [2025-03-15 09:58:24] Production.INFO: ==28409== Releasing lock... [2025-03-15 09:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 09:58:24] Production.INFO: 33 MB #Memory Used# [2025-03-15 09:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 06:59:05 [end_date_ymd] => 2025-03-15 09:59:05 [RateCDR] => 1 ) [2025-03-15 09:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 06:59:05' and `end` < '2025-03-15 09:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 09:59:17] Production.INFO: count ==603 [2025-03-15 09:59:17] Production.ERROR: pbx CDR StartTime 2025-03-15 06:59:05 - End Time 2025-03-15 09:59:05 [2025-03-15 09:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 09:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685381', 'tblTempUsageDetail_20' ) start [2025-03-15 09:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685381', 'tblTempUsageDetail_20' ) end [2025-03-15 09:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685381', 'tblTempVendorCDR_20' ) start [2025-03-15 09:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685381', 'tblTempVendorCDR_20' ) end [2025-03-15 09:59:17] Production.INFO: ProcessCDR(1,14685381,1,1,2) [2025-03-15 09:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 09:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 09:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685381', 'tblTempUsageDetail_20' ) start [2025-03-15 09:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685381', 'tblTempUsageDetail_20' ) end [2025-03-15 09:59:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 09:59:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 09:59:23] Production.INFO: ==28489== Releasing lock... [2025-03-15 09:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 09:59:23] Production.INFO: 33 MB #Memory Used# [2025-03-15 10:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 07:00:06 [end_date_ymd] => 2025-03-15 10:00:06 [RateCDR] => 1 ) [2025-03-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-03-15 07:00:06' and `end` < '2025-03-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-03-15 10:00:18] Production.INFO: count ==609 [2025-03-15 10:00:18] Production.ERROR: pbx CDR StartTime 2025-03-15 07:00:06 - End Time 2025-03-15 10:00:06 [2025-03-15 10:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 10:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685387', 'tblTempUsageDetail_20' ) start [2025-03-15 10:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685387', 'tblTempUsageDetail_20' ) end [2025-03-15 10:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685387', 'tblTempVendorCDR_20' ) start [2025-03-15 10:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685387', 'tblTempVendorCDR_20' ) end [2025-03-15 10:00:18] Production.INFO: ProcessCDR(1,14685387,1,1,2) [2025-03-15 10:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685387', 'tblTempUsageDetail_20' ) start [2025-03-15 10:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685387', 'tblTempUsageDetail_20' ) end [2025-03-15 10:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 10:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 10:00:23] Production.INFO: ==28574== Releasing lock... [2025-03-15 10:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 10:00:23] Production.INFO: 33 MB #Memory Used# [2025-03-15 10:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 07:01:05 [end_date_ymd] => 2025-03-15 10:01:05 [RateCDR] => 1 ) [2025-03-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-03-15 07:01:05' and `end` < '2025-03-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-03-15 10:01:17] Production.INFO: count ==623 [2025-03-15 10:01:18] Production.ERROR: pbx CDR StartTime 2025-03-15 07:01:05 - End Time 2025-03-15 10:01:05 [2025-03-15 10:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 10:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685392', 'tblTempUsageDetail_20' ) start [2025-03-15 10:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685392', 'tblTempUsageDetail_20' ) end [2025-03-15 10:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685392', 'tblTempVendorCDR_20' ) start [2025-03-15 10:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685392', 'tblTempVendorCDR_20' ) end [2025-03-15 10:01:18] Production.INFO: ProcessCDR(1,14685392,1,1,2) [2025-03-15 10:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685392', 'tblTempUsageDetail_20' ) start [2025-03-15 10:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685392', 'tblTempUsageDetail_20' ) end [2025-03-15 10:01:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 10:01:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 10:01:23] Production.INFO: ==28669== Releasing lock... [2025-03-15 10:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 10:01:23] Production.INFO: 33 MB #Memory Used# [2025-03-15 10:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 07:02:05 [end_date_ymd] => 2025-03-15 10:02:05 [RateCDR] => 1 ) [2025-03-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-03-15 07:02:05' and `end` < '2025-03-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-03-15 10:02:18] Production.INFO: count ==634 [2025-03-15 10:02:18] Production.ERROR: pbx CDR StartTime 2025-03-15 07:02:05 - End Time 2025-03-15 10:02:05 [2025-03-15 10:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 10:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685397', 'tblTempUsageDetail_20' ) start [2025-03-15 10:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685397', 'tblTempUsageDetail_20' ) end [2025-03-15 10:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685397', 'tblTempVendorCDR_20' ) start [2025-03-15 10:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685397', 'tblTempVendorCDR_20' ) end [2025-03-15 10:02:18] Production.INFO: ProcessCDR(1,14685397,1,1,2) [2025-03-15 10:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685397', 'tblTempUsageDetail_20' ) start [2025-03-15 10:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685397', 'tblTempUsageDetail_20' ) end [2025-03-15 10:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 10:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 10:02:21] Production.INFO: ==28758== Releasing lock... [2025-03-15 10:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 10:02:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-15 10:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 07:03:05 [end_date_ymd] => 2025-03-15 10:03:05 [RateCDR] => 1 ) [2025-03-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-03-15 07:03:05' and `end` < '2025-03-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-03-15 10:03:17] Production.INFO: count ==634 [2025-03-15 10:03:18] Production.ERROR: pbx CDR StartTime 2025-03-15 07:03:05 - End Time 2025-03-15 10:03:05 [2025-03-15 10:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 10:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685402', 'tblTempUsageDetail_20' ) start [2025-03-15 10:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685402', 'tblTempUsageDetail_20' ) end [2025-03-15 10:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685402', 'tblTempVendorCDR_20' ) start [2025-03-15 10:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685402', 'tblTempVendorCDR_20' ) end [2025-03-15 10:03:18] Production.INFO: ProcessCDR(1,14685402,1,1,2) [2025-03-15 10:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685402', 'tblTempUsageDetail_20' ) start [2025-03-15 10:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685402', 'tblTempUsageDetail_20' ) end [2025-03-15 10:03:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 10:03:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 10:03:23] Production.INFO: ==28836== Releasing lock... [2025-03-15 10:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 10:03:23] Production.INFO: 33.5 MB #Memory Used# [2025-03-15 10:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 07:04:06 [end_date_ymd] => 2025-03-15 10:04:06 [RateCDR] => 1 ) [2025-03-15 10:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 07:04:06' and `end` < '2025-03-15 10:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 10:04:18] Production.INFO: count ==634 [2025-03-15 10:04:18] Production.ERROR: pbx CDR StartTime 2025-03-15 07:04:06 - End Time 2025-03-15 10:04:06 [2025-03-15 10:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 10:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685407', 'tblTempUsageDetail_20' ) start [2025-03-15 10:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685407', 'tblTempUsageDetail_20' ) end [2025-03-15 10:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685407', 'tblTempVendorCDR_20' ) start [2025-03-15 10:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685407', 'tblTempVendorCDR_20' ) end [2025-03-15 10:04:18] Production.INFO: ProcessCDR(1,14685407,1,1,2) [2025-03-15 10:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685407', 'tblTempUsageDetail_20' ) start [2025-03-15 10:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685407', 'tblTempUsageDetail_20' ) end [2025-03-15 10:04:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 10:04:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 10:04:23] Production.INFO: ==28921== Releasing lock... [2025-03-15 10:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 10:04:23] Production.INFO: 33.5 MB #Memory Used# [2025-03-15 10:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 07:05:05 [end_date_ymd] => 2025-03-15 10:05:05 [RateCDR] => 1 ) [2025-03-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-03-15 07:05:05' and `end` < '2025-03-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-03-15 10:05:17] Production.INFO: count ==651 [2025-03-15 10:05:18] Production.ERROR: pbx CDR StartTime 2025-03-15 07:05:05 - End Time 2025-03-15 10:05:05 [2025-03-15 10:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 10:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685412', 'tblTempUsageDetail_20' ) start [2025-03-15 10:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685412', 'tblTempUsageDetail_20' ) end [2025-03-15 10:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685412', 'tblTempVendorCDR_20' ) start [2025-03-15 10:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685412', 'tblTempVendorCDR_20' ) end [2025-03-15 10:05:18] Production.INFO: ProcessCDR(1,14685412,1,1,2) [2025-03-15 10:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685412', 'tblTempUsageDetail_20' ) start [2025-03-15 10:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685412', 'tblTempUsageDetail_20' ) end [2025-03-15 10:05:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 10:05:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 10:05:23] Production.INFO: ==29003== Releasing lock... [2025-03-15 10:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 10:05:23] Production.INFO: 33.25 MB #Memory Used# [2025-03-15 10:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 07:06:05 [end_date_ymd] => 2025-03-15 10:06:05 [RateCDR] => 1 ) [2025-03-15 10:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 07:06:05' and `end` < '2025-03-15 10:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 10:06:18] Production.INFO: count ==649 [2025-03-15 10:06:18] Production.ERROR: pbx CDR StartTime 2025-03-15 07:06:05 - End Time 2025-03-15 10:06:05 [2025-03-15 10:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 10:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685416', 'tblTempUsageDetail_20' ) start [2025-03-15 10:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685416', 'tblTempUsageDetail_20' ) end [2025-03-15 10:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685416', 'tblTempVendorCDR_20' ) start [2025-03-15 10:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685416', 'tblTempVendorCDR_20' ) end [2025-03-15 10:06:18] Production.INFO: ProcessCDR(1,14685416,1,1,2) [2025-03-15 10:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685416', 'tblTempUsageDetail_20' ) start [2025-03-15 10:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685416', 'tblTempUsageDetail_20' ) end [2025-03-15 10:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 10:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 10:06:21] Production.INFO: ==29084== Releasing lock... [2025-03-15 10:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 10:06:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-15 10:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 07:07:04 [end_date_ymd] => 2025-03-15 10:07:04 [RateCDR] => 1 ) [2025-03-15 10: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-03-15 07:07:04' and `end` < '2025-03-15 10: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-03-15 10:07:17] Production.INFO: count ==647 [2025-03-15 10:07:17] Production.ERROR: pbx CDR StartTime 2025-03-15 07:07:04 - End Time 2025-03-15 10:07:04 [2025-03-15 10:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 10:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685422', 'tblTempUsageDetail_20' ) start [2025-03-15 10:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685422', 'tblTempUsageDetail_20' ) end [2025-03-15 10:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685422', 'tblTempVendorCDR_20' ) start [2025-03-15 10:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685422', 'tblTempVendorCDR_20' ) end [2025-03-15 10:07:17] Production.INFO: ProcessCDR(1,14685422,1,1,2) [2025-03-15 10:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685422', 'tblTempUsageDetail_20' ) start [2025-03-15 10:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685422', 'tblTempUsageDetail_20' ) end [2025-03-15 10:07:20] Production.ERROR: pbx prc_insertCDR start [2025-03-15 10:07:20] Production.ERROR: pbx prc_insertCDR end [2025-03-15 10:07:20] Production.INFO: ==29166== Releasing lock... [2025-03-15 10:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 10:07:20] Production.INFO: 33.75 MB #Memory Used# [2025-03-15 10:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 07:08:05 [end_date_ymd] => 2025-03-15 10:08:05 [RateCDR] => 1 ) [2025-03-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-03-15 07:08:05' and `end` < '2025-03-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-03-15 10:08:18] Production.INFO: count ==652 [2025-03-15 10:08:18] Production.ERROR: pbx CDR StartTime 2025-03-15 07:08:05 - End Time 2025-03-15 10:08:05 [2025-03-15 10:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 10:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685427', 'tblTempUsageDetail_20' ) start [2025-03-15 10:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685427', 'tblTempUsageDetail_20' ) end [2025-03-15 10:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685427', 'tblTempVendorCDR_20' ) start [2025-03-15 10:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685427', 'tblTempVendorCDR_20' ) end [2025-03-15 10:08:18] Production.INFO: ProcessCDR(1,14685427,1,1,2) [2025-03-15 10:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685427', 'tblTempUsageDetail_20' ) start [2025-03-15 10:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685427', 'tblTempUsageDetail_20' ) end [2025-03-15 10:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 10:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 10:08:21] Production.INFO: ==29287== Releasing lock... [2025-03-15 10:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 10:08:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-15 10:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 07:09:05 [end_date_ymd] => 2025-03-15 10:09:05 [RateCDR] => 1 ) [2025-03-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-03-15 07:09:05' and `end` < '2025-03-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-03-15 10:09:17] Production.INFO: count ==657 [2025-03-15 10:09:17] Production.ERROR: pbx CDR StartTime 2025-03-15 07:09:05 - End Time 2025-03-15 10:09:05 [2025-03-15 10:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 10:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685432', 'tblTempUsageDetail_20' ) start [2025-03-15 10:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685432', 'tblTempUsageDetail_20' ) end [2025-03-15 10:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685432', 'tblTempVendorCDR_20' ) start [2025-03-15 10:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685432', 'tblTempVendorCDR_20' ) end [2025-03-15 10:09:17] Production.INFO: ProcessCDR(1,14685432,1,1,2) [2025-03-15 10:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685432', 'tblTempUsageDetail_20' ) start [2025-03-15 10:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685432', 'tblTempUsageDetail_20' ) end [2025-03-15 10:09:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 10:09:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 10:09:22] Production.INFO: ==29368== Releasing lock... [2025-03-15 10:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 10:09:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-15 10:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 07:10:06 [end_date_ymd] => 2025-03-15 10:10:06 [RateCDR] => 1 ) [2025-03-15 10:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 07:10:06' and `end` < '2025-03-15 10:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 10:10:18] Production.INFO: count ==691 [2025-03-15 10:10:19] Production.ERROR: pbx CDR StartTime 2025-03-15 07:10:06 - End Time 2025-03-15 10:10:06 [2025-03-15 10:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 10:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685437', 'tblTempUsageDetail_20' ) start [2025-03-15 10:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685437', 'tblTempUsageDetail_20' ) end [2025-03-15 10:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685437', 'tblTempVendorCDR_20' ) start [2025-03-15 10:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685437', 'tblTempVendorCDR_20' ) end [2025-03-15 10:10:19] Production.INFO: ProcessCDR(1,14685437,1,1,2) [2025-03-15 10:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685437', 'tblTempUsageDetail_20' ) start [2025-03-15 10:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685437', 'tblTempUsageDetail_20' ) end [2025-03-15 10:10:24] Production.ERROR: pbx prc_insertCDR start [2025-03-15 10:10:24] Production.ERROR: pbx prc_insertCDR end [2025-03-15 10:10:24] Production.INFO: ==29453== Releasing lock... [2025-03-15 10:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 10:10:24] Production.INFO: 34 MB #Memory Used# [2025-03-15 10:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 07:11:05 [end_date_ymd] => 2025-03-15 10:11:05 [RateCDR] => 1 ) [2025-03-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-03-15 07:11:05' and `end` < '2025-03-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-03-15 10:11:18] Production.INFO: count ==712 [2025-03-15 10:11:18] Production.ERROR: pbx CDR StartTime 2025-03-15 07:11:05 - End Time 2025-03-15 10:11:05 [2025-03-15 10:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 10:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685443', 'tblTempUsageDetail_20' ) start [2025-03-15 10:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685443', 'tblTempUsageDetail_20' ) end [2025-03-15 10:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685443', 'tblTempVendorCDR_20' ) start [2025-03-15 10:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685443', 'tblTempVendorCDR_20' ) end [2025-03-15 10:11:18] Production.INFO: ProcessCDR(1,14685443,1,1,2) [2025-03-15 10:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685443', 'tblTempUsageDetail_20' ) start [2025-03-15 10:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685443', 'tblTempUsageDetail_20' ) end [2025-03-15 10:11:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 10:11:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 10:11:23] Production.INFO: ==29537== Releasing lock... [2025-03-15 10:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 10:11:23] Production.INFO: 33.25 MB #Memory Used# [2025-03-15 10:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 07:12:06 [end_date_ymd] => 2025-03-15 10:12:06 [RateCDR] => 1 ) [2025-03-15 10:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 07:12:06' and `end` < '2025-03-15 10:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 10:12:18] Production.INFO: count ==720 [2025-03-15 10:12:18] Production.ERROR: pbx CDR StartTime 2025-03-15 07:12:06 - End Time 2025-03-15 10:12:06 [2025-03-15 10:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 10:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685448', 'tblTempUsageDetail_20' ) start [2025-03-15 10:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685448', 'tblTempUsageDetail_20' ) end [2025-03-15 10:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685448', 'tblTempVendorCDR_20' ) start [2025-03-15 10:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685448', 'tblTempVendorCDR_20' ) end [2025-03-15 10:12:18] Production.INFO: ProcessCDR(1,14685448,1,1,2) [2025-03-15 10:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685448', 'tblTempUsageDetail_20' ) start [2025-03-15 10:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685448', 'tblTempUsageDetail_20' ) end [2025-03-15 10:12:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 10:12:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 10:12:23] Production.INFO: ==29619== Releasing lock... [2025-03-15 10:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 10:12:23] Production.INFO: 34 MB #Memory Used# [2025-03-15 10:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 07:13:05 [end_date_ymd] => 2025-03-15 10:13:05 [RateCDR] => 1 ) [2025-03-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-03-15 07:13:05' and `end` < '2025-03-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-03-15 10:13:17] Production.INFO: count ==728 [2025-03-15 10:13:18] Production.ERROR: pbx CDR StartTime 2025-03-15 07:13:05 - End Time 2025-03-15 10:13:05 [2025-03-15 10:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 10:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685453', 'tblTempUsageDetail_20' ) start [2025-03-15 10:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685453', 'tblTempUsageDetail_20' ) end [2025-03-15 10:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685453', 'tblTempVendorCDR_20' ) start [2025-03-15 10:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685453', 'tblTempVendorCDR_20' ) end [2025-03-15 10:13:18] Production.INFO: ProcessCDR(1,14685453,1,1,2) [2025-03-15 10:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685453', 'tblTempUsageDetail_20' ) start [2025-03-15 10:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685453', 'tblTempUsageDetail_20' ) end [2025-03-15 10:13:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 10:13:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 10:13:23] Production.INFO: ==29704== Releasing lock... [2025-03-15 10:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 10:13:23] Production.INFO: 34.25 MB #Memory Used# [2025-03-15 10:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 07:14:06 [end_date_ymd] => 2025-03-15 10:14:06 [RateCDR] => 1 ) [2025-03-15 10:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 07:14:06' and `end` < '2025-03-15 10:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 10:14:18] Production.INFO: count ==744 [2025-03-15 10:14:18] Production.ERROR: pbx CDR StartTime 2025-03-15 07:14:06 - End Time 2025-03-15 10:14:06 [2025-03-15 10:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 10:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685458', 'tblTempUsageDetail_20' ) start [2025-03-15 10:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685458', 'tblTempUsageDetail_20' ) end [2025-03-15 10:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685458', 'tblTempVendorCDR_20' ) start [2025-03-15 10:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685458', 'tblTempVendorCDR_20' ) end [2025-03-15 10:14:18] Production.INFO: ProcessCDR(1,14685458,1,1,2) [2025-03-15 10:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685458', 'tblTempUsageDetail_20' ) start [2025-03-15 10:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685458', 'tblTempUsageDetail_20' ) end [2025-03-15 10:14:24] Production.ERROR: pbx prc_insertCDR start [2025-03-15 10:14:24] Production.ERROR: pbx prc_insertCDR end [2025-03-15 10:14:24] Production.INFO: ==29785== Releasing lock... [2025-03-15 10:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 10:14:24] Production.INFO: 33.75 MB #Memory Used# [2025-03-15 10:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 07:15:05 [end_date_ymd] => 2025-03-15 10:15:05 [RateCDR] => 1 ) [2025-03-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-03-15 07:15:05' and `end` < '2025-03-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-03-15 10:15:17] Production.INFO: count ==775 [2025-03-15 10:15:18] Production.ERROR: pbx CDR StartTime 2025-03-15 07:15:05 - End Time 2025-03-15 10:15:05 [2025-03-15 10:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 10:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685463', 'tblTempUsageDetail_20' ) start [2025-03-15 10:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685463', 'tblTempUsageDetail_20' ) end [2025-03-15 10:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685463', 'tblTempVendorCDR_20' ) start [2025-03-15 10:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685463', 'tblTempVendorCDR_20' ) end [2025-03-15 10:15:18] Production.INFO: ProcessCDR(1,14685463,1,1,2) [2025-03-15 10:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685463', 'tblTempUsageDetail_20' ) start [2025-03-15 10:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685463', 'tblTempUsageDetail_20' ) end [2025-03-15 10:15:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 10:15:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 10:15:23] Production.INFO: ==29869== Releasing lock... [2025-03-15 10:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 10:15:23] Production.INFO: 34.5 MB #Memory Used# [2025-03-15 10:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 07:16:05 [end_date_ymd] => 2025-03-15 10:16:05 [RateCDR] => 1 ) [2025-03-15 10:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 07:16:05' and `end` < '2025-03-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-03-15 10:16:18] Production.INFO: count ==779 [2025-03-15 10:16:18] Production.ERROR: pbx CDR StartTime 2025-03-15 07:16:05 - End Time 2025-03-15 10:16:05 [2025-03-15 10:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 10:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685468', 'tblTempUsageDetail_20' ) start [2025-03-15 10:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685468', 'tblTempUsageDetail_20' ) end [2025-03-15 10:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685468', 'tblTempVendorCDR_20' ) start [2025-03-15 10:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685468', 'tblTempVendorCDR_20' ) end [2025-03-15 10:16:18] Production.INFO: ProcessCDR(1,14685468,1,1,2) [2025-03-15 10:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685468', 'tblTempUsageDetail_20' ) start [2025-03-15 10:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685468', 'tblTempUsageDetail_20' ) end [2025-03-15 10:16:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 10:16:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 10:16:23] Production.INFO: ==29950== Releasing lock... [2025-03-15 10:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 10:16:23] Production.INFO: 35 MB #Memory Used# [2025-03-15 10:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 07:17:05 [end_date_ymd] => 2025-03-15 10:17:05 [RateCDR] => 1 ) [2025-03-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-03-15 07:17:05' and `end` < '2025-03-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-03-15 10:17:17] Production.INFO: count ==782 [2025-03-15 10:17:18] Production.ERROR: pbx CDR StartTime 2025-03-15 07:17:05 - End Time 2025-03-15 10:17:05 [2025-03-15 10:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 10:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685473', 'tblTempUsageDetail_20' ) start [2025-03-15 10:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685473', 'tblTempUsageDetail_20' ) end [2025-03-15 10:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685473', 'tblTempVendorCDR_20' ) start [2025-03-15 10:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685473', 'tblTempVendorCDR_20' ) end [2025-03-15 10:17:18] Production.INFO: ProcessCDR(1,14685473,1,1,2) [2025-03-15 10:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685473', 'tblTempUsageDetail_20' ) start [2025-03-15 10:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685473', 'tblTempUsageDetail_20' ) end [2025-03-15 10:17:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 10:17:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 10:17:23] Production.INFO: ==30030== Releasing lock... [2025-03-15 10:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 10:17:23] Production.INFO: 34.25 MB #Memory Used# [2025-03-15 10:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 07:18:05 [end_date_ymd] => 2025-03-15 10:18:05 [RateCDR] => 1 ) [2025-03-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-03-15 07:18:05' and `end` < '2025-03-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-03-15 10:18:18] Production.INFO: count ==791 [2025-03-15 10:18:18] Production.ERROR: pbx CDR StartTime 2025-03-15 07:18:05 - End Time 2025-03-15 10:18:05 [2025-03-15 10:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 10:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685478', 'tblTempUsageDetail_20' ) start [2025-03-15 10:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685478', 'tblTempUsageDetail_20' ) end [2025-03-15 10:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685478', 'tblTempVendorCDR_20' ) start [2025-03-15 10:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685478', 'tblTempVendorCDR_20' ) end [2025-03-15 10:18:18] Production.INFO: ProcessCDR(1,14685478,1,1,2) [2025-03-15 10:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685478', 'tblTempUsageDetail_20' ) start [2025-03-15 10:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685478', 'tblTempUsageDetail_20' ) end [2025-03-15 10:18:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 10:18:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 10:18:23] Production.INFO: ==30112== Releasing lock... [2025-03-15 10:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 10:18:23] Production.INFO: 34.5 MB #Memory Used# [2025-03-15 10:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 07:19:05 [end_date_ymd] => 2025-03-15 10:19:05 [RateCDR] => 1 ) [2025-03-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-03-15 07:19:05' and `end` < '2025-03-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-03-15 10:19:18] Production.INFO: count ==799 [2025-03-15 10:19:18] Production.ERROR: pbx CDR StartTime 2025-03-15 07:19:05 - End Time 2025-03-15 10:19:05 [2025-03-15 10:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 10:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685483', 'tblTempUsageDetail_20' ) start [2025-03-15 10:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685483', 'tblTempUsageDetail_20' ) end [2025-03-15 10:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685483', 'tblTempVendorCDR_20' ) start [2025-03-15 10:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685483', 'tblTempVendorCDR_20' ) end [2025-03-15 10:19:18] Production.INFO: ProcessCDR(1,14685483,1,1,2) [2025-03-15 10:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685483', 'tblTempUsageDetail_20' ) start [2025-03-15 10:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685483', 'tblTempUsageDetail_20' ) end [2025-03-15 10:19:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 10:19:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 10:19:23] Production.INFO: ==30200== Releasing lock... [2025-03-15 10:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 10:19:23] Production.INFO: 34.25 MB #Memory Used# [2025-03-15 10:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 07:20:06 [end_date_ymd] => 2025-03-15 10:20:06 [RateCDR] => 1 ) [2025-03-15 10:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 07:20:06' and `end` < '2025-03-15 10:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 10:20:18] Production.INFO: count ==817 [2025-03-15 10:20:18] Production.ERROR: pbx CDR StartTime 2025-03-15 07:20:06 - End Time 2025-03-15 10:20:06 [2025-03-15 10:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 10:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685489', 'tblTempUsageDetail_20' ) start [2025-03-15 10:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685489', 'tblTempUsageDetail_20' ) end [2025-03-15 10:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685489', 'tblTempVendorCDR_20' ) start [2025-03-15 10:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685489', 'tblTempVendorCDR_20' ) end [2025-03-15 10:20:18] Production.INFO: ProcessCDR(1,14685489,1,1,2) [2025-03-15 10:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685489', 'tblTempUsageDetail_20' ) start [2025-03-15 10:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685489', 'tblTempUsageDetail_20' ) end [2025-03-15 10:20:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 10:20:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 10:20:23] Production.INFO: ==30286== Releasing lock... [2025-03-15 10:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 10:20:23] Production.INFO: 34.75 MB #Memory Used# [2025-03-15 10:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 07:21:05 [end_date_ymd] => 2025-03-15 10:21:05 [RateCDR] => 1 ) [2025-03-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-03-15 07:21:05' and `end` < '2025-03-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-03-15 10:21:18] Production.INFO: count ==848 [2025-03-15 10:21:18] Production.ERROR: pbx CDR StartTime 2025-03-15 07:21:05 - End Time 2025-03-15 10:21:05 [2025-03-15 10:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 10:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685494', 'tblTempUsageDetail_20' ) start [2025-03-15 10:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685494', 'tblTempUsageDetail_20' ) end [2025-03-15 10:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685494', 'tblTempVendorCDR_20' ) start [2025-03-15 10:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685494', 'tblTempVendorCDR_20' ) end [2025-03-15 10:21:18] Production.INFO: ProcessCDR(1,14685494,1,1,2) [2025-03-15 10:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685494', 'tblTempUsageDetail_20' ) start [2025-03-15 10:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685494', 'tblTempUsageDetail_20' ) end [2025-03-15 10:21:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 10:21:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 10:21:23] Production.INFO: ==30371== Releasing lock... [2025-03-15 10:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 10:21:23] Production.INFO: 35 MB #Memory Used# [2025-03-15 10:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 07:22:05 [end_date_ymd] => 2025-03-15 10:22:05 [RateCDR] => 1 ) [2025-03-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-03-15 07:22:05' and `end` < '2025-03-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-03-15 10:22:18] Production.INFO: count ==846 [2025-03-15 10:22:18] Production.ERROR: pbx CDR StartTime 2025-03-15 07:22:05 - End Time 2025-03-15 10:22:05 [2025-03-15 10:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 10:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685499', 'tblTempUsageDetail_20' ) start [2025-03-15 10:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685499', 'tblTempUsageDetail_20' ) end [2025-03-15 10:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685499', 'tblTempVendorCDR_20' ) start [2025-03-15 10:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685499', 'tblTempVendorCDR_20' ) end [2025-03-15 10:22:18] Production.INFO: ProcessCDR(1,14685499,1,1,2) [2025-03-15 10:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685499', 'tblTempUsageDetail_20' ) start [2025-03-15 10:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685499', 'tblTempUsageDetail_20' ) end [2025-03-15 10:22:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 10:22:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 10:22:23] Production.INFO: ==30451== Releasing lock... [2025-03-15 10:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 10:22:23] Production.INFO: 35 MB #Memory Used# [2025-03-15 10:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 07:23:05 [end_date_ymd] => 2025-03-15 10:23:05 [RateCDR] => 1 ) [2025-03-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-03-15 07:23:05' and `end` < '2025-03-15 10:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 10:23:17] Production.INFO: count ==860 [2025-03-15 10:23:18] Production.ERROR: pbx CDR StartTime 2025-03-15 07:23:05 - End Time 2025-03-15 10:23:05 [2025-03-15 10:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 10:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685504', 'tblTempUsageDetail_20' ) start [2025-03-15 10:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685504', 'tblTempUsageDetail_20' ) end [2025-03-15 10:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685504', 'tblTempVendorCDR_20' ) start [2025-03-15 10:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685504', 'tblTempVendorCDR_20' ) end [2025-03-15 10:23:18] Production.INFO: ProcessCDR(1,14685504,1,1,2) [2025-03-15 10:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685504', 'tblTempUsageDetail_20' ) start [2025-03-15 10:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685504', 'tblTempUsageDetail_20' ) end [2025-03-15 10:23:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 10:23:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 10:23:23] Production.INFO: ==30534== Releasing lock... [2025-03-15 10:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 10:23:23] Production.INFO: 34.75 MB #Memory Used# [2025-03-15 10:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 07:24:05 [end_date_ymd] => 2025-03-15 10:24:05 [RateCDR] => 1 ) [2025-03-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-03-15 07:24:05' and `end` < '2025-03-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-03-15 10:24:18] Production.INFO: count ==859 [2025-03-15 10:24:18] Production.ERROR: pbx CDR StartTime 2025-03-15 07:24:05 - End Time 2025-03-15 10:24:05 [2025-03-15 10:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 10:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685509', 'tblTempUsageDetail_20' ) start [2025-03-15 10:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685509', 'tblTempUsageDetail_20' ) end [2025-03-15 10:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685509', 'tblTempVendorCDR_20' ) start [2025-03-15 10:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685509', 'tblTempVendorCDR_20' ) end [2025-03-15 10:24:18] Production.INFO: ProcessCDR(1,14685509,1,1,2) [2025-03-15 10:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685509', 'tblTempUsageDetail_20' ) start [2025-03-15 10:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685509', 'tblTempUsageDetail_20' ) end [2025-03-15 10:24:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 10:24:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 10:24:23] Production.INFO: ==30654== Releasing lock... [2025-03-15 10:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 10:24:23] Production.INFO: 34.75 MB #Memory Used# [2025-03-15 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 07:25:05 [end_date_ymd] => 2025-03-15 10:25:05 [RateCDR] => 1 ) [2025-03-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-03-15 07:25:05' and `end` < '2025-03-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-03-15 10:25:17] Production.INFO: count ==871 [2025-03-15 10:25:18] Production.ERROR: pbx CDR StartTime 2025-03-15 07:25:05 - End Time 2025-03-15 10:25:05 [2025-03-15 10:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685514', 'tblTempUsageDetail_20' ) start [2025-03-15 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685514', 'tblTempUsageDetail_20' ) end [2025-03-15 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685514', 'tblTempVendorCDR_20' ) start [2025-03-15 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685514', 'tblTempVendorCDR_20' ) end [2025-03-15 10:25:18] Production.INFO: ProcessCDR(1,14685514,1,1,2) [2025-03-15 10:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685514', 'tblTempUsageDetail_20' ) start [2025-03-15 10:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685514', 'tblTempUsageDetail_20' ) end [2025-03-15 10:25:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 10:25:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 10:25:22] Production.INFO: ==30735== Releasing lock... [2025-03-15 10:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 10:25:22] Production.INFO: 34.75 MB #Memory Used# [2025-03-15 10:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 07:26:05 [end_date_ymd] => 2025-03-15 10:26:05 [RateCDR] => 1 ) [2025-03-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-03-15 07:26:05' and `end` < '2025-03-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-03-15 10:26:17] Production.INFO: count ==882 [2025-03-15 10:26:17] Production.ERROR: pbx CDR StartTime 2025-03-15 07:26:05 - End Time 2025-03-15 10:26:05 [2025-03-15 10:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 10:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685519', 'tblTempUsageDetail_20' ) start [2025-03-15 10:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685519', 'tblTempUsageDetail_20' ) end [2025-03-15 10:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685519', 'tblTempVendorCDR_20' ) start [2025-03-15 10:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685519', 'tblTempVendorCDR_20' ) end [2025-03-15 10:26:18] Production.INFO: ProcessCDR(1,14685519,1,1,2) [2025-03-15 10:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685519', 'tblTempUsageDetail_20' ) start [2025-03-15 10:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685519', 'tblTempUsageDetail_20' ) end [2025-03-15 10:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 10:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 10:26:21] Production.INFO: ==30813== Releasing lock... [2025-03-15 10:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 10:26:21] Production.INFO: 35.5 MB #Memory Used# [2025-03-15 10:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 07:27:06 [end_date_ymd] => 2025-03-15 10:27:06 [RateCDR] => 1 ) [2025-03-15 10:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 07:27:06' and `end` < '2025-03-15 10:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 10:27:18] Production.INFO: count ==879 [2025-03-15 10:27:19] Production.ERROR: pbx CDR StartTime 2025-03-15 07:27:06 - End Time 2025-03-15 10:27:06 [2025-03-15 10:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685524', 'tblTempUsageDetail_20' ) start [2025-03-15 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685524', 'tblTempUsageDetail_20' ) end [2025-03-15 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685524', 'tblTempVendorCDR_20' ) start [2025-03-15 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685524', 'tblTempVendorCDR_20' ) end [2025-03-15 10:27:19] Production.INFO: ProcessCDR(1,14685524,1,1,2) [2025-03-15 10:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685524', 'tblTempUsageDetail_20' ) start [2025-03-15 10:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685524', 'tblTempUsageDetail_20' ) end [2025-03-15 10:27:24] Production.ERROR: pbx prc_insertCDR start [2025-03-15 10:27:24] Production.ERROR: pbx prc_insertCDR end [2025-03-15 10:27:24] Production.INFO: ==30895== Releasing lock... [2025-03-15 10:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 10:27:24] Production.INFO: 35 MB #Memory Used# [2025-03-15 10:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 07:28:05 [end_date_ymd] => 2025-03-15 10:28:05 [RateCDR] => 1 ) [2025-03-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-03-15 07:28:05' and `end` < '2025-03-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-03-15 10:28:18] Production.INFO: count ==882 [2025-03-15 10:28:18] Production.ERROR: pbx CDR StartTime 2025-03-15 07:28:05 - End Time 2025-03-15 10:28:05 [2025-03-15 10:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 10:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685529', 'tblTempUsageDetail_20' ) start [2025-03-15 10:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685529', 'tblTempUsageDetail_20' ) end [2025-03-15 10:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685529', 'tblTempVendorCDR_20' ) start [2025-03-15 10:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685529', 'tblTempVendorCDR_20' ) end [2025-03-15 10:28:18] Production.INFO: ProcessCDR(1,14685529,1,1,2) [2025-03-15 10:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685529', 'tblTempUsageDetail_20' ) start [2025-03-15 10:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685529', 'tblTempUsageDetail_20' ) end [2025-03-15 10:28:24] Production.ERROR: pbx prc_insertCDR start [2025-03-15 10:28:24] Production.ERROR: pbx prc_insertCDR end [2025-03-15 10:28:24] Production.INFO: ==30980== Releasing lock... [2025-03-15 10:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 10:28:24] Production.INFO: 35.5 MB #Memory Used# [2025-03-15 10:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 07:29:05 [end_date_ymd] => 2025-03-15 10:29:05 [RateCDR] => 1 ) [2025-03-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-03-15 07:29:05' and `end` < '2025-03-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-03-15 10:29:18] Production.INFO: count ==899 [2025-03-15 10:29:18] Production.ERROR: pbx CDR StartTime 2025-03-15 07:29:05 - End Time 2025-03-15 10:29:05 [2025-03-15 10:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 10:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685534', 'tblTempUsageDetail_20' ) start [2025-03-15 10:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685534', 'tblTempUsageDetail_20' ) end [2025-03-15 10:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685534', 'tblTempVendorCDR_20' ) start [2025-03-15 10:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685534', 'tblTempVendorCDR_20' ) end [2025-03-15 10:29:18] Production.INFO: ProcessCDR(1,14685534,1,1,2) [2025-03-15 10:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685534', 'tblTempUsageDetail_20' ) start [2025-03-15 10:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685534', 'tblTempUsageDetail_20' ) end [2025-03-15 10:29:24] Production.ERROR: pbx prc_insertCDR start [2025-03-15 10:29:24] Production.ERROR: pbx prc_insertCDR end [2025-03-15 10:29:24] Production.INFO: ==31060== Releasing lock... [2025-03-15 10:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 10:29:24] Production.INFO: 35.25 MB #Memory Used# [2025-03-15 10:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 07:30:07 [end_date_ymd] => 2025-03-15 10:30:07 [RateCDR] => 1 ) [2025-03-15 10:30:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 07:30:07' and `end` < '2025-03-15 10:30:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 10:30:19] Production.INFO: count ==903 [2025-03-15 10:30:19] Production.ERROR: pbx CDR StartTime 2025-03-15 07:30:07 - End Time 2025-03-15 10:30:07 [2025-03-15 10:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 10:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685540', 'tblTempUsageDetail_20' ) start [2025-03-15 10:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685540', 'tblTempUsageDetail_20' ) end [2025-03-15 10:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685540', 'tblTempVendorCDR_20' ) start [2025-03-15 10:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685540', 'tblTempVendorCDR_20' ) end [2025-03-15 10:30:19] Production.INFO: ProcessCDR(1,14685540,1,1,2) [2025-03-15 10:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685540', 'tblTempUsageDetail_20' ) start [2025-03-15 10:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685540', 'tblTempUsageDetail_20' ) end [2025-03-15 10:30:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 10:30:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 10:30:23] Production.INFO: ==31144== Releasing lock... [2025-03-15 10:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 10:30:23] Production.INFO: 35.25 MB #Memory Used# [2025-03-15 10:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 07:31:06 [end_date_ymd] => 2025-03-15 10:31:06 [RateCDR] => 1 ) [2025-03-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-03-15 07:31:06' and `end` < '2025-03-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-03-15 10:31:18] Production.INFO: count ==944 [2025-03-15 10:31:18] Production.ERROR: pbx CDR StartTime 2025-03-15 07:31:06 - End Time 2025-03-15 10:31:06 [2025-03-15 10:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 10:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685545', 'tblTempUsageDetail_20' ) start [2025-03-15 10:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685545', 'tblTempUsageDetail_20' ) end [2025-03-15 10:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685545', 'tblTempVendorCDR_20' ) start [2025-03-15 10:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685545', 'tblTempVendorCDR_20' ) end [2025-03-15 10:31:18] Production.INFO: ProcessCDR(1,14685545,1,1,2) [2025-03-15 10:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685545', 'tblTempUsageDetail_20' ) start [2025-03-15 10:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685545', 'tblTempUsageDetail_20' ) end [2025-03-15 10:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 10:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 10:31:22] Production.INFO: ==31223== Releasing lock... [2025-03-15 10:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 10:31:22] Production.INFO: 36.25 MB #Memory Used# [2025-03-15 10:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 07:32:05 [end_date_ymd] => 2025-03-15 10:32:05 [RateCDR] => 1 ) [2025-03-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-03-15 07:32:05' and `end` < '2025-03-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-03-15 10:32:18] Production.INFO: count ==945 [2025-03-15 10:32:18] Production.ERROR: pbx CDR StartTime 2025-03-15 07:32:05 - End Time 2025-03-15 10:32:05 [2025-03-15 10:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 10:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685550', 'tblTempUsageDetail_20' ) start [2025-03-15 10:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685550', 'tblTempUsageDetail_20' ) end [2025-03-15 10:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685550', 'tblTempVendorCDR_20' ) start [2025-03-15 10:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685550', 'tblTempVendorCDR_20' ) end [2025-03-15 10:32:18] Production.INFO: ProcessCDR(1,14685550,1,1,2) [2025-03-15 10:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685550', 'tblTempUsageDetail_20' ) start [2025-03-15 10:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685550', 'tblTempUsageDetail_20' ) end [2025-03-15 10:32:24] Production.ERROR: pbx prc_insertCDR start [2025-03-15 10:32:24] Production.ERROR: pbx prc_insertCDR end [2025-03-15 10:32:24] Production.INFO: ==31303== Releasing lock... [2025-03-15 10:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 10:32:24] Production.INFO: 36.5 MB #Memory Used# [2025-03-15 10:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 07:33:06 [end_date_ymd] => 2025-03-15 10:33:06 [RateCDR] => 1 ) [2025-03-15 10:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 07:33:06' and `end` < '2025-03-15 10:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 10:33:18] Production.INFO: count ==952 [2025-03-15 10:33:19] Production.ERROR: pbx CDR StartTime 2025-03-15 07:33:06 - End Time 2025-03-15 10:33:06 [2025-03-15 10:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 10:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685555', 'tblTempUsageDetail_20' ) start [2025-03-15 10:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685555', 'tblTempUsageDetail_20' ) end [2025-03-15 10:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685555', 'tblTempVendorCDR_20' ) start [2025-03-15 10:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685555', 'tblTempVendorCDR_20' ) end [2025-03-15 10:33:19] Production.INFO: ProcessCDR(1,14685555,1,1,2) [2025-03-15 10:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685555', 'tblTempUsageDetail_20' ) start [2025-03-15 10:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685555', 'tblTempUsageDetail_20' ) end [2025-03-15 10:33:24] Production.ERROR: pbx prc_insertCDR start [2025-03-15 10:33:24] Production.ERROR: pbx prc_insertCDR end [2025-03-15 10:33:24] Production.INFO: ==31383== Releasing lock... [2025-03-15 10:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 10:33:24] Production.INFO: 36 MB #Memory Used# [2025-03-15 10:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 07:34:05 [end_date_ymd] => 2025-03-15 10:34:05 [RateCDR] => 1 ) [2025-03-15 10:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 07:34:05' and `end` < '2025-03-15 10:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 10:34:17] Production.INFO: count ==948 [2025-03-15 10:34:18] Production.ERROR: pbx CDR StartTime 2025-03-15 07:34:05 - End Time 2025-03-15 10:34:05 [2025-03-15 10:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 10:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685560', 'tblTempUsageDetail_20' ) start [2025-03-15 10:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685560', 'tblTempUsageDetail_20' ) end [2025-03-15 10:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685560', 'tblTempVendorCDR_20' ) start [2025-03-15 10:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685560', 'tblTempVendorCDR_20' ) end [2025-03-15 10:34:18] Production.INFO: ProcessCDR(1,14685560,1,1,2) [2025-03-15 10:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685560', 'tblTempUsageDetail_20' ) start [2025-03-15 10:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685560', 'tblTempUsageDetail_20' ) end [2025-03-15 10:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 10:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 10:34:22] Production.INFO: ==31468== Releasing lock... [2025-03-15 10:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 10:34:22] Production.INFO: 36 MB #Memory Used# [2025-03-15 10:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 07:35:06 [end_date_ymd] => 2025-03-15 10:35:06 [RateCDR] => 1 ) [2025-03-15 10:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 07:35:06' and `end` < '2025-03-15 10:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 10:35:18] Production.INFO: count ==952 [2025-03-15 10:35:19] Production.ERROR: pbx CDR StartTime 2025-03-15 07:35:06 - End Time 2025-03-15 10:35:06 [2025-03-15 10:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 10:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685565', 'tblTempUsageDetail_20' ) start [2025-03-15 10:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685565', 'tblTempUsageDetail_20' ) end [2025-03-15 10:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685565', 'tblTempVendorCDR_20' ) start [2025-03-15 10:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685565', 'tblTempVendorCDR_20' ) end [2025-03-15 10:35:19] Production.INFO: ProcessCDR(1,14685565,1,1,2) [2025-03-15 10:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685565', 'tblTempUsageDetail_20' ) start [2025-03-15 10:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685565', 'tblTempUsageDetail_20' ) end [2025-03-15 10:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 10:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 10:35:22] Production.INFO: ==31546== Releasing lock... [2025-03-15 10:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 10:35:22] Production.INFO: 35.5 MB #Memory Used# [2025-03-15 10:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 07:36:05 [end_date_ymd] => 2025-03-15 10:36:05 [RateCDR] => 1 ) [2025-03-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-03-15 07:36:05' and `end` < '2025-03-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-03-15 10:36:17] Production.INFO: count ==963 [2025-03-15 10:36:18] Production.ERROR: pbx CDR StartTime 2025-03-15 07:36:05 - End Time 2025-03-15 10:36:05 [2025-03-15 10:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 10:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685570', 'tblTempUsageDetail_20' ) start [2025-03-15 10:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685570', 'tblTempUsageDetail_20' ) end [2025-03-15 10:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685570', 'tblTempVendorCDR_20' ) start [2025-03-15 10:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685570', 'tblTempVendorCDR_20' ) end [2025-03-15 10:36:18] Production.INFO: ProcessCDR(1,14685570,1,1,2) [2025-03-15 10:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685570', 'tblTempUsageDetail_20' ) start [2025-03-15 10:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685570', 'tblTempUsageDetail_20' ) end [2025-03-15 10:36:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 10:36:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 10:36:23] Production.INFO: ==31630== Releasing lock... [2025-03-15 10:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 10:36:23] Production.INFO: 36 MB #Memory Used# [2025-03-15 10:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 07:37:05 [end_date_ymd] => 2025-03-15 10:37:05 [RateCDR] => 1 ) [2025-03-15 10:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 07:37:05' and `end` < '2025-03-15 10:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 10:37:17] Production.INFO: count ==963 [2025-03-15 10:37:18] Production.ERROR: pbx CDR StartTime 2025-03-15 07:37:05 - End Time 2025-03-15 10:37:05 [2025-03-15 10:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 10:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685575', 'tblTempUsageDetail_20' ) start [2025-03-15 10:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685575', 'tblTempUsageDetail_20' ) end [2025-03-15 10:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685575', 'tblTempVendorCDR_20' ) start [2025-03-15 10:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685575', 'tblTempVendorCDR_20' ) end [2025-03-15 10:37:18] Production.INFO: ProcessCDR(1,14685575,1,1,2) [2025-03-15 10:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685575', 'tblTempUsageDetail_20' ) start [2025-03-15 10:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685575', 'tblTempUsageDetail_20' ) end [2025-03-15 10:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 10:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 10:37:21] Production.INFO: ==31722== Releasing lock... [2025-03-15 10:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 10:37:21] Production.INFO: 36 MB #Memory Used# [2025-03-15 10:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 07:38:06 [end_date_ymd] => 2025-03-15 10:38:06 [RateCDR] => 1 ) [2025-03-15 10:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 07:38:06' and `end` < '2025-03-15 10:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 10:38:18] Production.INFO: count ==963 [2025-03-15 10:38:18] Production.ERROR: pbx CDR StartTime 2025-03-15 07:38:06 - End Time 2025-03-15 10:38:06 [2025-03-15 10:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 10:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685580', 'tblTempUsageDetail_20' ) start [2025-03-15 10:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685580', 'tblTempUsageDetail_20' ) end [2025-03-15 10:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685580', 'tblTempVendorCDR_20' ) start [2025-03-15 10:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685580', 'tblTempVendorCDR_20' ) end [2025-03-15 10:38:18] Production.INFO: ProcessCDR(1,14685580,1,1,2) [2025-03-15 10:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685580', 'tblTempUsageDetail_20' ) start [2025-03-15 10:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685580', 'tblTempUsageDetail_20' ) end [2025-03-15 10:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 10:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 10:38:22] Production.INFO: ==31808== Releasing lock... [2025-03-15 10:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 10:38:22] Production.INFO: 36 MB #Memory Used# [2025-03-15 10:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 07:39:05 [end_date_ymd] => 2025-03-15 10:39:05 [RateCDR] => 1 ) [2025-03-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-03-15 07:39:05' and `end` < '2025-03-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-03-15 10:39:17] Production.INFO: count ==969 [2025-03-15 10:39:17] Production.ERROR: pbx CDR StartTime 2025-03-15 07:39:05 - End Time 2025-03-15 10:39:05 [2025-03-15 10:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 10:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685585', 'tblTempUsageDetail_20' ) start [2025-03-15 10:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685585', 'tblTempUsageDetail_20' ) end [2025-03-15 10:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685585', 'tblTempVendorCDR_20' ) start [2025-03-15 10:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685585', 'tblTempVendorCDR_20' ) end [2025-03-15 10:39:18] Production.INFO: ProcessCDR(1,14685585,1,1,2) [2025-03-15 10:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685585', 'tblTempUsageDetail_20' ) start [2025-03-15 10:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685585', 'tblTempUsageDetail_20' ) end [2025-03-15 10:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 10:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 10:39:21] Production.INFO: ==31924== Releasing lock... [2025-03-15 10:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 10:39:21] Production.INFO: 36 MB #Memory Used# [2025-03-15 10:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 07:40:05 [end_date_ymd] => 2025-03-15 10:40:05 [RateCDR] => 1 ) [2025-03-15 10:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 07:40:05' and `end` < '2025-03-15 10:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 10:40:18] Production.INFO: count ==981 [2025-03-15 10:40:18] Production.ERROR: pbx CDR StartTime 2025-03-15 07:40:05 - End Time 2025-03-15 10:40:05 [2025-03-15 10:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 10:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685590', 'tblTempUsageDetail_20' ) start [2025-03-15 10:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685590', 'tblTempUsageDetail_20' ) end [2025-03-15 10:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685590', 'tblTempVendorCDR_20' ) start [2025-03-15 10:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685590', 'tblTempVendorCDR_20' ) end [2025-03-15 10:40:18] Production.INFO: ProcessCDR(1,14685590,1,1,2) [2025-03-15 10:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685590', 'tblTempUsageDetail_20' ) start [2025-03-15 10:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685590', 'tblTempUsageDetail_20' ) end [2025-03-15 10:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 10:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 10:40:22] Production.INFO: ==32002== Releasing lock... [2025-03-15 10:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 10:40:22] Production.INFO: 36 MB #Memory Used# [2025-03-15 10:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 07:41:05 [end_date_ymd] => 2025-03-15 10:41:05 [RateCDR] => 1 ) [2025-03-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-03-15 07:41:05' and `end` < '2025-03-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-03-15 10:41:18] Production.INFO: count ==991 [2025-03-15 10:41:18] Production.ERROR: pbx CDR StartTime 2025-03-15 07:41:05 - End Time 2025-03-15 10:41:05 [2025-03-15 10:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 10:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685596', 'tblTempUsageDetail_20' ) start [2025-03-15 10:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685596', 'tblTempUsageDetail_20' ) end [2025-03-15 10:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685596', 'tblTempVendorCDR_20' ) start [2025-03-15 10:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685596', 'tblTempVendorCDR_20' ) end [2025-03-15 10:41:18] Production.INFO: ProcessCDR(1,14685596,1,1,2) [2025-03-15 10:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685596', 'tblTempUsageDetail_20' ) start [2025-03-15 10:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685596', 'tblTempUsageDetail_20' ) end [2025-03-15 10:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 10:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 10:41:21] Production.INFO: ==32092== Releasing lock... [2025-03-15 10:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 10:41:21] Production.INFO: 35.75 MB #Memory Used# [2025-03-15 10:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 07:42:05 [end_date_ymd] => 2025-03-15 10:42:05 [RateCDR] => 1 ) [2025-03-15 10:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 07:42:05' and `end` < '2025-03-15 10:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 10:42:17] Production.INFO: count ==991 [2025-03-15 10:42:17] Production.ERROR: pbx CDR StartTime 2025-03-15 07:42:05 - End Time 2025-03-15 10:42:05 [2025-03-15 10:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 10:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685601', 'tblTempUsageDetail_20' ) start [2025-03-15 10:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685601', 'tblTempUsageDetail_20' ) end [2025-03-15 10:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685601', 'tblTempVendorCDR_20' ) start [2025-03-15 10:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685601', 'tblTempVendorCDR_20' ) end [2025-03-15 10:42:17] Production.INFO: ProcessCDR(1,14685601,1,1,2) [2025-03-15 10:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685601', 'tblTempUsageDetail_20' ) start [2025-03-15 10:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685601', 'tblTempUsageDetail_20' ) end [2025-03-15 10:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 10:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 10:42:21] Production.INFO: ==32171== Releasing lock... [2025-03-15 10:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 10:42:21] Production.INFO: 35.75 MB #Memory Used# [2025-03-15 10:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 07:43:06 [end_date_ymd] => 2025-03-15 10:43:06 [RateCDR] => 1 ) [2025-03-15 10:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 07:43:06' and `end` < '2025-03-15 10:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 10:43:18] Production.INFO: count ==997 [2025-03-15 10:43:18] Production.ERROR: pbx CDR StartTime 2025-03-15 07:43:06 - End Time 2025-03-15 10:43:06 [2025-03-15 10:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 10:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685606', 'tblTempUsageDetail_20' ) start [2025-03-15 10:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685606', 'tblTempUsageDetail_20' ) end [2025-03-15 10:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685606', 'tblTempVendorCDR_20' ) start [2025-03-15 10:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685606', 'tblTempVendorCDR_20' ) end [2025-03-15 10:43:18] Production.INFO: ProcessCDR(1,14685606,1,1,2) [2025-03-15 10:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685606', 'tblTempUsageDetail_20' ) start [2025-03-15 10:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685606', 'tblTempUsageDetail_20' ) end [2025-03-15 10:43:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 10:43:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 10:43:23] Production.INFO: ==32247== Releasing lock... [2025-03-15 10:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 10:43:23] Production.INFO: 35.75 MB #Memory Used# [2025-03-15 10:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 07:44:04 [end_date_ymd] => 2025-03-15 10:44:04 [RateCDR] => 1 ) [2025-03-15 10: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-03-15 07:44:04' and `end` < '2025-03-15 10: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-03-15 10:44:17] Production.INFO: count ==998 [2025-03-15 10:44:17] Production.ERROR: pbx CDR StartTime 2025-03-15 07:44:04 - End Time 2025-03-15 10:44:04 [2025-03-15 10:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 10:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685611', 'tblTempUsageDetail_20' ) start [2025-03-15 10:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685611', 'tblTempUsageDetail_20' ) end [2025-03-15 10:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685611', 'tblTempVendorCDR_20' ) start [2025-03-15 10:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685611', 'tblTempVendorCDR_20' ) end [2025-03-15 10:44:17] Production.INFO: ProcessCDR(1,14685611,1,1,2) [2025-03-15 10:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685611', 'tblTempUsageDetail_20' ) start [2025-03-15 10:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685611', 'tblTempUsageDetail_20' ) end [2025-03-15 10:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 10:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 10:44:22] Production.INFO: ==32328== Releasing lock... [2025-03-15 10:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 10:44:22] Production.INFO: 36 MB #Memory Used# [2025-03-15 10:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 07:45:05 [end_date_ymd] => 2025-03-15 10:45:05 [RateCDR] => 1 ) [2025-03-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-03-15 07:45:05' and `end` < '2025-03-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-03-15 10:45:17] Production.INFO: count ==998 [2025-03-15 10:45:18] Production.ERROR: pbx CDR StartTime 2025-03-15 07:45:05 - End Time 2025-03-15 10:45:05 [2025-03-15 10:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 10:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685616', 'tblTempUsageDetail_20' ) start [2025-03-15 10:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685616', 'tblTempUsageDetail_20' ) end [2025-03-15 10:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685616', 'tblTempVendorCDR_20' ) start [2025-03-15 10:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685616', 'tblTempVendorCDR_20' ) end [2025-03-15 10:45:18] Production.INFO: ProcessCDR(1,14685616,1,1,2) [2025-03-15 10:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685616', 'tblTempUsageDetail_20' ) start [2025-03-15 10:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685616', 'tblTempUsageDetail_20' ) end [2025-03-15 10:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 10:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 10:45:21] Production.INFO: ==32402== Releasing lock... [2025-03-15 10:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 10:45:21] Production.INFO: 36 MB #Memory Used# [2025-03-15 10:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 07:46:04 [end_date_ymd] => 2025-03-15 10:46:04 [RateCDR] => 1 ) [2025-03-15 10:46:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 07:46:04' and `end` < '2025-03-15 10:46:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 10:46:17] Production.INFO: count ==1007 [2025-03-15 10:46:17] Production.ERROR: pbx CDR StartTime 2025-03-15 07:46:04 - End Time 2025-03-15 10:46:04 [2025-03-15 10:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 10:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685621', 'tblTempUsageDetail_20' ) start [2025-03-15 10:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685621', 'tblTempUsageDetail_20' ) end [2025-03-15 10:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685621', 'tblTempVendorCDR_20' ) start [2025-03-15 10:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685621', 'tblTempVendorCDR_20' ) end [2025-03-15 10:46:17] Production.INFO: ProcessCDR(1,14685621,1,1,2) [2025-03-15 10:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685621', 'tblTempUsageDetail_20' ) start [2025-03-15 10:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685621', 'tblTempUsageDetail_20' ) end [2025-03-15 10:46:20] Production.ERROR: pbx prc_insertCDR start [2025-03-15 10:46:20] Production.ERROR: pbx prc_insertCDR end [2025-03-15 10:46:20] Production.INFO: ==32486== Releasing lock... [2025-03-15 10:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 10:46:20] Production.INFO: 36 MB #Memory Used# [2025-03-15 10:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 07:47:05 [end_date_ymd] => 2025-03-15 10:47:05 [RateCDR] => 1 ) [2025-03-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-03-15 07:47:05' and `end` < '2025-03-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-03-15 10:47:17] Production.INFO: count ==1009 [2025-03-15 10:47:18] Production.ERROR: pbx CDR StartTime 2025-03-15 07:47:05 - End Time 2025-03-15 10:47:05 [2025-03-15 10:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 10:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685626', 'tblTempUsageDetail_20' ) start [2025-03-15 10:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685626', 'tblTempUsageDetail_20' ) end [2025-03-15 10:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685626', 'tblTempVendorCDR_20' ) start [2025-03-15 10:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685626', 'tblTempVendorCDR_20' ) end [2025-03-15 10:47:18] Production.INFO: ProcessCDR(1,14685626,1,1,2) [2025-03-15 10:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685626', 'tblTempUsageDetail_20' ) start [2025-03-15 10:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685626', 'tblTempUsageDetail_20' ) end [2025-03-15 10:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 10:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 10:47:22] Production.INFO: ==32568== Releasing lock... [2025-03-15 10:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 10:47:22] Production.INFO: 36 MB #Memory Used# [2025-03-15 10:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 07:48:05 [end_date_ymd] => 2025-03-15 10:48:05 [RateCDR] => 1 ) [2025-03-15 10:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 07:48:05' and `end` < '2025-03-15 10:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 10:48:18] Production.INFO: count ==1009 [2025-03-15 10:48:18] Production.ERROR: pbx CDR StartTime 2025-03-15 07:48:05 - End Time 2025-03-15 10:48:05 [2025-03-15 10:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 10:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685631', 'tblTempUsageDetail_20' ) start [2025-03-15 10:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685631', 'tblTempUsageDetail_20' ) end [2025-03-15 10:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685631', 'tblTempVendorCDR_20' ) start [2025-03-15 10:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685631', 'tblTempVendorCDR_20' ) end [2025-03-15 10:48:18] Production.INFO: ProcessCDR(1,14685631,1,1,2) [2025-03-15 10:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685631', 'tblTempUsageDetail_20' ) start [2025-03-15 10:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685631', 'tblTempUsageDetail_20' ) end [2025-03-15 10:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 10:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 10:48:21] Production.INFO: ==32648== Releasing lock... [2025-03-15 10:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 10:48:21] Production.INFO: 36 MB #Memory Used# [2025-03-15 10:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 07:49:05 [end_date_ymd] => 2025-03-15 10:49:05 [RateCDR] => 1 ) [2025-03-15 10:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 07:49:05' and `end` < '2025-03-15 10:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 10:49:17] Production.INFO: count ==1005 [2025-03-15 10:49:18] Production.ERROR: pbx CDR StartTime 2025-03-15 07:49:05 - End Time 2025-03-15 10:49:05 [2025-03-15 10:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 10:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685636', 'tblTempUsageDetail_20' ) start [2025-03-15 10:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685636', 'tblTempUsageDetail_20' ) end [2025-03-15 10:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685636', 'tblTempVendorCDR_20' ) start [2025-03-15 10:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685636', 'tblTempVendorCDR_20' ) end [2025-03-15 10:49:18] Production.INFO: ProcessCDR(1,14685636,1,1,2) [2025-03-15 10:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685636', 'tblTempUsageDetail_20' ) start [2025-03-15 10:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685636', 'tblTempUsageDetail_20' ) end [2025-03-15 10:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 10:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 10:49:21] Production.INFO: ==32728== Releasing lock... [2025-03-15 10:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 10:49:21] Production.INFO: 35.75 MB #Memory Used# [2025-03-15 10:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 07:50:06 [end_date_ymd] => 2025-03-15 10:50:06 [RateCDR] => 1 ) [2025-03-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-03-15 07:50:06' and `end` < '2025-03-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-03-15 10:50:18] Production.INFO: count ==1017 [2025-03-15 10:50:19] Production.ERROR: pbx CDR StartTime 2025-03-15 07:50:06 - End Time 2025-03-15 10:50:06 [2025-03-15 10:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 10:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685642', 'tblTempUsageDetail_20' ) start [2025-03-15 10:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685642', 'tblTempUsageDetail_20' ) end [2025-03-15 10:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685642', 'tblTempVendorCDR_20' ) start [2025-03-15 10:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685642', 'tblTempVendorCDR_20' ) end [2025-03-15 10:50:19] Production.INFO: ProcessCDR(1,14685642,1,1,2) [2025-03-15 10:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685642', 'tblTempUsageDetail_20' ) start [2025-03-15 10:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685642', 'tblTempUsageDetail_20' ) end [2025-03-15 10:50:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 10:50:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 10:50:23] Production.INFO: ==362== Releasing lock... [2025-03-15 10:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 10:50:23] Production.INFO: 36.5 MB #Memory Used# [2025-03-15 10:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 07:51:05 [end_date_ymd] => 2025-03-15 10:51:05 [RateCDR] => 1 ) [2025-03-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-03-15 07:51:05' and `end` < '2025-03-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-03-15 10:51:17] Production.INFO: count ==1025 [2025-03-15 10:51:18] Production.ERROR: pbx CDR StartTime 2025-03-15 07:51:05 - End Time 2025-03-15 10:51:05 [2025-03-15 10:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 10:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685647', 'tblTempUsageDetail_20' ) start [2025-03-15 10:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685647', 'tblTempUsageDetail_20' ) end [2025-03-15 10:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685647', 'tblTempVendorCDR_20' ) start [2025-03-15 10:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685647', 'tblTempVendorCDR_20' ) end [2025-03-15 10:51:18] Production.INFO: ProcessCDR(1,14685647,1,1,2) [2025-03-15 10:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685647', 'tblTempUsageDetail_20' ) start [2025-03-15 10:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685647', 'tblTempUsageDetail_20' ) end [2025-03-15 10:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 10:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 10:51:21] Production.INFO: ==447== Releasing lock... [2025-03-15 10:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 10:51:21] Production.INFO: 36 MB #Memory Used# [2025-03-15 10:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 07:52:05 [end_date_ymd] => 2025-03-15 10:52:05 [RateCDR] => 1 ) [2025-03-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-03-15 07:52:05' and `end` < '2025-03-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-03-15 10:52:18] Production.INFO: count ==1047 [2025-03-15 10:52:18] Production.ERROR: pbx CDR StartTime 2025-03-15 07:52:05 - End Time 2025-03-15 10:52:05 [2025-03-15 10:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 10:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685652', 'tblTempUsageDetail_20' ) start [2025-03-15 10:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685652', 'tblTempUsageDetail_20' ) end [2025-03-15 10:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685652', 'tblTempVendorCDR_20' ) start [2025-03-15 10:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685652', 'tblTempVendorCDR_20' ) end [2025-03-15 10:52:18] Production.INFO: ProcessCDR(1,14685652,1,1,2) [2025-03-15 10:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685652', 'tblTempUsageDetail_20' ) start [2025-03-15 10:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685652', 'tblTempUsageDetail_20' ) end [2025-03-15 10:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 10:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 10:52:22] Production.INFO: ==525== Releasing lock... [2025-03-15 10:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 10:52:22] Production.INFO: 36.25 MB #Memory Used# [2025-03-15 10:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 07:53:06 [end_date_ymd] => 2025-03-15 10:53:06 [RateCDR] => 1 ) [2025-03-15 10:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 07:53:06' and `end` < '2025-03-15 10:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 10:53:18] Production.INFO: count ==1052 [2025-03-15 10:53:18] Production.ERROR: pbx CDR StartTime 2025-03-15 07:53:06 - End Time 2025-03-15 10:53:06 [2025-03-15 10:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 10:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685657', 'tblTempUsageDetail_20' ) start [2025-03-15 10:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685657', 'tblTempUsageDetail_20' ) end [2025-03-15 10:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685657', 'tblTempVendorCDR_20' ) start [2025-03-15 10:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685657', 'tblTempVendorCDR_20' ) end [2025-03-15 10:53:18] Production.INFO: ProcessCDR(1,14685657,1,1,2) [2025-03-15 10:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685657', 'tblTempUsageDetail_20' ) start [2025-03-15 10:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685657', 'tblTempUsageDetail_20' ) end [2025-03-15 10:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 10:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 10:53:22] Production.INFO: ==608== Releasing lock... [2025-03-15 10:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 10:53:22] Production.INFO: 36.25 MB #Memory Used# [2025-03-15 10:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 07:54:05 [end_date_ymd] => 2025-03-15 10:54:05 [RateCDR] => 1 ) [2025-03-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-03-15 07:54:05' and `end` < '2025-03-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-03-15 10:54:18] Production.INFO: count ==1065 [2025-03-15 10:54:18] Production.ERROR: pbx CDR StartTime 2025-03-15 07:54:05 - End Time 2025-03-15 10:54:05 [2025-03-15 10:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 10:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685662', 'tblTempUsageDetail_20' ) start [2025-03-15 10:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685662', 'tblTempUsageDetail_20' ) end [2025-03-15 10:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685662', 'tblTempVendorCDR_20' ) start [2025-03-15 10:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685662', 'tblTempVendorCDR_20' ) end [2025-03-15 10:54:18] Production.INFO: ProcessCDR(1,14685662,1,1,2) [2025-03-15 10:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685662', 'tblTempUsageDetail_20' ) start [2025-03-15 10:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685662', 'tblTempUsageDetail_20' ) end [2025-03-15 10:54:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 10:54:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 10:54:23] Production.INFO: ==713== Releasing lock... [2025-03-15 10:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 10:54:23] Production.INFO: 36.5 MB #Memory Used# [2025-03-15 10:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 07:55:05 [end_date_ymd] => 2025-03-15 10:55:05 [RateCDR] => 1 ) [2025-03-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-03-15 07:55:05' and `end` < '2025-03-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-03-15 10:55:18] Production.INFO: count ==1067 [2025-03-15 10:55:18] Production.ERROR: pbx CDR StartTime 2025-03-15 07:55:05 - End Time 2025-03-15 10:55:05 [2025-03-15 10:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 10:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685667', 'tblTempUsageDetail_20' ) start [2025-03-15 10:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685667', 'tblTempUsageDetail_20' ) end [2025-03-15 10:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685667', 'tblTempVendorCDR_20' ) start [2025-03-15 10:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685667', 'tblTempVendorCDR_20' ) end [2025-03-15 10:55:18] Production.INFO: ProcessCDR(1,14685667,1,1,2) [2025-03-15 10:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685667', 'tblTempUsageDetail_20' ) start [2025-03-15 10:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685667', 'tblTempUsageDetail_20' ) end [2025-03-15 10:55:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 10:55:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 10:55:23] Production.INFO: ==838== Releasing lock... [2025-03-15 10:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 10:55:23] Production.INFO: 36.5 MB #Memory Used# [2025-03-15 10:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 07:56:06 [end_date_ymd] => 2025-03-15 10:56:06 [RateCDR] => 1 ) [2025-03-15 10:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 07:56:06' and `end` < '2025-03-15 10:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 10:56:18] Production.INFO: count ==1067 [2025-03-15 10:56:18] Production.ERROR: pbx CDR StartTime 2025-03-15 07:56:06 - End Time 2025-03-15 10:56:06 [2025-03-15 10:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 10:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685672', 'tblTempUsageDetail_20' ) start [2025-03-15 10:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685672', 'tblTempUsageDetail_20' ) end [2025-03-15 10:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685672', 'tblTempVendorCDR_20' ) start [2025-03-15 10:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685672', 'tblTempVendorCDR_20' ) end [2025-03-15 10:56:18] Production.INFO: ProcessCDR(1,14685672,1,1,2) [2025-03-15 10:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685672', 'tblTempUsageDetail_20' ) start [2025-03-15 10:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685672', 'tblTempUsageDetail_20' ) end [2025-03-15 10:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 10:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 10:56:22] Production.INFO: ==911== Releasing lock... [2025-03-15 10:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 10:56:22] Production.INFO: 36.5 MB #Memory Used# [2025-03-15 10:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 07:57:05 [end_date_ymd] => 2025-03-15 10:57:05 [RateCDR] => 1 ) [2025-03-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-03-15 07:57:05' and `end` < '2025-03-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-03-15 10:57:17] Production.INFO: count ==1068 [2025-03-15 10:57:17] Production.ERROR: pbx CDR StartTime 2025-03-15 07:57:05 - End Time 2025-03-15 10:57:05 [2025-03-15 10:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 10:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685677', 'tblTempUsageDetail_20' ) start [2025-03-15 10:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685677', 'tblTempUsageDetail_20' ) end [2025-03-15 10:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685677', 'tblTempVendorCDR_20' ) start [2025-03-15 10:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685677', 'tblTempVendorCDR_20' ) end [2025-03-15 10:57:17] Production.INFO: ProcessCDR(1,14685677,1,1,2) [2025-03-15 10:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685677', 'tblTempUsageDetail_20' ) start [2025-03-15 10:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685677', 'tblTempUsageDetail_20' ) end [2025-03-15 10:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 10:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 10:57:22] Production.INFO: ==993== Releasing lock... [2025-03-15 10:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 10:57:22] Production.INFO: 36.25 MB #Memory Used# [2025-03-15 10:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 07:58:05 [end_date_ymd] => 2025-03-15 10:58:05 [RateCDR] => 1 ) [2025-03-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-03-15 07:58:05' and `end` < '2025-03-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-03-15 10:58:18] Production.INFO: count ==1068 [2025-03-15 10:58:18] Production.ERROR: pbx CDR StartTime 2025-03-15 07:58:05 - End Time 2025-03-15 10:58:05 [2025-03-15 10:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 10:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685682', 'tblTempUsageDetail_20' ) start [2025-03-15 10:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685682', 'tblTempUsageDetail_20' ) end [2025-03-15 10:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685682', 'tblTempVendorCDR_20' ) start [2025-03-15 10:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685682', 'tblTempVendorCDR_20' ) end [2025-03-15 10:58:18] Production.INFO: ProcessCDR(1,14685682,1,1,2) [2025-03-15 10:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685682', 'tblTempUsageDetail_20' ) start [2025-03-15 10:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685682', 'tblTempUsageDetail_20' ) end [2025-03-15 10:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 10:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 10:58:21] Production.INFO: ==1069== Releasing lock... [2025-03-15 10:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 10:58:21] Production.INFO: 36.25 MB #Memory Used# [2025-03-15 10:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 07:59:05 [end_date_ymd] => 2025-03-15 10:59:05 [RateCDR] => 1 ) [2025-03-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-03-15 07:59:05' and `end` < '2025-03-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-03-15 10:59:17] Production.INFO: count ==1067 [2025-03-15 10:59:17] Production.ERROR: pbx CDR StartTime 2025-03-15 07:59:05 - End Time 2025-03-15 10:59:05 [2025-03-15 10:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 10:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685687', 'tblTempUsageDetail_20' ) start [2025-03-15 10:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685687', 'tblTempUsageDetail_20' ) end [2025-03-15 10:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685687', 'tblTempVendorCDR_20' ) start [2025-03-15 10:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685687', 'tblTempVendorCDR_20' ) end [2025-03-15 10:59:17] Production.INFO: ProcessCDR(1,14685687,1,1,2) [2025-03-15 10:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 10:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 10:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685687', 'tblTempUsageDetail_20' ) start [2025-03-15 10:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685687', 'tblTempUsageDetail_20' ) end [2025-03-15 10:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 10:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 10:59:21] Production.INFO: ==1152== Releasing lock... [2025-03-15 10:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 10:59:21] Production.INFO: 36.5 MB #Memory Used# [2025-03-15 11:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 08:00:06 [end_date_ymd] => 2025-03-15 11:00:06 [RateCDR] => 1 ) [2025-03-15 11:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 08:00:06' and `end` < '2025-03-15 11:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 11:00:18] Production.INFO: count ==1077 [2025-03-15 11:00:19] Production.ERROR: pbx CDR StartTime 2025-03-15 08:00:06 - End Time 2025-03-15 11:00:06 [2025-03-15 11:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 11:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685693', 'tblTempUsageDetail_20' ) start [2025-03-15 11:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685693', 'tblTempUsageDetail_20' ) end [2025-03-15 11:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685693', 'tblTempVendorCDR_20' ) start [2025-03-15 11:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685693', 'tblTempVendorCDR_20' ) end [2025-03-15 11:00:19] Production.INFO: ProcessCDR(1,14685693,1,1,2) [2025-03-15 11:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685693', 'tblTempUsageDetail_20' ) start [2025-03-15 11:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685693', 'tblTempUsageDetail_20' ) end [2025-03-15 11:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 11:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 11:00:23] Production.INFO: ==1263== Releasing lock... [2025-03-15 11:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 11:00:23] Production.INFO: 36.5 MB #Memory Used# [2025-03-15 11:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 08:01:05 [end_date_ymd] => 2025-03-15 11:01:05 [RateCDR] => 1 ) [2025-03-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-03-15 08:01:05' and `end` < '2025-03-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-03-15 11:01:17] Production.INFO: count ==1106 [2025-03-15 11:01:17] Production.ERROR: pbx CDR StartTime 2025-03-15 08:01:05 - End Time 2025-03-15 11:01:05 [2025-03-15 11:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 11:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685698', 'tblTempUsageDetail_20' ) start [2025-03-15 11:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685698', 'tblTempUsageDetail_20' ) end [2025-03-15 11:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685698', 'tblTempVendorCDR_20' ) start [2025-03-15 11:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685698', 'tblTempVendorCDR_20' ) end [2025-03-15 11:01:17] Production.INFO: ProcessCDR(1,14685698,1,1,2) [2025-03-15 11:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685698', 'tblTempUsageDetail_20' ) start [2025-03-15 11:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685698', 'tblTempUsageDetail_20' ) end [2025-03-15 11:01:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 11:01:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 11:01:22] Production.INFO: ==1442== Releasing lock... [2025-03-15 11:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 11:01:22] Production.INFO: 36.5 MB #Memory Used# [2025-03-15 11:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 08:02:05 [end_date_ymd] => 2025-03-15 11:02:05 [RateCDR] => 1 ) [2025-03-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-03-15 08:02:05' and `end` < '2025-03-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-03-15 11:02:18] Production.INFO: count ==1101 [2025-03-15 11:02:18] Production.ERROR: pbx CDR StartTime 2025-03-15 08:02:05 - End Time 2025-03-15 11:02:05 [2025-03-15 11:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 11:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685703', 'tblTempUsageDetail_20' ) start [2025-03-15 11:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685703', 'tblTempUsageDetail_20' ) end [2025-03-15 11:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685703', 'tblTempVendorCDR_20' ) start [2025-03-15 11:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685703', 'tblTempVendorCDR_20' ) end [2025-03-15 11:02:18] Production.INFO: ProcessCDR(1,14685703,1,1,2) [2025-03-15 11:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685703', 'tblTempUsageDetail_20' ) start [2025-03-15 11:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685703', 'tblTempUsageDetail_20' ) end [2025-03-15 11:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 11:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 11:02:22] Production.INFO: ==1556== Releasing lock... [2025-03-15 11:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 11:02:22] Production.INFO: 37 MB #Memory Used# [2025-03-15 11:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 08:03:06 [end_date_ymd] => 2025-03-15 11:03:06 [RateCDR] => 1 ) [2025-03-15 11:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 08:03:06' and `end` < '2025-03-15 11:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 11:03:18] Production.INFO: count ==1130 [2025-03-15 11:03:18] Production.ERROR: pbx CDR StartTime 2025-03-15 08:03:06 - End Time 2025-03-15 11:03:06 [2025-03-15 11:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 11:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685708', 'tblTempUsageDetail_20' ) start [2025-03-15 11:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685708', 'tblTempUsageDetail_20' ) end [2025-03-15 11:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685708', 'tblTempVendorCDR_20' ) start [2025-03-15 11:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685708', 'tblTempVendorCDR_20' ) end [2025-03-15 11:03:18] Production.INFO: ProcessCDR(1,14685708,1,1,2) [2025-03-15 11:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685708', 'tblTempUsageDetail_20' ) start [2025-03-15 11:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685708', 'tblTempUsageDetail_20' ) end [2025-03-15 11:03:24] Production.ERROR: pbx prc_insertCDR start [2025-03-15 11:03:24] Production.ERROR: pbx prc_insertCDR end [2025-03-15 11:03:24] Production.INFO: ==1638== Releasing lock... [2025-03-15 11:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 11:03:24] Production.INFO: 37 MB #Memory Used# [2025-03-15 11:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 08:04:05 [end_date_ymd] => 2025-03-15 11:04:05 [RateCDR] => 1 ) [2025-03-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-03-15 08:04:05' and `end` < '2025-03-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-03-15 11:04:18] Production.INFO: count ==1130 [2025-03-15 11:04:18] Production.ERROR: pbx CDR StartTime 2025-03-15 08:04:05 - End Time 2025-03-15 11:04:05 [2025-03-15 11:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 11:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685713', 'tblTempUsageDetail_20' ) start [2025-03-15 11:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685713', 'tblTempUsageDetail_20' ) end [2025-03-15 11:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685713', 'tblTempVendorCDR_20' ) start [2025-03-15 11:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685713', 'tblTempVendorCDR_20' ) end [2025-03-15 11:04:18] Production.INFO: ProcessCDR(1,14685713,1,1,2) [2025-03-15 11:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685713', 'tblTempUsageDetail_20' ) start [2025-03-15 11:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685713', 'tblTempUsageDetail_20' ) end [2025-03-15 11:04:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 11:04:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 11:04:23] Production.INFO: ==1718== Releasing lock... [2025-03-15 11:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 11:04:23] Production.INFO: 37 MB #Memory Used# [2025-03-15 11:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 08:05:05 [end_date_ymd] => 2025-03-15 11:05:05 [RateCDR] => 1 ) [2025-03-15 11:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 08:05:05' and `end` < '2025-03-15 11:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 11:05:17] Production.INFO: count ==1140 [2025-03-15 11:05:18] Production.ERROR: pbx CDR StartTime 2025-03-15 08:05:05 - End Time 2025-03-15 11:05:05 [2025-03-15 11:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 11:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685718', 'tblTempUsageDetail_20' ) start [2025-03-15 11:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685718', 'tblTempUsageDetail_20' ) end [2025-03-15 11:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685718', 'tblTempVendorCDR_20' ) start [2025-03-15 11:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685718', 'tblTempVendorCDR_20' ) end [2025-03-15 11:05:18] Production.INFO: ProcessCDR(1,14685718,1,1,2) [2025-03-15 11:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685718', 'tblTempUsageDetail_20' ) start [2025-03-15 11:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685718', 'tblTempUsageDetail_20' ) end [2025-03-15 11:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 11:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 11:05:22] Production.INFO: ==1883== Releasing lock... [2025-03-15 11:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 11:05:22] Production.INFO: 36.75 MB #Memory Used# [2025-03-15 11:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 08:06:05 [end_date_ymd] => 2025-03-15 11:06:05 [RateCDR] => 1 ) [2025-03-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-03-15 08:06:05' and `end` < '2025-03-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-03-15 11:06:17] Production.INFO: count ==1146 [2025-03-15 11:06:18] Production.ERROR: pbx CDR StartTime 2025-03-15 08:06:05 - End Time 2025-03-15 11:06:05 [2025-03-15 11:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 11:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685723', 'tblTempUsageDetail_20' ) start [2025-03-15 11:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685723', 'tblTempUsageDetail_20' ) end [2025-03-15 11:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685723', 'tblTempVendorCDR_20' ) start [2025-03-15 11:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685723', 'tblTempVendorCDR_20' ) end [2025-03-15 11:06:18] Production.INFO: ProcessCDR(1,14685723,1,1,2) [2025-03-15 11:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685723', 'tblTempUsageDetail_20' ) start [2025-03-15 11:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685723', 'tblTempUsageDetail_20' ) end [2025-03-15 11:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 11:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 11:06:21] Production.INFO: ==1960== Releasing lock... [2025-03-15 11:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 11:06:21] Production.INFO: 36.5 MB #Memory Used# [2025-03-15 11:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 08:07:06 [end_date_ymd] => 2025-03-15 11:07:06 [RateCDR] => 1 ) [2025-03-15 11:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 08:07:06' and `end` < '2025-03-15 11:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 11:07:18] Production.INFO: count ==1153 [2025-03-15 11:07:18] Production.ERROR: pbx CDR StartTime 2025-03-15 08:07:06 - End Time 2025-03-15 11:07:06 [2025-03-15 11:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 11:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685728', 'tblTempUsageDetail_20' ) start [2025-03-15 11:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685728', 'tblTempUsageDetail_20' ) end [2025-03-15 11:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685728', 'tblTempVendorCDR_20' ) start [2025-03-15 11:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685728', 'tblTempVendorCDR_20' ) end [2025-03-15 11:07:19] Production.INFO: ProcessCDR(1,14685728,1,1,2) [2025-03-15 11:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685728', 'tblTempUsageDetail_20' ) start [2025-03-15 11:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685728', 'tblTempUsageDetail_20' ) end [2025-03-15 11:07:24] Production.ERROR: pbx prc_insertCDR start [2025-03-15 11:07:24] Production.ERROR: pbx prc_insertCDR end [2025-03-15 11:07:24] Production.INFO: ==2039== Releasing lock... [2025-03-15 11:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 11:07:24] Production.INFO: 37 MB #Memory Used# [2025-03-15 11:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 08:08:05 [end_date_ymd] => 2025-03-15 11:08:05 [RateCDR] => 1 ) [2025-03-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-03-15 08:08:05' and `end` < '2025-03-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-03-15 11:08:18] Production.INFO: count ==1149 [2025-03-15 11:08:18] Production.ERROR: pbx CDR StartTime 2025-03-15 08:08:05 - End Time 2025-03-15 11:08:05 [2025-03-15 11:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 11:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685733', 'tblTempUsageDetail_20' ) start [2025-03-15 11:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685733', 'tblTempUsageDetail_20' ) end [2025-03-15 11:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685733', 'tblTempVendorCDR_20' ) start [2025-03-15 11:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685733', 'tblTempVendorCDR_20' ) end [2025-03-15 11:08:18] Production.INFO: ProcessCDR(1,14685733,1,1,2) [2025-03-15 11:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685733', 'tblTempUsageDetail_20' ) start [2025-03-15 11:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685733', 'tblTempUsageDetail_20' ) end [2025-03-15 11:08:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 11:08:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 11:08:22] Production.INFO: ==2200== Releasing lock... [2025-03-15 11:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 11:08:22] Production.INFO: 37 MB #Memory Used# [2025-03-15 11:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 08:09:05 [end_date_ymd] => 2025-03-15 11:09:05 [RateCDR] => 1 ) [2025-03-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-03-15 08:09:05' and `end` < '2025-03-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-03-15 11:09:17] Production.INFO: count ==1154 [2025-03-15 11:09:18] Production.ERROR: pbx CDR StartTime 2025-03-15 08:09:05 - End Time 2025-03-15 11:09:05 [2025-03-15 11:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 11:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685738', 'tblTempUsageDetail_20' ) start [2025-03-15 11:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685738', 'tblTempUsageDetail_20' ) end [2025-03-15 11:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685738', 'tblTempVendorCDR_20' ) start [2025-03-15 11:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685738', 'tblTempVendorCDR_20' ) end [2025-03-15 11:09:18] Production.INFO: ProcessCDR(1,14685738,1,1,2) [2025-03-15 11:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685738', 'tblTempUsageDetail_20' ) start [2025-03-15 11:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685738', 'tblTempUsageDetail_20' ) end [2025-03-15 11:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 11:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 11:09:21] Production.INFO: ==2273== Releasing lock... [2025-03-15 11:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 11:09:21] Production.INFO: 37.25 MB #Memory Used# [2025-03-15 11:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 08:10:06 [end_date_ymd] => 2025-03-15 11:10:06 [RateCDR] => 1 ) [2025-03-15 11:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 08:10:06' and `end` < '2025-03-15 11:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 11:10:18] Production.INFO: count ==1166 [2025-03-15 11:10:19] Production.ERROR: pbx CDR StartTime 2025-03-15 08:10:06 - End Time 2025-03-15 11:10:06 [2025-03-15 11:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 11:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685743', 'tblTempUsageDetail_20' ) start [2025-03-15 11:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685743', 'tblTempUsageDetail_20' ) end [2025-03-15 11:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685743', 'tblTempVendorCDR_20' ) start [2025-03-15 11:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685743', 'tblTempVendorCDR_20' ) end [2025-03-15 11:10:19] Production.INFO: ProcessCDR(1,14685743,1,1,2) [2025-03-15 11:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685743', 'tblTempUsageDetail_20' ) start [2025-03-15 11:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685743', 'tblTempUsageDetail_20' ) end [2025-03-15 11:10:24] Production.ERROR: pbx prc_insertCDR start [2025-03-15 11:10:24] Production.ERROR: pbx prc_insertCDR end [2025-03-15 11:10:24] Production.INFO: ==2398== Releasing lock... [2025-03-15 11:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 11:10:24] Production.INFO: 37 MB #Memory Used# [2025-03-15 11:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 08:11:05 [end_date_ymd] => 2025-03-15 11:11:05 [RateCDR] => 1 ) [2025-03-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-03-15 08:11:05' and `end` < '2025-03-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-03-15 11:11:17] Production.INFO: count ==1201 [2025-03-15 11:11:18] Production.ERROR: pbx CDR StartTime 2025-03-15 08:11:05 - End Time 2025-03-15 11:11:05 [2025-03-15 11:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 11:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685749', 'tblTempUsageDetail_20' ) start [2025-03-15 11:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685749', 'tblTempUsageDetail_20' ) end [2025-03-15 11:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685749', 'tblTempVendorCDR_20' ) start [2025-03-15 11:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685749', 'tblTempVendorCDR_20' ) end [2025-03-15 11:11:18] Production.INFO: ProcessCDR(1,14685749,1,1,2) [2025-03-15 11:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685749', 'tblTempUsageDetail_20' ) start [2025-03-15 11:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685749', 'tblTempUsageDetail_20' ) end [2025-03-15 11:11:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 11:11:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 11:11:23] Production.INFO: ==2481== Releasing lock... [2025-03-15 11:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 11:11:23] Production.INFO: 37.25 MB #Memory Used# [2025-03-15 11:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 08:12:05 [end_date_ymd] => 2025-03-15 11:12:05 [RateCDR] => 1 ) [2025-03-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-03-15 08:12:05' and `end` < '2025-03-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-03-15 11:12:17] Production.INFO: count ==1206 [2025-03-15 11:12:17] Production.ERROR: pbx CDR StartTime 2025-03-15 08:12:05 - End Time 2025-03-15 11:12:05 [2025-03-15 11:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 11:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685754', 'tblTempUsageDetail_20' ) start [2025-03-15 11:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685754', 'tblTempUsageDetail_20' ) end [2025-03-15 11:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685754', 'tblTempVendorCDR_20' ) start [2025-03-15 11:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685754', 'tblTempVendorCDR_20' ) end [2025-03-15 11:12:18] Production.INFO: ProcessCDR(1,14685754,1,1,2) [2025-03-15 11:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685754', 'tblTempUsageDetail_20' ) start [2025-03-15 11:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685754', 'tblTempUsageDetail_20' ) end [2025-03-15 11:12:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 11:12:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 11:12:22] Production.INFO: ==2637== Releasing lock... [2025-03-15 11:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 11:12:22] Production.INFO: 37.25 MB #Memory Used# [2025-03-15 11:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 08:13:05 [end_date_ymd] => 2025-03-15 11:13:05 [RateCDR] => 1 ) [2025-03-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-03-15 08:13:05' and `end` < '2025-03-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-03-15 11:13:17] Production.INFO: count ==1208 [2025-03-15 11:13:18] Production.ERROR: pbx CDR StartTime 2025-03-15 08:13:05 - End Time 2025-03-15 11:13:05 [2025-03-15 11:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 11:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685759', 'tblTempUsageDetail_20' ) start [2025-03-15 11:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685759', 'tblTempUsageDetail_20' ) end [2025-03-15 11:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685759', 'tblTempVendorCDR_20' ) start [2025-03-15 11:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685759', 'tblTempVendorCDR_20' ) end [2025-03-15 11:13:18] Production.INFO: ProcessCDR(1,14685759,1,1,2) [2025-03-15 11:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685759', 'tblTempUsageDetail_20' ) start [2025-03-15 11:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685759', 'tblTempUsageDetail_20' ) end [2025-03-15 11:13:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 11:13:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 11:13:23] Production.INFO: ==2738== Releasing lock... [2025-03-15 11:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 11:13:23] Production.INFO: 37 MB #Memory Used# [2025-03-15 11:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 08:14:05 [end_date_ymd] => 2025-03-15 11:14:05 [RateCDR] => 1 ) [2025-03-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-03-15 08:14:05' and `end` < '2025-03-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-03-15 11:14:17] Production.INFO: count ==1210 [2025-03-15 11:14:17] Production.ERROR: pbx CDR StartTime 2025-03-15 08:14:05 - End Time 2025-03-15 11:14:05 [2025-03-15 11:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 11:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685764', 'tblTempUsageDetail_20' ) start [2025-03-15 11:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685764', 'tblTempUsageDetail_20' ) end [2025-03-15 11:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685764', 'tblTempVendorCDR_20' ) start [2025-03-15 11:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685764', 'tblTempVendorCDR_20' ) end [2025-03-15 11:14:18] Production.INFO: ProcessCDR(1,14685764,1,1,2) [2025-03-15 11:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685764', 'tblTempUsageDetail_20' ) start [2025-03-15 11:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685764', 'tblTempUsageDetail_20' ) end [2025-03-15 11:14:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 11:14:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 11:14:22] Production.INFO: ==2815== Releasing lock... [2025-03-15 11:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 11:14:22] Production.INFO: 37.75 MB #Memory Used# [2025-03-15 11:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 08:15:05 [end_date_ymd] => 2025-03-15 11:15:05 [RateCDR] => 1 ) [2025-03-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-03-15 08:15:05' and `end` < '2025-03-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-03-15 11:15:18] Production.INFO: count ==1221 [2025-03-15 11:15:18] Production.ERROR: pbx CDR StartTime 2025-03-15 08:15:05 - End Time 2025-03-15 11:15:05 [2025-03-15 11:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 11:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685769', 'tblTempUsageDetail_20' ) start [2025-03-15 11:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685769', 'tblTempUsageDetail_20' ) end [2025-03-15 11:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685769', 'tblTempVendorCDR_20' ) start [2025-03-15 11:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685769', 'tblTempVendorCDR_20' ) end [2025-03-15 11:15:18] Production.INFO: ProcessCDR(1,14685769,1,1,2) [2025-03-15 11:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685769', 'tblTempUsageDetail_20' ) start [2025-03-15 11:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685769', 'tblTempUsageDetail_20' ) end [2025-03-15 11:15:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 11:15:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 11:15:22] Production.INFO: ==2978== Releasing lock... [2025-03-15 11:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 11:15:22] Production.INFO: 37.5 MB #Memory Used# [2025-03-15 11:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 08:16:05 [end_date_ymd] => 2025-03-15 11:16:05 [RateCDR] => 1 ) [2025-03-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-03-15 08:16:05' and `end` < '2025-03-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-03-15 11:16:18] Production.INFO: count ==1238 [2025-03-15 11:16:18] Production.ERROR: pbx CDR StartTime 2025-03-15 08:16:05 - End Time 2025-03-15 11:16:05 [2025-03-15 11:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 11:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685774', 'tblTempUsageDetail_20' ) start [2025-03-15 11:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685774', 'tblTempUsageDetail_20' ) end [2025-03-15 11:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685774', 'tblTempVendorCDR_20' ) start [2025-03-15 11:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685774', 'tblTempVendorCDR_20' ) end [2025-03-15 11:16:18] Production.INFO: ProcessCDR(1,14685774,1,1,2) [2025-03-15 11:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685774', 'tblTempUsageDetail_20' ) start [2025-03-15 11:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685774', 'tblTempUsageDetail_20' ) end [2025-03-15 11:16:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 11:16:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 11:16:23] Production.INFO: ==3055== Releasing lock... [2025-03-15 11:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 11:16:23] Production.INFO: 37.25 MB #Memory Used# [2025-03-15 11:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 08:17:05 [end_date_ymd] => 2025-03-15 11:17:05 [RateCDR] => 1 ) [2025-03-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-03-15 08:17:05' and `end` < '2025-03-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-03-15 11:17:17] Production.INFO: count ==1245 [2025-03-15 11:17:18] Production.ERROR: pbx CDR StartTime 2025-03-15 08:17:05 - End Time 2025-03-15 11:17:05 [2025-03-15 11:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 11:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685779', 'tblTempUsageDetail_20' ) start [2025-03-15 11:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685779', 'tblTempUsageDetail_20' ) end [2025-03-15 11:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685779', 'tblTempVendorCDR_20' ) start [2025-03-15 11:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685779', 'tblTempVendorCDR_20' ) end [2025-03-15 11:17:18] Production.INFO: ProcessCDR(1,14685779,1,1,2) [2025-03-15 11:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685779', 'tblTempUsageDetail_20' ) start [2025-03-15 11:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685779', 'tblTempUsageDetail_20' ) end [2025-03-15 11:17:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 11:17:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 11:17:24] Production.INFO: ==3127== Releasing lock... [2025-03-15 11:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 11:17:24] Production.INFO: 37.5 MB #Memory Used# [2025-03-15 11:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 08:18:05 [end_date_ymd] => 2025-03-15 11:18:05 [RateCDR] => 1 ) [2025-03-15 11:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 08:18:05' and `end` < '2025-03-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-03-15 11:18:18] Production.INFO: count ==1241 [2025-03-15 11:18:18] Production.ERROR: pbx CDR StartTime 2025-03-15 08:18:05 - End Time 2025-03-15 11:18:05 [2025-03-15 11:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 11:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685784', 'tblTempUsageDetail_20' ) start [2025-03-15 11:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685784', 'tblTempUsageDetail_20' ) end [2025-03-15 11:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685784', 'tblTempVendorCDR_20' ) start [2025-03-15 11:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685784', 'tblTempVendorCDR_20' ) end [2025-03-15 11:18:18] Production.INFO: ProcessCDR(1,14685784,1,1,2) [2025-03-15 11:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685784', 'tblTempUsageDetail_20' ) start [2025-03-15 11:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685784', 'tblTempUsageDetail_20' ) end [2025-03-15 11:18:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 11:18:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 11:18:22] Production.INFO: ==3199== Releasing lock... [2025-03-15 11:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 11:18:22] Production.INFO: 37.5 MB #Memory Used# [2025-03-15 11:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 08:19:05 [end_date_ymd] => 2025-03-15 11:19:05 [RateCDR] => 1 ) [2025-03-15 11:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 08:19:05' and `end` < '2025-03-15 11:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 11:19:18] Production.INFO: count ==1243 [2025-03-15 11:19:18] Production.ERROR: pbx CDR StartTime 2025-03-15 08:19:05 - End Time 2025-03-15 11:19:05 [2025-03-15 11:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 11:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685789', 'tblTempUsageDetail_20' ) start [2025-03-15 11:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685789', 'tblTempUsageDetail_20' ) end [2025-03-15 11:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685789', 'tblTempVendorCDR_20' ) start [2025-03-15 11:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685789', 'tblTempVendorCDR_20' ) end [2025-03-15 11:19:18] Production.INFO: ProcessCDR(1,14685789,1,1,2) [2025-03-15 11:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685789', 'tblTempUsageDetail_20' ) start [2025-03-15 11:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685789', 'tblTempUsageDetail_20' ) end [2025-03-15 11:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 11:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 11:19:21] Production.INFO: ==3282== Releasing lock... [2025-03-15 11:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 11:19:21] Production.INFO: 37.25 MB #Memory Used# [2025-03-15 11:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 08:20:07 [end_date_ymd] => 2025-03-15 11:20:07 [RateCDR] => 1 ) [2025-03-15 11:20:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 08:20:07' and `end` < '2025-03-15 11:20:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 11:20:19] Production.INFO: count ==1272 [2025-03-15 11:20:19] Production.ERROR: pbx CDR StartTime 2025-03-15 08:20:07 - End Time 2025-03-15 11:20:07 [2025-03-15 11:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 11:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685795', 'tblTempUsageDetail_20' ) start [2025-03-15 11:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685795', 'tblTempUsageDetail_20' ) end [2025-03-15 11:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685795', 'tblTempVendorCDR_20' ) start [2025-03-15 11:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685795', 'tblTempVendorCDR_20' ) end [2025-03-15 11:20:20] Production.INFO: ProcessCDR(1,14685795,1,1,2) [2025-03-15 11:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685795', 'tblTempUsageDetail_20' ) start [2025-03-15 11:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685795', 'tblTempUsageDetail_20' ) end [2025-03-15 11:20:24] Production.ERROR: pbx prc_insertCDR start [2025-03-15 11:20:24] Production.ERROR: pbx prc_insertCDR end [2025-03-15 11:20:24] Production.INFO: ==3357== Releasing lock... [2025-03-15 11:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 11:20:24] Production.INFO: 37.75 MB #Memory Used# [2025-03-15 11:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 08:21:05 [end_date_ymd] => 2025-03-15 11:21:05 [RateCDR] => 1 ) [2025-03-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-03-15 08:21:05' and `end` < '2025-03-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-03-15 11:21:17] Production.INFO: count ==1286 [2025-03-15 11:21:18] Production.ERROR: pbx CDR StartTime 2025-03-15 08:21:05 - End Time 2025-03-15 11:21:05 [2025-03-15 11:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 11:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685800', 'tblTempUsageDetail_20' ) start [2025-03-15 11:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685800', 'tblTempUsageDetail_20' ) end [2025-03-15 11:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685800', 'tblTempVendorCDR_20' ) start [2025-03-15 11:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685800', 'tblTempVendorCDR_20' ) end [2025-03-15 11:21:18] Production.INFO: ProcessCDR(1,14685800,1,1,2) [2025-03-15 11:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685800', 'tblTempUsageDetail_20' ) start [2025-03-15 11:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685800', 'tblTempUsageDetail_20' ) end [2025-03-15 11:21:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 11:21:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 11:21:23] Production.INFO: ==3434== Releasing lock... [2025-03-15 11:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 11:21:23] Production.INFO: 38 MB #Memory Used# [2025-03-15 11:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 08:22:06 [end_date_ymd] => 2025-03-15 11:22:06 [RateCDR] => 1 ) [2025-03-15 11:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 08:22:06' and `end` < '2025-03-15 11:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 11:22:18] Production.INFO: count ==1291 [2025-03-15 11:22:19] Production.ERROR: pbx CDR StartTime 2025-03-15 08:22:06 - End Time 2025-03-15 11:22:06 [2025-03-15 11:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 11:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685805', 'tblTempUsageDetail_20' ) start [2025-03-15 11:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685805', 'tblTempUsageDetail_20' ) end [2025-03-15 11:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685805', 'tblTempVendorCDR_20' ) start [2025-03-15 11:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685805', 'tblTempVendorCDR_20' ) end [2025-03-15 11:22:19] Production.INFO: ProcessCDR(1,14685805,1,1,2) [2025-03-15 11:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685805', 'tblTempUsageDetail_20' ) start [2025-03-15 11:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685805', 'tblTempUsageDetail_20' ) end [2025-03-15 11:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 11:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 11:22:22] Production.INFO: ==3508== Releasing lock... [2025-03-15 11:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 11:22:22] Production.INFO: 37.75 MB #Memory Used# [2025-03-15 11:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 08:23:05 [end_date_ymd] => 2025-03-15 11:23:05 [RateCDR] => 1 ) [2025-03-15 11:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 08:23:05' and `end` < '2025-03-15 11:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 11:23:18] Production.INFO: count ==1286 [2025-03-15 11:23:18] Production.ERROR: pbx CDR StartTime 2025-03-15 08:23:05 - End Time 2025-03-15 11:23:05 [2025-03-15 11:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 11:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685810', 'tblTempUsageDetail_20' ) start [2025-03-15 11:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685810', 'tblTempUsageDetail_20' ) end [2025-03-15 11:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685810', 'tblTempVendorCDR_20' ) start [2025-03-15 11:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685810', 'tblTempVendorCDR_20' ) end [2025-03-15 11:23:18] Production.INFO: ProcessCDR(1,14685810,1,1,2) [2025-03-15 11:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685810', 'tblTempUsageDetail_20' ) start [2025-03-15 11:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685810', 'tblTempUsageDetail_20' ) end [2025-03-15 11:23:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 11:23:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 11:23:23] Production.INFO: ==3581== Releasing lock... [2025-03-15 11:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 11:23:23] Production.INFO: 37.75 MB #Memory Used# [2025-03-15 11:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 08:24:05 [end_date_ymd] => 2025-03-15 11:24:05 [RateCDR] => 1 ) [2025-03-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-03-15 08:24:05' and `end` < '2025-03-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-03-15 11:24:18] Production.INFO: count ==1290 [2025-03-15 11:24:18] Production.ERROR: pbx CDR StartTime 2025-03-15 08:24:05 - End Time 2025-03-15 11:24:05 [2025-03-15 11:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 11:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685815', 'tblTempUsageDetail_20' ) start [2025-03-15 11:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685815', 'tblTempUsageDetail_20' ) end [2025-03-15 11:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685815', 'tblTempVendorCDR_20' ) start [2025-03-15 11:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685815', 'tblTempVendorCDR_20' ) end [2025-03-15 11:24:18] Production.INFO: ProcessCDR(1,14685815,1,1,2) [2025-03-15 11:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685815', 'tblTempUsageDetail_20' ) start [2025-03-15 11:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685815', 'tblTempUsageDetail_20' ) end [2025-03-15 11:24:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 11:24:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 11:24:23] Production.INFO: ==3654== Releasing lock... [2025-03-15 11:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 11:24:23] Production.INFO: 37.75 MB #Memory Used# [2025-03-15 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 08:25:05 [end_date_ymd] => 2025-03-15 11:25:05 [RateCDR] => 1 ) [2025-03-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-03-15 08:25:05' and `end` < '2025-03-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-03-15 11:25:17] Production.INFO: count ==1294 [2025-03-15 11:25:18] Production.ERROR: pbx CDR StartTime 2025-03-15 08:25:05 - End Time 2025-03-15 11:25:05 [2025-03-15 11:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685820', 'tblTempUsageDetail_20' ) start [2025-03-15 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685820', 'tblTempUsageDetail_20' ) end [2025-03-15 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685820', 'tblTempVendorCDR_20' ) start [2025-03-15 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685820', 'tblTempVendorCDR_20' ) end [2025-03-15 11:25:18] Production.INFO: ProcessCDR(1,14685820,1,1,2) [2025-03-15 11:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685820', 'tblTempUsageDetail_20' ) start [2025-03-15 11:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685820', 'tblTempUsageDetail_20' ) end [2025-03-15 11:25:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 11:25:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 11:25:23] Production.INFO: ==3726== Releasing lock... [2025-03-15 11:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 11:25:23] Production.INFO: 37.75 MB #Memory Used# [2025-03-15 11:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 08:26:05 [end_date_ymd] => 2025-03-15 11:26:05 [RateCDR] => 1 ) [2025-03-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-03-15 08:26:05' and `end` < '2025-03-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-03-15 11:26:17] Production.INFO: count ==1302 [2025-03-15 11:26:18] Production.ERROR: pbx CDR StartTime 2025-03-15 08:26:05 - End Time 2025-03-15 11:26:05 [2025-03-15 11:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 11:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685825', 'tblTempUsageDetail_20' ) start [2025-03-15 11:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685825', 'tblTempUsageDetail_20' ) end [2025-03-15 11:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685825', 'tblTempVendorCDR_20' ) start [2025-03-15 11:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685825', 'tblTempVendorCDR_20' ) end [2025-03-15 11:26:18] Production.INFO: ProcessCDR(1,14685825,1,1,2) [2025-03-15 11:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685825', 'tblTempUsageDetail_20' ) start [2025-03-15 11:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685825', 'tblTempUsageDetail_20' ) end [2025-03-15 11:26:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 11:26:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 11:26:22] Production.INFO: ==3838== Releasing lock... [2025-03-15 11:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 11:26:22] Production.INFO: 37.75 MB #Memory Used# [2025-03-15 11:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 08:27:05 [end_date_ymd] => 2025-03-15 11:27:05 [RateCDR] => 1 ) [2025-03-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-03-15 08:27:05' and `end` < '2025-03-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-03-15 11:27:17] Production.INFO: count ==1302 [2025-03-15 11:27:18] Production.ERROR: pbx CDR StartTime 2025-03-15 08:27:05 - End Time 2025-03-15 11:27:05 [2025-03-15 11:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 11:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685830', 'tblTempUsageDetail_20' ) start [2025-03-15 11:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685830', 'tblTempUsageDetail_20' ) end [2025-03-15 11:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685830', 'tblTempVendorCDR_20' ) start [2025-03-15 11:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685830', 'tblTempVendorCDR_20' ) end [2025-03-15 11:27:18] Production.INFO: ProcessCDR(1,14685830,1,1,2) [2025-03-15 11:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685830', 'tblTempUsageDetail_20' ) start [2025-03-15 11:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685830', 'tblTempUsageDetail_20' ) end [2025-03-15 11:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 11:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 11:27:21] Production.INFO: ==3909== Releasing lock... [2025-03-15 11:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 11:27:21] Production.INFO: 37.75 MB #Memory Used# [2025-03-15 11:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 08:28:05 [end_date_ymd] => 2025-03-15 11:28:05 [RateCDR] => 1 ) [2025-03-15 11:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 08:28:05' and `end` < '2025-03-15 11:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 11:28:18] Production.INFO: count ==1307 [2025-03-15 11:28:18] Production.ERROR: pbx CDR StartTime 2025-03-15 08:28:05 - End Time 2025-03-15 11:28:05 [2025-03-15 11:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 11:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685835', 'tblTempUsageDetail_20' ) start [2025-03-15 11:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685835', 'tblTempUsageDetail_20' ) end [2025-03-15 11:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685835', 'tblTempVendorCDR_20' ) start [2025-03-15 11:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685835', 'tblTempVendorCDR_20' ) end [2025-03-15 11:28:18] Production.INFO: ProcessCDR(1,14685835,1,1,2) [2025-03-15 11:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685835', 'tblTempUsageDetail_20' ) start [2025-03-15 11:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685835', 'tblTempUsageDetail_20' ) end [2025-03-15 11:28:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 11:28:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 11:28:24] Production.INFO: ==3984== Releasing lock... [2025-03-15 11:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 11:28:24] Production.INFO: 37.75 MB #Memory Used# [2025-03-15 11:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 08:29:05 [end_date_ymd] => 2025-03-15 11:29:05 [RateCDR] => 1 ) [2025-03-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-03-15 08:29:05' and `end` < '2025-03-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-03-15 11:29:17] Production.INFO: count ==1318 [2025-03-15 11:29:18] Production.ERROR: pbx CDR StartTime 2025-03-15 08:29:05 - End Time 2025-03-15 11:29:05 [2025-03-15 11:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 11:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685840', 'tblTempUsageDetail_20' ) start [2025-03-15 11:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685840', 'tblTempUsageDetail_20' ) end [2025-03-15 11:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685840', 'tblTempVendorCDR_20' ) start [2025-03-15 11:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685840', 'tblTempVendorCDR_20' ) end [2025-03-15 11:29:18] Production.INFO: ProcessCDR(1,14685840,1,1,2) [2025-03-15 11:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685840', 'tblTempUsageDetail_20' ) start [2025-03-15 11:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685840', 'tblTempUsageDetail_20' ) end [2025-03-15 11:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 11:29:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 11:29:22] Production.INFO: ==4059== Releasing lock... [2025-03-15 11:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 11:29:22] Production.INFO: 38 MB #Memory Used# [2025-03-15 11:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 08:30:07 [end_date_ymd] => 2025-03-15 11:30:07 [RateCDR] => 1 ) [2025-03-15 11:30:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 08:30:07' and `end` < '2025-03-15 11:30:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 11:30:19] Production.INFO: count ==1335 [2025-03-15 11:30:19] Production.ERROR: pbx CDR StartTime 2025-03-15 08:30:07 - End Time 2025-03-15 11:30:07 [2025-03-15 11:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 11:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685846', 'tblTempUsageDetail_20' ) start [2025-03-15 11:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685846', 'tblTempUsageDetail_20' ) end [2025-03-15 11:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685846', 'tblTempVendorCDR_20' ) start [2025-03-15 11:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685846', 'tblTempVendorCDR_20' ) end [2025-03-15 11:30:19] Production.INFO: ProcessCDR(1,14685846,1,1,2) [2025-03-15 11:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685846', 'tblTempUsageDetail_20' ) start [2025-03-15 11:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685846', 'tblTempUsageDetail_20' ) end [2025-03-15 11:30:25] Production.ERROR: pbx prc_insertCDR start [2025-03-15 11:30:25] Production.ERROR: pbx prc_insertCDR end [2025-03-15 11:30:25] Production.INFO: ==4136== Releasing lock... [2025-03-15 11:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 11:30:25] Production.INFO: 38.25 MB #Memory Used# [2025-03-15 11:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 08:31:05 [end_date_ymd] => 2025-03-15 11:31:05 [RateCDR] => 1 ) [2025-03-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-03-15 08:31:05' and `end` < '2025-03-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-03-15 11:31:17] Production.INFO: count ==1365 [2025-03-15 11:31:18] Production.ERROR: pbx CDR StartTime 2025-03-15 08:31:05 - End Time 2025-03-15 11:31:05 [2025-03-15 11:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 11:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685851', 'tblTempUsageDetail_20' ) start [2025-03-15 11:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685851', 'tblTempUsageDetail_20' ) end [2025-03-15 11:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685851', 'tblTempVendorCDR_20' ) start [2025-03-15 11:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685851', 'tblTempVendorCDR_20' ) end [2025-03-15 11:31:18] Production.INFO: ProcessCDR(1,14685851,1,1,2) [2025-03-15 11:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685851', 'tblTempUsageDetail_20' ) start [2025-03-15 11:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685851', 'tblTempUsageDetail_20' ) end [2025-03-15 11:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 11:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 11:31:21] Production.INFO: ==4208== Releasing lock... [2025-03-15 11:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 11:31:21] Production.INFO: 38.25 MB #Memory Used# [2025-03-15 11:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 08:32:06 [end_date_ymd] => 2025-03-15 11:32:06 [RateCDR] => 1 ) [2025-03-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-03-15 08:32:06' and `end` < '2025-03-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-03-15 11:32:18] Production.INFO: count ==1363 [2025-03-15 11:32:18] Production.ERROR: pbx CDR StartTime 2025-03-15 08:32:06 - End Time 2025-03-15 11:32:06 [2025-03-15 11:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 11:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685856', 'tblTempUsageDetail_20' ) start [2025-03-15 11:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685856', 'tblTempUsageDetail_20' ) end [2025-03-15 11:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685856', 'tblTempVendorCDR_20' ) start [2025-03-15 11:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685856', 'tblTempVendorCDR_20' ) end [2025-03-15 11:32:18] Production.INFO: ProcessCDR(1,14685856,1,1,2) [2025-03-15 11:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685856', 'tblTempUsageDetail_20' ) start [2025-03-15 11:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685856', 'tblTempUsageDetail_20' ) end [2025-03-15 11:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 11:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 11:32:22] Production.INFO: ==4283== Releasing lock... [2025-03-15 11:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 11:32:22] Production.INFO: 38.25 MB #Memory Used# [2025-03-15 11:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 08:33:05 [end_date_ymd] => 2025-03-15 11:33:05 [RateCDR] => 1 ) [2025-03-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-03-15 08:33:05' and `end` < '2025-03-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-03-15 11:33:18] Production.INFO: count ==1371 [2025-03-15 11:33:18] Production.ERROR: pbx CDR StartTime 2025-03-15 08:33:05 - End Time 2025-03-15 11:33:05 [2025-03-15 11:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 11:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685861', 'tblTempUsageDetail_20' ) start [2025-03-15 11:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685861', 'tblTempUsageDetail_20' ) end [2025-03-15 11:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685861', 'tblTempVendorCDR_20' ) start [2025-03-15 11:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685861', 'tblTempVendorCDR_20' ) end [2025-03-15 11:33:18] Production.INFO: ProcessCDR(1,14685861,1,1,2) [2025-03-15 11:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685861', 'tblTempUsageDetail_20' ) start [2025-03-15 11:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685861', 'tblTempUsageDetail_20' ) end [2025-03-15 11:33:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 11:33:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 11:33:22] Production.INFO: ==4357== Releasing lock... [2025-03-15 11:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 11:33:22] Production.INFO: 38.25 MB #Memory Used# [2025-03-15 11:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 08:34:05 [end_date_ymd] => 2025-03-15 11:34:05 [RateCDR] => 1 ) [2025-03-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-03-15 08:34:05' and `end` < '2025-03-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-03-15 11:34:18] Production.INFO: count ==1372 [2025-03-15 11:34:18] Production.ERROR: pbx CDR StartTime 2025-03-15 08:34:05 - End Time 2025-03-15 11:34:05 [2025-03-15 11:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 11:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685866', 'tblTempUsageDetail_20' ) start [2025-03-15 11:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685866', 'tblTempUsageDetail_20' ) end [2025-03-15 11:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685866', 'tblTempVendorCDR_20' ) start [2025-03-15 11:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685866', 'tblTempVendorCDR_20' ) end [2025-03-15 11:34:19] Production.INFO: ProcessCDR(1,14685866,1,1,2) [2025-03-15 11:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685866', 'tblTempUsageDetail_20' ) start [2025-03-15 11:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685866', 'tblTempUsageDetail_20' ) end [2025-03-15 11:34:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 11:34:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 11:34:23] Production.INFO: ==4433== Releasing lock... [2025-03-15 11:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 11:34:23] Production.INFO: 38.25 MB #Memory Used# [2025-03-15 11:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 08:35:04 [end_date_ymd] => 2025-03-15 11:35:04 [RateCDR] => 1 ) [2025-03-15 11:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 08:35:04' and `end` < '2025-03-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-03-15 11:35:17] Production.INFO: count ==1371 [2025-03-15 11:35:17] Production.ERROR: pbx CDR StartTime 2025-03-15 08:35:04 - End Time 2025-03-15 11:35:04 [2025-03-15 11:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 11:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685870', 'tblTempUsageDetail_20' ) start [2025-03-15 11:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685870', 'tblTempUsageDetail_20' ) end [2025-03-15 11:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685870', 'tblTempVendorCDR_20' ) start [2025-03-15 11:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685870', 'tblTempVendorCDR_20' ) end [2025-03-15 11:35:18] Production.INFO: ProcessCDR(1,14685870,1,1,2) [2025-03-15 11:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685870', 'tblTempUsageDetail_20' ) start [2025-03-15 11:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685870', 'tblTempUsageDetail_20' ) end [2025-03-15 11:35:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 11:35:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 11:35:23] Production.INFO: ==4506== Releasing lock... [2025-03-15 11:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 11:35:23] Production.INFO: 38.25 MB #Memory Used# [2025-03-15 11:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 08:36:05 [end_date_ymd] => 2025-03-15 11:36:05 [RateCDR] => 1 ) [2025-03-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-03-15 08:36:05' and `end` < '2025-03-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-03-15 11:36:17] Production.INFO: count ==1376 [2025-03-15 11:36:18] Production.ERROR: pbx CDR StartTime 2025-03-15 08:36:05 - End Time 2025-03-15 11:36:05 [2025-03-15 11:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 11:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685876', 'tblTempUsageDetail_20' ) start [2025-03-15 11:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685876', 'tblTempUsageDetail_20' ) end [2025-03-15 11:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685876', 'tblTempVendorCDR_20' ) start [2025-03-15 11:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685876', 'tblTempVendorCDR_20' ) end [2025-03-15 11:36:18] Production.INFO: ProcessCDR(1,14685876,1,1,2) [2025-03-15 11:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685876', 'tblTempUsageDetail_20' ) start [2025-03-15 11:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685876', 'tblTempUsageDetail_20' ) end [2025-03-15 11:36:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 11:36:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 11:36:23] Production.INFO: ==4584== Releasing lock... [2025-03-15 11:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 11:36:23] Production.INFO: 38.75 MB #Memory Used# [2025-03-15 11:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 08:37:05 [end_date_ymd] => 2025-03-15 11:37:05 [RateCDR] => 1 ) [2025-03-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-03-15 08:37:05' and `end` < '2025-03-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-03-15 11:37:17] Production.INFO: count ==1389 [2025-03-15 11:37:18] Production.ERROR: pbx CDR StartTime 2025-03-15 08:37:05 - End Time 2025-03-15 11:37:05 [2025-03-15 11:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 11:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685881', 'tblTempUsageDetail_20' ) start [2025-03-15 11:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685881', 'tblTempUsageDetail_20' ) end [2025-03-15 11:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685881', 'tblTempVendorCDR_20' ) start [2025-03-15 11:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685881', 'tblTempVendorCDR_20' ) end [2025-03-15 11:37:18] Production.INFO: ProcessCDR(1,14685881,1,1,2) [2025-03-15 11:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685881', 'tblTempUsageDetail_20' ) start [2025-03-15 11:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685881', 'tblTempUsageDetail_20' ) end [2025-03-15 11:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 11:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 11:37:21] Production.INFO: ==4656== Releasing lock... [2025-03-15 11:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 11:37:21] Production.INFO: 38.75 MB #Memory Used# [2025-03-15 11:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 08:38:05 [end_date_ymd] => 2025-03-15 11:38:05 [RateCDR] => 1 ) [2025-03-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-03-15 08:38:05' and `end` < '2025-03-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-03-15 11:38:18] Production.INFO: count ==1392 [2025-03-15 11:38:18] Production.ERROR: pbx CDR StartTime 2025-03-15 08:38:05 - End Time 2025-03-15 11:38:05 [2025-03-15 11:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 11:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685886', 'tblTempUsageDetail_20' ) start [2025-03-15 11:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685886', 'tblTempUsageDetail_20' ) end [2025-03-15 11:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685886', 'tblTempVendorCDR_20' ) start [2025-03-15 11:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685886', 'tblTempVendorCDR_20' ) end [2025-03-15 11:38:18] Production.INFO: ProcessCDR(1,14685886,1,1,2) [2025-03-15 11:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685886', 'tblTempUsageDetail_20' ) start [2025-03-15 11:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685886', 'tblTempUsageDetail_20' ) end [2025-03-15 11:38:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 11:38:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 11:38:23] Production.INFO: ==4732== Releasing lock... [2025-03-15 11:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 11:38:23] Production.INFO: 38.5 MB #Memory Used# [2025-03-15 11:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 08:39:05 [end_date_ymd] => 2025-03-15 11:39:05 [RateCDR] => 1 ) [2025-03-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-03-15 08:39:05' and `end` < '2025-03-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-03-15 11:39:17] Production.INFO: count ==1391 [2025-03-15 11:39:18] Production.ERROR: pbx CDR StartTime 2025-03-15 08:39:05 - End Time 2025-03-15 11:39:05 [2025-03-15 11:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 11:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685891', 'tblTempUsageDetail_20' ) start [2025-03-15 11:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685891', 'tblTempUsageDetail_20' ) end [2025-03-15 11:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685891', 'tblTempVendorCDR_20' ) start [2025-03-15 11:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685891', 'tblTempVendorCDR_20' ) end [2025-03-15 11:39:18] Production.INFO: ProcessCDR(1,14685891,1,1,2) [2025-03-15 11:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685891', 'tblTempUsageDetail_20' ) start [2025-03-15 11:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685891', 'tblTempUsageDetail_20' ) end [2025-03-15 11:39:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 11:39:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 11:39:22] Production.INFO: ==4810== Releasing lock... [2025-03-15 11:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 11:39:22] Production.INFO: 38.75 MB #Memory Used# [2025-03-15 11:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 08:40:06 [end_date_ymd] => 2025-03-15 11:40:06 [RateCDR] => 1 ) [2025-03-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-03-15 08:40:06' and `end` < '2025-03-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-03-15 11:40:18] Production.INFO: count ==1389 [2025-03-15 11:40:19] Production.ERROR: pbx CDR StartTime 2025-03-15 08:40:06 - End Time 2025-03-15 11:40:06 [2025-03-15 11:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 11:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685896', 'tblTempUsageDetail_20' ) start [2025-03-15 11:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685896', 'tblTempUsageDetail_20' ) end [2025-03-15 11:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685896', 'tblTempVendorCDR_20' ) start [2025-03-15 11:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685896', 'tblTempVendorCDR_20' ) end [2025-03-15 11:40:19] Production.INFO: ProcessCDR(1,14685896,1,1,2) [2025-03-15 11:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685896', 'tblTempUsageDetail_20' ) start [2025-03-15 11:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685896', 'tblTempUsageDetail_20' ) end [2025-03-15 11:40:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 11:40:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 11:40:23] Production.INFO: ==4886== Releasing lock... [2025-03-15 11:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 11:40:23] Production.INFO: 38.5 MB #Memory Used# [2025-03-15 11:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 08:41:05 [end_date_ymd] => 2025-03-15 11:41:05 [RateCDR] => 1 ) [2025-03-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-03-15 08:41:05' and `end` < '2025-03-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-03-15 11:41:17] Production.INFO: count ==1408 [2025-03-15 11:41:18] Production.ERROR: pbx CDR StartTime 2025-03-15 08:41:05 - End Time 2025-03-15 11:41:05 [2025-03-15 11:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 11:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685902', 'tblTempUsageDetail_20' ) start [2025-03-15 11:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685902', 'tblTempUsageDetail_20' ) end [2025-03-15 11:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685902', 'tblTempVendorCDR_20' ) start [2025-03-15 11:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685902', 'tblTempVendorCDR_20' ) end [2025-03-15 11:41:18] Production.INFO: ProcessCDR(1,14685902,1,1,2) [2025-03-15 11:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685902', 'tblTempUsageDetail_20' ) start [2025-03-15 11:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685902', 'tblTempUsageDetail_20' ) end [2025-03-15 11:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 11:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 11:41:21] Production.INFO: ==4999== Releasing lock... [2025-03-15 11:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 11:41:21] Production.INFO: 39 MB #Memory Used# [2025-03-15 11:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 08:42:06 [end_date_ymd] => 2025-03-15 11:42:06 [RateCDR] => 1 ) [2025-03-15 11:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 08:42:06' and `end` < '2025-03-15 11:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 11:42:18] Production.INFO: count ==1410 [2025-03-15 11:42:19] Production.ERROR: pbx CDR StartTime 2025-03-15 08:42:06 - End Time 2025-03-15 11:42:06 [2025-03-15 11:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 11:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685907', 'tblTempUsageDetail_20' ) start [2025-03-15 11:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685907', 'tblTempUsageDetail_20' ) end [2025-03-15 11:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685907', 'tblTempVendorCDR_20' ) start [2025-03-15 11:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685907', 'tblTempVendorCDR_20' ) end [2025-03-15 11:42:19] Production.INFO: ProcessCDR(1,14685907,1,1,2) [2025-03-15 11:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685907', 'tblTempUsageDetail_20' ) start [2025-03-15 11:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685907', 'tblTempUsageDetail_20' ) end [2025-03-15 11:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 11:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 11:42:22] Production.INFO: ==5074== Releasing lock... [2025-03-15 11:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 11:42:22] Production.INFO: 39 MB #Memory Used# [2025-03-15 11:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 08:43:05 [end_date_ymd] => 2025-03-15 11:43:05 [RateCDR] => 1 ) [2025-03-15 11:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 08:43:05' and `end` < '2025-03-15 11:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 11:43:17] Production.INFO: count ==1410 [2025-03-15 11:43:18] Production.ERROR: pbx CDR StartTime 2025-03-15 08:43:05 - End Time 2025-03-15 11:43:05 [2025-03-15 11:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 11:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685912', 'tblTempUsageDetail_20' ) start [2025-03-15 11:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685912', 'tblTempUsageDetail_20' ) end [2025-03-15 11:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685912', 'tblTempVendorCDR_20' ) start [2025-03-15 11:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685912', 'tblTempVendorCDR_20' ) end [2025-03-15 11:43:18] Production.INFO: ProcessCDR(1,14685912,1,1,2) [2025-03-15 11:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685912', 'tblTempUsageDetail_20' ) start [2025-03-15 11:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685912', 'tblTempUsageDetail_20' ) end [2025-03-15 11:43:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 11:43:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 11:43:23] Production.INFO: ==5151== Releasing lock... [2025-03-15 11:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 11:43:23] Production.INFO: 39 MB #Memory Used# [2025-03-15 11:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 08:44:05 [end_date_ymd] => 2025-03-15 11:44:05 [RateCDR] => 1 ) [2025-03-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-03-15 08:44:05' and `end` < '2025-03-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-03-15 11:44:18] Production.INFO: count ==1416 [2025-03-15 11:44:18] Production.ERROR: pbx CDR StartTime 2025-03-15 08:44:05 - End Time 2025-03-15 11:44:05 [2025-03-15 11:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 11:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685917', 'tblTempUsageDetail_20' ) start [2025-03-15 11:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685917', 'tblTempUsageDetail_20' ) end [2025-03-15 11:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685917', 'tblTempVendorCDR_20' ) start [2025-03-15 11:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685917', 'tblTempVendorCDR_20' ) end [2025-03-15 11:44:18] Production.INFO: ProcessCDR(1,14685917,1,1,2) [2025-03-15 11:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685917', 'tblTempUsageDetail_20' ) start [2025-03-15 11:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685917', 'tblTempUsageDetail_20' ) end [2025-03-15 11:44:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 11:44:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 11:44:23] Production.INFO: ==5226== Releasing lock... [2025-03-15 11:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 11:44:23] Production.INFO: 38.75 MB #Memory Used# [2025-03-15 11:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 08:45:05 [end_date_ymd] => 2025-03-15 11:45:05 [RateCDR] => 1 ) [2025-03-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-03-15 08:45:05' and `end` < '2025-03-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-03-15 11:45:17] Production.INFO: count ==1416 [2025-03-15 11:45:18] Production.ERROR: pbx CDR StartTime 2025-03-15 08:45:05 - End Time 2025-03-15 11:45:05 [2025-03-15 11:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 11:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685922', 'tblTempUsageDetail_20' ) start [2025-03-15 11:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685922', 'tblTempUsageDetail_20' ) end [2025-03-15 11:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685922', 'tblTempVendorCDR_20' ) start [2025-03-15 11:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685922', 'tblTempVendorCDR_20' ) end [2025-03-15 11:45:18] Production.INFO: ProcessCDR(1,14685922,1,1,2) [2025-03-15 11:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685922', 'tblTempUsageDetail_20' ) start [2025-03-15 11:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685922', 'tblTempUsageDetail_20' ) end [2025-03-15 11:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 11:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 11:45:21] Production.INFO: ==5298== Releasing lock... [2025-03-15 11:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 11:45:21] Production.INFO: 38.75 MB #Memory Used# [2025-03-15 11:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 08:46:05 [end_date_ymd] => 2025-03-15 11:46:05 [RateCDR] => 1 ) [2025-03-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-03-15 08:46:05' and `end` < '2025-03-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-03-15 11:46:17] Production.INFO: count ==1415 [2025-03-15 11:46:18] Production.ERROR: pbx CDR StartTime 2025-03-15 08:46:05 - End Time 2025-03-15 11:46:05 [2025-03-15 11:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 11:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685927', 'tblTempUsageDetail_20' ) start [2025-03-15 11:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685927', 'tblTempUsageDetail_20' ) end [2025-03-15 11:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685927', 'tblTempVendorCDR_20' ) start [2025-03-15 11:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685927', 'tblTempVendorCDR_20' ) end [2025-03-15 11:46:18] Production.INFO: ProcessCDR(1,14685927,1,1,2) [2025-03-15 11:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685927', 'tblTempUsageDetail_20' ) start [2025-03-15 11:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685927', 'tblTempUsageDetail_20' ) end [2025-03-15 11:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 11:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 11:46:21] Production.INFO: ==5370== Releasing lock... [2025-03-15 11:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 11:46:21] Production.INFO: 38.75 MB #Memory Used# [2025-03-15 11:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 08:47:06 [end_date_ymd] => 2025-03-15 11:47:06 [RateCDR] => 1 ) [2025-03-15 11:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 08:47:06' and `end` < '2025-03-15 11:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 11:47:18] Production.INFO: count ==1423 [2025-03-15 11:47:19] Production.ERROR: pbx CDR StartTime 2025-03-15 08:47:06 - End Time 2025-03-15 11:47:06 [2025-03-15 11:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 11:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685932', 'tblTempUsageDetail_20' ) start [2025-03-15 11:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685932', 'tblTempUsageDetail_20' ) end [2025-03-15 11:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685932', 'tblTempVendorCDR_20' ) start [2025-03-15 11:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685932', 'tblTempVendorCDR_20' ) end [2025-03-15 11:47:19] Production.INFO: ProcessCDR(1,14685932,1,1,2) [2025-03-15 11:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685932', 'tblTempUsageDetail_20' ) start [2025-03-15 11:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685932', 'tblTempUsageDetail_20' ) end [2025-03-15 11:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 11:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 11:47:22] Production.INFO: ==5443== Releasing lock... [2025-03-15 11:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 11:47:22] Production.INFO: 38.75 MB #Memory Used# [2025-03-15 11:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 08:48:05 [end_date_ymd] => 2025-03-15 11:48:05 [RateCDR] => 1 ) [2025-03-15 11:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 08:48:05' and `end` < '2025-03-15 11:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 11:48:18] Production.INFO: count ==1427 [2025-03-15 11:48:18] Production.ERROR: pbx CDR StartTime 2025-03-15 08:48:05 - End Time 2025-03-15 11:48:05 [2025-03-15 11:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 11:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685937', 'tblTempUsageDetail_20' ) start [2025-03-15 11:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685937', 'tblTempUsageDetail_20' ) end [2025-03-15 11:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685937', 'tblTempVendorCDR_20' ) start [2025-03-15 11:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685937', 'tblTempVendorCDR_20' ) end [2025-03-15 11:48:18] Production.INFO: ProcessCDR(1,14685937,1,1,2) [2025-03-15 11:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685937', 'tblTempUsageDetail_20' ) start [2025-03-15 11:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685937', 'tblTempUsageDetail_20' ) end [2025-03-15 11:48:24] Production.ERROR: pbx prc_insertCDR start [2025-03-15 11:48:24] Production.ERROR: pbx prc_insertCDR end [2025-03-15 11:48:24] Production.INFO: ==5515== Releasing lock... [2025-03-15 11:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 11:48:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-15 11:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 08:49:06 [end_date_ymd] => 2025-03-15 11:49:06 [RateCDR] => 1 ) [2025-03-15 11:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 08:49:06' and `end` < '2025-03-15 11:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 11:49:18] Production.INFO: count ==1422 [2025-03-15 11:49:19] Production.ERROR: pbx CDR StartTime 2025-03-15 08:49:06 - End Time 2025-03-15 11:49:06 [2025-03-15 11:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 11:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685942', 'tblTempUsageDetail_20' ) start [2025-03-15 11:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685942', 'tblTempUsageDetail_20' ) end [2025-03-15 11:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685942', 'tblTempVendorCDR_20' ) start [2025-03-15 11:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685942', 'tblTempVendorCDR_20' ) end [2025-03-15 11:49:19] Production.INFO: ProcessCDR(1,14685942,1,1,2) [2025-03-15 11:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685942', 'tblTempUsageDetail_20' ) start [2025-03-15 11:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685942', 'tblTempUsageDetail_20' ) end [2025-03-15 11:49:24] Production.ERROR: pbx prc_insertCDR start [2025-03-15 11:49:24] Production.ERROR: pbx prc_insertCDR end [2025-03-15 11:49:24] Production.INFO: ==5590== Releasing lock... [2025-03-15 11:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 11:49:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-15 11:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 08:50:06 [end_date_ymd] => 2025-03-15 11:50:06 [RateCDR] => 1 ) [2025-03-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-03-15 08:50:06' and `end` < '2025-03-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-03-15 11:50:18] Production.INFO: count ==1518 [2025-03-15 11:50:19] Production.ERROR: pbx CDR StartTime 2025-03-15 08:50:06 - End Time 2025-03-15 11:50:06 [2025-03-15 11:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 11:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685948', 'tblTempUsageDetail_20' ) start [2025-03-15 11:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685948', 'tblTempUsageDetail_20' ) end [2025-03-15 11:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685948', 'tblTempVendorCDR_20' ) start [2025-03-15 11:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685948', 'tblTempVendorCDR_20' ) end [2025-03-15 11:50:19] Production.INFO: ProcessCDR(1,14685948,1,1,2) [2025-03-15 11:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685948', 'tblTempUsageDetail_20' ) start [2025-03-15 11:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685948', 'tblTempUsageDetail_20' ) end [2025-03-15 11:50:24] Production.ERROR: pbx prc_insertCDR start [2025-03-15 11:50:24] Production.ERROR: pbx prc_insertCDR end [2025-03-15 11:50:24] Production.INFO: ==5665== Releasing lock... [2025-03-15 11:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 11:50:24] Production.INFO: 39.75 MB #Memory Used# [2025-03-15 11:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 08:51:05 [end_date_ymd] => 2025-03-15 11:51:05 [RateCDR] => 1 ) [2025-03-15 11:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 08:51:05' and `end` < '2025-03-15 11:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 11:51:18] Production.INFO: count ==1535 [2025-03-15 11:51:18] Production.ERROR: pbx CDR StartTime 2025-03-15 08:51:05 - End Time 2025-03-15 11:51:05 [2025-03-15 11:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 11:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685953', 'tblTempUsageDetail_20' ) start [2025-03-15 11:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685953', 'tblTempUsageDetail_20' ) end [2025-03-15 11:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685953', 'tblTempVendorCDR_20' ) start [2025-03-15 11:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685953', 'tblTempVendorCDR_20' ) end [2025-03-15 11:51:19] Production.INFO: ProcessCDR(1,14685953,1,1,2) [2025-03-15 11:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685953', 'tblTempUsageDetail_20' ) start [2025-03-15 11:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685953', 'tblTempUsageDetail_20' ) end [2025-03-15 11:51:24] Production.ERROR: pbx prc_insertCDR start [2025-03-15 11:51:24] Production.ERROR: pbx prc_insertCDR end [2025-03-15 11:51:24] Production.INFO: ==5740== Releasing lock... [2025-03-15 11:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 11:51:24] Production.INFO: 39.5 MB #Memory Used# [2025-03-15 11:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 08:52:05 [end_date_ymd] => 2025-03-15 11:52:05 [RateCDR] => 1 ) [2025-03-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-03-15 08:52:05' and `end` < '2025-03-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-03-15 11:52:17] Production.INFO: count ==1536 [2025-03-15 11:52:18] Production.ERROR: pbx CDR StartTime 2025-03-15 08:52:05 - End Time 2025-03-15 11:52:05 [2025-03-15 11:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 11:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685958', 'tblTempUsageDetail_20' ) start [2025-03-15 11:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685958', 'tblTempUsageDetail_20' ) end [2025-03-15 11:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685958', 'tblTempVendorCDR_20' ) start [2025-03-15 11:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685958', 'tblTempVendorCDR_20' ) end [2025-03-15 11:52:18] Production.INFO: ProcessCDR(1,14685958,1,1,2) [2025-03-15 11:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685958', 'tblTempUsageDetail_20' ) start [2025-03-15 11:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685958', 'tblTempUsageDetail_20' ) end [2025-03-15 11:52:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 11:52:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 11:52:23] Production.INFO: ==5816== Releasing lock... [2025-03-15 11:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 11:52:23] Production.INFO: 39.5 MB #Memory Used# [2025-03-15 11:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 08:53:06 [end_date_ymd] => 2025-03-15 11:53:06 [RateCDR] => 1 ) [2025-03-15 11:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 08:53:06' and `end` < '2025-03-15 11:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 11:53:18] Production.INFO: count ==1532 [2025-03-15 11:53:19] Production.ERROR: pbx CDR StartTime 2025-03-15 08:53:06 - End Time 2025-03-15 11:53:06 [2025-03-15 11:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 11:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685963', 'tblTempUsageDetail_20' ) start [2025-03-15 11:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685963', 'tblTempUsageDetail_20' ) end [2025-03-15 11:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685963', 'tblTempVendorCDR_20' ) start [2025-03-15 11:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685963', 'tblTempVendorCDR_20' ) end [2025-03-15 11:53:19] Production.INFO: ProcessCDR(1,14685963,1,1,2) [2025-03-15 11:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685963', 'tblTempUsageDetail_20' ) start [2025-03-15 11:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685963', 'tblTempUsageDetail_20' ) end [2025-03-15 11:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 11:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 11:53:22] Production.INFO: ==5891== Releasing lock... [2025-03-15 11:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 11:53:22] Production.INFO: 40 MB #Memory Used# [2025-03-15 11:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 08:54:06 [end_date_ymd] => 2025-03-15 11:54:06 [RateCDR] => 1 ) [2025-03-15 11:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 08:54:06' and `end` < '2025-03-15 11:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 11:54:18] Production.INFO: count ==1562 [2025-03-15 11:54:19] Production.ERROR: pbx CDR StartTime 2025-03-15 08:54:06 - End Time 2025-03-15 11:54:06 [2025-03-15 11:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 11:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685968', 'tblTempUsageDetail_20' ) start [2025-03-15 11:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685968', 'tblTempUsageDetail_20' ) end [2025-03-15 11:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685968', 'tblTempVendorCDR_20' ) start [2025-03-15 11:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685968', 'tblTempVendorCDR_20' ) end [2025-03-15 11:54:19] Production.INFO: ProcessCDR(1,14685968,1,1,2) [2025-03-15 11:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685968', 'tblTempUsageDetail_20' ) start [2025-03-15 11:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685968', 'tblTempUsageDetail_20' ) end [2025-03-15 11:54:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 11:54:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 11:54:23] Production.INFO: ==5960== Releasing lock... [2025-03-15 11:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 11:54:23] Production.INFO: 39.75 MB #Memory Used# [2025-03-15 11:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 08:55:05 [end_date_ymd] => 2025-03-15 11:55:05 [RateCDR] => 1 ) [2025-03-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-03-15 08:55:05' and `end` < '2025-03-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-03-15 11:55:17] Production.INFO: count ==1562 [2025-03-15 11:55:17] Production.ERROR: pbx CDR StartTime 2025-03-15 08:55:05 - End Time 2025-03-15 11:55:05 [2025-03-15 11:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 11:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685969', 'tblTempUsageDetail_20' ) start [2025-03-15 11:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685969', 'tblTempUsageDetail_20' ) end [2025-03-15 11:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685969', 'tblTempVendorCDR_20' ) start [2025-03-15 11:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685969', 'tblTempVendorCDR_20' ) end [2025-03-15 11:55:18] Production.INFO: ProcessCDR(1,14685969,1,1,2) [2025-03-15 11:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685969', 'tblTempUsageDetail_20' ) start [2025-03-15 11:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685969', 'tblTempUsageDetail_20' ) end [2025-03-15 11:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 11:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 11:55:21] Production.INFO: ==6035== Releasing lock... [2025-03-15 11:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 11:55:21] Production.INFO: 39.75 MB #Memory Used# [2025-03-15 11:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 08:56:05 [end_date_ymd] => 2025-03-15 11:56:05 [RateCDR] => 1 ) [2025-03-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-03-15 08:56:05' and `end` < '2025-03-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-03-15 11:56:17] Production.INFO: count ==1562 [2025-03-15 11:56:18] Production.ERROR: pbx CDR StartTime 2025-03-15 08:56:05 - End Time 2025-03-15 11:56:05 [2025-03-15 11:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 11:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685978', 'tblTempUsageDetail_20' ) start [2025-03-15 11:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685978', 'tblTempUsageDetail_20' ) end [2025-03-15 11:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685978', 'tblTempVendorCDR_20' ) start [2025-03-15 11:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685978', 'tblTempVendorCDR_20' ) end [2025-03-15 11:56:18] Production.INFO: ProcessCDR(1,14685978,1,1,2) [2025-03-15 11:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685978', 'tblTempUsageDetail_20' ) start [2025-03-15 11:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685978', 'tblTempUsageDetail_20' ) end [2025-03-15 11:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 11:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 11:56:21] Production.INFO: ==6110== Releasing lock... [2025-03-15 11:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 11:56:21] Production.INFO: 39.75 MB #Memory Used# [2025-03-15 11:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 08:57:05 [end_date_ymd] => 2025-03-15 11:57:05 [RateCDR] => 1 ) [2025-03-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-03-15 08:57:05' and `end` < '2025-03-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-03-15 11:57:18] Production.INFO: count ==1575 [2025-03-15 11:57:18] Production.ERROR: pbx CDR StartTime 2025-03-15 08:57:05 - End Time 2025-03-15 11:57:05 [2025-03-15 11:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 11:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685983', 'tblTempUsageDetail_20' ) start [2025-03-15 11:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685983', 'tblTempUsageDetail_20' ) end [2025-03-15 11:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685983', 'tblTempVendorCDR_20' ) start [2025-03-15 11:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685983', 'tblTempVendorCDR_20' ) end [2025-03-15 11:57:18] Production.INFO: ProcessCDR(1,14685983,1,1,2) [2025-03-15 11:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685983', 'tblTempUsageDetail_20' ) start [2025-03-15 11:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685983', 'tblTempUsageDetail_20' ) end [2025-03-15 11:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 11:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 11:57:22] Production.INFO: ==6231== Releasing lock... [2025-03-15 11:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 11:57:22] Production.INFO: 39.75 MB #Memory Used# [2025-03-15 11:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 08:58:05 [end_date_ymd] => 2025-03-15 11:58:05 [RateCDR] => 1 ) [2025-03-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-03-15 08:58:05' and `end` < '2025-03-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-03-15 11:58:17] Production.INFO: count ==1579 [2025-03-15 11:58:18] Production.ERROR: pbx CDR StartTime 2025-03-15 08:58:05 - End Time 2025-03-15 11:58:05 [2025-03-15 11:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 11:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685988', 'tblTempUsageDetail_20' ) start [2025-03-15 11:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685988', 'tblTempUsageDetail_20' ) end [2025-03-15 11:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685988', 'tblTempVendorCDR_20' ) start [2025-03-15 11:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685988', 'tblTempVendorCDR_20' ) end [2025-03-15 11:58:18] Production.INFO: ProcessCDR(1,14685988,1,1,2) [2025-03-15 11:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685988', 'tblTempUsageDetail_20' ) start [2025-03-15 11:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685988', 'tblTempUsageDetail_20' ) end [2025-03-15 11:58:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 11:58:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 11:58:23] Production.INFO: ==6309== Releasing lock... [2025-03-15 11:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 11:58:23] Production.INFO: 40 MB #Memory Used# [2025-03-15 11:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 08:59:06 [end_date_ymd] => 2025-03-15 11:59:06 [RateCDR] => 1 ) [2025-03-15 11:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 08:59:06' and `end` < '2025-03-15 11:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 11:59:18] Production.INFO: count ==1578 [2025-03-15 11:59:19] Production.ERROR: pbx CDR StartTime 2025-03-15 08:59:06 - End Time 2025-03-15 11:59:06 [2025-03-15 11:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 11:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685993', 'tblTempUsageDetail_20' ) start [2025-03-15 11:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685993', 'tblTempUsageDetail_20' ) end [2025-03-15 11:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685993', 'tblTempVendorCDR_20' ) start [2025-03-15 11:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685993', 'tblTempVendorCDR_20' ) end [2025-03-15 11:59:19] Production.INFO: ProcessCDR(1,14685993,1,1,2) [2025-03-15 11:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 11:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 11:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685993', 'tblTempUsageDetail_20' ) start [2025-03-15 11:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685993', 'tblTempUsageDetail_20' ) end [2025-03-15 11:59:24] Production.ERROR: pbx prc_insertCDR start [2025-03-15 11:59:24] Production.ERROR: pbx prc_insertCDR end [2025-03-15 11:59:24] Production.INFO: ==6381== Releasing lock... [2025-03-15 11:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 11:59:24] Production.INFO: 40 MB #Memory Used# [2025-03-15 12:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 09:00:05 [end_date_ymd] => 2025-03-15 12:00:05 [RateCDR] => 1 ) [2025-03-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-03-15 09:00:05' and `end` < '2025-03-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-03-15 12:00:18] Production.INFO: count ==1574 [2025-03-15 12:00:18] Production.ERROR: pbx CDR StartTime 2025-03-15 09:00:05 - End Time 2025-03-15 12:00:05 [2025-03-15 12:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 12:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685998', 'tblTempUsageDetail_20' ) start [2025-03-15 12:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14685998', 'tblTempUsageDetail_20' ) end [2025-03-15 12:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685998', 'tblTempVendorCDR_20' ) start [2025-03-15 12:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14685998', 'tblTempVendorCDR_20' ) end [2025-03-15 12:00:18] Production.INFO: ProcessCDR(1,14685998,1,1,2) [2025-03-15 12:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14685998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14685998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14685998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14685998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685998', 'tblTempUsageDetail_20' ) start [2025-03-15 12:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14685998', 'tblTempUsageDetail_20' ) end [2025-03-15 12:00:24] Production.ERROR: pbx prc_insertCDR start [2025-03-15 12:00:24] Production.ERROR: pbx prc_insertCDR end [2025-03-15 12:00:24] Production.INFO: ==6457== Releasing lock... [2025-03-15 12:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 12:00:24] Production.INFO: 39.75 MB #Memory Used# [2025-03-15 12:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 09:01:06 [end_date_ymd] => 2025-03-15 12:01:06 [RateCDR] => 1 ) [2025-03-15 12:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 09:01:06' and `end` < '2025-03-15 12:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 12:01:18] Production.INFO: count ==1574 [2025-03-15 12:01:19] Production.ERROR: pbx CDR StartTime 2025-03-15 09:01:06 - End Time 2025-03-15 12:01:06 [2025-03-15 12:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 12:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686004', 'tblTempUsageDetail_20' ) start [2025-03-15 12:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686004', 'tblTempUsageDetail_20' ) end [2025-03-15 12:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686004', 'tblTempVendorCDR_20' ) start [2025-03-15 12:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686004', 'tblTempVendorCDR_20' ) end [2025-03-15 12:01:19] Production.INFO: ProcessCDR(1,14686004,1,1,2) [2025-03-15 12:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686004', 'tblTempUsageDetail_20' ) start [2025-03-15 12:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686004', 'tblTempUsageDetail_20' ) end [2025-03-15 12:01:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 12:01:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 12:01:22] Production.INFO: ==6545== Releasing lock... [2025-03-15 12:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 12:01:22] Production.INFO: 40 MB #Memory Used# [2025-03-15 12:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 09:02:05 [end_date_ymd] => 2025-03-15 12:02:05 [RateCDR] => 1 ) [2025-03-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-03-15 09:02:05' and `end` < '2025-03-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-03-15 12:02:17] Production.INFO: count ==1567 [2025-03-15 12:02:18] Production.ERROR: pbx CDR StartTime 2025-03-15 09:02:05 - End Time 2025-03-15 12:02:05 [2025-03-15 12:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 12:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686005', 'tblTempUsageDetail_20' ) start [2025-03-15 12:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686005', 'tblTempUsageDetail_20' ) end [2025-03-15 12:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686005', 'tblTempVendorCDR_20' ) start [2025-03-15 12:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686005', 'tblTempVendorCDR_20' ) end [2025-03-15 12:02:18] Production.INFO: ProcessCDR(1,14686005,1,1,2) [2025-03-15 12:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686005', 'tblTempUsageDetail_20' ) start [2025-03-15 12:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686005', 'tblTempUsageDetail_20' ) end [2025-03-15 12:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 12:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 12:02:22] Production.INFO: ==6616== Releasing lock... [2025-03-15 12:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 12:02:22] Production.INFO: 40 MB #Memory Used# [2025-03-15 12:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 09:03:06 [end_date_ymd] => 2025-03-15 12:03:06 [RateCDR] => 1 ) [2025-03-15 12:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 09:03:06' and `end` < '2025-03-15 12:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 12:03:18] Production.INFO: count ==1561 [2025-03-15 12:03:19] Production.ERROR: pbx CDR StartTime 2025-03-15 09:03:06 - End Time 2025-03-15 12:03:06 [2025-03-15 12:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 12:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686014', 'tblTempUsageDetail_20' ) start [2025-03-15 12:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686014', 'tblTempUsageDetail_20' ) end [2025-03-15 12:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686014', 'tblTempVendorCDR_20' ) start [2025-03-15 12:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686014', 'tblTempVendorCDR_20' ) end [2025-03-15 12:03:19] Production.INFO: ProcessCDR(1,14686014,1,1,2) [2025-03-15 12:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686014', 'tblTempUsageDetail_20' ) start [2025-03-15 12:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686014', 'tblTempUsageDetail_20' ) end [2025-03-15 12:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 12:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 12:03:22] Production.INFO: ==6692== Releasing lock... [2025-03-15 12:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 12:03:22] Production.INFO: 40 MB #Memory Used# [2025-03-15 12:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 09:04:05 [end_date_ymd] => 2025-03-15 12:04:05 [RateCDR] => 1 ) [2025-03-15 12:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 09:04:05' and `end` < '2025-03-15 12:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 12:04:17] Production.INFO: count ==1545 [2025-03-15 12:04:18] Production.ERROR: pbx CDR StartTime 2025-03-15 09:04:05 - End Time 2025-03-15 12:04:05 [2025-03-15 12:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 12:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686019', 'tblTempUsageDetail_20' ) start [2025-03-15 12:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686019', 'tblTempUsageDetail_20' ) end [2025-03-15 12:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686019', 'tblTempVendorCDR_20' ) start [2025-03-15 12:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686019', 'tblTempVendorCDR_20' ) end [2025-03-15 12:04:18] Production.INFO: ProcessCDR(1,14686019,1,1,2) [2025-03-15 12:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686019', 'tblTempUsageDetail_20' ) start [2025-03-15 12:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686019', 'tblTempUsageDetail_20' ) end [2025-03-15 12:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 12:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 12:04:21] Production.INFO: ==6764== Releasing lock... [2025-03-15 12:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 12:04:21] Production.INFO: 39.75 MB #Memory Used# [2025-03-15 12:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 09:05:05 [end_date_ymd] => 2025-03-15 12:05:05 [RateCDR] => 1 ) [2025-03-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-03-15 09:05:05' and `end` < '2025-03-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-03-15 12:05:18] Production.INFO: count ==1535 [2025-03-15 12:05:18] Production.ERROR: pbx CDR StartTime 2025-03-15 09:05:05 - End Time 2025-03-15 12:05:05 [2025-03-15 12:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 12:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686024', 'tblTempUsageDetail_20' ) start [2025-03-15 12:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686024', 'tblTempUsageDetail_20' ) end [2025-03-15 12:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686024', 'tblTempVendorCDR_20' ) start [2025-03-15 12:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686024', 'tblTempVendorCDR_20' ) end [2025-03-15 12:05:18] Production.INFO: ProcessCDR(1,14686024,1,1,2) [2025-03-15 12:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686024', 'tblTempUsageDetail_20' ) start [2025-03-15 12:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686024', 'tblTempUsageDetail_20' ) end [2025-03-15 12:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 12:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 12:05:22] Production.INFO: ==6840== Releasing lock... [2025-03-15 12:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 12:05:22] Production.INFO: 39.5 MB #Memory Used# [2025-03-15 12:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 09:06:05 [end_date_ymd] => 2025-03-15 12:06:05 [RateCDR] => 1 ) [2025-03-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-03-15 09:06:05' and `end` < '2025-03-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-03-15 12:06:17] Production.INFO: count ==1522 [2025-03-15 12:06:18] Production.ERROR: pbx CDR StartTime 2025-03-15 09:06:05 - End Time 2025-03-15 12:06:05 [2025-03-15 12:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 12:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686029', 'tblTempUsageDetail_20' ) start [2025-03-15 12:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686029', 'tblTempUsageDetail_20' ) end [2025-03-15 12:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686029', 'tblTempVendorCDR_20' ) start [2025-03-15 12:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686029', 'tblTempVendorCDR_20' ) end [2025-03-15 12:06:18] Production.INFO: ProcessCDR(1,14686029,1,1,2) [2025-03-15 12:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686029', 'tblTempUsageDetail_20' ) start [2025-03-15 12:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686029', 'tblTempUsageDetail_20' ) end [2025-03-15 12:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 12:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 12:06:21] Production.INFO: ==6913== Releasing lock... [2025-03-15 12:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 12:06:21] Production.INFO: 39.5 MB #Memory Used# [2025-03-15 12:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 09:07:05 [end_date_ymd] => 2025-03-15 12:07:05 [RateCDR] => 1 ) [2025-03-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-03-15 09:07:05' and `end` < '2025-03-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-03-15 12:07:18] Production.INFO: count ==1515 [2025-03-15 12:07:18] Production.ERROR: pbx CDR StartTime 2025-03-15 09:07:05 - End Time 2025-03-15 12:07:05 [2025-03-15 12:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 12:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686034', 'tblTempUsageDetail_20' ) start [2025-03-15 12:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686034', 'tblTempUsageDetail_20' ) end [2025-03-15 12:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686034', 'tblTempVendorCDR_20' ) start [2025-03-15 12:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686034', 'tblTempVendorCDR_20' ) end [2025-03-15 12:07:18] Production.INFO: ProcessCDR(1,14686034,1,1,2) [2025-03-15 12:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686034', 'tblTempUsageDetail_20' ) start [2025-03-15 12:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686034', 'tblTempUsageDetail_20' ) end [2025-03-15 12:07:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 12:07:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 12:07:23] Production.INFO: ==6986== Releasing lock... [2025-03-15 12:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 12:07:23] Production.INFO: 39.5 MB #Memory Used# [2025-03-15 12:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 09:08:05 [end_date_ymd] => 2025-03-15 12:08:05 [RateCDR] => 1 ) [2025-03-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-03-15 09:08:05' and `end` < '2025-03-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-03-15 12:08:17] Production.INFO: count ==1512 [2025-03-15 12:08:18] Production.ERROR: pbx CDR StartTime 2025-03-15 09:08:05 - End Time 2025-03-15 12:08:05 [2025-03-15 12:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 12:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686039', 'tblTempUsageDetail_20' ) start [2025-03-15 12:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686039', 'tblTempUsageDetail_20' ) end [2025-03-15 12:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686039', 'tblTempVendorCDR_20' ) start [2025-03-15 12:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686039', 'tblTempVendorCDR_20' ) end [2025-03-15 12:08:18] Production.INFO: ProcessCDR(1,14686039,1,1,2) [2025-03-15 12:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686039', 'tblTempUsageDetail_20' ) start [2025-03-15 12:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686039', 'tblTempUsageDetail_20' ) end [2025-03-15 12:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 12:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 12:08:21] Production.INFO: ==7060== Releasing lock... [2025-03-15 12:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 12:08:21] Production.INFO: 39.5 MB #Memory Used# [2025-03-15 12:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 09:09:05 [end_date_ymd] => 2025-03-15 12:09:05 [RateCDR] => 1 ) [2025-03-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-03-15 09:09:05' and `end` < '2025-03-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-03-15 12:09:17] Production.INFO: count ==1513 [2025-03-15 12:09:18] Production.ERROR: pbx CDR StartTime 2025-03-15 09:09:05 - End Time 2025-03-15 12:09:05 [2025-03-15 12:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 12:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686044', 'tblTempUsageDetail_20' ) start [2025-03-15 12:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686044', 'tblTempUsageDetail_20' ) end [2025-03-15 12:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686044', 'tblTempVendorCDR_20' ) start [2025-03-15 12:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686044', 'tblTempVendorCDR_20' ) end [2025-03-15 12:09:18] Production.INFO: ProcessCDR(1,14686044,1,1,2) [2025-03-15 12:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686044', 'tblTempUsageDetail_20' ) start [2025-03-15 12:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686044', 'tblTempUsageDetail_20' ) end [2025-03-15 12:09:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 12:09:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 12:09:22] Production.INFO: ==7131== Releasing lock... [2025-03-15 12:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 12:09:22] Production.INFO: 39.5 MB #Memory Used# [2025-03-15 12:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 09:10:05 [end_date_ymd] => 2025-03-15 12:10:05 [RateCDR] => 1 ) [2025-03-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-03-15 09:10:05' and `end` < '2025-03-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-03-15 12:10:18] Production.INFO: count ==1502 [2025-03-15 12:10:18] Production.ERROR: pbx CDR StartTime 2025-03-15 09:10:05 - End Time 2025-03-15 12:10:05 [2025-03-15 12:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 12:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686050', 'tblTempUsageDetail_20' ) start [2025-03-15 12:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686050', 'tblTempUsageDetail_20' ) end [2025-03-15 12:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686050', 'tblTempVendorCDR_20' ) start [2025-03-15 12:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686050', 'tblTempVendorCDR_20' ) end [2025-03-15 12:10:18] Production.INFO: ProcessCDR(1,14686050,1,1,2) [2025-03-15 12:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686050', 'tblTempUsageDetail_20' ) start [2025-03-15 12:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686050', 'tblTempUsageDetail_20' ) end [2025-03-15 12:10:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 12:10:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 12:10:21] Production.INFO: ==7209== Releasing lock... [2025-03-15 12:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 12:10:21] Production.INFO: 39.5 MB #Memory Used# [2025-03-15 12:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 09:11:05 [end_date_ymd] => 2025-03-15 12:11:05 [RateCDR] => 1 ) [2025-03-15 12:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 09:11:05' and `end` < '2025-03-15 12:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 12:11:17] Production.INFO: count ==1510 [2025-03-15 12:11:18] Production.ERROR: pbx CDR StartTime 2025-03-15 09:11:05 - End Time 2025-03-15 12:11:05 [2025-03-15 12:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 12:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686055', 'tblTempUsageDetail_20' ) start [2025-03-15 12:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686055', 'tblTempUsageDetail_20' ) end [2025-03-15 12:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686055', 'tblTempVendorCDR_20' ) start [2025-03-15 12:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686055', 'tblTempVendorCDR_20' ) end [2025-03-15 12:11:18] Production.INFO: ProcessCDR(1,14686055,1,1,2) [2025-03-15 12:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686055', 'tblTempUsageDetail_20' ) start [2025-03-15 12:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686055', 'tblTempUsageDetail_20' ) end [2025-03-15 12:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 12:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 12:11:21] Production.INFO: ==7285== Releasing lock... [2025-03-15 12:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 12:11:21] Production.INFO: 39.5 MB #Memory Used# [2025-03-15 12:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 09:12:04 [end_date_ymd] => 2025-03-15 12:12:04 [RateCDR] => 1 ) [2025-03-15 12: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-03-15 09:12:04' and `end` < '2025-03-15 12: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-03-15 12:12:17] Production.INFO: count ==1512 [2025-03-15 12:12:17] Production.ERROR: pbx CDR StartTime 2025-03-15 09:12:04 - End Time 2025-03-15 12:12:04 [2025-03-15 12:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 12:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686060', 'tblTempUsageDetail_20' ) start [2025-03-15 12:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686060', 'tblTempUsageDetail_20' ) end [2025-03-15 12:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686060', 'tblTempVendorCDR_20' ) start [2025-03-15 12:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686060', 'tblTempVendorCDR_20' ) end [2025-03-15 12:12:17] Production.INFO: ProcessCDR(1,14686060,1,1,2) [2025-03-15 12:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686060', 'tblTempUsageDetail_20' ) start [2025-03-15 12:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686060', 'tblTempUsageDetail_20' ) end [2025-03-15 12:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 12:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 12:12:21] Production.INFO: ==7401== Releasing lock... [2025-03-15 12:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 12:12:21] Production.INFO: 39.5 MB #Memory Used# [2025-03-15 12:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 09:13:05 [end_date_ymd] => 2025-03-15 12:13:05 [RateCDR] => 1 ) [2025-03-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-03-15 09:13:05' and `end` < '2025-03-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-03-15 12:13:17] Production.INFO: count ==1513 [2025-03-15 12:13:18] Production.ERROR: pbx CDR StartTime 2025-03-15 09:13:05 - End Time 2025-03-15 12:13:05 [2025-03-15 12:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 12:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686065', 'tblTempUsageDetail_20' ) start [2025-03-15 12:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686065', 'tblTempUsageDetail_20' ) end [2025-03-15 12:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686065', 'tblTempVendorCDR_20' ) start [2025-03-15 12:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686065', 'tblTempVendorCDR_20' ) end [2025-03-15 12:13:18] Production.INFO: ProcessCDR(1,14686065,1,1,2) [2025-03-15 12:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686065', 'tblTempUsageDetail_20' ) start [2025-03-15 12:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686065', 'tblTempUsageDetail_20' ) end [2025-03-15 12:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 12:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 12:13:21] Production.INFO: ==7477== Releasing lock... [2025-03-15 12:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 12:13:21] Production.INFO: 39.5 MB #Memory Used# [2025-03-15 12:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 09:14:05 [end_date_ymd] => 2025-03-15 12:14:05 [RateCDR] => 1 ) [2025-03-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-03-15 09:14:05' and `end` < '2025-03-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-03-15 12:14:17] Production.INFO: count ==1519 [2025-03-15 12:14:18] Production.ERROR: pbx CDR StartTime 2025-03-15 09:14:05 - End Time 2025-03-15 12:14:05 [2025-03-15 12:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 12:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686070', 'tblTempUsageDetail_20' ) start [2025-03-15 12:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686070', 'tblTempUsageDetail_20' ) end [2025-03-15 12:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686070', 'tblTempVendorCDR_20' ) start [2025-03-15 12:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686070', 'tblTempVendorCDR_20' ) end [2025-03-15 12:14:18] Production.INFO: ProcessCDR(1,14686070,1,1,2) [2025-03-15 12:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686070', 'tblTempUsageDetail_20' ) start [2025-03-15 12:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686070', 'tblTempUsageDetail_20' ) end [2025-03-15 12:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 12:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 12:14:21] Production.INFO: ==7554== Releasing lock... [2025-03-15 12:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 12:14:21] Production.INFO: 39.5 MB #Memory Used# [2025-03-15 12:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 09:15:05 [end_date_ymd] => 2025-03-15 12:15:05 [RateCDR] => 1 ) [2025-03-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-03-15 09:15:05' and `end` < '2025-03-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-03-15 12:15:18] Production.INFO: count ==1523 [2025-03-15 12:15:18] Production.ERROR: pbx CDR StartTime 2025-03-15 09:15:05 - End Time 2025-03-15 12:15:05 [2025-03-15 12:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 12:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686075', 'tblTempUsageDetail_20' ) start [2025-03-15 12:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686075', 'tblTempUsageDetail_20' ) end [2025-03-15 12:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686075', 'tblTempVendorCDR_20' ) start [2025-03-15 12:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686075', 'tblTempVendorCDR_20' ) end [2025-03-15 12:15:18] Production.INFO: ProcessCDR(1,14686075,1,1,2) [2025-03-15 12:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686075', 'tblTempUsageDetail_20' ) start [2025-03-15 12:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686075', 'tblTempUsageDetail_20' ) end [2025-03-15 12:15:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 12:15:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 12:15:23] Production.INFO: ==7628== Releasing lock... [2025-03-15 12:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 12:15:23] Production.INFO: 39.5 MB #Memory Used# [2025-03-15 12:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 09:16:06 [end_date_ymd] => 2025-03-15 12:16:06 [RateCDR] => 1 ) [2025-03-15 12:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 09:16:06' and `end` < '2025-03-15 12:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 12:16:18] Production.INFO: count ==1524 [2025-03-15 12:16:19] Production.ERROR: pbx CDR StartTime 2025-03-15 09:16:06 - End Time 2025-03-15 12:16:06 [2025-03-15 12:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 12:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686080', 'tblTempUsageDetail_20' ) start [2025-03-15 12:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686080', 'tblTempUsageDetail_20' ) end [2025-03-15 12:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686080', 'tblTempVendorCDR_20' ) start [2025-03-15 12:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686080', 'tblTempVendorCDR_20' ) end [2025-03-15 12:16:19] Production.INFO: ProcessCDR(1,14686080,1,1,2) [2025-03-15 12:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686080', 'tblTempUsageDetail_20' ) start [2025-03-15 12:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686080', 'tblTempUsageDetail_20' ) end [2025-03-15 12:16:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 12:16:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 12:16:22] Production.INFO: ==7707== Releasing lock... [2025-03-15 12:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 12:16:22] Production.INFO: 39.5 MB #Memory Used# [2025-03-15 12:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 09:17:05 [end_date_ymd] => 2025-03-15 12:17:05 [RateCDR] => 1 ) [2025-03-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-03-15 09:17:05' and `end` < '2025-03-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-03-15 12:17:18] Production.INFO: count ==1531 [2025-03-15 12:17:18] Production.ERROR: pbx CDR StartTime 2025-03-15 09:17:05 - End Time 2025-03-15 12:17:05 [2025-03-15 12:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 12:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686085', 'tblTempUsageDetail_20' ) start [2025-03-15 12:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686085', 'tblTempUsageDetail_20' ) end [2025-03-15 12:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686085', 'tblTempVendorCDR_20' ) start [2025-03-15 12:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686085', 'tblTempVendorCDR_20' ) end [2025-03-15 12:17:18] Production.INFO: ProcessCDR(1,14686085,1,1,2) [2025-03-15 12:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686085', 'tblTempUsageDetail_20' ) start [2025-03-15 12:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686085', 'tblTempUsageDetail_20' ) end [2025-03-15 12:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 12:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 12:17:22] Production.INFO: ==7782== Releasing lock... [2025-03-15 12:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 12:17:22] Production.INFO: 39.75 MB #Memory Used# [2025-03-15 12:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 09:18:06 [end_date_ymd] => 2025-03-15 12:18:06 [RateCDR] => 1 ) [2025-03-15 12:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 09:18:06' and `end` < '2025-03-15 12:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 12:18:18] Production.INFO: count ==1526 [2025-03-15 12:18:18] Production.ERROR: pbx CDR StartTime 2025-03-15 09:18:06 - End Time 2025-03-15 12:18:06 [2025-03-15 12:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 12:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686090', 'tblTempUsageDetail_20' ) start [2025-03-15 12:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686090', 'tblTempUsageDetail_20' ) end [2025-03-15 12:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686090', 'tblTempVendorCDR_20' ) start [2025-03-15 12:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686090', 'tblTempVendorCDR_20' ) end [2025-03-15 12:18:18] Production.INFO: ProcessCDR(1,14686090,1,1,2) [2025-03-15 12:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686090', 'tblTempUsageDetail_20' ) start [2025-03-15 12:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686090', 'tblTempUsageDetail_20' ) end [2025-03-15 12:18:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 12:18:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 12:18:22] Production.INFO: ==7863== Releasing lock... [2025-03-15 12:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 12:18:22] Production.INFO: 39.5 MB #Memory Used# [2025-03-15 12:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 09:19:05 [end_date_ymd] => 2025-03-15 12:19:05 [RateCDR] => 1 ) [2025-03-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-03-15 09:19:05' and `end` < '2025-03-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-03-15 12:19:17] Production.INFO: count ==1524 [2025-03-15 12:19:18] Production.ERROR: pbx CDR StartTime 2025-03-15 09:19:05 - End Time 2025-03-15 12:19:05 [2025-03-15 12:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 12:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686095', 'tblTempUsageDetail_20' ) start [2025-03-15 12:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686095', 'tblTempUsageDetail_20' ) end [2025-03-15 12:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686095', 'tblTempVendorCDR_20' ) start [2025-03-15 12:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686095', 'tblTempVendorCDR_20' ) end [2025-03-15 12:19:18] Production.INFO: ProcessCDR(1,14686095,1,1,2) [2025-03-15 12:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686095', 'tblTempUsageDetail_20' ) start [2025-03-15 12:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686095', 'tblTempUsageDetail_20' ) end [2025-03-15 12:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 12:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 12:19:21] Production.INFO: ==7958== Releasing lock... [2025-03-15 12:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 12:19:21] Production.INFO: 39.5 MB #Memory Used# [2025-03-15 12:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 09:20:06 [end_date_ymd] => 2025-03-15 12:20:06 [RateCDR] => 1 ) [2025-03-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-03-15 09:20:06' and `end` < '2025-03-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-03-15 12:20:18] Production.INFO: count ==1529 [2025-03-15 12:20:19] Production.ERROR: pbx CDR StartTime 2025-03-15 09:20:06 - End Time 2025-03-15 12:20:06 [2025-03-15 12:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 12:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686101', 'tblTempUsageDetail_20' ) start [2025-03-15 12:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686101', 'tblTempUsageDetail_20' ) end [2025-03-15 12:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686101', 'tblTempVendorCDR_20' ) start [2025-03-15 12:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686101', 'tblTempVendorCDR_20' ) end [2025-03-15 12:20:19] Production.INFO: ProcessCDR(1,14686101,1,1,2) [2025-03-15 12:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686101', 'tblTempUsageDetail_20' ) start [2025-03-15 12:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686101', 'tblTempUsageDetail_20' ) end [2025-03-15 12:20:24] Production.ERROR: pbx prc_insertCDR start [2025-03-15 12:20:24] Production.ERROR: pbx prc_insertCDR end [2025-03-15 12:20:24] Production.INFO: ==8033== Releasing lock... [2025-03-15 12:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 12:20:24] Production.INFO: 39.5 MB #Memory Used# [2025-03-15 12:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 09:21:05 [end_date_ymd] => 2025-03-15 12:21:05 [RateCDR] => 1 ) [2025-03-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-03-15 09:21:05' and `end` < '2025-03-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-03-15 12:21:18] Production.INFO: count ==1565 [2025-03-15 12:21:18] Production.ERROR: pbx CDR StartTime 2025-03-15 09:21:05 - End Time 2025-03-15 12:21:05 [2025-03-15 12:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 12:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686106', 'tblTempUsageDetail_20' ) start [2025-03-15 12:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686106', 'tblTempUsageDetail_20' ) end [2025-03-15 12:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686106', 'tblTempVendorCDR_20' ) start [2025-03-15 12:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686106', 'tblTempVendorCDR_20' ) end [2025-03-15 12:21:18] Production.INFO: ProcessCDR(1,14686106,1,1,2) [2025-03-15 12:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686106', 'tblTempUsageDetail_20' ) start [2025-03-15 12:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686106', 'tblTempUsageDetail_20' ) end [2025-03-15 12:21:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 12:21:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 12:21:23] Production.INFO: ==8108== Releasing lock... [2025-03-15 12:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 12:21:23] Production.INFO: 40 MB #Memory Used# [2025-03-15 12:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 09:22:05 [end_date_ymd] => 2025-03-15 12:22:05 [RateCDR] => 1 ) [2025-03-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-03-15 09:22:05' and `end` < '2025-03-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-03-15 12:22:18] Production.INFO: count ==1561 [2025-03-15 12:22:18] Production.ERROR: pbx CDR StartTime 2025-03-15 09:22:05 - End Time 2025-03-15 12:22:05 [2025-03-15 12:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 12:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686111', 'tblTempUsageDetail_20' ) start [2025-03-15 12:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686111', 'tblTempUsageDetail_20' ) end [2025-03-15 12:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686111', 'tblTempVendorCDR_20' ) start [2025-03-15 12:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686111', 'tblTempVendorCDR_20' ) end [2025-03-15 12:22:18] Production.INFO: ProcessCDR(1,14686111,1,1,2) [2025-03-15 12:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686111', 'tblTempUsageDetail_20' ) start [2025-03-15 12:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686111', 'tblTempUsageDetail_20' ) end [2025-03-15 12:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 12:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 12:22:21] Production.INFO: ==8181== Releasing lock... [2025-03-15 12:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 12:22:21] Production.INFO: 39.75 MB #Memory Used# [2025-03-15 12:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 09:23:05 [end_date_ymd] => 2025-03-15 12:23:05 [RateCDR] => 1 ) [2025-03-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-03-15 09:23:05' and `end` < '2025-03-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-03-15 12:23:17] Production.INFO: count ==1554 [2025-03-15 12:23:18] Production.ERROR: pbx CDR StartTime 2025-03-15 09:23:05 - End Time 2025-03-15 12:23:05 [2025-03-15 12:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 12:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686116', 'tblTempUsageDetail_20' ) start [2025-03-15 12:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686116', 'tblTempUsageDetail_20' ) end [2025-03-15 12:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686116', 'tblTempVendorCDR_20' ) start [2025-03-15 12:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686116', 'tblTempVendorCDR_20' ) end [2025-03-15 12:23:18] Production.INFO: ProcessCDR(1,14686116,1,1,2) [2025-03-15 12:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686116', 'tblTempUsageDetail_20' ) start [2025-03-15 12:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686116', 'tblTempUsageDetail_20' ) end [2025-03-15 12:23:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 12:23:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 12:23:22] Production.INFO: ==8256== Releasing lock... [2025-03-15 12:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 12:23:22] Production.INFO: 40 MB #Memory Used# [2025-03-15 12:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 09:24:05 [end_date_ymd] => 2025-03-15 12:24:05 [RateCDR] => 1 ) [2025-03-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-03-15 09:24:05' and `end` < '2025-03-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-03-15 12:24:18] Production.INFO: count ==1543 [2025-03-15 12:24:18] Production.ERROR: pbx CDR StartTime 2025-03-15 09:24:05 - End Time 2025-03-15 12:24:05 [2025-03-15 12:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 12:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686121', 'tblTempUsageDetail_20' ) start [2025-03-15 12:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686121', 'tblTempUsageDetail_20' ) end [2025-03-15 12:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686121', 'tblTempVendorCDR_20' ) start [2025-03-15 12:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686121', 'tblTempVendorCDR_20' ) end [2025-03-15 12:24:18] Production.INFO: ProcessCDR(1,14686121,1,1,2) [2025-03-15 12:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686121', 'tblTempUsageDetail_20' ) start [2025-03-15 12:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686121', 'tblTempUsageDetail_20' ) end [2025-03-15 12:24:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 12:24:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 12:24:23] Production.INFO: ==8330== Releasing lock... [2025-03-15 12:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 12:24:23] Production.INFO: 39.5 MB #Memory Used# [2025-03-15 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 09:25:05 [end_date_ymd] => 2025-03-15 12:25:05 [RateCDR] => 1 ) [2025-03-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-03-15 09:25:05' and `end` < '2025-03-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-03-15 12:25:17] Production.INFO: count ==1542 [2025-03-15 12:25:18] Production.ERROR: pbx CDR StartTime 2025-03-15 09:25:05 - End Time 2025-03-15 12:25:05 [2025-03-15 12:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686126', 'tblTempUsageDetail_20' ) start [2025-03-15 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686126', 'tblTempUsageDetail_20' ) end [2025-03-15 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686126', 'tblTempVendorCDR_20' ) start [2025-03-15 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686126', 'tblTempVendorCDR_20' ) end [2025-03-15 12:25:18] Production.INFO: ProcessCDR(1,14686126,1,1,2) [2025-03-15 12:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686126', 'tblTempUsageDetail_20' ) start [2025-03-15 12:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686126', 'tblTempUsageDetail_20' ) end [2025-03-15 12:25:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 12:25:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 12:25:23] Production.INFO: ==8400== Releasing lock... [2025-03-15 12:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 12:25:23] Production.INFO: 39.75 MB #Memory Used# [2025-03-15 12:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 09:26:05 [end_date_ymd] => 2025-03-15 12:26:05 [RateCDR] => 1 ) [2025-03-15 12:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 09:26:05' and `end` < '2025-03-15 12:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 12:26:18] Production.INFO: count ==1538 [2025-03-15 12:26:18] Production.ERROR: pbx CDR StartTime 2025-03-15 09:26:05 - End Time 2025-03-15 12:26:05 [2025-03-15 12:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 12:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686131', 'tblTempUsageDetail_20' ) start [2025-03-15 12:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686131', 'tblTempUsageDetail_20' ) end [2025-03-15 12:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686131', 'tblTempVendorCDR_20' ) start [2025-03-15 12:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686131', 'tblTempVendorCDR_20' ) end [2025-03-15 12:26:18] Production.INFO: ProcessCDR(1,14686131,1,1,2) [2025-03-15 12:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686131', 'tblTempUsageDetail_20' ) start [2025-03-15 12:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686131', 'tblTempUsageDetail_20' ) end [2025-03-15 12:26:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 12:26:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 12:26:22] Production.INFO: ==8475== Releasing lock... [2025-03-15 12:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 12:26:22] Production.INFO: 39.5 MB #Memory Used# [2025-03-15 12:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 09:27:05 [end_date_ymd] => 2025-03-15 12:27:05 [RateCDR] => 1 ) [2025-03-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-03-15 09:27:05' and `end` < '2025-03-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-03-15 12:27:17] Production.INFO: count ==1545 [2025-03-15 12:27:18] Production.ERROR: pbx CDR StartTime 2025-03-15 09:27:05 - End Time 2025-03-15 12:27:05 [2025-03-15 12:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 12:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686136', 'tblTempUsageDetail_20' ) start [2025-03-15 12:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686136', 'tblTempUsageDetail_20' ) end [2025-03-15 12:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686136', 'tblTempVendorCDR_20' ) start [2025-03-15 12:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686136', 'tblTempVendorCDR_20' ) end [2025-03-15 12:27:18] Production.INFO: ProcessCDR(1,14686136,1,1,2) [2025-03-15 12:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686136', 'tblTempUsageDetail_20' ) start [2025-03-15 12:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686136', 'tblTempUsageDetail_20' ) end [2025-03-15 12:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 12:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 12:27:21] Production.INFO: ==8587== Releasing lock... [2025-03-15 12:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 12:27:21] Production.INFO: 39.75 MB #Memory Used# [2025-03-15 12:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 09:28:05 [end_date_ymd] => 2025-03-15 12:28:05 [RateCDR] => 1 ) [2025-03-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-03-15 09:28:05' and `end` < '2025-03-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-03-15 12:28:17] Production.INFO: count ==1532 [2025-03-15 12:28:18] Production.ERROR: pbx CDR StartTime 2025-03-15 09:28:05 - End Time 2025-03-15 12:28:05 [2025-03-15 12:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 12:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686141', 'tblTempUsageDetail_20' ) start [2025-03-15 12:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686141', 'tblTempUsageDetail_20' ) end [2025-03-15 12:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686141', 'tblTempVendorCDR_20' ) start [2025-03-15 12:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686141', 'tblTempVendorCDR_20' ) end [2025-03-15 12:28:18] Production.INFO: ProcessCDR(1,14686141,1,1,2) [2025-03-15 12:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686141', 'tblTempUsageDetail_20' ) start [2025-03-15 12:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686141', 'tblTempUsageDetail_20' ) end [2025-03-15 12:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 12:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 12:28:21] Production.INFO: ==8661== Releasing lock... [2025-03-15 12:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 12:28:21] Production.INFO: 39.5 MB #Memory Used# [2025-03-15 12:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 09:29:05 [end_date_ymd] => 2025-03-15 12:29:05 [RateCDR] => 1 ) [2025-03-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-03-15 09:29:05' and `end` < '2025-03-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-03-15 12:29:17] Production.INFO: count ==1533 [2025-03-15 12:29:18] Production.ERROR: pbx CDR StartTime 2025-03-15 09:29:05 - End Time 2025-03-15 12:29:05 [2025-03-15 12:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 12:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686146', 'tblTempUsageDetail_20' ) start [2025-03-15 12:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686146', 'tblTempUsageDetail_20' ) end [2025-03-15 12:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686146', 'tblTempVendorCDR_20' ) start [2025-03-15 12:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686146', 'tblTempVendorCDR_20' ) end [2025-03-15 12:29:18] Production.INFO: ProcessCDR(1,14686146,1,1,2) [2025-03-15 12:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686146', 'tblTempUsageDetail_20' ) start [2025-03-15 12:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686146', 'tblTempUsageDetail_20' ) end [2025-03-15 12:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 12:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 12:29:21] Production.INFO: ==8733== Releasing lock... [2025-03-15 12:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 12:29:21] Production.INFO: 39.5 MB #Memory Used# [2025-03-15 12:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 09:30:06 [end_date_ymd] => 2025-03-15 12:30:06 [RateCDR] => 1 ) [2025-03-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-03-15 09:30:06' and `end` < '2025-03-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-03-15 12:30:18] Production.INFO: count ==1533 [2025-03-15 12:30:19] Production.ERROR: pbx CDR StartTime 2025-03-15 09:30:06 - End Time 2025-03-15 12:30:06 [2025-03-15 12:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 12:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686152', 'tblTempUsageDetail_20' ) start [2025-03-15 12:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686152', 'tblTempUsageDetail_20' ) end [2025-03-15 12:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686152', 'tblTempVendorCDR_20' ) start [2025-03-15 12:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686152', 'tblTempVendorCDR_20' ) end [2025-03-15 12:30:19] Production.INFO: ProcessCDR(1,14686152,1,1,2) [2025-03-15 12:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686152', 'tblTempUsageDetail_20' ) start [2025-03-15 12:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686152', 'tblTempUsageDetail_20' ) end [2025-03-15 12:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 12:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 12:30:22] Production.INFO: ==8809== Releasing lock... [2025-03-15 12:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 12:30:22] Production.INFO: 39.5 MB #Memory Used# [2025-03-15 12:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 09:31:05 [end_date_ymd] => 2025-03-15 12:31:05 [RateCDR] => 1 ) [2025-03-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-03-15 09:31:05' and `end` < '2025-03-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-03-15 12:31:18] Production.INFO: count ==1574 [2025-03-15 12:31:18] Production.ERROR: pbx CDR StartTime 2025-03-15 09:31:05 - End Time 2025-03-15 12:31:05 [2025-03-15 12:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 12:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686157', 'tblTempUsageDetail_20' ) start [2025-03-15 12:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686157', 'tblTempUsageDetail_20' ) end [2025-03-15 12:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686157', 'tblTempVendorCDR_20' ) start [2025-03-15 12:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686157', 'tblTempVendorCDR_20' ) end [2025-03-15 12:31:18] Production.INFO: ProcessCDR(1,14686157,1,1,2) [2025-03-15 12:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686157', 'tblTempUsageDetail_20' ) start [2025-03-15 12:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686157', 'tblTempUsageDetail_20' ) end [2025-03-15 12:31:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 12:31:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 12:31:23] Production.INFO: ==8884== Releasing lock... [2025-03-15 12:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 12:31:23] Production.INFO: 40 MB #Memory Used# [2025-03-15 12:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 09:32:05 [end_date_ymd] => 2025-03-15 12:32:05 [RateCDR] => 1 ) [2025-03-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-03-15 09:32:05' and `end` < '2025-03-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-03-15 12:32:18] Production.INFO: count ==1590 [2025-03-15 12:32:18] Production.ERROR: pbx CDR StartTime 2025-03-15 09:32:05 - End Time 2025-03-15 12:32:05 [2025-03-15 12:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 12:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686162', 'tblTempUsageDetail_20' ) start [2025-03-15 12:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686162', 'tblTempUsageDetail_20' ) end [2025-03-15 12:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686162', 'tblTempVendorCDR_20' ) start [2025-03-15 12:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686162', 'tblTempVendorCDR_20' ) end [2025-03-15 12:32:18] Production.INFO: ProcessCDR(1,14686162,1,1,2) [2025-03-15 12:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686162', 'tblTempUsageDetail_20' ) start [2025-03-15 12:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686162', 'tblTempUsageDetail_20' ) end [2025-03-15 12:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 12:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 12:32:22] Production.INFO: ==8955== Releasing lock... [2025-03-15 12:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 12:32:22] Production.INFO: 40 MB #Memory Used# [2025-03-15 12:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 09:33:05 [end_date_ymd] => 2025-03-15 12:33:05 [RateCDR] => 1 ) [2025-03-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-03-15 09:33:05' and `end` < '2025-03-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-03-15 12:33:17] Production.INFO: count ==1590 [2025-03-15 12:33:18] Production.ERROR: pbx CDR StartTime 2025-03-15 09:33:05 - End Time 2025-03-15 12:33:05 [2025-03-15 12:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 12:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686167', 'tblTempUsageDetail_20' ) start [2025-03-15 12:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686167', 'tblTempUsageDetail_20' ) end [2025-03-15 12:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686167', 'tblTempVendorCDR_20' ) start [2025-03-15 12:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686167', 'tblTempVendorCDR_20' ) end [2025-03-15 12:33:18] Production.INFO: ProcessCDR(1,14686167,1,1,2) [2025-03-15 12:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686167', 'tblTempUsageDetail_20' ) start [2025-03-15 12:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686167', 'tblTempUsageDetail_20' ) end [2025-03-15 12:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 12:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 12:33:21] Production.INFO: ==9028== Releasing lock... [2025-03-15 12:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 12:33:21] Production.INFO: 40 MB #Memory Used# [2025-03-15 12:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 09:34:05 [end_date_ymd] => 2025-03-15 12:34:05 [RateCDR] => 1 ) [2025-03-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-03-15 09:34:05' and `end` < '2025-03-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-03-15 12:34:17] Production.INFO: count ==1586 [2025-03-15 12:34:18] Production.ERROR: pbx CDR StartTime 2025-03-15 09:34:05 - End Time 2025-03-15 12:34:05 [2025-03-15 12:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 12:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686172', 'tblTempUsageDetail_20' ) start [2025-03-15 12:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686172', 'tblTempUsageDetail_20' ) end [2025-03-15 12:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686172', 'tblTempVendorCDR_20' ) start [2025-03-15 12:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686172', 'tblTempVendorCDR_20' ) end [2025-03-15 12:34:18] Production.INFO: ProcessCDR(1,14686172,1,1,2) [2025-03-15 12:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686172', 'tblTempUsageDetail_20' ) start [2025-03-15 12:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686172', 'tblTempUsageDetail_20' ) end [2025-03-15 12:34:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 12:34:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 12:34:23] Production.INFO: ==9102== Releasing lock... [2025-03-15 12:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 12:34:23] Production.INFO: 40 MB #Memory Used# [2025-03-15 12:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 09:35:05 [end_date_ymd] => 2025-03-15 12:35:05 [RateCDR] => 1 ) [2025-03-15 12:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 09:35:05' and `end` < '2025-03-15 12:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 12:35:18] Production.INFO: count ==1605 [2025-03-15 12:35:18] Production.ERROR: pbx CDR StartTime 2025-03-15 09:35:05 - End Time 2025-03-15 12:35:05 [2025-03-15 12:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 12:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686177', 'tblTempUsageDetail_20' ) start [2025-03-15 12:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686177', 'tblTempUsageDetail_20' ) end [2025-03-15 12:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686177', 'tblTempVendorCDR_20' ) start [2025-03-15 12:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686177', 'tblTempVendorCDR_20' ) end [2025-03-15 12:35:18] Production.INFO: ProcessCDR(1,14686177,1,1,2) [2025-03-15 12:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686177', 'tblTempUsageDetail_20' ) start [2025-03-15 12:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686177', 'tblTempUsageDetail_20' ) end [2025-03-15 12:35:24] Production.ERROR: pbx prc_insertCDR start [2025-03-15 12:35:24] Production.ERROR: pbx prc_insertCDR end [2025-03-15 12:35:24] Production.INFO: ==9178== Releasing lock... [2025-03-15 12:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 12:35:24] Production.INFO: 40 MB #Memory Used# [2025-03-15 12:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 09:36:05 [end_date_ymd] => 2025-03-15 12:36:05 [RateCDR] => 1 ) [2025-03-15 12:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 09:36:05' and `end` < '2025-03-15 12:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 12:36:17] Production.INFO: count ==1613 [2025-03-15 12:36:18] Production.ERROR: pbx CDR StartTime 2025-03-15 09:36:05 - End Time 2025-03-15 12:36:05 [2025-03-15 12:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 12:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686182', 'tblTempUsageDetail_20' ) start [2025-03-15 12:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686182', 'tblTempUsageDetail_20' ) end [2025-03-15 12:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686182', 'tblTempVendorCDR_20' ) start [2025-03-15 12:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686182', 'tblTempVendorCDR_20' ) end [2025-03-15 12:36:18] Production.INFO: ProcessCDR(1,14686182,1,1,2) [2025-03-15 12:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686182', 'tblTempUsageDetail_20' ) start [2025-03-15 12:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686182', 'tblTempUsageDetail_20' ) end [2025-03-15 12:36:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 12:36:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 12:36:23] Production.INFO: ==9248== Releasing lock... [2025-03-15 12:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 12:36:23] Production.INFO: 40.25 MB #Memory Used# [2025-03-15 12:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 09:37:05 [end_date_ymd] => 2025-03-15 12:37:05 [RateCDR] => 1 ) [2025-03-15 12:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 09:37:05' and `end` < '2025-03-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-03-15 12:37:18] Production.INFO: count ==1612 [2025-03-15 12:37:18] Production.ERROR: pbx CDR StartTime 2025-03-15 09:37:05 - End Time 2025-03-15 12:37:05 [2025-03-15 12:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 12:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686187', 'tblTempUsageDetail_20' ) start [2025-03-15 12:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686187', 'tblTempUsageDetail_20' ) end [2025-03-15 12:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686187', 'tblTempVendorCDR_20' ) start [2025-03-15 12:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686187', 'tblTempVendorCDR_20' ) end [2025-03-15 12:37:18] Production.INFO: ProcessCDR(1,14686187,1,1,2) [2025-03-15 12:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686187', 'tblTempUsageDetail_20' ) start [2025-03-15 12:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686187', 'tblTempUsageDetail_20' ) end [2025-03-15 12:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 12:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 12:37:22] Production.INFO: ==9327== Releasing lock... [2025-03-15 12:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 12:37:22] Production.INFO: 40.25 MB #Memory Used# [2025-03-15 12:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 09:38:05 [end_date_ymd] => 2025-03-15 12:38:05 [RateCDR] => 1 ) [2025-03-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-03-15 09:38:05' and `end` < '2025-03-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-03-15 12:38:17] Production.INFO: count ==1616 [2025-03-15 12:38:18] Production.ERROR: pbx CDR StartTime 2025-03-15 09:38:05 - End Time 2025-03-15 12:38:05 [2025-03-15 12:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 12:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686192', 'tblTempUsageDetail_20' ) start [2025-03-15 12:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686192', 'tblTempUsageDetail_20' ) end [2025-03-15 12:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686192', 'tblTempVendorCDR_20' ) start [2025-03-15 12:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686192', 'tblTempVendorCDR_20' ) end [2025-03-15 12:38:18] Production.INFO: ProcessCDR(1,14686192,1,1,2) [2025-03-15 12:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686192', 'tblTempUsageDetail_20' ) start [2025-03-15 12:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686192', 'tblTempUsageDetail_20' ) end [2025-03-15 12:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 12:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 12:38:21] Production.INFO: ==9401== Releasing lock... [2025-03-15 12:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 12:38:21] Production.INFO: 40.25 MB #Memory Used# [2025-03-15 12:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 09:39:05 [end_date_ymd] => 2025-03-15 12:39:05 [RateCDR] => 1 ) [2025-03-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-03-15 09:39:05' and `end` < '2025-03-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-03-15 12:39:17] Production.INFO: count ==1616 [2025-03-15 12:39:18] Production.ERROR: pbx CDR StartTime 2025-03-15 09:39:05 - End Time 2025-03-15 12:39:05 [2025-03-15 12:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 12:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686197', 'tblTempUsageDetail_20' ) start [2025-03-15 12:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686197', 'tblTempUsageDetail_20' ) end [2025-03-15 12:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686197', 'tblTempVendorCDR_20' ) start [2025-03-15 12:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686197', 'tblTempVendorCDR_20' ) end [2025-03-15 12:39:18] Production.INFO: ProcessCDR(1,14686197,1,1,2) [2025-03-15 12:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686197', 'tblTempUsageDetail_20' ) start [2025-03-15 12:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686197', 'tblTempUsageDetail_20' ) end [2025-03-15 12:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 12:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 12:39:21] Production.INFO: ==9487== Releasing lock... [2025-03-15 12:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 12:39:21] Production.INFO: 40.25 MB #Memory Used# [2025-03-15 12:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 09:40:05 [end_date_ymd] => 2025-03-15 12:40:05 [RateCDR] => 1 ) [2025-03-15 12:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 09:40:05' and `end` < '2025-03-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-03-15 12:40:18] Production.INFO: count ==1638 [2025-03-15 12:40:19] Production.ERROR: pbx CDR StartTime 2025-03-15 09:40:05 - End Time 2025-03-15 12:40:05 [2025-03-15 12:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 12:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686203', 'tblTempUsageDetail_20' ) start [2025-03-15 12:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686203', 'tblTempUsageDetail_20' ) end [2025-03-15 12:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686203', 'tblTempVendorCDR_20' ) start [2025-03-15 12:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686203', 'tblTempVendorCDR_20' ) end [2025-03-15 12:40:19] Production.INFO: ProcessCDR(1,14686203,1,1,2) [2025-03-15 12:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686203', 'tblTempUsageDetail_20' ) start [2025-03-15 12:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686203', 'tblTempUsageDetail_20' ) end [2025-03-15 12:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 12:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 12:40:22] Production.INFO: ==9567== Releasing lock... [2025-03-15 12:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 12:40:22] Production.INFO: 40.25 MB #Memory Used# [2025-03-15 12:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 09:41:05 [end_date_ymd] => 2025-03-15 12:41:05 [RateCDR] => 1 ) [2025-03-15 12:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 09:41:05' and `end` < '2025-03-15 12:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 12:41:18] Production.INFO: count ==1691 [2025-03-15 12:41:19] Production.ERROR: pbx CDR StartTime 2025-03-15 09:41:05 - End Time 2025-03-15 12:41:05 [2025-03-15 12:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 12:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686208', 'tblTempUsageDetail_20' ) start [2025-03-15 12:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686208', 'tblTempUsageDetail_20' ) end [2025-03-15 12:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686208', 'tblTempVendorCDR_20' ) start [2025-03-15 12:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686208', 'tblTempVendorCDR_20' ) end [2025-03-15 12:41:19] Production.INFO: ProcessCDR(1,14686208,1,1,2) [2025-03-15 12:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686208', 'tblTempUsageDetail_20' ) start [2025-03-15 12:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686208', 'tblTempUsageDetail_20' ) end [2025-03-15 12:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 12:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 12:41:22] Production.INFO: ==9649== Releasing lock... [2025-03-15 12:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 12:41:22] Production.INFO: 40.75 MB #Memory Used# [2025-03-15 12:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 09:42:05 [end_date_ymd] => 2025-03-15 12:42:05 [RateCDR] => 1 ) [2025-03-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-03-15 09:42:05' and `end` < '2025-03-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-03-15 12:42:17] Production.INFO: count ==1709 [2025-03-15 12:42:18] Production.ERROR: pbx CDR StartTime 2025-03-15 09:42:05 - End Time 2025-03-15 12:42:05 [2025-03-15 12:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 12:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686213', 'tblTempUsageDetail_20' ) start [2025-03-15 12:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686213', 'tblTempUsageDetail_20' ) end [2025-03-15 12:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686213', 'tblTempVendorCDR_20' ) start [2025-03-15 12:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686213', 'tblTempVendorCDR_20' ) end [2025-03-15 12:42:18] Production.INFO: ProcessCDR(1,14686213,1,1,2) [2025-03-15 12:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686213', 'tblTempUsageDetail_20' ) start [2025-03-15 12:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686213', 'tblTempUsageDetail_20' ) end [2025-03-15 12:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 12:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 12:42:21] Production.INFO: ==9734== Releasing lock... [2025-03-15 12:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 12:42:21] Production.INFO: 40.75 MB #Memory Used# [2025-03-15 12:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 09:43:05 [end_date_ymd] => 2025-03-15 12:43:05 [RateCDR] => 1 ) [2025-03-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-03-15 09:43:05' and `end` < '2025-03-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-03-15 12:43:17] Production.INFO: count ==1720 [2025-03-15 12:43:18] Production.ERROR: pbx CDR StartTime 2025-03-15 09:43:05 - End Time 2025-03-15 12:43:05 [2025-03-15 12:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 12:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686218', 'tblTempUsageDetail_20' ) start [2025-03-15 12:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686218', 'tblTempUsageDetail_20' ) end [2025-03-15 12:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686218', 'tblTempVendorCDR_20' ) start [2025-03-15 12:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686218', 'tblTempVendorCDR_20' ) end [2025-03-15 12:43:18] Production.INFO: ProcessCDR(1,14686218,1,1,2) [2025-03-15 12:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686218', 'tblTempUsageDetail_20' ) start [2025-03-15 12:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686218', 'tblTempUsageDetail_20' ) end [2025-03-15 12:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 12:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 12:43:21] Production.INFO: ==9846== Releasing lock... [2025-03-15 12:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 12:43:21] Production.INFO: 41 MB #Memory Used# [2025-03-15 12:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 09:44:06 [end_date_ymd] => 2025-03-15 12:44:06 [RateCDR] => 1 ) [2025-03-15 12:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 09:44:06' and `end` < '2025-03-15 12:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 12:44:18] Production.INFO: count ==1723 [2025-03-15 12:44:19] Production.ERROR: pbx CDR StartTime 2025-03-15 09:44:06 - End Time 2025-03-15 12:44:06 [2025-03-15 12:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 12:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686223', 'tblTempUsageDetail_20' ) start [2025-03-15 12:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686223', 'tblTempUsageDetail_20' ) end [2025-03-15 12:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686223', 'tblTempVendorCDR_20' ) start [2025-03-15 12:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686223', 'tblTempVendorCDR_20' ) end [2025-03-15 12:44:19] Production.INFO: ProcessCDR(1,14686223,1,1,2) [2025-03-15 12:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686223', 'tblTempUsageDetail_20' ) start [2025-03-15 12:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686223', 'tblTempUsageDetail_20' ) end [2025-03-15 12:44:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 12:44:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 12:44:23] Production.INFO: ==9920== Releasing lock... [2025-03-15 12:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 12:44:23] Production.INFO: 41.5 MB #Memory Used# [2025-03-15 12:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 09:45:05 [end_date_ymd] => 2025-03-15 12:45:05 [RateCDR] => 1 ) [2025-03-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-03-15 09:45:05' and `end` < '2025-03-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-03-15 12:45:17] Production.INFO: count ==1722 [2025-03-15 12:45:18] Production.ERROR: pbx CDR StartTime 2025-03-15 09:45:05 - End Time 2025-03-15 12:45:05 [2025-03-15 12:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 12:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686228', 'tblTempUsageDetail_20' ) start [2025-03-15 12:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686228', 'tblTempUsageDetail_20' ) end [2025-03-15 12:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686228', 'tblTempVendorCDR_20' ) start [2025-03-15 12:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686228', 'tblTempVendorCDR_20' ) end [2025-03-15 12:45:18] Production.INFO: ProcessCDR(1,14686228,1,1,2) [2025-03-15 12:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686228', 'tblTempUsageDetail_20' ) start [2025-03-15 12:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686228', 'tblTempUsageDetail_20' ) end [2025-03-15 12:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 12:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 12:45:21] Production.INFO: ==9996== Releasing lock... [2025-03-15 12:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 12:45:21] Production.INFO: 41 MB #Memory Used# [2025-03-15 12:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 09:46:05 [end_date_ymd] => 2025-03-15 12:46:05 [RateCDR] => 1 ) [2025-03-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-03-15 09:46:05' and `end` < '2025-03-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-03-15 12:46:18] Production.INFO: count ==1711 [2025-03-15 12:46:18] Production.ERROR: pbx CDR StartTime 2025-03-15 09:46:05 - End Time 2025-03-15 12:46:05 [2025-03-15 12:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 12:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686233', 'tblTempUsageDetail_20' ) start [2025-03-15 12:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686233', 'tblTempUsageDetail_20' ) end [2025-03-15 12:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686233', 'tblTempVendorCDR_20' ) start [2025-03-15 12:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686233', 'tblTempVendorCDR_20' ) end [2025-03-15 12:46:19] Production.INFO: ProcessCDR(1,14686233,1,1,2) [2025-03-15 12:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686233', 'tblTempUsageDetail_20' ) start [2025-03-15 12:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686233', 'tblTempUsageDetail_20' ) end [2025-03-15 12:46:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 12:46:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 12:46:23] Production.INFO: ==10073== Releasing lock... [2025-03-15 12:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 12:46:23] Production.INFO: 41 MB #Memory Used# [2025-03-15 12:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 09:47:05 [end_date_ymd] => 2025-03-15 12:47:05 [RateCDR] => 1 ) [2025-03-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-03-15 09:47:05' and `end` < '2025-03-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-03-15 12:47:17] Production.INFO: count ==1710 [2025-03-15 12:47:18] Production.ERROR: pbx CDR StartTime 2025-03-15 09:47:05 - End Time 2025-03-15 12:47:05 [2025-03-15 12:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 12:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686238', 'tblTempUsageDetail_20' ) start [2025-03-15 12:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686238', 'tblTempUsageDetail_20' ) end [2025-03-15 12:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686238', 'tblTempVendorCDR_20' ) start [2025-03-15 12:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686238', 'tblTempVendorCDR_20' ) end [2025-03-15 12:47:18] Production.INFO: ProcessCDR(1,14686238,1,1,2) [2025-03-15 12:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686238', 'tblTempUsageDetail_20' ) start [2025-03-15 12:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686238', 'tblTempUsageDetail_20' ) end [2025-03-15 12:47:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 12:47:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 12:47:23] Production.INFO: ==10151== Releasing lock... [2025-03-15 12:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 12:47:23] Production.INFO: 40.75 MB #Memory Used# [2025-03-15 12:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 09:48:06 [end_date_ymd] => 2025-03-15 12:48:06 [RateCDR] => 1 ) [2025-03-15 12:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 09:48:06' and `end` < '2025-03-15 12:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 12:48:18] Production.INFO: count ==1810 [2025-03-15 12:48:19] Production.ERROR: pbx CDR StartTime 2025-03-15 09:48:06 - End Time 2025-03-15 12:48:06 [2025-03-15 12:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 12:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686243', 'tblTempUsageDetail_20' ) start [2025-03-15 12:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686243', 'tblTempUsageDetail_20' ) end [2025-03-15 12:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686243', 'tblTempVendorCDR_20' ) start [2025-03-15 12:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686243', 'tblTempVendorCDR_20' ) end [2025-03-15 12:48:19] Production.INFO: ProcessCDR(1,14686243,1,1,2) [2025-03-15 12:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686243', 'tblTempUsageDetail_20' ) start [2025-03-15 12:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686243', 'tblTempUsageDetail_20' ) end [2025-03-15 12:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 12:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 12:48:22] Production.INFO: ==10228== Releasing lock... [2025-03-15 12:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 12:48:22] Production.INFO: 41.5 MB #Memory Used# [2025-03-15 12:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 09:49:05 [end_date_ymd] => 2025-03-15 12:49:05 [RateCDR] => 1 ) [2025-03-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-03-15 09:49:05' and `end` < '2025-03-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-03-15 12:49:17] Production.INFO: count ==1803 [2025-03-15 12:49:18] Production.ERROR: pbx CDR StartTime 2025-03-15 09:49:05 - End Time 2025-03-15 12:49:05 [2025-03-15 12:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 12:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686248', 'tblTempUsageDetail_20' ) start [2025-03-15 12:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686248', 'tblTempUsageDetail_20' ) end [2025-03-15 12:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686248', 'tblTempVendorCDR_20' ) start [2025-03-15 12:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686248', 'tblTempVendorCDR_20' ) end [2025-03-15 12:49:18] Production.INFO: ProcessCDR(1,14686248,1,1,2) [2025-03-15 12:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686248', 'tblTempUsageDetail_20' ) start [2025-03-15 12:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686248', 'tblTempUsageDetail_20' ) end [2025-03-15 12:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 12:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 12:49:21] Production.INFO: ==10304== Releasing lock... [2025-03-15 12:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 12:49:21] Production.INFO: 41.5 MB #Memory Used# [2025-03-15 12:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 09:50:06 [end_date_ymd] => 2025-03-15 12:50:06 [RateCDR] => 1 ) [2025-03-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-03-15 09:50:06' and `end` < '2025-03-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-03-15 12:50:18] Production.INFO: count ==1803 [2025-03-15 12:50:19] Production.ERROR: pbx CDR StartTime 2025-03-15 09:50:06 - End Time 2025-03-15 12:50:06 [2025-03-15 12:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 12:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686254', 'tblTempUsageDetail_20' ) start [2025-03-15 12:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686254', 'tblTempUsageDetail_20' ) end [2025-03-15 12:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686254', 'tblTempVendorCDR_20' ) start [2025-03-15 12:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686254', 'tblTempVendorCDR_20' ) end [2025-03-15 12:50:19] Production.INFO: ProcessCDR(1,14686254,1,1,2) [2025-03-15 12:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686254', 'tblTempUsageDetail_20' ) start [2025-03-15 12:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686254', 'tblTempUsageDetail_20' ) end [2025-03-15 12:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 12:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 12:50:22] Production.INFO: ==10384== Releasing lock... [2025-03-15 12:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 12:50:22] Production.INFO: 41.5 MB #Memory Used# [2025-03-15 12:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 09:51:05 [end_date_ymd] => 2025-03-15 12:51:05 [RateCDR] => 1 ) [2025-03-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-03-15 09:51:05' and `end` < '2025-03-15 12:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 12:51:17] Production.INFO: count ==1809 [2025-03-15 12:51:18] Production.ERROR: pbx CDR StartTime 2025-03-15 09:51:05 - End Time 2025-03-15 12:51:05 [2025-03-15 12:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 12:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686259', 'tblTempUsageDetail_20' ) start [2025-03-15 12:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686259', 'tblTempUsageDetail_20' ) end [2025-03-15 12:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686259', 'tblTempVendorCDR_20' ) start [2025-03-15 12:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686259', 'tblTempVendorCDR_20' ) end [2025-03-15 12:51:18] Production.INFO: ProcessCDR(1,14686259,1,1,2) [2025-03-15 12:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686259', 'tblTempUsageDetail_20' ) start [2025-03-15 12:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686259', 'tblTempUsageDetail_20' ) end [2025-03-15 12:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 12:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 12:51:21] Production.INFO: ==10461== Releasing lock... [2025-03-15 12:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 12:51:21] Production.INFO: 41.5 MB #Memory Used# [2025-03-15 12:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 09:52:05 [end_date_ymd] => 2025-03-15 12:52:05 [RateCDR] => 1 ) [2025-03-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-03-15 09:52:05' and `end` < '2025-03-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-03-15 12:52:18] Production.INFO: count ==1829 [2025-03-15 12:52:18] Production.ERROR: pbx CDR StartTime 2025-03-15 09:52:05 - End Time 2025-03-15 12:52:05 [2025-03-15 12:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 12:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686264', 'tblTempUsageDetail_20' ) start [2025-03-15 12:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686264', 'tblTempUsageDetail_20' ) end [2025-03-15 12:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686264', 'tblTempVendorCDR_20' ) start [2025-03-15 12:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686264', 'tblTempVendorCDR_20' ) end [2025-03-15 12:52:18] Production.INFO: ProcessCDR(1,14686264,1,1,2) [2025-03-15 12:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686264', 'tblTempUsageDetail_20' ) start [2025-03-15 12:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686264', 'tblTempUsageDetail_20' ) end [2025-03-15 12:52:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 12:52:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 12:52:23] Production.INFO: ==10542== Releasing lock... [2025-03-15 12:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 12:52:23] Production.INFO: 41.75 MB #Memory Used# [2025-03-15 12:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 09:53:05 [end_date_ymd] => 2025-03-15 12:53:05 [RateCDR] => 1 ) [2025-03-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-03-15 09:53:05' and `end` < '2025-03-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-03-15 12:53:17] Production.INFO: count ==1835 [2025-03-15 12:53:18] Production.ERROR: pbx CDR StartTime 2025-03-15 09:53:05 - End Time 2025-03-15 12:53:05 [2025-03-15 12:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 12:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686269', 'tblTempUsageDetail_20' ) start [2025-03-15 12:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686269', 'tblTempUsageDetail_20' ) end [2025-03-15 12:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686269', 'tblTempVendorCDR_20' ) start [2025-03-15 12:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686269', 'tblTempVendorCDR_20' ) end [2025-03-15 12:53:18] Production.INFO: ProcessCDR(1,14686269,1,1,2) [2025-03-15 12:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686269', 'tblTempUsageDetail_20' ) start [2025-03-15 12:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686269', 'tblTempUsageDetail_20' ) end [2025-03-15 12:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 12:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 12:53:22] Production.INFO: ==10618== Releasing lock... [2025-03-15 12:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 12:53:22] Production.INFO: 41.75 MB #Memory Used# [2025-03-15 12:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 09:54:05 [end_date_ymd] => 2025-03-15 12:54:05 [RateCDR] => 1 ) [2025-03-15 12:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 09:54:05' and `end` < '2025-03-15 12:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 12:54:17] Production.INFO: count ==1987 [2025-03-15 12:54:18] Production.ERROR: pbx CDR StartTime 2025-03-15 09:54:05 - End Time 2025-03-15 12:54:05 [2025-03-15 12:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 12:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686274', 'tblTempUsageDetail_20' ) start [2025-03-15 12:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686274', 'tblTempUsageDetail_20' ) end [2025-03-15 12:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686274', 'tblTempVendorCDR_20' ) start [2025-03-15 12:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686274', 'tblTempVendorCDR_20' ) end [2025-03-15 12:54:18] Production.INFO: ProcessCDR(1,14686274,1,1,2) [2025-03-15 12:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686274', 'tblTempUsageDetail_20' ) start [2025-03-15 12:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686274', 'tblTempUsageDetail_20' ) end [2025-03-15 12:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 12:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 12:54:21] Production.INFO: ==10699== Releasing lock... [2025-03-15 12:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 12:54:21] Production.INFO: 43.25 MB #Memory Used# [2025-03-15 12:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 09:55:06 [end_date_ymd] => 2025-03-15 12:55:06 [RateCDR] => 1 ) [2025-03-15 12:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 09:55:06' and `end` < '2025-03-15 12:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 12:55:18] Production.INFO: count ==1992 [2025-03-15 12:55:19] Production.ERROR: pbx CDR StartTime 2025-03-15 09:55:06 - End Time 2025-03-15 12:55:06 [2025-03-15 12:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 12:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686279', 'tblTempUsageDetail_20' ) start [2025-03-15 12:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686279', 'tblTempUsageDetail_20' ) end [2025-03-15 12:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686279', 'tblTempVendorCDR_20' ) start [2025-03-15 12:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686279', 'tblTempVendorCDR_20' ) end [2025-03-15 12:55:19] Production.INFO: ProcessCDR(1,14686279,1,1,2) [2025-03-15 12:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686279', 'tblTempUsageDetail_20' ) start [2025-03-15 12:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686279', 'tblTempUsageDetail_20' ) end [2025-03-15 12:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 12:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 12:55:22] Production.INFO: ==10777== Releasing lock... [2025-03-15 12:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 12:55:22] Production.INFO: 43 MB #Memory Used# [2025-03-15 12:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 09:56:05 [end_date_ymd] => 2025-03-15 12:56:05 [RateCDR] => 1 ) [2025-03-15 12:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 09:56:05' and `end` < '2025-03-15 12:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 12:56:17] Production.INFO: count ==1999 [2025-03-15 12:56:18] Production.ERROR: pbx CDR StartTime 2025-03-15 09:56:05 - End Time 2025-03-15 12:56:05 [2025-03-15 12:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 12:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686284', 'tblTempUsageDetail_20' ) start [2025-03-15 12:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686284', 'tblTempUsageDetail_20' ) end [2025-03-15 12:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686284', 'tblTempVendorCDR_20' ) start [2025-03-15 12:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686284', 'tblTempVendorCDR_20' ) end [2025-03-15 12:56:18] Production.INFO: ProcessCDR(1,14686284,1,1,2) [2025-03-15 12:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686284', 'tblTempUsageDetail_20' ) start [2025-03-15 12:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686284', 'tblTempUsageDetail_20' ) end [2025-03-15 12:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 12:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 12:56:21] Production.INFO: ==10858== Releasing lock... [2025-03-15 12:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 12:56:21] Production.INFO: 43.25 MB #Memory Used# [2025-03-15 12:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 09:57:05 [end_date_ymd] => 2025-03-15 12:57:05 [RateCDR] => 1 ) [2025-03-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-03-15 09:57:05' and `end` < '2025-03-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-03-15 12:57:18] Production.INFO: count ==1999 [2025-03-15 12:57:19] Production.ERROR: pbx CDR StartTime 2025-03-15 09:57:05 - End Time 2025-03-15 12:57:05 [2025-03-15 12:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 12:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686289', 'tblTempUsageDetail_20' ) start [2025-03-15 12:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686289', 'tblTempUsageDetail_20' ) end [2025-03-15 12:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686289', 'tblTempVendorCDR_20' ) start [2025-03-15 12:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686289', 'tblTempVendorCDR_20' ) end [2025-03-15 12:57:19] Production.INFO: ProcessCDR(1,14686289,1,1,2) [2025-03-15 12:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686289', 'tblTempUsageDetail_20' ) start [2025-03-15 12:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686289', 'tblTempUsageDetail_20' ) end [2025-03-15 12:57:24] Production.ERROR: pbx prc_insertCDR start [2025-03-15 12:57:24] Production.ERROR: pbx prc_insertCDR end [2025-03-15 12:57:24] Production.INFO: ==10942== Releasing lock... [2025-03-15 12:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 12:57:24] Production.INFO: 43 MB #Memory Used# [2025-03-15 12:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 09:58:05 [end_date_ymd] => 2025-03-15 12:58:05 [RateCDR] => 1 ) [2025-03-15 12:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 09:58:05' and `end` < '2025-03-15 12:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 12:58:17] Production.INFO: count ==1996 [2025-03-15 12:58:18] Production.ERROR: pbx CDR StartTime 2025-03-15 09:58:05 - End Time 2025-03-15 12:58:05 [2025-03-15 12:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 12:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686294', 'tblTempUsageDetail_20' ) start [2025-03-15 12:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686294', 'tblTempUsageDetail_20' ) end [2025-03-15 12:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686294', 'tblTempVendorCDR_20' ) start [2025-03-15 12:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686294', 'tblTempVendorCDR_20' ) end [2025-03-15 12:58:18] Production.INFO: ProcessCDR(1,14686294,1,1,2) [2025-03-15 12:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686294', 'tblTempUsageDetail_20' ) start [2025-03-15 12:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686294', 'tblTempUsageDetail_20' ) end [2025-03-15 12:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 12:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 12:58:21] Production.INFO: ==11059== Releasing lock... [2025-03-15 12:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 12:58:21] Production.INFO: 43 MB #Memory Used# [2025-03-15 12:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 09:59:05 [end_date_ymd] => 2025-03-15 12:59:05 [RateCDR] => 1 ) [2025-03-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-03-15 09:59:05' and `end` < '2025-03-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-03-15 12:59:17] Production.INFO: count ==2031 [2025-03-15 12:59:18] Production.ERROR: pbx CDR StartTime 2025-03-15 09:59:05 - End Time 2025-03-15 12:59:05 [2025-03-15 12:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 12:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686299', 'tblTempUsageDetail_20' ) start [2025-03-15 12:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686299', 'tblTempUsageDetail_20' ) end [2025-03-15 12:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686299', 'tblTempVendorCDR_20' ) start [2025-03-15 12:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686299', 'tblTempVendorCDR_20' ) end [2025-03-15 12:59:18] Production.INFO: ProcessCDR(1,14686299,1,1,2) [2025-03-15 12:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 12:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 12:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686299', 'tblTempUsageDetail_20' ) start [2025-03-15 12:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686299', 'tblTempUsageDetail_20' ) end [2025-03-15 12:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 12:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 12:59:21] Production.INFO: ==11138== Releasing lock... [2025-03-15 12:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 12:59:21] Production.INFO: 43.25 MB #Memory Used# [2025-03-15 13:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 10:00:06 [end_date_ymd] => 2025-03-15 13:00:06 [RateCDR] => 1 ) [2025-03-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-03-15 10:00:06' and `end` < '2025-03-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-03-15 13:00:19] Production.INFO: count ==2034 [2025-03-15 13:00:19] Production.ERROR: pbx CDR StartTime 2025-03-15 10:00:06 - End Time 2025-03-15 13:00:06 [2025-03-15 13:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 13:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686305', 'tblTempUsageDetail_20' ) start [2025-03-15 13:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686305', 'tblTempUsageDetail_20' ) end [2025-03-15 13:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686305', 'tblTempVendorCDR_20' ) start [2025-03-15 13:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686305', 'tblTempVendorCDR_20' ) end [2025-03-15 13:00:20] Production.INFO: ProcessCDR(1,14686305,1,1,2) [2025-03-15 13:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686305', 'tblTempUsageDetail_20' ) start [2025-03-15 13:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686305', 'tblTempUsageDetail_20' ) end [2025-03-15 13:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 13:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 13:00:23] Production.INFO: ==11220== Releasing lock... [2025-03-15 13:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 13:00:23] Production.INFO: 43.25 MB #Memory Used# [2025-03-15 13:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 10:01:05 [end_date_ymd] => 2025-03-15 13:01:05 [RateCDR] => 1 ) [2025-03-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-03-15 10:01:05' and `end` < '2025-03-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-03-15 13:01:18] Production.INFO: count ==2050 [2025-03-15 13:01:18] Production.ERROR: pbx CDR StartTime 2025-03-15 10:01:05 - End Time 2025-03-15 13:01:05 [2025-03-15 13:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 13:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686310', 'tblTempUsageDetail_20' ) start [2025-03-15 13:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686310', 'tblTempUsageDetail_20' ) end [2025-03-15 13:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686310', 'tblTempVendorCDR_20' ) start [2025-03-15 13:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686310', 'tblTempVendorCDR_20' ) end [2025-03-15 13:01:18] Production.INFO: ProcessCDR(1,14686310,1,1,2) [2025-03-15 13:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686310', 'tblTempUsageDetail_20' ) start [2025-03-15 13:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686310', 'tblTempUsageDetail_20' ) end [2025-03-15 13:01:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 13:01:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 13:01:23] Production.INFO: ==11310== Releasing lock... [2025-03-15 13:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 13:01:23] Production.INFO: 43.5 MB #Memory Used# [2025-03-15 13:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 10:02:05 [end_date_ymd] => 2025-03-15 13:02:05 [RateCDR] => 1 ) [2025-03-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-03-15 10:02:05' and `end` < '2025-03-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-03-15 13:02:18] Production.INFO: count ==2052 [2025-03-15 13:02:19] Production.ERROR: pbx CDR StartTime 2025-03-15 10:02:05 - End Time 2025-03-15 13:02:05 [2025-03-15 13:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 13:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686315', 'tblTempUsageDetail_20' ) start [2025-03-15 13:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686315', 'tblTempUsageDetail_20' ) end [2025-03-15 13:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686315', 'tblTempVendorCDR_20' ) start [2025-03-15 13:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686315', 'tblTempVendorCDR_20' ) end [2025-03-15 13:02:19] Production.INFO: ProcessCDR(1,14686315,1,1,2) [2025-03-15 13:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686315', 'tblTempUsageDetail_20' ) start [2025-03-15 13:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686315', 'tblTempUsageDetail_20' ) end [2025-03-15 13:02:24] Production.ERROR: pbx prc_insertCDR start [2025-03-15 13:02:24] Production.ERROR: pbx prc_insertCDR end [2025-03-15 13:02:24] Production.INFO: ==11391== Releasing lock... [2025-03-15 13:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 13:02:24] Production.INFO: 43.5 MB #Memory Used# [2025-03-15 13:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 10:03:05 [end_date_ymd] => 2025-03-15 13:03:05 [RateCDR] => 1 ) [2025-03-15 13:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 10:03:05' and `end` < '2025-03-15 13:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 13:03:17] Production.INFO: count ==2046 [2025-03-15 13:03:18] Production.ERROR: pbx CDR StartTime 2025-03-15 10:03:05 - End Time 2025-03-15 13:03:05 [2025-03-15 13:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 13:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686320', 'tblTempUsageDetail_20' ) start [2025-03-15 13:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686320', 'tblTempUsageDetail_20' ) end [2025-03-15 13:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686320', 'tblTempVendorCDR_20' ) start [2025-03-15 13:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686320', 'tblTempVendorCDR_20' ) end [2025-03-15 13:03:18] Production.INFO: ProcessCDR(1,14686320,1,1,2) [2025-03-15 13:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686320', 'tblTempUsageDetail_20' ) start [2025-03-15 13:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686320', 'tblTempUsageDetail_20' ) end [2025-03-15 13:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 13:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 13:03:21] Production.INFO: ==11464== Releasing lock... [2025-03-15 13:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 13:03:21] Production.INFO: 43.5 MB #Memory Used# [2025-03-15 13:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 10:04:06 [end_date_ymd] => 2025-03-15 13:04:06 [RateCDR] => 1 ) [2025-03-15 13:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 10:04:06' and `end` < '2025-03-15 13:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 13:04:18] Production.INFO: count ==2036 [2025-03-15 13:04:19] Production.ERROR: pbx CDR StartTime 2025-03-15 10:04:06 - End Time 2025-03-15 13:04:06 [2025-03-15 13:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 13:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686325', 'tblTempUsageDetail_20' ) start [2025-03-15 13:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686325', 'tblTempUsageDetail_20' ) end [2025-03-15 13:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686325', 'tblTempVendorCDR_20' ) start [2025-03-15 13:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686325', 'tblTempVendorCDR_20' ) end [2025-03-15 13:04:19] Production.INFO: ProcessCDR(1,14686325,1,1,2) [2025-03-15 13:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686325', 'tblTempUsageDetail_20' ) start [2025-03-15 13:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686325', 'tblTempUsageDetail_20' ) end [2025-03-15 13:04:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 13:04:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 13:04:23] Production.INFO: ==11542== Releasing lock... [2025-03-15 13:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 13:04:23] Production.INFO: 43.25 MB #Memory Used# [2025-03-15 13:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 10:05:05 [end_date_ymd] => 2025-03-15 13:05:05 [RateCDR] => 1 ) [2025-03-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-03-15 10:05:05' and `end` < '2025-03-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-03-15 13:05:17] Production.INFO: count ==2030 [2025-03-15 13:05:18] Production.ERROR: pbx CDR StartTime 2025-03-15 10:05:05 - End Time 2025-03-15 13:05:05 [2025-03-15 13:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 13:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686330', 'tblTempUsageDetail_20' ) start [2025-03-15 13:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686330', 'tblTempUsageDetail_20' ) end [2025-03-15 13:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686330', 'tblTempVendorCDR_20' ) start [2025-03-15 13:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686330', 'tblTempVendorCDR_20' ) end [2025-03-15 13:05:18] Production.INFO: ProcessCDR(1,14686330,1,1,2) [2025-03-15 13:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686330', 'tblTempUsageDetail_20' ) start [2025-03-15 13:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686330', 'tblTempUsageDetail_20' ) end [2025-03-15 13:05:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 13:05:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 13:05:23] Production.INFO: ==11621== Releasing lock... [2025-03-15 13:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 13:05:23] Production.INFO: 43.25 MB #Memory Used# [2025-03-15 13:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 10:06:05 [end_date_ymd] => 2025-03-15 13:06:05 [RateCDR] => 1 ) [2025-03-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-03-15 10:06:05' and `end` < '2025-03-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-03-15 13:06:18] Production.INFO: count ==2031 [2025-03-15 13:06:18] Production.ERROR: pbx CDR StartTime 2025-03-15 10:06:05 - End Time 2025-03-15 13:06:05 [2025-03-15 13:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 13:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686335', 'tblTempUsageDetail_20' ) start [2025-03-15 13:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686335', 'tblTempUsageDetail_20' ) end [2025-03-15 13:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686335', 'tblTempVendorCDR_20' ) start [2025-03-15 13:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686335', 'tblTempVendorCDR_20' ) end [2025-03-15 13:06:19] Production.INFO: ProcessCDR(1,14686335,1,1,2) [2025-03-15 13:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686335', 'tblTempUsageDetail_20' ) start [2025-03-15 13:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686335', 'tblTempUsageDetail_20' ) end [2025-03-15 13:06:24] Production.ERROR: pbx prc_insertCDR start [2025-03-15 13:06:24] Production.ERROR: pbx prc_insertCDR end [2025-03-15 13:06:24] Production.INFO: ==11696== Releasing lock... [2025-03-15 13:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 13:06:24] Production.INFO: 43.5 MB #Memory Used# [2025-03-15 13:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 10:07:05 [end_date_ymd] => 2025-03-15 13:07:05 [RateCDR] => 1 ) [2025-03-15 13:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 10:07:05' and `end` < '2025-03-15 13:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 13:07:17] Production.INFO: count ==2031 [2025-03-15 13:07:18] Production.ERROR: pbx CDR StartTime 2025-03-15 10:07:05 - End Time 2025-03-15 13:07:05 [2025-03-15 13:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 13:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686340', 'tblTempUsageDetail_20' ) start [2025-03-15 13:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686340', 'tblTempUsageDetail_20' ) end [2025-03-15 13:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686340', 'tblTempVendorCDR_20' ) start [2025-03-15 13:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686340', 'tblTempVendorCDR_20' ) end [2025-03-15 13:07:18] Production.INFO: ProcessCDR(1,14686340,1,1,2) [2025-03-15 13:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686340', 'tblTempUsageDetail_20' ) start [2025-03-15 13:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686340', 'tblTempUsageDetail_20' ) end [2025-03-15 13:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 13:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 13:07:21] Production.INFO: ==11775== Releasing lock... [2025-03-15 13:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 13:07:21] Production.INFO: 43.5 MB #Memory Used# [2025-03-15 13:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 10:08:05 [end_date_ymd] => 2025-03-15 13:08:05 [RateCDR] => 1 ) [2025-03-15 13:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 10:08:05' and `end` < '2025-03-15 13:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 13:08:18] Production.INFO: count ==2021 [2025-03-15 13:08:18] Production.ERROR: pbx CDR StartTime 2025-03-15 10:08:05 - End Time 2025-03-15 13:08:05 [2025-03-15 13:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 13:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686345', 'tblTempUsageDetail_20' ) start [2025-03-15 13:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686345', 'tblTempUsageDetail_20' ) end [2025-03-15 13:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686345', 'tblTempVendorCDR_20' ) start [2025-03-15 13:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686345', 'tblTempVendorCDR_20' ) end [2025-03-15 13:08:19] Production.INFO: ProcessCDR(1,14686345,1,1,2) [2025-03-15 13:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686345', 'tblTempUsageDetail_20' ) start [2025-03-15 13:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686345', 'tblTempUsageDetail_20' ) end [2025-03-15 13:08:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 13:08:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 13:08:23] Production.INFO: ==11853== Releasing lock... [2025-03-15 13:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 13:08:23] Production.INFO: 43.25 MB #Memory Used# [2025-03-15 13:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 10:09:05 [end_date_ymd] => 2025-03-15 13:09:05 [RateCDR] => 1 ) [2025-03-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-03-15 10:09:05' and `end` < '2025-03-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-03-15 13:09:17] Production.INFO: count ==2019 [2025-03-15 13:09:18] Production.ERROR: pbx CDR StartTime 2025-03-15 10:09:05 - End Time 2025-03-15 13:09:05 [2025-03-15 13:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 13:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686350', 'tblTempUsageDetail_20' ) start [2025-03-15 13:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686350', 'tblTempUsageDetail_20' ) end [2025-03-15 13:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686350', 'tblTempVendorCDR_20' ) start [2025-03-15 13:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686350', 'tblTempVendorCDR_20' ) end [2025-03-15 13:09:18] Production.INFO: ProcessCDR(1,14686350,1,1,2) [2025-03-15 13:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686350', 'tblTempUsageDetail_20' ) start [2025-03-15 13:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686350', 'tblTempUsageDetail_20' ) end [2025-03-15 13:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 13:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 13:09:21] Production.INFO: ==11933== Releasing lock... [2025-03-15 13:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 13:09:21] Production.INFO: 43.25 MB #Memory Used# [2025-03-15 13:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 10:10:06 [end_date_ymd] => 2025-03-15 13:10:06 [RateCDR] => 1 ) [2025-03-15 13:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 10:10:06' and `end` < '2025-03-15 13:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 13:10:19] Production.INFO: count ==2011 [2025-03-15 13:10:19] Production.ERROR: pbx CDR StartTime 2025-03-15 10:10:06 - End Time 2025-03-15 13:10:06 [2025-03-15 13:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 13:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686356', 'tblTempUsageDetail_20' ) start [2025-03-15 13:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686356', 'tblTempUsageDetail_20' ) end [2025-03-15 13:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686356', 'tblTempVendorCDR_20' ) start [2025-03-15 13:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686356', 'tblTempVendorCDR_20' ) end [2025-03-15 13:10:20] Production.INFO: ProcessCDR(1,14686356,1,1,2) [2025-03-15 13:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686356', 'tblTempUsageDetail_20' ) start [2025-03-15 13:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686356', 'tblTempUsageDetail_20' ) end [2025-03-15 13:10:25] Production.ERROR: pbx prc_insertCDR start [2025-03-15 13:10:25] Production.ERROR: pbx prc_insertCDR end [2025-03-15 13:10:25] Production.INFO: ==12011== Releasing lock... [2025-03-15 13:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 13:10:25] Production.INFO: 43.25 MB #Memory Used# [2025-03-15 13:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 10:11:05 [end_date_ymd] => 2025-03-15 13:11:05 [RateCDR] => 1 ) [2025-03-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-03-15 10:11:05' and `end` < '2025-03-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-03-15 13:11:17] Production.INFO: count ==2009 [2025-03-15 13:11:18] Production.ERROR: pbx CDR StartTime 2025-03-15 10:11:05 - End Time 2025-03-15 13:11:05 [2025-03-15 13:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 13:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686361', 'tblTempUsageDetail_20' ) start [2025-03-15 13:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686361', 'tblTempUsageDetail_20' ) end [2025-03-15 13:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686361', 'tblTempVendorCDR_20' ) start [2025-03-15 13:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686361', 'tblTempVendorCDR_20' ) end [2025-03-15 13:11:18] Production.INFO: ProcessCDR(1,14686361,1,1,2) [2025-03-15 13:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686361', 'tblTempUsageDetail_20' ) start [2025-03-15 13:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686361', 'tblTempUsageDetail_20' ) end [2025-03-15 13:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 13:11:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 13:11:22] Production.INFO: ==12096== Releasing lock... [2025-03-15 13:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 13:11:22] Production.INFO: 43.25 MB #Memory Used# [2025-03-15 13:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 10:12:05 [end_date_ymd] => 2025-03-15 13:12:05 [RateCDR] => 1 ) [2025-03-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-03-15 10:12:05' and `end` < '2025-03-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-03-15 13:12:18] Production.INFO: count ==1995 [2025-03-15 13:12:18] Production.ERROR: pbx CDR StartTime 2025-03-15 10:12:05 - End Time 2025-03-15 13:12:05 [2025-03-15 13:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 13:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686366', 'tblTempUsageDetail_20' ) start [2025-03-15 13:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686366', 'tblTempUsageDetail_20' ) end [2025-03-15 13:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686366', 'tblTempVendorCDR_20' ) start [2025-03-15 13:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686366', 'tblTempVendorCDR_20' ) end [2025-03-15 13:12:18] Production.INFO: ProcessCDR(1,14686366,1,1,2) [2025-03-15 13:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686366', 'tblTempUsageDetail_20' ) start [2025-03-15 13:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686366', 'tblTempUsageDetail_20' ) end [2025-03-15 13:12:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 13:12:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 13:12:23] Production.INFO: ==12177== Releasing lock... [2025-03-15 13:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 13:12:23] Production.INFO: 43.25 MB #Memory Used# [2025-03-15 13:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 10:13:05 [end_date_ymd] => 2025-03-15 13:13:05 [RateCDR] => 1 ) [2025-03-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-03-15 10:13:05' and `end` < '2025-03-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-03-15 13:13:17] Production.INFO: count ==1995 [2025-03-15 13:13:18] Production.ERROR: pbx CDR StartTime 2025-03-15 10:13:05 - End Time 2025-03-15 13:13:05 [2025-03-15 13:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 13:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686371', 'tblTempUsageDetail_20' ) start [2025-03-15 13:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686371', 'tblTempUsageDetail_20' ) end [2025-03-15 13:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686371', 'tblTempVendorCDR_20' ) start [2025-03-15 13:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686371', 'tblTempVendorCDR_20' ) end [2025-03-15 13:13:18] Production.INFO: ProcessCDR(1,14686371,1,1,2) [2025-03-15 13:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686371', 'tblTempUsageDetail_20' ) start [2025-03-15 13:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686371', 'tblTempUsageDetail_20' ) end [2025-03-15 13:13:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 13:13:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 13:13:23] Production.INFO: ==12253== Releasing lock... [2025-03-15 13:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 13:13:23] Production.INFO: 43.5 MB #Memory Used# [2025-03-15 13:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 10:14:05 [end_date_ymd] => 2025-03-15 13:14:05 [RateCDR] => 1 ) [2025-03-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-03-15 10:14:05' and `end` < '2025-03-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-03-15 13:14:17] Production.INFO: count ==1992 [2025-03-15 13:14:18] Production.ERROR: pbx CDR StartTime 2025-03-15 10:14:05 - End Time 2025-03-15 13:14:05 [2025-03-15 13:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 13:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686376', 'tblTempUsageDetail_20' ) start [2025-03-15 13:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686376', 'tblTempUsageDetail_20' ) end [2025-03-15 13:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686376', 'tblTempVendorCDR_20' ) start [2025-03-15 13:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686376', 'tblTempVendorCDR_20' ) end [2025-03-15 13:14:18] Production.INFO: ProcessCDR(1,14686376,1,1,2) [2025-03-15 13:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686376', 'tblTempUsageDetail_20' ) start [2025-03-15 13:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686376', 'tblTempUsageDetail_20' ) end [2025-03-15 13:14:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 13:14:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 13:14:23] Production.INFO: ==12368== Releasing lock... [2025-03-15 13:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 13:14:23] Production.INFO: 43 MB #Memory Used# [2025-03-15 13:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 10:15:05 [end_date_ymd] => 2025-03-15 13:15:05 [RateCDR] => 1 ) [2025-03-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-03-15 10:15:05' and `end` < '2025-03-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-03-15 13:15:17] Production.INFO: count ==1974 [2025-03-15 13:15:18] Production.ERROR: pbx CDR StartTime 2025-03-15 10:15:05 - End Time 2025-03-15 13:15:05 [2025-03-15 13:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 13:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686381', 'tblTempUsageDetail_20' ) start [2025-03-15 13:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686381', 'tblTempUsageDetail_20' ) end [2025-03-15 13:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686381', 'tblTempVendorCDR_20' ) start [2025-03-15 13:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686381', 'tblTempVendorCDR_20' ) end [2025-03-15 13:15:18] Production.INFO: ProcessCDR(1,14686381,1,1,2) [2025-03-15 13:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686381', 'tblTempUsageDetail_20' ) start [2025-03-15 13:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686381', 'tblTempUsageDetail_20' ) end [2025-03-15 13:15:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 13:15:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 13:15:23] Production.INFO: ==12449== Releasing lock... [2025-03-15 13:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 13:15:23] Production.INFO: 42.75 MB #Memory Used# [2025-03-15 13:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 10:16:06 [end_date_ymd] => 2025-03-15 13:16:06 [RateCDR] => 1 ) [2025-03-15 13:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 10:16:06' and `end` < '2025-03-15 13:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 13:16:18] Production.INFO: count ==1967 [2025-03-15 13:16:19] Production.ERROR: pbx CDR StartTime 2025-03-15 10:16:06 - End Time 2025-03-15 13:16:06 [2025-03-15 13:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 13:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686386', 'tblTempUsageDetail_20' ) start [2025-03-15 13:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686386', 'tblTempUsageDetail_20' ) end [2025-03-15 13:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686386', 'tblTempVendorCDR_20' ) start [2025-03-15 13:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686386', 'tblTempVendorCDR_20' ) end [2025-03-15 13:16:19] Production.INFO: ProcessCDR(1,14686386,1,1,2) [2025-03-15 13:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686386', 'tblTempUsageDetail_20' ) start [2025-03-15 13:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686386', 'tblTempUsageDetail_20' ) end [2025-03-15 13:16:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 13:16:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 13:16:23] Production.INFO: ==12560== Releasing lock... [2025-03-15 13:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 13:16:23] Production.INFO: 42.75 MB #Memory Used# [2025-03-15 13:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 10:17:05 [end_date_ymd] => 2025-03-15 13:17:05 [RateCDR] => 1 ) [2025-03-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-03-15 10:17:05' and `end` < '2025-03-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-03-15 13:17:18] Production.INFO: count ==1964 [2025-03-15 13:17:19] Production.ERROR: pbx CDR StartTime 2025-03-15 10:17:05 - End Time 2025-03-15 13:17:05 [2025-03-15 13:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 13:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686391', 'tblTempUsageDetail_20' ) start [2025-03-15 13:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686391', 'tblTempUsageDetail_20' ) end [2025-03-15 13:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686391', 'tblTempVendorCDR_20' ) start [2025-03-15 13:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686391', 'tblTempVendorCDR_20' ) end [2025-03-15 13:17:19] Production.INFO: ProcessCDR(1,14686391,1,1,2) [2025-03-15 13:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686391', 'tblTempUsageDetail_20' ) start [2025-03-15 13:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686391', 'tblTempUsageDetail_20' ) end [2025-03-15 13:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 13:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 13:17:22] Production.INFO: ==12673== Releasing lock... [2025-03-15 13:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 13:17:22] Production.INFO: 42.75 MB #Memory Used# [2025-03-15 13:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 10:18:05 [end_date_ymd] => 2025-03-15 13:18:05 [RateCDR] => 1 ) [2025-03-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-03-15 10:18:05' and `end` < '2025-03-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-03-15 13:18:18] Production.INFO: count ==1957 [2025-03-15 13:18:18] Production.ERROR: pbx CDR StartTime 2025-03-15 10:18:05 - End Time 2025-03-15 13:18:05 [2025-03-15 13:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 13:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686396', 'tblTempUsageDetail_20' ) start [2025-03-15 13:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686396', 'tblTempUsageDetail_20' ) end [2025-03-15 13:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686396', 'tblTempVendorCDR_20' ) start [2025-03-15 13:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686396', 'tblTempVendorCDR_20' ) end [2025-03-15 13:18:18] Production.INFO: ProcessCDR(1,14686396,1,1,2) [2025-03-15 13:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686396', 'tblTempUsageDetail_20' ) start [2025-03-15 13:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686396', 'tblTempUsageDetail_20' ) end [2025-03-15 13:18:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 13:18:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 13:18:22] Production.INFO: ==12794== Releasing lock... [2025-03-15 13:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 13:18:22] Production.INFO: 43 MB #Memory Used# [2025-03-15 13:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 10:19:05 [end_date_ymd] => 2025-03-15 13:19:05 [RateCDR] => 1 ) [2025-03-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-03-15 10:19:05' and `end` < '2025-03-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-03-15 13:19:18] Production.INFO: count ==1947 [2025-03-15 13:19:19] Production.ERROR: pbx CDR StartTime 2025-03-15 10:19:05 - End Time 2025-03-15 13:19:05 [2025-03-15 13:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 13:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686401', 'tblTempUsageDetail_20' ) start [2025-03-15 13:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686401', 'tblTempUsageDetail_20' ) end [2025-03-15 13:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686401', 'tblTempVendorCDR_20' ) start [2025-03-15 13:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686401', 'tblTempVendorCDR_20' ) end [2025-03-15 13:19:19] Production.INFO: ProcessCDR(1,14686401,1,1,2) [2025-03-15 13:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686401', 'tblTempUsageDetail_20' ) start [2025-03-15 13:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686401', 'tblTempUsageDetail_20' ) end [2025-03-15 13:19:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 13:19:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 13:19:23] Production.INFO: ==12904== Releasing lock... [2025-03-15 13:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 13:19:23] Production.INFO: 42.75 MB #Memory Used# [2025-03-15 13:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 10:20:06 [end_date_ymd] => 2025-03-15 13:20:06 [RateCDR] => 1 ) [2025-03-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-03-15 10:20:06' and `end` < '2025-03-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-03-15 13:20:18] Production.INFO: count ==1948 [2025-03-15 13:20:19] Production.ERROR: pbx CDR StartTime 2025-03-15 10:20:06 - End Time 2025-03-15 13:20:06 [2025-03-15 13:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 13:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686406', 'tblTempUsageDetail_20' ) start [2025-03-15 13:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686406', 'tblTempUsageDetail_20' ) end [2025-03-15 13:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686406', 'tblTempVendorCDR_20' ) start [2025-03-15 13:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686406', 'tblTempVendorCDR_20' ) end [2025-03-15 13:20:19] Production.INFO: ProcessCDR(1,14686406,1,1,2) [2025-03-15 13:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686406', 'tblTempUsageDetail_20' ) start [2025-03-15 13:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686406', 'tblTempUsageDetail_20' ) end [2025-03-15 13:20:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 13:20:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 13:20:23] Production.INFO: ==13013== Releasing lock... [2025-03-15 13:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 13:20:23] Production.INFO: 43 MB #Memory Used# [2025-03-15 13:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 10:21:05 [end_date_ymd] => 2025-03-15 13:21:05 [RateCDR] => 1 ) [2025-03-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-03-15 10:21:05' and `end` < '2025-03-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-03-15 13:21:18] Production.INFO: count ==1954 [2025-03-15 13:21:19] Production.ERROR: pbx CDR StartTime 2025-03-15 10:21:05 - End Time 2025-03-15 13:21:05 [2025-03-15 13:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 13:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686412', 'tblTempUsageDetail_20' ) start [2025-03-15 13:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686412', 'tblTempUsageDetail_20' ) end [2025-03-15 13:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686412', 'tblTempVendorCDR_20' ) start [2025-03-15 13:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686412', 'tblTempVendorCDR_20' ) end [2025-03-15 13:21:19] Production.INFO: ProcessCDR(1,14686412,1,1,2) [2025-03-15 13:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686412', 'tblTempUsageDetail_20' ) start [2025-03-15 13:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686412', 'tblTempUsageDetail_20' ) end [2025-03-15 13:21:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 13:21:24] Production.ERROR: pbx prc_insertCDR end [2025-03-15 13:21:24] Production.INFO: ==13123== Releasing lock... [2025-03-15 13:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 13:21:24] Production.INFO: 43 MB #Memory Used# [2025-03-15 13:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 10:22:05 [end_date_ymd] => 2025-03-15 13:22:05 [RateCDR] => 1 ) [2025-03-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-03-15 10:22:05' and `end` < '2025-03-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-03-15 13:22:17] Production.INFO: count ==1970 [2025-03-15 13:22:18] Production.ERROR: pbx CDR StartTime 2025-03-15 10:22:05 - End Time 2025-03-15 13:22:05 [2025-03-15 13:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 13:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686417', 'tblTempUsageDetail_20' ) start [2025-03-15 13:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686417', 'tblTempUsageDetail_20' ) end [2025-03-15 13:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686417', 'tblTempVendorCDR_20' ) start [2025-03-15 13:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686417', 'tblTempVendorCDR_20' ) end [2025-03-15 13:22:18] Production.INFO: ProcessCDR(1,14686417,1,1,2) [2025-03-15 13:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686417', 'tblTempUsageDetail_20' ) start [2025-03-15 13:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686417', 'tblTempUsageDetail_20' ) end [2025-03-15 13:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 13:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 13:22:21] Production.INFO: ==13234== Releasing lock... [2025-03-15 13:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 13:22:21] Production.INFO: 42.75 MB #Memory Used# [2025-03-15 13:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 10:23:05 [end_date_ymd] => 2025-03-15 13:23:05 [RateCDR] => 1 ) [2025-03-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-03-15 10:23:05' and `end` < '2025-03-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-03-15 13:23:18] Production.INFO: count ==1969 [2025-03-15 13:23:18] Production.ERROR: pbx CDR StartTime 2025-03-15 10:23:05 - End Time 2025-03-15 13:23:05 [2025-03-15 13:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 13:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686422', 'tblTempUsageDetail_20' ) start [2025-03-15 13:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686422', 'tblTempUsageDetail_20' ) end [2025-03-15 13:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686422', 'tblTempVendorCDR_20' ) start [2025-03-15 13:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686422', 'tblTempVendorCDR_20' ) end [2025-03-15 13:23:18] Production.INFO: ProcessCDR(1,14686422,1,1,2) [2025-03-15 13:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686422', 'tblTempUsageDetail_20' ) start [2025-03-15 13:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686422', 'tblTempUsageDetail_20' ) end [2025-03-15 13:23:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 13:23:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 13:23:23] Production.INFO: ==13348== Releasing lock... [2025-03-15 13:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 13:23:23] Production.INFO: 42.75 MB #Memory Used# [2025-03-15 13:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 10:24:05 [end_date_ymd] => 2025-03-15 13:24:05 [RateCDR] => 1 ) [2025-03-15 13:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 10:24:05' and `end` < '2025-03-15 13:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 13:24:18] Production.INFO: count ==1957 [2025-03-15 13:24:18] Production.ERROR: pbx CDR StartTime 2025-03-15 10:24:05 - End Time 2025-03-15 13:24:05 [2025-03-15 13:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 13:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686427', 'tblTempUsageDetail_20' ) start [2025-03-15 13:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686427', 'tblTempUsageDetail_20' ) end [2025-03-15 13:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686427', 'tblTempVendorCDR_20' ) start [2025-03-15 13:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686427', 'tblTempVendorCDR_20' ) end [2025-03-15 13:24:18] Production.INFO: ProcessCDR(1,14686427,1,1,2) [2025-03-15 13:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686427', 'tblTempUsageDetail_20' ) start [2025-03-15 13:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686427', 'tblTempUsageDetail_20' ) end [2025-03-15 13:24:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 13:24:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 13:24:23] Production.INFO: ==13456== Releasing lock... [2025-03-15 13:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 13:24:23] Production.INFO: 42.75 MB #Memory Used# [2025-03-15 13:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 10:25:06 [end_date_ymd] => 2025-03-15 13:25:06 [RateCDR] => 1 ) [2025-03-15 13:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 10:25:06' and `end` < '2025-03-15 13:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 13:25:18] Production.INFO: count ==1959 [2025-03-15 13:25:19] Production.ERROR: pbx CDR StartTime 2025-03-15 10:25:06 - End Time 2025-03-15 13:25:06 [2025-03-15 13:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686432', 'tblTempUsageDetail_20' ) start [2025-03-15 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686432', 'tblTempUsageDetail_20' ) end [2025-03-15 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686432', 'tblTempVendorCDR_20' ) start [2025-03-15 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686432', 'tblTempVendorCDR_20' ) end [2025-03-15 13:25:19] Production.INFO: ProcessCDR(1,14686432,1,1,2) [2025-03-15 13:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686432', 'tblTempUsageDetail_20' ) start [2025-03-15 13:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686432', 'tblTempUsageDetail_20' ) end [2025-03-15 13:25:24] Production.ERROR: pbx prc_insertCDR start [2025-03-15 13:25:24] Production.ERROR: pbx prc_insertCDR end [2025-03-15 13:25:24] Production.INFO: ==13569== Releasing lock... [2025-03-15 13:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 13:25:24] Production.INFO: 43 MB #Memory Used# [2025-03-15 13:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 10:26:05 [end_date_ymd] => 2025-03-15 13:26:05 [RateCDR] => 1 ) [2025-03-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-03-15 10:26:05' and `end` < '2025-03-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-03-15 13:26:17] Production.INFO: count ==1957 [2025-03-15 13:26:18] Production.ERROR: pbx CDR StartTime 2025-03-15 10:26:05 - End Time 2025-03-15 13:26:05 [2025-03-15 13:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 13:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686437', 'tblTempUsageDetail_20' ) start [2025-03-15 13:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686437', 'tblTempUsageDetail_20' ) end [2025-03-15 13:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686437', 'tblTempVendorCDR_20' ) start [2025-03-15 13:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686437', 'tblTempVendorCDR_20' ) end [2025-03-15 13:26:18] Production.INFO: ProcessCDR(1,14686437,1,1,2) [2025-03-15 13:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686437', 'tblTempUsageDetail_20' ) start [2025-03-15 13:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686437', 'tblTempUsageDetail_20' ) end [2025-03-15 13:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 13:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 13:26:21] Production.INFO: ==13679== Releasing lock... [2025-03-15 13:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 13:26:21] Production.INFO: 42.75 MB #Memory Used# [2025-03-15 13:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 10:27:05 [end_date_ymd] => 2025-03-15 13:27:05 [RateCDR] => 1 ) [2025-03-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-03-15 10:27:05' and `end` < '2025-03-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-03-15 13:27:17] Production.INFO: count ==1942 [2025-03-15 13:27:18] Production.ERROR: pbx CDR StartTime 2025-03-15 10:27:05 - End Time 2025-03-15 13:27:05 [2025-03-15 13:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 13:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686442', 'tblTempUsageDetail_20' ) start [2025-03-15 13:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686442', 'tblTempUsageDetail_20' ) end [2025-03-15 13:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686442', 'tblTempVendorCDR_20' ) start [2025-03-15 13:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686442', 'tblTempVendorCDR_20' ) end [2025-03-15 13:27:18] Production.INFO: ProcessCDR(1,14686442,1,1,2) [2025-03-15 13:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686442', 'tblTempUsageDetail_20' ) start [2025-03-15 13:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686442', 'tblTempUsageDetail_20' ) end [2025-03-15 13:27:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 13:27:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 13:27:22] Production.INFO: ==13784== Releasing lock... [2025-03-15 13:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 13:27:22] Production.INFO: 42.5 MB #Memory Used# [2025-03-15 13:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 10:28:04 [end_date_ymd] => 2025-03-15 13:28:04 [RateCDR] => 1 ) [2025-03-15 13: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-03-15 10:28:04' and `end` < '2025-03-15 13: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-03-15 13:28:17] Production.INFO: count ==1930 [2025-03-15 13:28:17] Production.ERROR: pbx CDR StartTime 2025-03-15 10:28:04 - End Time 2025-03-15 13:28:04 [2025-03-15 13:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 13:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686447', 'tblTempUsageDetail_20' ) start [2025-03-15 13:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686447', 'tblTempUsageDetail_20' ) end [2025-03-15 13:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686447', 'tblTempVendorCDR_20' ) start [2025-03-15 13:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686447', 'tblTempVendorCDR_20' ) end [2025-03-15 13:28:18] Production.INFO: ProcessCDR(1,14686447,1,1,2) [2025-03-15 13:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686447', 'tblTempUsageDetail_20' ) start [2025-03-15 13:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686447', 'tblTempUsageDetail_20' ) end [2025-03-15 13:28:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 13:28:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 13:28:23] Production.INFO: ==13888== Releasing lock... [2025-03-15 13:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 13:28:23] Production.INFO: 42.5 MB #Memory Used# [2025-03-15 13:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 10:29:05 [end_date_ymd] => 2025-03-15 13:29:05 [RateCDR] => 1 ) [2025-03-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-03-15 10:29:05' and `end` < '2025-03-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-03-15 13:29:17] Production.INFO: count ==1924 [2025-03-15 13:29:18] Production.ERROR: pbx CDR StartTime 2025-03-15 10:29:05 - End Time 2025-03-15 13:29:05 [2025-03-15 13:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 13:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686452', 'tblTempUsageDetail_20' ) start [2025-03-15 13:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686452', 'tblTempUsageDetail_20' ) end [2025-03-15 13:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686452', 'tblTempVendorCDR_20' ) start [2025-03-15 13:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686452', 'tblTempVendorCDR_20' ) end [2025-03-15 13:29:18] Production.INFO: ProcessCDR(1,14686452,1,1,2) [2025-03-15 13:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686452', 'tblTempUsageDetail_20' ) start [2025-03-15 13:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686452', 'tblTempUsageDetail_20' ) end [2025-03-15 13:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 13:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 13:29:21] Production.INFO: ==14035== Releasing lock... [2025-03-15 13:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 13:29:21] Production.INFO: 42.75 MB #Memory Used# [2025-03-15 13:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 10:30:06 [end_date_ymd] => 2025-03-15 13:30:06 [RateCDR] => 1 ) [2025-03-15 13:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 10:30:06' and `end` < '2025-03-15 13:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 13:30:19] Production.INFO: count ==1932 [2025-03-15 13:30:19] Production.ERROR: pbx CDR StartTime 2025-03-15 10:30:06 - End Time 2025-03-15 13:30:06 [2025-03-15 13:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 13:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686458', 'tblTempUsageDetail_20' ) start [2025-03-15 13:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686458', 'tblTempUsageDetail_20' ) end [2025-03-15 13:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686458', 'tblTempVendorCDR_20' ) start [2025-03-15 13:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686458', 'tblTempVendorCDR_20' ) end [2025-03-15 13:30:19] Production.INFO: ProcessCDR(1,14686458,1,1,2) [2025-03-15 13:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686458', 'tblTempUsageDetail_20' ) start [2025-03-15 13:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686458', 'tblTempUsageDetail_20' ) end [2025-03-15 13:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 13:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 13:30:22] Production.INFO: ==14146== Releasing lock... [2025-03-15 13:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 13:30:22] Production.INFO: 42.5 MB #Memory Used# [2025-03-15 13:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 10:31:05 [end_date_ymd] => 2025-03-15 13:31:05 [RateCDR] => 1 ) [2025-03-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-03-15 10:31:05' and `end` < '2025-03-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-03-15 13:31:18] Production.INFO: count ==1945 [2025-03-15 13:31:18] Production.ERROR: pbx CDR StartTime 2025-03-15 10:31:05 - End Time 2025-03-15 13:31:05 [2025-03-15 13:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 13:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686463', 'tblTempUsageDetail_20' ) start [2025-03-15 13:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686463', 'tblTempUsageDetail_20' ) end [2025-03-15 13:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686463', 'tblTempVendorCDR_20' ) start [2025-03-15 13:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686463', 'tblTempVendorCDR_20' ) end [2025-03-15 13:31:18] Production.INFO: ProcessCDR(1,14686463,1,1,2) [2025-03-15 13:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686463', 'tblTempUsageDetail_20' ) start [2025-03-15 13:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686463', 'tblTempUsageDetail_20' ) end [2025-03-15 13:31:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 13:31:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 13:31:23] Production.INFO: ==14253== Releasing lock... [2025-03-15 13:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 13:31:23] Production.INFO: 42.75 MB #Memory Used# [2025-03-15 13:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 10:32:05 [end_date_ymd] => 2025-03-15 13:32:05 [RateCDR] => 1 ) [2025-03-15 13:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 10:32:05' and `end` < '2025-03-15 13:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 13:32:18] Production.INFO: count ==1943 [2025-03-15 13:32:18] Production.ERROR: pbx CDR StartTime 2025-03-15 10:32:05 - End Time 2025-03-15 13:32:05 [2025-03-15 13:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 13:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686468', 'tblTempUsageDetail_20' ) start [2025-03-15 13:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686468', 'tblTempUsageDetail_20' ) end [2025-03-15 13:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686468', 'tblTempVendorCDR_20' ) start [2025-03-15 13:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686468', 'tblTempVendorCDR_20' ) end [2025-03-15 13:32:18] Production.INFO: ProcessCDR(1,14686468,1,1,2) [2025-03-15 13:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686468', 'tblTempUsageDetail_20' ) start [2025-03-15 13:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686468', 'tblTempUsageDetail_20' ) end [2025-03-15 13:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 13:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 13:32:21] Production.INFO: ==14359== Releasing lock... [2025-03-15 13:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 13:32:21] Production.INFO: 42.5 MB #Memory Used# [2025-03-15 13:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 10:33:05 [end_date_ymd] => 2025-03-15 13:33:05 [RateCDR] => 1 ) [2025-03-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-03-15 10:33:05' and `end` < '2025-03-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-03-15 13:33:17] Production.INFO: count ==1942 [2025-03-15 13:33:18] Production.ERROR: pbx CDR StartTime 2025-03-15 10:33:05 - End Time 2025-03-15 13:33:05 [2025-03-15 13:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 13:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686473', 'tblTempUsageDetail_20' ) start [2025-03-15 13:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686473', 'tblTempUsageDetail_20' ) end [2025-03-15 13:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686473', 'tblTempVendorCDR_20' ) start [2025-03-15 13:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686473', 'tblTempVendorCDR_20' ) end [2025-03-15 13:33:18] Production.INFO: ProcessCDR(1,14686473,1,1,2) [2025-03-15 13:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686473', 'tblTempUsageDetail_20' ) start [2025-03-15 13:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686473', 'tblTempUsageDetail_20' ) end [2025-03-15 13:33:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 13:33:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 13:33:22] Production.INFO: ==14465== Releasing lock... [2025-03-15 13:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 13:33:22] Production.INFO: 42.5 MB #Memory Used# [2025-03-15 13:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 10:34:05 [end_date_ymd] => 2025-03-15 13:34:05 [RateCDR] => 1 ) [2025-03-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-03-15 10:34:05' and `end` < '2025-03-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-03-15 13:34:17] Production.INFO: count ==1944 [2025-03-15 13:34:18] Production.ERROR: pbx CDR StartTime 2025-03-15 10:34:05 - End Time 2025-03-15 13:34:05 [2025-03-15 13:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 13:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686478', 'tblTempUsageDetail_20' ) start [2025-03-15 13:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686478', 'tblTempUsageDetail_20' ) end [2025-03-15 13:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686478', 'tblTempVendorCDR_20' ) start [2025-03-15 13:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686478', 'tblTempVendorCDR_20' ) end [2025-03-15 13:34:18] Production.INFO: ProcessCDR(1,14686478,1,1,2) [2025-03-15 13:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686478', 'tblTempUsageDetail_20' ) start [2025-03-15 13:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686478', 'tblTempUsageDetail_20' ) end [2025-03-15 13:34:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 13:34:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 13:34:23] Production.INFO: ==14576== Releasing lock... [2025-03-15 13:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 13:34:23] Production.INFO: 42.5 MB #Memory Used# [2025-03-15 13:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 10:35:05 [end_date_ymd] => 2025-03-15 13:35:05 [RateCDR] => 1 ) [2025-03-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-03-15 10:35:05' and `end` < '2025-03-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-03-15 13:35:17] Production.INFO: count ==1941 [2025-03-15 13:35:18] Production.ERROR: pbx CDR StartTime 2025-03-15 10:35:05 - End Time 2025-03-15 13:35:05 [2025-03-15 13:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 13:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686483', 'tblTempUsageDetail_20' ) start [2025-03-15 13:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686483', 'tblTempUsageDetail_20' ) end [2025-03-15 13:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686483', 'tblTempVendorCDR_20' ) start [2025-03-15 13:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686483', 'tblTempVendorCDR_20' ) end [2025-03-15 13:35:18] Production.INFO: ProcessCDR(1,14686483,1,1,2) [2025-03-15 13:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686483', 'tblTempUsageDetail_20' ) start [2025-03-15 13:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686483', 'tblTempUsageDetail_20' ) end [2025-03-15 13:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 13:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 13:35:21] Production.INFO: ==14686== Releasing lock... [2025-03-15 13:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 13:35:21] Production.INFO: 42.5 MB #Memory Used# [2025-03-15 13:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 10:36:05 [end_date_ymd] => 2025-03-15 13:36:05 [RateCDR] => 1 ) [2025-03-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-03-15 10:36:05' and `end` < '2025-03-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-03-15 13:36:17] Production.INFO: count ==1939 [2025-03-15 13:36:18] Production.ERROR: pbx CDR StartTime 2025-03-15 10:36:05 - End Time 2025-03-15 13:36:05 [2025-03-15 13:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 13:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686488', 'tblTempUsageDetail_20' ) start [2025-03-15 13:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686488', 'tblTempUsageDetail_20' ) end [2025-03-15 13:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686488', 'tblTempVendorCDR_20' ) start [2025-03-15 13:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686488', 'tblTempVendorCDR_20' ) end [2025-03-15 13:36:18] Production.INFO: ProcessCDR(1,14686488,1,1,2) [2025-03-15 13:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686488', 'tblTempUsageDetail_20' ) start [2025-03-15 13:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686488', 'tblTempUsageDetail_20' ) end [2025-03-15 13:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 13:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 13:36:21] Production.INFO: ==14793== Releasing lock... [2025-03-15 13:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 13:36:21] Production.INFO: 42.5 MB #Memory Used# [2025-03-15 13:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 10:37:06 [end_date_ymd] => 2025-03-15 13:37:06 [RateCDR] => 1 ) [2025-03-15 13:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 10:37:06' and `end` < '2025-03-15 13:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 13:37:18] Production.INFO: count ==1945 [2025-03-15 13:37:19] Production.ERROR: pbx CDR StartTime 2025-03-15 10:37:06 - End Time 2025-03-15 13:37:06 [2025-03-15 13:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 13:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686493', 'tblTempUsageDetail_20' ) start [2025-03-15 13:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686493', 'tblTempUsageDetail_20' ) end [2025-03-15 13:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686493', 'tblTempVendorCDR_20' ) start [2025-03-15 13:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686493', 'tblTempVendorCDR_20' ) end [2025-03-15 13:37:19] Production.INFO: ProcessCDR(1,14686493,1,1,2) [2025-03-15 13:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686493', 'tblTempUsageDetail_20' ) start [2025-03-15 13:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686493', 'tblTempUsageDetail_20' ) end [2025-03-15 13:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 13:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 13:37:22] Production.INFO: ==14904== Releasing lock... [2025-03-15 13:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 13:37:22] Production.INFO: 42.5 MB #Memory Used# [2025-03-15 13:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 10:38:04 [end_date_ymd] => 2025-03-15 13:38:04 [RateCDR] => 1 ) [2025-03-15 13:38:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 10:38:04' and `end` < '2025-03-15 13:38:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 13:38:17] Production.INFO: count ==1948 [2025-03-15 13:38:18] Production.ERROR: pbx CDR StartTime 2025-03-15 10:38:04 - End Time 2025-03-15 13:38:04 [2025-03-15 13:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 13:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686498', 'tblTempUsageDetail_20' ) start [2025-03-15 13:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686498', 'tblTempUsageDetail_20' ) end [2025-03-15 13:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686498', 'tblTempVendorCDR_20' ) start [2025-03-15 13:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686498', 'tblTempVendorCDR_20' ) end [2025-03-15 13:38:18] Production.INFO: ProcessCDR(1,14686498,1,1,2) [2025-03-15 13:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686498', 'tblTempUsageDetail_20' ) start [2025-03-15 13:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686498', 'tblTempUsageDetail_20' ) end [2025-03-15 13:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 13:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 13:38:21] Production.INFO: ==15009== Releasing lock... [2025-03-15 13:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 13:38:21] Production.INFO: 42.75 MB #Memory Used# [2025-03-15 13:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 10:39:05 [end_date_ymd] => 2025-03-15 13:39:05 [RateCDR] => 1 ) [2025-03-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-03-15 10:39:05' and `end` < '2025-03-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-03-15 13:39:18] Production.INFO: count ==1939 [2025-03-15 13:39:18] Production.ERROR: pbx CDR StartTime 2025-03-15 10:39:05 - End Time 2025-03-15 13:39:05 [2025-03-15 13:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 13:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686503', 'tblTempUsageDetail_20' ) start [2025-03-15 13:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686503', 'tblTempUsageDetail_20' ) end [2025-03-15 13:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686503', 'tblTempVendorCDR_20' ) start [2025-03-15 13:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686503', 'tblTempVendorCDR_20' ) end [2025-03-15 13:39:18] Production.INFO: ProcessCDR(1,14686503,1,1,2) [2025-03-15 13:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686503', 'tblTempUsageDetail_20' ) start [2025-03-15 13:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686503', 'tblTempUsageDetail_20' ) end [2025-03-15 13:39:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 13:39:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 13:39:22] Production.INFO: ==15115== Releasing lock... [2025-03-15 13:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 13:39:22] Production.INFO: 42.75 MB #Memory Used# [2025-03-15 13:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 10:40:06 [end_date_ymd] => 2025-03-15 13:40:06 [RateCDR] => 1 ) [2025-03-15 13:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 10:40:06' and `end` < '2025-03-15 13:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 13:40:18] Production.INFO: count ==1936 [2025-03-15 13:40:19] Production.ERROR: pbx CDR StartTime 2025-03-15 10:40:06 - End Time 2025-03-15 13:40:06 [2025-03-15 13:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 13:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686509', 'tblTempUsageDetail_20' ) start [2025-03-15 13:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686509', 'tblTempUsageDetail_20' ) end [2025-03-15 13:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686509', 'tblTempVendorCDR_20' ) start [2025-03-15 13:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686509', 'tblTempVendorCDR_20' ) end [2025-03-15 13:40:19] Production.INFO: ProcessCDR(1,14686509,1,1,2) [2025-03-15 13:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686509', 'tblTempUsageDetail_20' ) start [2025-03-15 13:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686509', 'tblTempUsageDetail_20' ) end [2025-03-15 13:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 13:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 13:40:22] Production.INFO: ==15219== Releasing lock... [2025-03-15 13:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 13:40:22] Production.INFO: 42.5 MB #Memory Used# [2025-03-15 13:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 10:41:05 [end_date_ymd] => 2025-03-15 13:41:05 [RateCDR] => 1 ) [2025-03-15 13:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 10:41:05' and `end` < '2025-03-15 13:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 13:41:18] Production.INFO: count ==1993 [2025-03-15 13:41:18] Production.ERROR: pbx CDR StartTime 2025-03-15 10:41:05 - End Time 2025-03-15 13:41:05 [2025-03-15 13:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 13:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686514', 'tblTempUsageDetail_20' ) start [2025-03-15 13:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686514', 'tblTempUsageDetail_20' ) end [2025-03-15 13:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686514', 'tblTempVendorCDR_20' ) start [2025-03-15 13:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686514', 'tblTempVendorCDR_20' ) end [2025-03-15 13:41:18] Production.INFO: ProcessCDR(1,14686514,1,1,2) [2025-03-15 13:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686514', 'tblTempUsageDetail_20' ) start [2025-03-15 13:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686514', 'tblTempUsageDetail_20' ) end [2025-03-15 13:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 13:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 13:41:22] Production.INFO: ==15329== Releasing lock... [2025-03-15 13:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 13:41:22] Production.INFO: 43 MB #Memory Used# [2025-03-15 13:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 10:42:05 [end_date_ymd] => 2025-03-15 13:42:05 [RateCDR] => 1 ) [2025-03-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-03-15 10:42:05' and `end` < '2025-03-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-03-15 13:42:17] Production.INFO: count ==1995 [2025-03-15 13:42:18] Production.ERROR: pbx CDR StartTime 2025-03-15 10:42:05 - End Time 2025-03-15 13:42:05 [2025-03-15 13:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 13:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686519', 'tblTempUsageDetail_20' ) start [2025-03-15 13:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686519', 'tblTempUsageDetail_20' ) end [2025-03-15 13:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686519', 'tblTempVendorCDR_20' ) start [2025-03-15 13:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686519', 'tblTempVendorCDR_20' ) end [2025-03-15 13:42:18] Production.INFO: ProcessCDR(1,14686519,1,1,2) [2025-03-15 13:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686519', 'tblTempUsageDetail_20' ) start [2025-03-15 13:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686519', 'tblTempUsageDetail_20' ) end [2025-03-15 13:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 13:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 13:42:21] Production.INFO: ==15435== Releasing lock... [2025-03-15 13:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 13:42:21] Production.INFO: 43 MB #Memory Used# [2025-03-15 13:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 10:43:05 [end_date_ymd] => 2025-03-15 13:43:05 [RateCDR] => 1 ) [2025-03-15 13:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 10:43:05' and `end` < '2025-03-15 13:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 13:43:17] Production.INFO: count ==2009 [2025-03-15 13:43:18] Production.ERROR: pbx CDR StartTime 2025-03-15 10:43:05 - End Time 2025-03-15 13:43:05 [2025-03-15 13:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 13:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686524', 'tblTempUsageDetail_20' ) start [2025-03-15 13:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686524', 'tblTempUsageDetail_20' ) end [2025-03-15 13:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686524', 'tblTempVendorCDR_20' ) start [2025-03-15 13:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686524', 'tblTempVendorCDR_20' ) end [2025-03-15 13:43:18] Production.INFO: ProcessCDR(1,14686524,1,1,2) [2025-03-15 13:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686524', 'tblTempUsageDetail_20' ) start [2025-03-15 13:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686524', 'tblTempUsageDetail_20' ) end [2025-03-15 13:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 13:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 13:43:21] Production.INFO: ==15540== Releasing lock... [2025-03-15 13:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 13:43:21] Production.INFO: 43 MB #Memory Used# [2025-03-15 13:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 10:44:06 [end_date_ymd] => 2025-03-15 13:44:06 [RateCDR] => 1 ) [2025-03-15 13:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 10:44:06' and `end` < '2025-03-15 13:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 13:44:18] Production.INFO: count ==2009 [2025-03-15 13:44:19] Production.ERROR: pbx CDR StartTime 2025-03-15 10:44:06 - End Time 2025-03-15 13:44:06 [2025-03-15 13:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 13:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686529', 'tblTempUsageDetail_20' ) start [2025-03-15 13:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686529', 'tblTempUsageDetail_20' ) end [2025-03-15 13:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686529', 'tblTempVendorCDR_20' ) start [2025-03-15 13:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686529', 'tblTempVendorCDR_20' ) end [2025-03-15 13:44:19] Production.INFO: ProcessCDR(1,14686529,1,1,2) [2025-03-15 13:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686529', 'tblTempUsageDetail_20' ) start [2025-03-15 13:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686529', 'tblTempUsageDetail_20' ) end [2025-03-15 13:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 13:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 13:44:22] Production.INFO: ==15647== Releasing lock... [2025-03-15 13:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 13:44:22] Production.INFO: 43 MB #Memory Used# [2025-03-15 13:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 10:45:05 [end_date_ymd] => 2025-03-15 13:45:05 [RateCDR] => 1 ) [2025-03-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-03-15 10:45:05' and `end` < '2025-03-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-03-15 13:45:17] Production.INFO: count ==2009 [2025-03-15 13:45:18] Production.ERROR: pbx CDR StartTime 2025-03-15 10:45:05 - End Time 2025-03-15 13:45:05 [2025-03-15 13:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 13:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686534', 'tblTempUsageDetail_20' ) start [2025-03-15 13:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686534', 'tblTempUsageDetail_20' ) end [2025-03-15 13:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686534', 'tblTempVendorCDR_20' ) start [2025-03-15 13:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686534', 'tblTempVendorCDR_20' ) end [2025-03-15 13:45:18] Production.INFO: ProcessCDR(1,14686534,1,1,2) [2025-03-15 13:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686534', 'tblTempUsageDetail_20' ) start [2025-03-15 13:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686534', 'tblTempUsageDetail_20' ) end [2025-03-15 13:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 13:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 13:45:21] Production.INFO: ==15791== Releasing lock... [2025-03-15 13:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 13:45:21] Production.INFO: 43 MB #Memory Used# [2025-03-15 13:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 10:46:05 [end_date_ymd] => 2025-03-15 13:46:05 [RateCDR] => 1 ) [2025-03-15 13:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 10:46:05' and `end` < '2025-03-15 13:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 13:46:17] Production.INFO: count ==2007 [2025-03-15 13:46:18] Production.ERROR: pbx CDR StartTime 2025-03-15 10:46:05 - End Time 2025-03-15 13:46:05 [2025-03-15 13:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 13:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686539', 'tblTempUsageDetail_20' ) start [2025-03-15 13:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686539', 'tblTempUsageDetail_20' ) end [2025-03-15 13:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686539', 'tblTempVendorCDR_20' ) start [2025-03-15 13:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686539', 'tblTempVendorCDR_20' ) end [2025-03-15 13:46:18] Production.INFO: ProcessCDR(1,14686539,1,1,2) [2025-03-15 13:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686539', 'tblTempUsageDetail_20' ) start [2025-03-15 13:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686539', 'tblTempUsageDetail_20' ) end [2025-03-15 13:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 13:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 13:46:21] Production.INFO: ==15897== Releasing lock... [2025-03-15 13:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 13:46:21] Production.INFO: 43 MB #Memory Used# [2025-03-15 13:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 10:47:05 [end_date_ymd] => 2025-03-15 13:47:05 [RateCDR] => 1 ) [2025-03-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-03-15 10:47:05' and `end` < '2025-03-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-03-15 13:47:18] Production.INFO: count ==2008 [2025-03-15 13:47:18] Production.ERROR: pbx CDR StartTime 2025-03-15 10:47:05 - End Time 2025-03-15 13:47:05 [2025-03-15 13:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 13:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686544', 'tblTempUsageDetail_20' ) start [2025-03-15 13:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686544', 'tblTempUsageDetail_20' ) end [2025-03-15 13:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686544', 'tblTempVendorCDR_20' ) start [2025-03-15 13:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686544', 'tblTempVendorCDR_20' ) end [2025-03-15 13:47:18] Production.INFO: ProcessCDR(1,14686544,1,1,2) [2025-03-15 13:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686544', 'tblTempUsageDetail_20' ) start [2025-03-15 13:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686544', 'tblTempUsageDetail_20' ) end [2025-03-15 13:47:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 13:47:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 13:47:23] Production.INFO: ==16001== Releasing lock... [2025-03-15 13:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 13:47:23] Production.INFO: 43 MB #Memory Used# [2025-03-15 13:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 10:48:05 [end_date_ymd] => 2025-03-15 13:48:05 [RateCDR] => 1 ) [2025-03-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-03-15 10:48:05' and `end` < '2025-03-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-03-15 13:48:18] Production.INFO: count ==2010 [2025-03-15 13:48:18] Production.ERROR: pbx CDR StartTime 2025-03-15 10:48:05 - End Time 2025-03-15 13:48:05 [2025-03-15 13:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 13:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686549', 'tblTempUsageDetail_20' ) start [2025-03-15 13:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686549', 'tblTempUsageDetail_20' ) end [2025-03-15 13:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686549', 'tblTempVendorCDR_20' ) start [2025-03-15 13:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686549', 'tblTempVendorCDR_20' ) end [2025-03-15 13:48:18] Production.INFO: ProcessCDR(1,14686549,1,1,2) [2025-03-15 13:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686549', 'tblTempUsageDetail_20' ) start [2025-03-15 13:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686549', 'tblTempUsageDetail_20' ) end [2025-03-15 13:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 13:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 13:48:22] Production.INFO: ==16107== Releasing lock... [2025-03-15 13:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 13:48:22] Production.INFO: 43 MB #Memory Used# [2025-03-15 13:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 10:49:05 [end_date_ymd] => 2025-03-15 13:49:05 [RateCDR] => 1 ) [2025-03-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-03-15 10:49:05' and `end` < '2025-03-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-03-15 13:49:17] Production.INFO: count ==2005 [2025-03-15 13:49:18] Production.ERROR: pbx CDR StartTime 2025-03-15 10:49:05 - End Time 2025-03-15 13:49:05 [2025-03-15 13:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 13:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686554', 'tblTempUsageDetail_20' ) start [2025-03-15 13:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686554', 'tblTempUsageDetail_20' ) end [2025-03-15 13:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686554', 'tblTempVendorCDR_20' ) start [2025-03-15 13:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686554', 'tblTempVendorCDR_20' ) end [2025-03-15 13:49:18] Production.INFO: ProcessCDR(1,14686554,1,1,2) [2025-03-15 13:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686554', 'tblTempUsageDetail_20' ) start [2025-03-15 13:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686554', 'tblTempUsageDetail_20' ) end [2025-03-15 13:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 13:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 13:49:21] Production.INFO: ==16210== Releasing lock... [2025-03-15 13:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 13:49:21] Production.INFO: 43 MB #Memory Used# [2025-03-15 13:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 10:50:06 [end_date_ymd] => 2025-03-15 13:50:06 [RateCDR] => 1 ) [2025-03-15 13:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 10:50:06' and `end` < '2025-03-15 13:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 13:50:19] Production.INFO: count ==2005 [2025-03-15 13:50:19] Production.ERROR: pbx CDR StartTime 2025-03-15 10:50:06 - End Time 2025-03-15 13:50:06 [2025-03-15 13:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 13:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686560', 'tblTempUsageDetail_20' ) start [2025-03-15 13:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686560', 'tblTempUsageDetail_20' ) end [2025-03-15 13:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686560', 'tblTempVendorCDR_20' ) start [2025-03-15 13:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686560', 'tblTempVendorCDR_20' ) end [2025-03-15 13:50:19] Production.INFO: ProcessCDR(1,14686560,1,1,2) [2025-03-15 13:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686560', 'tblTempUsageDetail_20' ) start [2025-03-15 13:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686560', 'tblTempUsageDetail_20' ) end [2025-03-15 13:50:24] Production.ERROR: pbx prc_insertCDR start [2025-03-15 13:50:24] Production.ERROR: pbx prc_insertCDR end [2025-03-15 13:50:24] Production.INFO: ==16319== Releasing lock... [2025-03-15 13:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 13:50:24] Production.INFO: 43 MB #Memory Used# [2025-03-15 13:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 10:51:05 [end_date_ymd] => 2025-03-15 13:51:05 [RateCDR] => 1 ) [2025-03-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-03-15 10:51:05' and `end` < '2025-03-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-03-15 13:51:17] Production.INFO: count ==2038 [2025-03-15 13:51:18] Production.ERROR: pbx CDR StartTime 2025-03-15 10:51:05 - End Time 2025-03-15 13:51:05 [2025-03-15 13:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 13:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686565', 'tblTempUsageDetail_20' ) start [2025-03-15 13:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686565', 'tblTempUsageDetail_20' ) end [2025-03-15 13:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686565', 'tblTempVendorCDR_20' ) start [2025-03-15 13:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686565', 'tblTempVendorCDR_20' ) end [2025-03-15 13:51:18] Production.INFO: ProcessCDR(1,14686565,1,1,2) [2025-03-15 13:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686565', 'tblTempUsageDetail_20' ) start [2025-03-15 13:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686565', 'tblTempUsageDetail_20' ) end [2025-03-15 13:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 13:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 13:51:22] Production.INFO: ==16426== Releasing lock... [2025-03-15 13:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 13:51:22] Production.INFO: 43.25 MB #Memory Used# [2025-03-15 13:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 10:52:05 [end_date_ymd] => 2025-03-15 13:52:05 [RateCDR] => 1 ) [2025-03-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-03-15 10:52:05' and `end` < '2025-03-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-03-15 13:52:18] Production.INFO: count ==2014 [2025-03-15 13:52:18] Production.ERROR: pbx CDR StartTime 2025-03-15 10:52:05 - End Time 2025-03-15 13:52:05 [2025-03-15 13:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 13:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686570', 'tblTempUsageDetail_20' ) start [2025-03-15 13:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686570', 'tblTempUsageDetail_20' ) end [2025-03-15 13:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686570', 'tblTempVendorCDR_20' ) start [2025-03-15 13:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686570', 'tblTempVendorCDR_20' ) end [2025-03-15 13:52:18] Production.INFO: ProcessCDR(1,14686570,1,1,2) [2025-03-15 13:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686570', 'tblTempUsageDetail_20' ) start [2025-03-15 13:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686570', 'tblTempUsageDetail_20' ) end [2025-03-15 13:52:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 13:52:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 13:52:23] Production.INFO: ==16536== Releasing lock... [2025-03-15 13:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 13:52:23] Production.INFO: 43.25 MB #Memory Used# [2025-03-15 13:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 10:53:05 [end_date_ymd] => 2025-03-15 13:53:05 [RateCDR] => 1 ) [2025-03-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-03-15 10:53:05' and `end` < '2025-03-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-03-15 13:53:17] Production.INFO: count ==2025 [2025-03-15 13:53:18] Production.ERROR: pbx CDR StartTime 2025-03-15 10:53:05 - End Time 2025-03-15 13:53:05 [2025-03-15 13:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 13:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686575', 'tblTempUsageDetail_20' ) start [2025-03-15 13:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686575', 'tblTempUsageDetail_20' ) end [2025-03-15 13:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686575', 'tblTempVendorCDR_20' ) start [2025-03-15 13:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686575', 'tblTempVendorCDR_20' ) end [2025-03-15 13:53:18] Production.INFO: ProcessCDR(1,14686575,1,1,2) [2025-03-15 13:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686575', 'tblTempUsageDetail_20' ) start [2025-03-15 13:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686575', 'tblTempUsageDetail_20' ) end [2025-03-15 13:53:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 13:53:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 13:53:23] Production.INFO: ==16644== Releasing lock... [2025-03-15 13:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 13:53:23] Production.INFO: 43.5 MB #Memory Used# [2025-03-15 13:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 10:54:05 [end_date_ymd] => 2025-03-15 13:54:05 [RateCDR] => 1 ) [2025-03-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-03-15 10:54:05' and `end` < '2025-03-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-03-15 13:54:17] Production.INFO: count ==2023 [2025-03-15 13:54:18] Production.ERROR: pbx CDR StartTime 2025-03-15 10:54:05 - End Time 2025-03-15 13:54:05 [2025-03-15 13:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 13:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686580', 'tblTempUsageDetail_20' ) start [2025-03-15 13:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686580', 'tblTempUsageDetail_20' ) end [2025-03-15 13:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686580', 'tblTempVendorCDR_20' ) start [2025-03-15 13:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686580', 'tblTempVendorCDR_20' ) end [2025-03-15 13:54:18] Production.INFO: ProcessCDR(1,14686580,1,1,2) [2025-03-15 13:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686580', 'tblTempUsageDetail_20' ) start [2025-03-15 13:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686580', 'tblTempUsageDetail_20' ) end [2025-03-15 13:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 13:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 13:54:22] Production.INFO: ==16752== Releasing lock... [2025-03-15 13:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 13:54:22] Production.INFO: 43.5 MB #Memory Used# [2025-03-15 13:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 10:55:05 [end_date_ymd] => 2025-03-15 13:55:05 [RateCDR] => 1 ) [2025-03-15 13:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 10:55:05' and `end` < '2025-03-15 13:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 13:55:18] Production.INFO: count ==2023 [2025-03-15 13:55:18] Production.ERROR: pbx CDR StartTime 2025-03-15 10:55:05 - End Time 2025-03-15 13:55:05 [2025-03-15 13:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 13:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686585', 'tblTempUsageDetail_20' ) start [2025-03-15 13:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686585', 'tblTempUsageDetail_20' ) end [2025-03-15 13:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686585', 'tblTempVendorCDR_20' ) start [2025-03-15 13:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686585', 'tblTempVendorCDR_20' ) end [2025-03-15 13:55:18] Production.INFO: ProcessCDR(1,14686585,1,1,2) [2025-03-15 13:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686585', 'tblTempUsageDetail_20' ) start [2025-03-15 13:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686585', 'tblTempUsageDetail_20' ) end [2025-03-15 13:55:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 13:55:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 13:55:23] Production.INFO: ==16864== Releasing lock... [2025-03-15 13:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 13:55:23] Production.INFO: 43.25 MB #Memory Used# [2025-03-15 13:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 10:56:05 [end_date_ymd] => 2025-03-15 13:56:05 [RateCDR] => 1 ) [2025-03-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-03-15 10:56:05' and `end` < '2025-03-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-03-15 13:56:17] Production.INFO: count ==2031 [2025-03-15 13:56:18] Production.ERROR: pbx CDR StartTime 2025-03-15 10:56:05 - End Time 2025-03-15 13:56:05 [2025-03-15 13:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 13:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686590', 'tblTempUsageDetail_20' ) start [2025-03-15 13:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686590', 'tblTempUsageDetail_20' ) end [2025-03-15 13:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686590', 'tblTempVendorCDR_20' ) start [2025-03-15 13:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686590', 'tblTempVendorCDR_20' ) end [2025-03-15 13:56:18] Production.INFO: ProcessCDR(1,14686590,1,1,2) [2025-03-15 13:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686590', 'tblTempUsageDetail_20' ) start [2025-03-15 13:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686590', 'tblTempUsageDetail_20' ) end [2025-03-15 13:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 13:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 13:56:22] Production.INFO: ==16972== Releasing lock... [2025-03-15 13:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 13:56:22] Production.INFO: 43.25 MB #Memory Used# [2025-03-15 13:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 10:57:05 [end_date_ymd] => 2025-03-15 13:57:05 [RateCDR] => 1 ) [2025-03-15 13:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 10:57:05' and `end` < '2025-03-15 13:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 13:57:18] Production.INFO: count ==2032 [2025-03-15 13:57:18] Production.ERROR: pbx CDR StartTime 2025-03-15 10:57:05 - End Time 2025-03-15 13:57:05 [2025-03-15 13:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 13:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686595', 'tblTempUsageDetail_20' ) start [2025-03-15 13:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686595', 'tblTempUsageDetail_20' ) end [2025-03-15 13:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686595', 'tblTempVendorCDR_20' ) start [2025-03-15 13:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686595', 'tblTempVendorCDR_20' ) end [2025-03-15 13:57:18] Production.INFO: ProcessCDR(1,14686595,1,1,2) [2025-03-15 13:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686595', 'tblTempUsageDetail_20' ) start [2025-03-15 13:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686595', 'tblTempUsageDetail_20' ) end [2025-03-15 13:57:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 13:57:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 13:57:23] Production.INFO: ==17084== Releasing lock... [2025-03-15 13:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 13:57:23] Production.INFO: 43.25 MB #Memory Used# [2025-03-15 13:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 10:58:05 [end_date_ymd] => 2025-03-15 13:58:05 [RateCDR] => 1 ) [2025-03-15 13:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 10:58:05' and `end` < '2025-03-15 13:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 13:58:18] Production.INFO: count ==2032 [2025-03-15 13:58:18] Production.ERROR: pbx CDR StartTime 2025-03-15 10:58:05 - End Time 2025-03-15 13:58:05 [2025-03-15 13:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 13:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686600', 'tblTempUsageDetail_20' ) start [2025-03-15 13:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686600', 'tblTempUsageDetail_20' ) end [2025-03-15 13:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686600', 'tblTempVendorCDR_20' ) start [2025-03-15 13:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686600', 'tblTempVendorCDR_20' ) end [2025-03-15 13:58:18] Production.INFO: ProcessCDR(1,14686600,1,1,2) [2025-03-15 13:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686600', 'tblTempUsageDetail_20' ) start [2025-03-15 13:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686600', 'tblTempUsageDetail_20' ) end [2025-03-15 13:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 13:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 13:58:22] Production.INFO: ==17193== Releasing lock... [2025-03-15 13:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 13:58:22] Production.INFO: 43.25 MB #Memory Used# [2025-03-15 13:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 10:59:05 [end_date_ymd] => 2025-03-15 13:59:05 [RateCDR] => 1 ) [2025-03-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-03-15 10:59:05' and `end` < '2025-03-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-03-15 13:59:18] Production.INFO: count ==2033 [2025-03-15 13:59:19] Production.ERROR: pbx CDR StartTime 2025-03-15 10:59:05 - End Time 2025-03-15 13:59:05 [2025-03-15 13:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 13:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686605', 'tblTempUsageDetail_20' ) start [2025-03-15 13:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686605', 'tblTempUsageDetail_20' ) end [2025-03-15 13:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686605', 'tblTempVendorCDR_20' ) start [2025-03-15 13:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686605', 'tblTempVendorCDR_20' ) end [2025-03-15 13:59:19] Production.INFO: ProcessCDR(1,14686605,1,1,2) [2025-03-15 13:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 13:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 13:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686605', 'tblTempUsageDetail_20' ) start [2025-03-15 13:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686605', 'tblTempUsageDetail_20' ) end [2025-03-15 13:59:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 13:59:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 13:59:23] Production.INFO: ==17299== Releasing lock... [2025-03-15 13:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 13:59:23] Production.INFO: 43.25 MB #Memory Used# [2025-03-15 14:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 11:00:06 [end_date_ymd] => 2025-03-15 14:00:06 [RateCDR] => 1 ) [2025-03-15 14:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 11:00:06' and `end` < '2025-03-15 14:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 14:00:18] Production.INFO: count ==2018 [2025-03-15 14:00:19] Production.ERROR: pbx CDR StartTime 2025-03-15 11:00:06 - End Time 2025-03-15 14:00:06 [2025-03-15 14:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 14:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686610', 'tblTempUsageDetail_20' ) start [2025-03-15 14:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686610', 'tblTempUsageDetail_20' ) end [2025-03-15 14:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686610', 'tblTempVendorCDR_20' ) start [2025-03-15 14:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686610', 'tblTempVendorCDR_20' ) end [2025-03-15 14:00:19] Production.INFO: ProcessCDR(1,14686610,1,1,2) [2025-03-15 14:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686610', 'tblTempUsageDetail_20' ) start [2025-03-15 14:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686610', 'tblTempUsageDetail_20' ) end [2025-03-15 14:00:24] Production.ERROR: pbx prc_insertCDR start [2025-03-15 14:00:24] Production.ERROR: pbx prc_insertCDR end [2025-03-15 14:00:24] Production.INFO: ==17447== Releasing lock... [2025-03-15 14:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 14:00:24] Production.INFO: 43.25 MB #Memory Used# [2025-03-15 14:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 11:01:04 [end_date_ymd] => 2025-03-15 14:01:04 [RateCDR] => 1 ) [2025-03-15 14: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-03-15 11:01:04' and `end` < '2025-03-15 14: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-03-15 14:01:17] Production.INFO: count ==2006 [2025-03-15 14:01:17] Production.ERROR: pbx CDR StartTime 2025-03-15 11:01:04 - End Time 2025-03-15 14:01:04 [2025-03-15 14:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 14:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686616', 'tblTempUsageDetail_20' ) start [2025-03-15 14:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686616', 'tblTempUsageDetail_20' ) end [2025-03-15 14:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686616', 'tblTempVendorCDR_20' ) start [2025-03-15 14:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686616', 'tblTempVendorCDR_20' ) end [2025-03-15 14:01:17] Production.INFO: ProcessCDR(1,14686616,1,1,2) [2025-03-15 14:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686616', 'tblTempUsageDetail_20' ) start [2025-03-15 14:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686616', 'tblTempUsageDetail_20' ) end [2025-03-15 14:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 14:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 14:01:21] Production.INFO: ==17568== Releasing lock... [2025-03-15 14:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 14:01:21] Production.INFO: 43 MB #Memory Used# [2025-03-15 14:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 11:02:05 [end_date_ymd] => 2025-03-15 14:02:05 [RateCDR] => 1 ) [2025-03-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-03-15 11:02:05' and `end` < '2025-03-15 14:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 14:02:17] Production.INFO: count ==2007 [2025-03-15 14:02:18] Production.ERROR: pbx CDR StartTime 2025-03-15 11:02:05 - End Time 2025-03-15 14:02:05 [2025-03-15 14:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 14:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686621', 'tblTempUsageDetail_20' ) start [2025-03-15 14:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686621', 'tblTempUsageDetail_20' ) end [2025-03-15 14:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686621', 'tblTempVendorCDR_20' ) start [2025-03-15 14:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686621', 'tblTempVendorCDR_20' ) end [2025-03-15 14:02:18] Production.INFO: ProcessCDR(1,14686621,1,1,2) [2025-03-15 14:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686621', 'tblTempUsageDetail_20' ) start [2025-03-15 14:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686621', 'tblTempUsageDetail_20' ) end [2025-03-15 14:02:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 14:02:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 14:02:23] Production.INFO: ==17679== Releasing lock... [2025-03-15 14:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 14:02:23] Production.INFO: 43 MB #Memory Used# [2025-03-15 14:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 11:03:05 [end_date_ymd] => 2025-03-15 14:03:05 [RateCDR] => 1 ) [2025-03-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-03-15 11:03:05' and `end` < '2025-03-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-03-15 14:03:18] Production.INFO: count ==1991 [2025-03-15 14:03:18] Production.ERROR: pbx CDR StartTime 2025-03-15 11:03:05 - End Time 2025-03-15 14:03:05 [2025-03-15 14:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 14:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686626', 'tblTempUsageDetail_20' ) start [2025-03-15 14:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686626', 'tblTempUsageDetail_20' ) end [2025-03-15 14:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686626', 'tblTempVendorCDR_20' ) start [2025-03-15 14:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686626', 'tblTempVendorCDR_20' ) end [2025-03-15 14:03:18] Production.INFO: ProcessCDR(1,14686626,1,1,2) [2025-03-15 14:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686626', 'tblTempUsageDetail_20' ) start [2025-03-15 14:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686626', 'tblTempUsageDetail_20' ) end [2025-03-15 14:03:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 14:03:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 14:03:23] Production.INFO: ==17789== Releasing lock... [2025-03-15 14:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 14:03:23] Production.INFO: 43 MB #Memory Used# [2025-03-15 14:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 11:04:06 [end_date_ymd] => 2025-03-15 14:04:06 [RateCDR] => 1 ) [2025-03-15 14:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 11:04:06' and `end` < '2025-03-15 14:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 14:04:18] Production.INFO: count ==1976 [2025-03-15 14:04:19] Production.ERROR: pbx CDR StartTime 2025-03-15 11:04:06 - End Time 2025-03-15 14:04:06 [2025-03-15 14:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 14:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686631', 'tblTempUsageDetail_20' ) start [2025-03-15 14:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686631', 'tblTempUsageDetail_20' ) end [2025-03-15 14:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686631', 'tblTempVendorCDR_20' ) start [2025-03-15 14:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686631', 'tblTempVendorCDR_20' ) end [2025-03-15 14:04:19] Production.INFO: ProcessCDR(1,14686631,1,1,2) [2025-03-15 14:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686631', 'tblTempUsageDetail_20' ) start [2025-03-15 14:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686631', 'tblTempUsageDetail_20' ) end [2025-03-15 14:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 14:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 14:04:22] Production.INFO: ==17903== Releasing lock... [2025-03-15 14:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 14:04:22] Production.INFO: 42.75 MB #Memory Used# [2025-03-15 14:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 11:05:05 [end_date_ymd] => 2025-03-15 14:05:05 [RateCDR] => 1 ) [2025-03-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-03-15 11:05:05' and `end` < '2025-03-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-03-15 14:05:17] Production.INFO: count ==1975 [2025-03-15 14:05:18] Production.ERROR: pbx CDR StartTime 2025-03-15 11:05:05 - End Time 2025-03-15 14:05:05 [2025-03-15 14:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 14:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686636', 'tblTempUsageDetail_20' ) start [2025-03-15 14:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686636', 'tblTempUsageDetail_20' ) end [2025-03-15 14:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686636', 'tblTempVendorCDR_20' ) start [2025-03-15 14:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686636', 'tblTempVendorCDR_20' ) end [2025-03-15 14:05:18] Production.INFO: ProcessCDR(1,14686636,1,1,2) [2025-03-15 14:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686636', 'tblTempUsageDetail_20' ) start [2025-03-15 14:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686636', 'tblTempUsageDetail_20' ) end [2025-03-15 14:05:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 14:05:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 14:05:23] Production.INFO: ==18014== Releasing lock... [2025-03-15 14:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 14:05:23] Production.INFO: 42.75 MB #Memory Used# [2025-03-15 14:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 11:06:05 [end_date_ymd] => 2025-03-15 14:06:05 [RateCDR] => 1 ) [2025-03-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-03-15 11:06:05' and `end` < '2025-03-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-03-15 14:06:18] Production.INFO: count ==1973 [2025-03-15 14:06:18] Production.ERROR: pbx CDR StartTime 2025-03-15 11:06:05 - End Time 2025-03-15 14:06:05 [2025-03-15 14:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 14:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686641', 'tblTempUsageDetail_20' ) start [2025-03-15 14:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686641', 'tblTempUsageDetail_20' ) end [2025-03-15 14:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686641', 'tblTempVendorCDR_20' ) start [2025-03-15 14:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686641', 'tblTempVendorCDR_20' ) end [2025-03-15 14:06:19] Production.INFO: ProcessCDR(1,14686641,1,1,2) [2025-03-15 14:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686641', 'tblTempUsageDetail_20' ) start [2025-03-15 14:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686641', 'tblTempUsageDetail_20' ) end [2025-03-15 14:06:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 14:06:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 14:06:23] Production.INFO: ==18124== Releasing lock... [2025-03-15 14:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 14:06:23] Production.INFO: 42.75 MB #Memory Used# [2025-03-15 14:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 11:07:05 [end_date_ymd] => 2025-03-15 14:07:05 [RateCDR] => 1 ) [2025-03-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-03-15 11:07:05' and `end` < '2025-03-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-03-15 14:07:17] Production.INFO: count ==1975 [2025-03-15 14:07:18] Production.ERROR: pbx CDR StartTime 2025-03-15 11:07:05 - End Time 2025-03-15 14:07:05 [2025-03-15 14:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 14:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686646', 'tblTempUsageDetail_20' ) start [2025-03-15 14:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686646', 'tblTempUsageDetail_20' ) end [2025-03-15 14:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686646', 'tblTempVendorCDR_20' ) start [2025-03-15 14:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686646', 'tblTempVendorCDR_20' ) end [2025-03-15 14:07:18] Production.INFO: ProcessCDR(1,14686646,1,1,2) [2025-03-15 14:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686646', 'tblTempUsageDetail_20' ) start [2025-03-15 14:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686646', 'tblTempUsageDetail_20' ) end [2025-03-15 14:07:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 14:07:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 14:07:23] Production.INFO: ==18246== Releasing lock... [2025-03-15 14:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 14:07:23] Production.INFO: 42.75 MB #Memory Used# [2025-03-15 14:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 11:08:06 [end_date_ymd] => 2025-03-15 14:08:06 [RateCDR] => 1 ) [2025-03-15 14:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 11:08:06' and `end` < '2025-03-15 14:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 14:08:18] Production.INFO: count ==1978 [2025-03-15 14:08:19] Production.ERROR: pbx CDR StartTime 2025-03-15 11:08:06 - End Time 2025-03-15 14:08:06 [2025-03-15 14:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 14:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686651', 'tblTempUsageDetail_20' ) start [2025-03-15 14:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686651', 'tblTempUsageDetail_20' ) end [2025-03-15 14:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686651', 'tblTempVendorCDR_20' ) start [2025-03-15 14:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686651', 'tblTempVendorCDR_20' ) end [2025-03-15 14:08:19] Production.INFO: ProcessCDR(1,14686651,1,1,2) [2025-03-15 14:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686651', 'tblTempUsageDetail_20' ) start [2025-03-15 14:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686651', 'tblTempUsageDetail_20' ) end [2025-03-15 14:08:24] Production.ERROR: pbx prc_insertCDR start [2025-03-15 14:08:24] Production.ERROR: pbx prc_insertCDR end [2025-03-15 14:08:24] Production.INFO: ==18363== Releasing lock... [2025-03-15 14:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 14:08:24] Production.INFO: 42.75 MB #Memory Used# [2025-03-15 14:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 11:09:05 [end_date_ymd] => 2025-03-15 14:09:05 [RateCDR] => 1 ) [2025-03-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-03-15 11:09:05' and `end` < '2025-03-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-03-15 14:09:17] Production.INFO: count ==1980 [2025-03-15 14:09:18] Production.ERROR: pbx CDR StartTime 2025-03-15 11:09:05 - End Time 2025-03-15 14:09:05 [2025-03-15 14:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 14:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686656', 'tblTempUsageDetail_20' ) start [2025-03-15 14:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686656', 'tblTempUsageDetail_20' ) end [2025-03-15 14:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686656', 'tblTempVendorCDR_20' ) start [2025-03-15 14:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686656', 'tblTempVendorCDR_20' ) end [2025-03-15 14:09:18] Production.INFO: ProcessCDR(1,14686656,1,1,2) [2025-03-15 14:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686656', 'tblTempUsageDetail_20' ) start [2025-03-15 14:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686656', 'tblTempUsageDetail_20' ) end [2025-03-15 14:09:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 14:09:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 14:09:23] Production.INFO: ==18472== Releasing lock... [2025-03-15 14:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 14:09:23] Production.INFO: 43 MB #Memory Used# [2025-03-15 14:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 11:10:06 [end_date_ymd] => 2025-03-15 14:10:06 [RateCDR] => 1 ) [2025-03-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-03-15 11:10:06' and `end` < '2025-03-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-03-15 14:10:18] Production.INFO: count ==1986 [2025-03-15 14:10:19] Production.ERROR: pbx CDR StartTime 2025-03-15 11:10:06 - End Time 2025-03-15 14:10:06 [2025-03-15 14:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 14:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686662', 'tblTempUsageDetail_20' ) start [2025-03-15 14:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686662', 'tblTempUsageDetail_20' ) end [2025-03-15 14:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686662', 'tblTempVendorCDR_20' ) start [2025-03-15 14:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686662', 'tblTempVendorCDR_20' ) end [2025-03-15 14:10:19] Production.INFO: ProcessCDR(1,14686662,1,1,2) [2025-03-15 14:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686662', 'tblTempUsageDetail_20' ) start [2025-03-15 14:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686662', 'tblTempUsageDetail_20' ) end [2025-03-15 14:10:24] Production.ERROR: pbx prc_insertCDR start [2025-03-15 14:10:24] Production.ERROR: pbx prc_insertCDR end [2025-03-15 14:10:24] Production.INFO: ==18585== Releasing lock... [2025-03-15 14:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 14:10:24] Production.INFO: 43 MB #Memory Used# [2025-03-15 14:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 11:11:05 [end_date_ymd] => 2025-03-15 14:11:05 [RateCDR] => 1 ) [2025-03-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-03-15 11:11:05' and `end` < '2025-03-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-03-15 14:11:17] Production.INFO: count ==2002 [2025-03-15 14:11:18] Production.ERROR: pbx CDR StartTime 2025-03-15 11:11:05 - End Time 2025-03-15 14:11:05 [2025-03-15 14:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 14:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686667', 'tblTempUsageDetail_20' ) start [2025-03-15 14:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686667', 'tblTempUsageDetail_20' ) end [2025-03-15 14:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686667', 'tblTempVendorCDR_20' ) start [2025-03-15 14:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686667', 'tblTempVendorCDR_20' ) end [2025-03-15 14:11:18] Production.INFO: ProcessCDR(1,14686667,1,1,2) [2025-03-15 14:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686667', 'tblTempUsageDetail_20' ) start [2025-03-15 14:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686667', 'tblTempUsageDetail_20' ) end [2025-03-15 14:11:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 14:11:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 14:11:23] Production.INFO: ==18696== Releasing lock... [2025-03-15 14:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 14:11:23] Production.INFO: 43.25 MB #Memory Used# [2025-03-15 14:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 11:12:05 [end_date_ymd] => 2025-03-15 14:12:05 [RateCDR] => 1 ) [2025-03-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-03-15 11:12:05' and `end` < '2025-03-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-03-15 14:12:18] Production.INFO: count ==2001 [2025-03-15 14:12:19] Production.ERROR: pbx CDR StartTime 2025-03-15 11:12:05 - End Time 2025-03-15 14:12:05 [2025-03-15 14:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 14:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686672', 'tblTempUsageDetail_20' ) start [2025-03-15 14:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686672', 'tblTempUsageDetail_20' ) end [2025-03-15 14:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686672', 'tblTempVendorCDR_20' ) start [2025-03-15 14:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686672', 'tblTempVendorCDR_20' ) end [2025-03-15 14:12:19] Production.INFO: ProcessCDR(1,14686672,1,1,2) [2025-03-15 14:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686672', 'tblTempUsageDetail_20' ) start [2025-03-15 14:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686672', 'tblTempUsageDetail_20' ) end [2025-03-15 14:12:24] Production.ERROR: pbx prc_insertCDR start [2025-03-15 14:12:24] Production.ERROR: pbx prc_insertCDR end [2025-03-15 14:12:24] Production.INFO: ==18812== Releasing lock... [2025-03-15 14:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 14:12:24] Production.INFO: 43 MB #Memory Used# [2025-03-15 14:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 11:13:05 [end_date_ymd] => 2025-03-15 14:13:05 [RateCDR] => 1 ) [2025-03-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-03-15 11:13:05' and `end` < '2025-03-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-03-15 14:13:18] Production.INFO: count ==2000 [2025-03-15 14:13:18] Production.ERROR: pbx CDR StartTime 2025-03-15 11:13:05 - End Time 2025-03-15 14:13:05 [2025-03-15 14:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 14:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686677', 'tblTempUsageDetail_20' ) start [2025-03-15 14:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686677', 'tblTempUsageDetail_20' ) end [2025-03-15 14:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686677', 'tblTempVendorCDR_20' ) start [2025-03-15 14:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686677', 'tblTempVendorCDR_20' ) end [2025-03-15 14:13:18] Production.INFO: ProcessCDR(1,14686677,1,1,2) [2025-03-15 14:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686677', 'tblTempUsageDetail_20' ) start [2025-03-15 14:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686677', 'tblTempUsageDetail_20' ) end [2025-03-15 14:13:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 14:13:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 14:13:23] Production.INFO: ==18930== Releasing lock... [2025-03-15 14:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 14:13:23] Production.INFO: 43 MB #Memory Used# [2025-03-15 14:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 11:14:05 [end_date_ymd] => 2025-03-15 14:14:05 [RateCDR] => 1 ) [2025-03-15 14:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 11:14:05' and `end` < '2025-03-15 14:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 14:14:17] Production.INFO: count ==1994 [2025-03-15 14:14:18] Production.ERROR: pbx CDR StartTime 2025-03-15 11:14:05 - End Time 2025-03-15 14:14:05 [2025-03-15 14:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 14:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686682', 'tblTempUsageDetail_20' ) start [2025-03-15 14:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686682', 'tblTempUsageDetail_20' ) end [2025-03-15 14:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686682', 'tblTempVendorCDR_20' ) start [2025-03-15 14:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686682', 'tblTempVendorCDR_20' ) end [2025-03-15 14:14:18] Production.INFO: ProcessCDR(1,14686682,1,1,2) [2025-03-15 14:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686682', 'tblTempUsageDetail_20' ) start [2025-03-15 14:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686682', 'tblTempUsageDetail_20' ) end [2025-03-15 14:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 14:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 14:14:21] Production.INFO: ==19043== Releasing lock... [2025-03-15 14:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 14:14:21] Production.INFO: 43 MB #Memory Used# [2025-03-15 14:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 11:15:05 [end_date_ymd] => 2025-03-15 14:15:05 [RateCDR] => 1 ) [2025-03-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-03-15 11:15:05' and `end` < '2025-03-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-03-15 14:15:17] Production.INFO: count ==1988 [2025-03-15 14:15:18] Production.ERROR: pbx CDR StartTime 2025-03-15 11:15:05 - End Time 2025-03-15 14:15:05 [2025-03-15 14:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 14:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686687', 'tblTempUsageDetail_20' ) start [2025-03-15 14:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686687', 'tblTempUsageDetail_20' ) end [2025-03-15 14:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686687', 'tblTempVendorCDR_20' ) start [2025-03-15 14:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686687', 'tblTempVendorCDR_20' ) end [2025-03-15 14:15:18] Production.INFO: ProcessCDR(1,14686687,1,1,2) [2025-03-15 14:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686687', 'tblTempUsageDetail_20' ) start [2025-03-15 14:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686687', 'tblTempUsageDetail_20' ) end [2025-03-15 14:15:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 14:15:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 14:15:23] Production.INFO: ==19161== Releasing lock... [2025-03-15 14:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 14:15:23] Production.INFO: 43 MB #Memory Used# [2025-03-15 14:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 11:16:05 [end_date_ymd] => 2025-03-15 14:16:05 [RateCDR] => 1 ) [2025-03-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-03-15 11:16:05' and `end` < '2025-03-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-03-15 14:16:17] Production.INFO: count ==1977 [2025-03-15 14:16:18] Production.ERROR: pbx CDR StartTime 2025-03-15 11:16:05 - End Time 2025-03-15 14:16:05 [2025-03-15 14:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 14:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686692', 'tblTempUsageDetail_20' ) start [2025-03-15 14:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686692', 'tblTempUsageDetail_20' ) end [2025-03-15 14:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686692', 'tblTempVendorCDR_20' ) start [2025-03-15 14:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686692', 'tblTempVendorCDR_20' ) end [2025-03-15 14:16:18] Production.INFO: ProcessCDR(1,14686692,1,1,2) [2025-03-15 14:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686692', 'tblTempUsageDetail_20' ) start [2025-03-15 14:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686692', 'tblTempUsageDetail_20' ) end [2025-03-15 14:16:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 14:16:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 14:16:22] Production.INFO: ==19311== Releasing lock... [2025-03-15 14:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 14:16:22] Production.INFO: 42.75 MB #Memory Used# [2025-03-15 14:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 11:17:06 [end_date_ymd] => 2025-03-15 14:17:06 [RateCDR] => 1 ) [2025-03-15 14:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 11:17:06' and `end` < '2025-03-15 14:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 14:17:18] Production.INFO: count ==1971 [2025-03-15 14:17:19] Production.ERROR: pbx CDR StartTime 2025-03-15 11:17:06 - End Time 2025-03-15 14:17:06 [2025-03-15 14:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 14:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686697', 'tblTempUsageDetail_20' ) start [2025-03-15 14:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686697', 'tblTempUsageDetail_20' ) end [2025-03-15 14:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686697', 'tblTempVendorCDR_20' ) start [2025-03-15 14:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686697', 'tblTempVendorCDR_20' ) end [2025-03-15 14:17:19] Production.INFO: ProcessCDR(1,14686697,1,1,2) [2025-03-15 14:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686697', 'tblTempUsageDetail_20' ) start [2025-03-15 14:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686697', 'tblTempUsageDetail_20' ) end [2025-03-15 14:17:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 14:17:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 14:17:23] Production.INFO: ==19420== Releasing lock... [2025-03-15 14:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 14:17:23] Production.INFO: 42.75 MB #Memory Used# [2025-03-15 14:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 11:18:05 [end_date_ymd] => 2025-03-15 14:18:05 [RateCDR] => 1 ) [2025-03-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-03-15 11:18:05' and `end` < '2025-03-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-03-15 14:18:18] Production.INFO: count ==1968 [2025-03-15 14:18:18] Production.ERROR: pbx CDR StartTime 2025-03-15 11:18:05 - End Time 2025-03-15 14:18:05 [2025-03-15 14:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 14:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686702', 'tblTempUsageDetail_20' ) start [2025-03-15 14:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686702', 'tblTempUsageDetail_20' ) end [2025-03-15 14:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686702', 'tblTempVendorCDR_20' ) start [2025-03-15 14:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686702', 'tblTempVendorCDR_20' ) end [2025-03-15 14:18:18] Production.INFO: ProcessCDR(1,14686702,1,1,2) [2025-03-15 14:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686702', 'tblTempUsageDetail_20' ) start [2025-03-15 14:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686702', 'tblTempUsageDetail_20' ) end [2025-03-15 14:18:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 14:18:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 14:18:23] Production.INFO: ==19531== Releasing lock... [2025-03-15 14:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 14:18:23] Production.INFO: 42.75 MB #Memory Used# [2025-03-15 14:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 11:19:05 [end_date_ymd] => 2025-03-15 14:19:05 [RateCDR] => 1 ) [2025-03-15 14:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 11:19:05' and `end` < '2025-03-15 14:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 14:19:18] Production.INFO: count ==1974 [2025-03-15 14:19:18] Production.ERROR: pbx CDR StartTime 2025-03-15 11:19:05 - End Time 2025-03-15 14:19:05 [2025-03-15 14:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 14:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686707', 'tblTempUsageDetail_20' ) start [2025-03-15 14:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686707', 'tblTempUsageDetail_20' ) end [2025-03-15 14:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686707', 'tblTempVendorCDR_20' ) start [2025-03-15 14:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686707', 'tblTempVendorCDR_20' ) end [2025-03-15 14:19:18] Production.INFO: ProcessCDR(1,14686707,1,1,2) [2025-03-15 14:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686707', 'tblTempUsageDetail_20' ) start [2025-03-15 14:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686707', 'tblTempUsageDetail_20' ) end [2025-03-15 14:19:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 14:19:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 14:19:23] Production.INFO: ==19644== Releasing lock... [2025-03-15 14:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 14:19:23] Production.INFO: 43 MB #Memory Used# [2025-03-15 14:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 11:20:06 [end_date_ymd] => 2025-03-15 14:20:06 [RateCDR] => 1 ) [2025-03-15 14:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 11:20:06' and `end` < '2025-03-15 14:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 14:20:18] Production.INFO: count ==1975 [2025-03-15 14:20:19] Production.ERROR: pbx CDR StartTime 2025-03-15 11:20:06 - End Time 2025-03-15 14:20:06 [2025-03-15 14:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 14:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686713', 'tblTempUsageDetail_20' ) start [2025-03-15 14:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686713', 'tblTempUsageDetail_20' ) end [2025-03-15 14:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686713', 'tblTempVendorCDR_20' ) start [2025-03-15 14:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686713', 'tblTempVendorCDR_20' ) end [2025-03-15 14:20:19] Production.INFO: ProcessCDR(1,14686713,1,1,2) [2025-03-15 14:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686713', 'tblTempUsageDetail_20' ) start [2025-03-15 14:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686713', 'tblTempUsageDetail_20' ) end [2025-03-15 14:20:24] Production.ERROR: pbx prc_insertCDR start [2025-03-15 14:20:24] Production.ERROR: pbx prc_insertCDR end [2025-03-15 14:20:24] Production.INFO: ==19762== Releasing lock... [2025-03-15 14:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 14:20:24] Production.INFO: 42.5 MB #Memory Used# [2025-03-15 14:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 11:21:05 [end_date_ymd] => 2025-03-15 14:21:05 [RateCDR] => 1 ) [2025-03-15 14:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 11:21:05' and `end` < '2025-03-15 14:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 14:21:18] Production.INFO: count ==1991 [2025-03-15 14:21:18] Production.ERROR: pbx CDR StartTime 2025-03-15 11:21:05 - End Time 2025-03-15 14:21:05 [2025-03-15 14:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 14:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686718', 'tblTempUsageDetail_20' ) start [2025-03-15 14:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686718', 'tblTempUsageDetail_20' ) end [2025-03-15 14:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686718', 'tblTempVendorCDR_20' ) start [2025-03-15 14:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686718', 'tblTempVendorCDR_20' ) end [2025-03-15 14:21:18] Production.INFO: ProcessCDR(1,14686718,1,1,2) [2025-03-15 14:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686718', 'tblTempUsageDetail_20' ) start [2025-03-15 14:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686718', 'tblTempUsageDetail_20' ) end [2025-03-15 14:21:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 14:21:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 14:21:23] Production.INFO: ==19881== Releasing lock... [2025-03-15 14:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 14:21:23] Production.INFO: 43 MB #Memory Used# [2025-03-15 14:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 11:22:05 [end_date_ymd] => 2025-03-15 14:22:05 [RateCDR] => 1 ) [2025-03-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-03-15 11:22:05' and `end` < '2025-03-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-03-15 14:22:17] Production.INFO: count ==1992 [2025-03-15 14:22:18] Production.ERROR: pbx CDR StartTime 2025-03-15 11:22:05 - End Time 2025-03-15 14:22:05 [2025-03-15 14:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 14:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686723', 'tblTempUsageDetail_20' ) start [2025-03-15 14:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686723', 'tblTempUsageDetail_20' ) end [2025-03-15 14:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686723', 'tblTempVendorCDR_20' ) start [2025-03-15 14:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686723', 'tblTempVendorCDR_20' ) end [2025-03-15 14:22:18] Production.INFO: ProcessCDR(1,14686723,1,1,2) [2025-03-15 14:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686723', 'tblTempUsageDetail_20' ) start [2025-03-15 14:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686723', 'tblTempUsageDetail_20' ) end [2025-03-15 14:22:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 14:22:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 14:22:23] Production.INFO: ==19992== Releasing lock... [2025-03-15 14:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 14:22:23] Production.INFO: 43.25 MB #Memory Used# [2025-03-15 14:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 11:23:05 [end_date_ymd] => 2025-03-15 14:23:05 [RateCDR] => 1 ) [2025-03-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-03-15 11:23:05' and `end` < '2025-03-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-03-15 14:23:18] Production.INFO: count ==1993 [2025-03-15 14:23:18] Production.ERROR: pbx CDR StartTime 2025-03-15 11:23:05 - End Time 2025-03-15 14:23:05 [2025-03-15 14:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 14:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686728', 'tblTempUsageDetail_20' ) start [2025-03-15 14:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686728', 'tblTempUsageDetail_20' ) end [2025-03-15 14:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686728', 'tblTempVendorCDR_20' ) start [2025-03-15 14:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686728', 'tblTempVendorCDR_20' ) end [2025-03-15 14:23:18] Production.INFO: ProcessCDR(1,14686728,1,1,2) [2025-03-15 14:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686728', 'tblTempUsageDetail_20' ) start [2025-03-15 14:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686728', 'tblTempUsageDetail_20' ) end [2025-03-15 14:23:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 14:23:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 14:23:23] Production.INFO: ==20108== Releasing lock... [2025-03-15 14:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 14:23:23] Production.INFO: 43 MB #Memory Used# [2025-03-15 14:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 11:24:05 [end_date_ymd] => 2025-03-15 14:24:05 [RateCDR] => 1 ) [2025-03-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-03-15 11:24:05' and `end` < '2025-03-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-03-15 14:24:17] Production.INFO: count ==1993 [2025-03-15 14:24:18] Production.ERROR: pbx CDR StartTime 2025-03-15 11:24:05 - End Time 2025-03-15 14:24:05 [2025-03-15 14:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 14:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686733', 'tblTempUsageDetail_20' ) start [2025-03-15 14:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686733', 'tblTempUsageDetail_20' ) end [2025-03-15 14:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686733', 'tblTempVendorCDR_20' ) start [2025-03-15 14:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686733', 'tblTempVendorCDR_20' ) end [2025-03-15 14:24:18] Production.INFO: ProcessCDR(1,14686733,1,1,2) [2025-03-15 14:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686733', 'tblTempUsageDetail_20' ) start [2025-03-15 14:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686733', 'tblTempUsageDetail_20' ) end [2025-03-15 14:24:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 14:24:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 14:24:23] Production.INFO: ==20215== Releasing lock... [2025-03-15 14:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 14:24:23] Production.INFO: 43 MB #Memory Used# [2025-03-15 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 11:25:05 [end_date_ymd] => 2025-03-15 14:25:05 [RateCDR] => 1 ) [2025-03-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-03-15 11:25:05' and `end` < '2025-03-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-03-15 14:25:18] Production.INFO: count ==1992 [2025-03-15 14:25:18] Production.ERROR: pbx CDR StartTime 2025-03-15 11:25:05 - End Time 2025-03-15 14:25:05 [2025-03-15 14:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686738', 'tblTempUsageDetail_20' ) start [2025-03-15 14:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686738', 'tblTempUsageDetail_20' ) end [2025-03-15 14:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686738', 'tblTempVendorCDR_20' ) start [2025-03-15 14:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686738', 'tblTempVendorCDR_20' ) end [2025-03-15 14:25:19] Production.INFO: ProcessCDR(1,14686738,1,1,2) [2025-03-15 14:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686738', 'tblTempUsageDetail_20' ) start [2025-03-15 14:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686738', 'tblTempUsageDetail_20' ) end [2025-03-15 14:25:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 14:25:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 14:25:23] Production.INFO: ==20328== Releasing lock... [2025-03-15 14:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 14:25:23] Production.INFO: 43 MB #Memory Used# [2025-03-15 14:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 11:26:04 [end_date_ymd] => 2025-03-15 14:26:04 [RateCDR] => 1 ) [2025-03-15 14: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-03-15 11:26:04' and `end` < '2025-03-15 14: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-03-15 14:26:17] Production.INFO: count ==1986 [2025-03-15 14:26:17] Production.ERROR: pbx CDR StartTime 2025-03-15 11:26:04 - End Time 2025-03-15 14:26:04 [2025-03-15 14:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 14:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686743', 'tblTempUsageDetail_20' ) start [2025-03-15 14:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686743', 'tblTempUsageDetail_20' ) end [2025-03-15 14:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686743', 'tblTempVendorCDR_20' ) start [2025-03-15 14:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686743', 'tblTempVendorCDR_20' ) end [2025-03-15 14:26:18] Production.INFO: ProcessCDR(1,14686743,1,1,2) [2025-03-15 14:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686743', 'tblTempUsageDetail_20' ) start [2025-03-15 14:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686743', 'tblTempUsageDetail_20' ) end [2025-03-15 14:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 14:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 14:26:21] Production.INFO: ==20440== Releasing lock... [2025-03-15 14:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 14:26:21] Production.INFO: 43 MB #Memory Used# [2025-03-15 14:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 11:27:05 [end_date_ymd] => 2025-03-15 14:27:05 [RateCDR] => 1 ) [2025-03-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-03-15 11:27:05' and `end` < '2025-03-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-03-15 14:27:17] Production.INFO: count ==1983 [2025-03-15 14:27:18] Production.ERROR: pbx CDR StartTime 2025-03-15 11:27:05 - End Time 2025-03-15 14:27:05 [2025-03-15 14:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 14:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686748', 'tblTempUsageDetail_20' ) start [2025-03-15 14:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686748', 'tblTempUsageDetail_20' ) end [2025-03-15 14:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686748', 'tblTempVendorCDR_20' ) start [2025-03-15 14:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686748', 'tblTempVendorCDR_20' ) end [2025-03-15 14:27:18] Production.INFO: ProcessCDR(1,14686748,1,1,2) [2025-03-15 14:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686748', 'tblTempUsageDetail_20' ) start [2025-03-15 14:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686748', 'tblTempUsageDetail_20' ) end [2025-03-15 14:27:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 14:27:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 14:27:23] Production.INFO: ==20555== Releasing lock... [2025-03-15 14:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 14:27:23] Production.INFO: 43 MB #Memory Used# [2025-03-15 14:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 11:28:06 [end_date_ymd] => 2025-03-15 14:28:06 [RateCDR] => 1 ) [2025-03-15 14:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 11:28:06' and `end` < '2025-03-15 14:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 14:28:18] Production.INFO: count ==1980 [2025-03-15 14:28:19] Production.ERROR: pbx CDR StartTime 2025-03-15 11:28:06 - End Time 2025-03-15 14:28:06 [2025-03-15 14:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 14:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686753', 'tblTempUsageDetail_20' ) start [2025-03-15 14:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686753', 'tblTempUsageDetail_20' ) end [2025-03-15 14:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686753', 'tblTempVendorCDR_20' ) start [2025-03-15 14:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686753', 'tblTempVendorCDR_20' ) end [2025-03-15 14:28:19] Production.INFO: ProcessCDR(1,14686753,1,1,2) [2025-03-15 14:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686753', 'tblTempUsageDetail_20' ) start [2025-03-15 14:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686753', 'tblTempUsageDetail_20' ) end [2025-03-15 14:28:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 14:28:24] Production.ERROR: pbx prc_insertCDR end [2025-03-15 14:28:24] Production.INFO: ==20665== Releasing lock... [2025-03-15 14:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 14:28:24] Production.INFO: 43 MB #Memory Used# [2025-03-15 14:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 11:29:05 [end_date_ymd] => 2025-03-15 14:29:05 [RateCDR] => 1 ) [2025-03-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-03-15 11:29:05' and `end` < '2025-03-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-03-15 14:29:17] Production.INFO: count ==1981 [2025-03-15 14:29:18] Production.ERROR: pbx CDR StartTime 2025-03-15 11:29:05 - End Time 2025-03-15 14:29:05 [2025-03-15 14:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 14:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686758', 'tblTempUsageDetail_20' ) start [2025-03-15 14:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686758', 'tblTempUsageDetail_20' ) end [2025-03-15 14:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686758', 'tblTempVendorCDR_20' ) start [2025-03-15 14:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686758', 'tblTempVendorCDR_20' ) end [2025-03-15 14:29:18] Production.INFO: ProcessCDR(1,14686758,1,1,2) [2025-03-15 14:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686758', 'tblTempUsageDetail_20' ) start [2025-03-15 14:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686758', 'tblTempUsageDetail_20' ) end [2025-03-15 14:29:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 14:29:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 14:29:23] Production.INFO: ==20776== Releasing lock... [2025-03-15 14:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 14:29:23] Production.INFO: 43 MB #Memory Used# [2025-03-15 14:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 11:30:06 [end_date_ymd] => 2025-03-15 14:30:06 [RateCDR] => 1 ) [2025-03-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-03-15 11:30:06' and `end` < '2025-03-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-03-15 14:30:18] Production.INFO: count ==1967 [2025-03-15 14:30:19] Production.ERROR: pbx CDR StartTime 2025-03-15 11:30:06 - End Time 2025-03-15 14:30:06 [2025-03-15 14:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 14:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686764', 'tblTempUsageDetail_20' ) start [2025-03-15 14:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686764', 'tblTempUsageDetail_20' ) end [2025-03-15 14:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686764', 'tblTempVendorCDR_20' ) start [2025-03-15 14:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686764', 'tblTempVendorCDR_20' ) end [2025-03-15 14:30:19] Production.INFO: ProcessCDR(1,14686764,1,1,2) [2025-03-15 14:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686764', 'tblTempUsageDetail_20' ) start [2025-03-15 14:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686764', 'tblTempUsageDetail_20' ) end [2025-03-15 14:30:24] Production.ERROR: pbx prc_insertCDR start [2025-03-15 14:30:24] Production.ERROR: pbx prc_insertCDR end [2025-03-15 14:30:24] Production.INFO: ==20896== Releasing lock... [2025-03-15 14:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 14:30:24] Production.INFO: 43 MB #Memory Used# [2025-03-15 14:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 11:31:05 [end_date_ymd] => 2025-03-15 14:31:05 [RateCDR] => 1 ) [2025-03-15 14:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 11:31:05' and `end` < '2025-03-15 14:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 14:31:17] Production.INFO: count ==1962 [2025-03-15 14:31:18] Production.ERROR: pbx CDR StartTime 2025-03-15 11:31:05 - End Time 2025-03-15 14:31:05 [2025-03-15 14:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 14:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686769', 'tblTempUsageDetail_20' ) start [2025-03-15 14:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686769', 'tblTempUsageDetail_20' ) end [2025-03-15 14:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686769', 'tblTempVendorCDR_20' ) start [2025-03-15 14:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686769', 'tblTempVendorCDR_20' ) end [2025-03-15 14:31:18] Production.INFO: ProcessCDR(1,14686769,1,1,2) [2025-03-15 14:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686769', 'tblTempUsageDetail_20' ) start [2025-03-15 14:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686769', 'tblTempUsageDetail_20' ) end [2025-03-15 14:31:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 14:31:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 14:31:23] Production.INFO: ==21048== Releasing lock... [2025-03-15 14:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 14:31:23] Production.INFO: 43 MB #Memory Used# [2025-03-15 14:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 11:32:05 [end_date_ymd] => 2025-03-15 14:32:05 [RateCDR] => 1 ) [2025-03-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-03-15 11:32:05' and `end` < '2025-03-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-03-15 14:32:18] Production.INFO: count ==1963 [2025-03-15 14:32:18] Production.ERROR: pbx CDR StartTime 2025-03-15 11:32:05 - End Time 2025-03-15 14:32:05 [2025-03-15 14:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 14:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686774', 'tblTempUsageDetail_20' ) start [2025-03-15 14:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686774', 'tblTempUsageDetail_20' ) end [2025-03-15 14:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686774', 'tblTempVendorCDR_20' ) start [2025-03-15 14:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686774', 'tblTempVendorCDR_20' ) end [2025-03-15 14:32:18] Production.INFO: ProcessCDR(1,14686774,1,1,2) [2025-03-15 14:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686774', 'tblTempUsageDetail_20' ) start [2025-03-15 14:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686774', 'tblTempUsageDetail_20' ) end [2025-03-15 14:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 14:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 14:32:22] Production.INFO: ==21155== Releasing lock... [2025-03-15 14:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 14:32:22] Production.INFO: 42.75 MB #Memory Used# [2025-03-15 14:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 11:33:05 [end_date_ymd] => 2025-03-15 14:33:05 [RateCDR] => 1 ) [2025-03-15 14:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 11:33:05' and `end` < '2025-03-15 14:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 14:33:17] Production.INFO: count ==1962 [2025-03-15 14:33:18] Production.ERROR: pbx CDR StartTime 2025-03-15 11:33:05 - End Time 2025-03-15 14:33:05 [2025-03-15 14:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 14:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686779', 'tblTempUsageDetail_20' ) start [2025-03-15 14:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686779', 'tblTempUsageDetail_20' ) end [2025-03-15 14:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686779', 'tblTempVendorCDR_20' ) start [2025-03-15 14:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686779', 'tblTempVendorCDR_20' ) end [2025-03-15 14:33:18] Production.INFO: ProcessCDR(1,14686779,1,1,2) [2025-03-15 14:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686779', 'tblTempUsageDetail_20' ) start [2025-03-15 14:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686779', 'tblTempUsageDetail_20' ) end [2025-03-15 14:33:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 14:33:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 14:33:23] Production.INFO: ==21268== Releasing lock... [2025-03-15 14:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 14:33:23] Production.INFO: 43 MB #Memory Used# [2025-03-15 14:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 11:34:05 [end_date_ymd] => 2025-03-15 14:34:05 [RateCDR] => 1 ) [2025-03-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-03-15 11:34:05' and `end` < '2025-03-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-03-15 14:34:18] Production.INFO: count ==1962 [2025-03-15 14:34:18] Production.ERROR: pbx CDR StartTime 2025-03-15 11:34:05 - End Time 2025-03-15 14:34:05 [2025-03-15 14:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 14:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686784', 'tblTempUsageDetail_20' ) start [2025-03-15 14:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686784', 'tblTempUsageDetail_20' ) end [2025-03-15 14:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686784', 'tblTempVendorCDR_20' ) start [2025-03-15 14:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686784', 'tblTempVendorCDR_20' ) end [2025-03-15 14:34:18] Production.INFO: ProcessCDR(1,14686784,1,1,2) [2025-03-15 14:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686784', 'tblTempUsageDetail_20' ) start [2025-03-15 14:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686784', 'tblTempUsageDetail_20' ) end [2025-03-15 14:34:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 14:34:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 14:34:23] Production.INFO: ==21380== Releasing lock... [2025-03-15 14:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 14:34:23] Production.INFO: 43 MB #Memory Used# [2025-03-15 14:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 11:35:05 [end_date_ymd] => 2025-03-15 14:35:05 [RateCDR] => 1 ) [2025-03-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-03-15 11:35:05' and `end` < '2025-03-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-03-15 14:35:17] Production.INFO: count ==1957 [2025-03-15 14:35:18] Production.ERROR: pbx CDR StartTime 2025-03-15 11:35:05 - End Time 2025-03-15 14:35:05 [2025-03-15 14:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 14:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686789', 'tblTempUsageDetail_20' ) start [2025-03-15 14:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686789', 'tblTempUsageDetail_20' ) end [2025-03-15 14:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686789', 'tblTempVendorCDR_20' ) start [2025-03-15 14:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686789', 'tblTempVendorCDR_20' ) end [2025-03-15 14:35:18] Production.INFO: ProcessCDR(1,14686789,1,1,2) [2025-03-15 14:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686789', 'tblTempUsageDetail_20' ) start [2025-03-15 14:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686789', 'tblTempUsageDetail_20' ) end [2025-03-15 14:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 14:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 14:35:21] Production.INFO: ==21491== Releasing lock... [2025-03-15 14:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 14:35:21] Production.INFO: 43.25 MB #Memory Used# [2025-03-15 14:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 11:36:05 [end_date_ymd] => 2025-03-15 14:36:05 [RateCDR] => 1 ) [2025-03-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-03-15 11:36:05' and `end` < '2025-03-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-03-15 14:36:17] Production.INFO: count ==1964 [2025-03-15 14:36:18] Production.ERROR: pbx CDR StartTime 2025-03-15 11:36:05 - End Time 2025-03-15 14:36:05 [2025-03-15 14:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 14:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686794', 'tblTempUsageDetail_20' ) start [2025-03-15 14:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686794', 'tblTempUsageDetail_20' ) end [2025-03-15 14:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686794', 'tblTempVendorCDR_20' ) start [2025-03-15 14:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686794', 'tblTempVendorCDR_20' ) end [2025-03-15 14:36:18] Production.INFO: ProcessCDR(1,14686794,1,1,2) [2025-03-15 14:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686794', 'tblTempUsageDetail_20' ) start [2025-03-15 14:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686794', 'tblTempUsageDetail_20' ) end [2025-03-15 14:36:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 14:36:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 14:36:23] Production.INFO: ==21598== Releasing lock... [2025-03-15 14:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 14:36:23] Production.INFO: 42.75 MB #Memory Used# [2025-03-15 14:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 11:37:05 [end_date_ymd] => 2025-03-15 14:37:05 [RateCDR] => 1 ) [2025-03-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-03-15 11:37:05' and `end` < '2025-03-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-03-15 14:37:18] Production.INFO: count ==1958 [2025-03-15 14:37:19] Production.ERROR: pbx CDR StartTime 2025-03-15 11:37:05 - End Time 2025-03-15 14:37:05 [2025-03-15 14:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 14:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686799', 'tblTempUsageDetail_20' ) start [2025-03-15 14:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686799', 'tblTempUsageDetail_20' ) end [2025-03-15 14:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686799', 'tblTempVendorCDR_20' ) start [2025-03-15 14:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686799', 'tblTempVendorCDR_20' ) end [2025-03-15 14:37:19] Production.INFO: ProcessCDR(1,14686799,1,1,2) [2025-03-15 14:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686799', 'tblTempUsageDetail_20' ) start [2025-03-15 14:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686799', 'tblTempUsageDetail_20' ) end [2025-03-15 14:37:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 14:37:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 14:37:23] Production.INFO: ==21677== Releasing lock... [2025-03-15 14:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 14:37:23] Production.INFO: 43 MB #Memory Used# [2025-03-15 14:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 11:38:05 [end_date_ymd] => 2025-03-15 14:38:05 [RateCDR] => 1 ) [2025-03-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-03-15 11:38:05' and `end` < '2025-03-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-03-15 14:38:17] Production.INFO: count ==1956 [2025-03-15 14:38:18] Production.ERROR: pbx CDR StartTime 2025-03-15 11:38:05 - End Time 2025-03-15 14:38:05 [2025-03-15 14:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 14:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686804', 'tblTempUsageDetail_20' ) start [2025-03-15 14:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686804', 'tblTempUsageDetail_20' ) end [2025-03-15 14:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686804', 'tblTempVendorCDR_20' ) start [2025-03-15 14:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686804', 'tblTempVendorCDR_20' ) end [2025-03-15 14:38:18] Production.INFO: ProcessCDR(1,14686804,1,1,2) [2025-03-15 14:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686804', 'tblTempUsageDetail_20' ) start [2025-03-15 14:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686804', 'tblTempUsageDetail_20' ) end [2025-03-15 14:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 14:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 14:38:21] Production.INFO: ==21752== Releasing lock... [2025-03-15 14:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 14:38:21] Production.INFO: 43 MB #Memory Used# [2025-03-15 14:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 11:39:05 [end_date_ymd] => 2025-03-15 14:39:05 [RateCDR] => 1 ) [2025-03-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-03-15 11:39:05' and `end` < '2025-03-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-03-15 14:39:18] Production.INFO: count ==1951 [2025-03-15 14:39:18] Production.ERROR: pbx CDR StartTime 2025-03-15 11:39:05 - End Time 2025-03-15 14:39:05 [2025-03-15 14:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 14:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686809', 'tblTempUsageDetail_20' ) start [2025-03-15 14:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686809', 'tblTempUsageDetail_20' ) end [2025-03-15 14:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686809', 'tblTempVendorCDR_20' ) start [2025-03-15 14:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686809', 'tblTempVendorCDR_20' ) end [2025-03-15 14:39:18] Production.INFO: ProcessCDR(1,14686809,1,1,2) [2025-03-15 14:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686809', 'tblTempUsageDetail_20' ) start [2025-03-15 14:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686809', 'tblTempUsageDetail_20' ) end [2025-03-15 14:39:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 14:39:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 14:39:22] Production.INFO: ==21834== Releasing lock... [2025-03-15 14:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 14:39:22] Production.INFO: 42.75 MB #Memory Used# [2025-03-15 14:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 11:40:06 [end_date_ymd] => 2025-03-15 14:40:06 [RateCDR] => 1 ) [2025-03-15 14:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 11:40:06' and `end` < '2025-03-15 14:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 14:40:19] Production.INFO: count ==1955 [2025-03-15 14:40:19] Production.ERROR: pbx CDR StartTime 2025-03-15 11:40:06 - End Time 2025-03-15 14:40:06 [2025-03-15 14:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 14:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686815', 'tblTempUsageDetail_20' ) start [2025-03-15 14:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686815', 'tblTempUsageDetail_20' ) end [2025-03-15 14:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686815', 'tblTempVendorCDR_20' ) start [2025-03-15 14:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686815', 'tblTempVendorCDR_20' ) end [2025-03-15 14:40:19] Production.INFO: ProcessCDR(1,14686815,1,1,2) [2025-03-15 14:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686815', 'tblTempUsageDetail_20' ) start [2025-03-15 14:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686815', 'tblTempUsageDetail_20' ) end [2025-03-15 14:40:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 14:40:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 14:40:23] Production.INFO: ==21913== Releasing lock... [2025-03-15 14:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 14:40:23] Production.INFO: 42.75 MB #Memory Used# [2025-03-15 14:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 11:41:04 [end_date_ymd] => 2025-03-15 14:41:04 [RateCDR] => 1 ) [2025-03-15 14:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 11:41:04' and `end` < '2025-03-15 14:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 14:41:17] Production.INFO: count ==1957 [2025-03-15 14:41:17] Production.ERROR: pbx CDR StartTime 2025-03-15 11:41:04 - End Time 2025-03-15 14:41:04 [2025-03-15 14:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 14:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686820', 'tblTempUsageDetail_20' ) start [2025-03-15 14:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686820', 'tblTempUsageDetail_20' ) end [2025-03-15 14:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686820', 'tblTempVendorCDR_20' ) start [2025-03-15 14:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686820', 'tblTempVendorCDR_20' ) end [2025-03-15 14:41:17] Production.INFO: ProcessCDR(1,14686820,1,1,2) [2025-03-15 14:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686820', 'tblTempUsageDetail_20' ) start [2025-03-15 14:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686820', 'tblTempUsageDetail_20' ) end [2025-03-15 14:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 14:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 14:41:21] Production.INFO: ==21993== Releasing lock... [2025-03-15 14:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 14:41:21] Production.INFO: 42.75 MB #Memory Used# [2025-03-15 14:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 11:42:05 [end_date_ymd] => 2025-03-15 14:42:05 [RateCDR] => 1 ) [2025-03-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-03-15 11:42:05' and `end` < '2025-03-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-03-15 14:42:18] Production.INFO: count ==1953 [2025-03-15 14:42:18] Production.ERROR: pbx CDR StartTime 2025-03-15 11:42:05 - End Time 2025-03-15 14:42:05 [2025-03-15 14:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 14:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686825', 'tblTempUsageDetail_20' ) start [2025-03-15 14:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686825', 'tblTempUsageDetail_20' ) end [2025-03-15 14:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686825', 'tblTempVendorCDR_20' ) start [2025-03-15 14:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686825', 'tblTempVendorCDR_20' ) end [2025-03-15 14:42:18] Production.INFO: ProcessCDR(1,14686825,1,1,2) [2025-03-15 14:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686825', 'tblTempUsageDetail_20' ) start [2025-03-15 14:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686825', 'tblTempUsageDetail_20' ) end [2025-03-15 14:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 14:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 14:42:22] Production.INFO: ==22070== Releasing lock... [2025-03-15 14:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 14:42:22] Production.INFO: 42.75 MB #Memory Used# [2025-03-15 14:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 11:43:05 [end_date_ymd] => 2025-03-15 14:43:05 [RateCDR] => 1 ) [2025-03-15 14:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 11:43:05' and `end` < '2025-03-15 14:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 14:43:17] Production.INFO: count ==1961 [2025-03-15 14:43:18] Production.ERROR: pbx CDR StartTime 2025-03-15 11:43:05 - End Time 2025-03-15 14:43:05 [2025-03-15 14:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 14:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686830', 'tblTempUsageDetail_20' ) start [2025-03-15 14:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686830', 'tblTempUsageDetail_20' ) end [2025-03-15 14:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686830', 'tblTempVendorCDR_20' ) start [2025-03-15 14:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686830', 'tblTempVendorCDR_20' ) end [2025-03-15 14:43:18] Production.INFO: ProcessCDR(1,14686830,1,1,2) [2025-03-15 14:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686830', 'tblTempUsageDetail_20' ) start [2025-03-15 14:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686830', 'tblTempUsageDetail_20' ) end [2025-03-15 14:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 14:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 14:43:21] Production.INFO: ==22151== Releasing lock... [2025-03-15 14:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 14:43:21] Production.INFO: 42.75 MB #Memory Used# [2025-03-15 14:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 11:44:05 [end_date_ymd] => 2025-03-15 14:44:05 [RateCDR] => 1 ) [2025-03-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-03-15 11:44:05' and `end` < '2025-03-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-03-15 14:44:18] Production.INFO: count ==1959 [2025-03-15 14:44:18] Production.ERROR: pbx CDR StartTime 2025-03-15 11:44:05 - End Time 2025-03-15 14:44:05 [2025-03-15 14:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 14:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686835', 'tblTempUsageDetail_20' ) start [2025-03-15 14:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686835', 'tblTempUsageDetail_20' ) end [2025-03-15 14:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686835', 'tblTempVendorCDR_20' ) start [2025-03-15 14:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686835', 'tblTempVendorCDR_20' ) end [2025-03-15 14:44:18] Production.INFO: ProcessCDR(1,14686835,1,1,2) [2025-03-15 14:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686835', 'tblTempUsageDetail_20' ) start [2025-03-15 14:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686835', 'tblTempUsageDetail_20' ) end [2025-03-15 14:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 14:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 14:44:22] Production.INFO: ==22232== Releasing lock... [2025-03-15 14:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 14:44:22] Production.INFO: 42.75 MB #Memory Used# [2025-03-15 14:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 11:45:05 [end_date_ymd] => 2025-03-15 14:45:05 [RateCDR] => 1 ) [2025-03-15 14:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 11:45:05' and `end` < '2025-03-15 14:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 14:45:17] Production.INFO: count ==1964 [2025-03-15 14:45:18] Production.ERROR: pbx CDR StartTime 2025-03-15 11:45:05 - End Time 2025-03-15 14:45:05 [2025-03-15 14:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 14:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686840', 'tblTempUsageDetail_20' ) start [2025-03-15 14:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686840', 'tblTempUsageDetail_20' ) end [2025-03-15 14:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686840', 'tblTempVendorCDR_20' ) start [2025-03-15 14:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686840', 'tblTempVendorCDR_20' ) end [2025-03-15 14:45:18] Production.INFO: ProcessCDR(1,14686840,1,1,2) [2025-03-15 14:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686840', 'tblTempUsageDetail_20' ) start [2025-03-15 14:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686840', 'tblTempUsageDetail_20' ) end [2025-03-15 14:45:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 14:45:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 14:45:23] Production.INFO: ==22313== Releasing lock... [2025-03-15 14:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 14:45:23] Production.INFO: 43 MB #Memory Used# [2025-03-15 14:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 11:46:05 [end_date_ymd] => 2025-03-15 14:46:05 [RateCDR] => 1 ) [2025-03-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-03-15 11:46:05' and `end` < '2025-03-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-03-15 14:46:18] Production.INFO: count ==1979 [2025-03-15 14:46:19] Production.ERROR: pbx CDR StartTime 2025-03-15 11:46:05 - End Time 2025-03-15 14:46:05 [2025-03-15 14:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 14:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686845', 'tblTempUsageDetail_20' ) start [2025-03-15 14:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686845', 'tblTempUsageDetail_20' ) end [2025-03-15 14:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686845', 'tblTempVendorCDR_20' ) start [2025-03-15 14:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686845', 'tblTempVendorCDR_20' ) end [2025-03-15 14:46:19] Production.INFO: ProcessCDR(1,14686845,1,1,2) [2025-03-15 14:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686845', 'tblTempUsageDetail_20' ) start [2025-03-15 14:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686845', 'tblTempUsageDetail_20' ) end [2025-03-15 14:46:24] Production.ERROR: pbx prc_insertCDR start [2025-03-15 14:46:24] Production.ERROR: pbx prc_insertCDR end [2025-03-15 14:46:24] Production.INFO: ==22391== Releasing lock... [2025-03-15 14:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 14:46:24] Production.INFO: 43 MB #Memory Used# [2025-03-15 14:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 11:47:06 [end_date_ymd] => 2025-03-15 14:47:06 [RateCDR] => 1 ) [2025-03-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-03-15 11:47:06' and `end` < '2025-03-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-03-15 14:47:18] Production.INFO: count ==1970 [2025-03-15 14:47:19] Production.ERROR: pbx CDR StartTime 2025-03-15 11:47:06 - End Time 2025-03-15 14:47:06 [2025-03-15 14:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 14:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686850', 'tblTempUsageDetail_20' ) start [2025-03-15 14:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686850', 'tblTempUsageDetail_20' ) end [2025-03-15 14:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686850', 'tblTempVendorCDR_20' ) start [2025-03-15 14:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686850', 'tblTempVendorCDR_20' ) end [2025-03-15 14:47:19] Production.INFO: ProcessCDR(1,14686850,1,1,2) [2025-03-15 14:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686850', 'tblTempUsageDetail_20' ) start [2025-03-15 14:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686850', 'tblTempUsageDetail_20' ) end [2025-03-15 14:47:24] Production.ERROR: pbx prc_insertCDR start [2025-03-15 14:47:24] Production.ERROR: pbx prc_insertCDR end [2025-03-15 14:47:24] Production.INFO: ==22507== Releasing lock... [2025-03-15 14:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 14:47:24] Production.INFO: 43 MB #Memory Used# [2025-03-15 14:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 11:48:05 [end_date_ymd] => 2025-03-15 14:48:05 [RateCDR] => 1 ) [2025-03-15 14:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 11:48:05' and `end` < '2025-03-15 14:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 14:48:18] Production.INFO: count ==1971 [2025-03-15 14:48:18] Production.ERROR: pbx CDR StartTime 2025-03-15 11:48:05 - End Time 2025-03-15 14:48:05 [2025-03-15 14:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 14:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686855', 'tblTempUsageDetail_20' ) start [2025-03-15 14:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686855', 'tblTempUsageDetail_20' ) end [2025-03-15 14:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686855', 'tblTempVendorCDR_20' ) start [2025-03-15 14:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686855', 'tblTempVendorCDR_20' ) end [2025-03-15 14:48:19] Production.INFO: ProcessCDR(1,14686855,1,1,2) [2025-03-15 14:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686855', 'tblTempUsageDetail_20' ) start [2025-03-15 14:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686855', 'tblTempUsageDetail_20' ) end [2025-03-15 14:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 14:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 14:48:22] Production.INFO: ==22587== Releasing lock... [2025-03-15 14:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 14:48:22] Production.INFO: 42.75 MB #Memory Used# [2025-03-15 14:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 11:49:06 [end_date_ymd] => 2025-03-15 14:49:06 [RateCDR] => 1 ) [2025-03-15 14:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 11:49:06' and `end` < '2025-03-15 14:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 14:49:19] Production.INFO: count ==1929 [2025-03-15 14:49:19] Production.ERROR: pbx CDR StartTime 2025-03-15 11:49:06 - End Time 2025-03-15 14:49:06 [2025-03-15 14:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 14:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686860', 'tblTempUsageDetail_20' ) start [2025-03-15 14:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686860', 'tblTempUsageDetail_20' ) end [2025-03-15 14:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686860', 'tblTempVendorCDR_20' ) start [2025-03-15 14:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686860', 'tblTempVendorCDR_20' ) end [2025-03-15 14:49:19] Production.INFO: ProcessCDR(1,14686860,1,1,2) [2025-03-15 14:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686860', 'tblTempUsageDetail_20' ) start [2025-03-15 14:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686860', 'tblTempUsageDetail_20' ) end [2025-03-15 14:49:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 14:49:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 14:49:23] Production.INFO: ==22667== Releasing lock... [2025-03-15 14:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 14:49:23] Production.INFO: 42.5 MB #Memory Used# [2025-03-15 14:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 11:50:06 [end_date_ymd] => 2025-03-15 14:50:06 [RateCDR] => 1 ) [2025-03-15 14:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 11:50:06' and `end` < '2025-03-15 14:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 14:50:18] Production.INFO: count ==1899 [2025-03-15 14:50:19] Production.ERROR: pbx CDR StartTime 2025-03-15 11:50:06 - End Time 2025-03-15 14:50:06 [2025-03-15 14:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 14:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686866', 'tblTempUsageDetail_20' ) start [2025-03-15 14:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686866', 'tblTempUsageDetail_20' ) end [2025-03-15 14:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686866', 'tblTempVendorCDR_20' ) start [2025-03-15 14:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686866', 'tblTempVendorCDR_20' ) end [2025-03-15 14:50:19] Production.INFO: ProcessCDR(1,14686866,1,1,2) [2025-03-15 14:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686866', 'tblTempUsageDetail_20' ) start [2025-03-15 14:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686866', 'tblTempUsageDetail_20' ) end [2025-03-15 14:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 14:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 14:50:22] Production.INFO: ==22759== Releasing lock... [2025-03-15 14:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 14:50:22] Production.INFO: 42.25 MB #Memory Used# [2025-03-15 14:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 11:51:05 [end_date_ymd] => 2025-03-15 14:51:05 [RateCDR] => 1 ) [2025-03-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-03-15 11:51:05' and `end` < '2025-03-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-03-15 14:51:18] Production.INFO: count ==1913 [2025-03-15 14:51:19] Production.ERROR: pbx CDR StartTime 2025-03-15 11:51:05 - End Time 2025-03-15 14:51:05 [2025-03-15 14:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 14:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686871', 'tblTempUsageDetail_20' ) start [2025-03-15 14:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686871', 'tblTempUsageDetail_20' ) end [2025-03-15 14:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686871', 'tblTempVendorCDR_20' ) start [2025-03-15 14:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686871', 'tblTempVendorCDR_20' ) end [2025-03-15 14:51:19] Production.INFO: ProcessCDR(1,14686871,1,1,2) [2025-03-15 14:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686871', 'tblTempUsageDetail_20' ) start [2025-03-15 14:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686871', 'tblTempUsageDetail_20' ) end [2025-03-15 14:51:24] Production.ERROR: pbx prc_insertCDR start [2025-03-15 14:51:24] Production.ERROR: pbx prc_insertCDR end [2025-03-15 14:51:24] Production.INFO: ==22845== Releasing lock... [2025-03-15 14:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 14:51:24] Production.INFO: 42.75 MB #Memory Used# [2025-03-15 14:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 11:52:06 [end_date_ymd] => 2025-03-15 14:52:06 [RateCDR] => 1 ) [2025-03-15 14:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 11:52:06' and `end` < '2025-03-15 14:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 14:52:18] Production.INFO: count ==1920 [2025-03-15 14:52:19] Production.ERROR: pbx CDR StartTime 2025-03-15 11:52:06 - End Time 2025-03-15 14:52:06 [2025-03-15 14:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 14:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686876', 'tblTempUsageDetail_20' ) start [2025-03-15 14:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686876', 'tblTempUsageDetail_20' ) end [2025-03-15 14:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686876', 'tblTempVendorCDR_20' ) start [2025-03-15 14:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686876', 'tblTempVendorCDR_20' ) end [2025-03-15 14:52:19] Production.INFO: ProcessCDR(1,14686876,1,1,2) [2025-03-15 14:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686876', 'tblTempUsageDetail_20' ) start [2025-03-15 14:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686876', 'tblTempUsageDetail_20' ) end [2025-03-15 14:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 14:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 14:52:22] Production.INFO: ==22929== Releasing lock... [2025-03-15 14:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 14:52:22] Production.INFO: 42.75 MB #Memory Used# [2025-03-15 14:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 11:53:06 [end_date_ymd] => 2025-03-15 14:53:06 [RateCDR] => 1 ) [2025-03-15 14:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 11:53:06' and `end` < '2025-03-15 14:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 14:53:18] Production.INFO: count ==1923 [2025-03-15 14:53:19] Production.ERROR: pbx CDR StartTime 2025-03-15 11:53:06 - End Time 2025-03-15 14:53:06 [2025-03-15 14:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 14:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686881', 'tblTempUsageDetail_20' ) start [2025-03-15 14:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686881', 'tblTempUsageDetail_20' ) end [2025-03-15 14:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686881', 'tblTempVendorCDR_20' ) start [2025-03-15 14:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686881', 'tblTempVendorCDR_20' ) end [2025-03-15 14:53:19] Production.INFO: ProcessCDR(1,14686881,1,1,2) [2025-03-15 14:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686881', 'tblTempUsageDetail_20' ) start [2025-03-15 14:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686881', 'tblTempUsageDetail_20' ) end [2025-03-15 14:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 14:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 14:53:22] Production.INFO: ==23013== Releasing lock... [2025-03-15 14:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 14:53:22] Production.INFO: 42.5 MB #Memory Used# [2025-03-15 14:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 11:54:06 [end_date_ymd] => 2025-03-15 14:54:06 [RateCDR] => 1 ) [2025-03-15 14:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 11:54:06' and `end` < '2025-03-15 14:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 14:54:18] Production.INFO: count ==1902 [2025-03-15 14:54:19] Production.ERROR: pbx CDR StartTime 2025-03-15 11:54:06 - End Time 2025-03-15 14:54:06 [2025-03-15 14:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 14:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686886', 'tblTempUsageDetail_20' ) start [2025-03-15 14:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686886', 'tblTempUsageDetail_20' ) end [2025-03-15 14:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686886', 'tblTempVendorCDR_20' ) start [2025-03-15 14:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686886', 'tblTempVendorCDR_20' ) end [2025-03-15 14:54:19] Production.INFO: ProcessCDR(1,14686886,1,1,2) [2025-03-15 14:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686886', 'tblTempUsageDetail_20' ) start [2025-03-15 14:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686886', 'tblTempUsageDetail_20' ) end [2025-03-15 14:54:24] Production.ERROR: pbx prc_insertCDR start [2025-03-15 14:54:24] Production.ERROR: pbx prc_insertCDR end [2025-03-15 14:54:24] Production.INFO: ==23098== Releasing lock... [2025-03-15 14:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 14:54:24] Production.INFO: 42.25 MB #Memory Used# [2025-03-15 14:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 11:55:05 [end_date_ymd] => 2025-03-15 14:55:05 [RateCDR] => 1 ) [2025-03-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-03-15 11:55:05' and `end` < '2025-03-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-03-15 14:55:18] Production.INFO: count ==1903 [2025-03-15 14:55:18] Production.ERROR: pbx CDR StartTime 2025-03-15 11:55:05 - End Time 2025-03-15 14:55:05 [2025-03-15 14:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 14:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686891', 'tblTempUsageDetail_20' ) start [2025-03-15 14:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686891', 'tblTempUsageDetail_20' ) end [2025-03-15 14:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686891', 'tblTempVendorCDR_20' ) start [2025-03-15 14:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686891', 'tblTempVendorCDR_20' ) end [2025-03-15 14:55:18] Production.INFO: ProcessCDR(1,14686891,1,1,2) [2025-03-15 14:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686891', 'tblTempUsageDetail_20' ) start [2025-03-15 14:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686891', 'tblTempUsageDetail_20' ) end [2025-03-15 14:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 14:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 14:55:22] Production.INFO: ==23188== Releasing lock... [2025-03-15 14:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 14:55:22] Production.INFO: 42.5 MB #Memory Used# [2025-03-15 14:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 11:56:05 [end_date_ymd] => 2025-03-15 14:56:05 [RateCDR] => 1 ) [2025-03-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-03-15 11:56:05' and `end` < '2025-03-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-03-15 14:56:18] Production.INFO: count ==1911 [2025-03-15 14:56:18] Production.ERROR: pbx CDR StartTime 2025-03-15 11:56:05 - End Time 2025-03-15 14:56:05 [2025-03-15 14:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 14:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686896', 'tblTempUsageDetail_20' ) start [2025-03-15 14:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686896', 'tblTempUsageDetail_20' ) end [2025-03-15 14:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686896', 'tblTempVendorCDR_20' ) start [2025-03-15 14:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686896', 'tblTempVendorCDR_20' ) end [2025-03-15 14:56:18] Production.INFO: ProcessCDR(1,14686896,1,1,2) [2025-03-15 14:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686896', 'tblTempUsageDetail_20' ) start [2025-03-15 14:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686896', 'tblTempUsageDetail_20' ) end [2025-03-15 14:56:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 14:56:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 14:56:24] Production.INFO: ==23283== Releasing lock... [2025-03-15 14:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 14:56:24] Production.INFO: 42.5 MB #Memory Used# [2025-03-15 14:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 11:57:05 [end_date_ymd] => 2025-03-15 14:57:05 [RateCDR] => 1 ) [2025-03-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-03-15 11:57:05' and `end` < '2025-03-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-03-15 14:57:18] Production.INFO: count ==1901 [2025-03-15 14:57:18] Production.ERROR: pbx CDR StartTime 2025-03-15 11:57:05 - End Time 2025-03-15 14:57:05 [2025-03-15 14:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 14:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686901', 'tblTempUsageDetail_20' ) start [2025-03-15 14:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686901', 'tblTempUsageDetail_20' ) end [2025-03-15 14:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686901', 'tblTempVendorCDR_20' ) start [2025-03-15 14:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686901', 'tblTempVendorCDR_20' ) end [2025-03-15 14:57:18] Production.INFO: ProcessCDR(1,14686901,1,1,2) [2025-03-15 14:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686901', 'tblTempUsageDetail_20' ) start [2025-03-15 14:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686901', 'tblTempUsageDetail_20' ) end [2025-03-15 14:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 14:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 14:57:22] Production.INFO: ==23370== Releasing lock... [2025-03-15 14:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 14:57:22] Production.INFO: 42.25 MB #Memory Used# [2025-03-15 14:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 11:58:06 [end_date_ymd] => 2025-03-15 14:58:06 [RateCDR] => 1 ) [2025-03-15 14:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 11:58:06' and `end` < '2025-03-15 14:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 14:58:18] Production.INFO: count ==1894 [2025-03-15 14:58:19] Production.ERROR: pbx CDR StartTime 2025-03-15 11:58:06 - End Time 2025-03-15 14:58:06 [2025-03-15 14:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 14:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686906', 'tblTempUsageDetail_20' ) start [2025-03-15 14:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686906', 'tblTempUsageDetail_20' ) end [2025-03-15 14:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686906', 'tblTempVendorCDR_20' ) start [2025-03-15 14:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686906', 'tblTempVendorCDR_20' ) end [2025-03-15 14:58:19] Production.INFO: ProcessCDR(1,14686906,1,1,2) [2025-03-15 14:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686906', 'tblTempUsageDetail_20' ) start [2025-03-15 14:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686906', 'tblTempUsageDetail_20' ) end [2025-03-15 14:58:24] Production.ERROR: pbx prc_insertCDR start [2025-03-15 14:58:24] Production.ERROR: pbx prc_insertCDR end [2025-03-15 14:58:24] Production.INFO: ==23457== Releasing lock... [2025-03-15 14:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 14:58:24] Production.INFO: 42.25 MB #Memory Used# [2025-03-15 14:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 11:59:06 [end_date_ymd] => 2025-03-15 14:59:06 [RateCDR] => 1 ) [2025-03-15 14:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 11:59:06' and `end` < '2025-03-15 14:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 14:59:18] Production.INFO: count ==1889 [2025-03-15 14:59:19] Production.ERROR: pbx CDR StartTime 2025-03-15 11:59:06 - End Time 2025-03-15 14:59:06 [2025-03-15 14:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 14:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686911', 'tblTempUsageDetail_20' ) start [2025-03-15 14:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686911', 'tblTempUsageDetail_20' ) end [2025-03-15 14:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686911', 'tblTempVendorCDR_20' ) start [2025-03-15 14:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686911', 'tblTempVendorCDR_20' ) end [2025-03-15 14:59:19] Production.INFO: ProcessCDR(1,14686911,1,1,2) [2025-03-15 14:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 14:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 14:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686911', 'tblTempUsageDetail_20' ) start [2025-03-15 14:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686911', 'tblTempUsageDetail_20' ) end [2025-03-15 14:59:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 14:59:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 14:59:22] Production.INFO: ==23548== Releasing lock... [2025-03-15 14:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 14:59:22] Production.INFO: 42.25 MB #Memory Used# [2025-03-15 15:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 12:00:06 [end_date_ymd] => 2025-03-15 15:00:06 [RateCDR] => 1 ) [2025-03-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-03-15 12:00:06' and `end` < '2025-03-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-03-15 15:00:18] Production.INFO: count ==1892 [2025-03-15 15:00:19] Production.ERROR: pbx CDR StartTime 2025-03-15 12:00:06 - End Time 2025-03-15 15:00:06 [2025-03-15 15:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 15:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686917', 'tblTempUsageDetail_20' ) start [2025-03-15 15:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686917', 'tblTempUsageDetail_20' ) end [2025-03-15 15:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686917', 'tblTempVendorCDR_20' ) start [2025-03-15 15:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686917', 'tblTempVendorCDR_20' ) end [2025-03-15 15:00:19] Production.INFO: ProcessCDR(1,14686917,1,1,2) [2025-03-15 15:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686917', 'tblTempUsageDetail_20' ) start [2025-03-15 15:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686917', 'tblTempUsageDetail_20' ) end [2025-03-15 15:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 15:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 15:00:23] Production.INFO: ==23639== Releasing lock... [2025-03-15 15:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 15:00:23] Production.INFO: 42.25 MB #Memory Used# [2025-03-15 15:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 12:01:06 [end_date_ymd] => 2025-03-15 15:01:06 [RateCDR] => 1 ) [2025-03-15 15:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 12:01:06' and `end` < '2025-03-15 15:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 15:01:18] Production.INFO: count ==1935 [2025-03-15 15:01:19] Production.ERROR: pbx CDR StartTime 2025-03-15 12:01:06 - End Time 2025-03-15 15:01:06 [2025-03-15 15:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 15:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686922', 'tblTempUsageDetail_20' ) start [2025-03-15 15:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686922', 'tblTempUsageDetail_20' ) end [2025-03-15 15:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686922', 'tblTempVendorCDR_20' ) start [2025-03-15 15:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686922', 'tblTempVendorCDR_20' ) end [2025-03-15 15:01:19] Production.INFO: ProcessCDR(1,14686922,1,1,2) [2025-03-15 15:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686922', 'tblTempUsageDetail_20' ) start [2025-03-15 15:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686922', 'tblTempUsageDetail_20' ) end [2025-03-15 15:01:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 15:01:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 15:01:22] Production.INFO: ==23776== Releasing lock... [2025-03-15 15:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 15:01:22] Production.INFO: 42.5 MB #Memory Used# [2025-03-15 15:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 12:02:05 [end_date_ymd] => 2025-03-15 15:02:05 [RateCDR] => 1 ) [2025-03-15 15:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 12:02:05' and `end` < '2025-03-15 15:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 15:02:18] Production.INFO: count ==1946 [2025-03-15 15:02:18] Production.ERROR: pbx CDR StartTime 2025-03-15 12:02:05 - End Time 2025-03-15 15:02:05 [2025-03-15 15:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 15:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686927', 'tblTempUsageDetail_20' ) start [2025-03-15 15:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686927', 'tblTempUsageDetail_20' ) end [2025-03-15 15:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686927', 'tblTempVendorCDR_20' ) start [2025-03-15 15:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686927', 'tblTempVendorCDR_20' ) end [2025-03-15 15:02:18] Production.INFO: ProcessCDR(1,14686927,1,1,2) [2025-03-15 15:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686927', 'tblTempUsageDetail_20' ) start [2025-03-15 15:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686927', 'tblTempUsageDetail_20' ) end [2025-03-15 15:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 15:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 15:02:22] Production.INFO: ==23946== Releasing lock... [2025-03-15 15:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 15:02:22] Production.INFO: 42.75 MB #Memory Used# [2025-03-15 15:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 12:03:05 [end_date_ymd] => 2025-03-15 15:03:05 [RateCDR] => 1 ) [2025-03-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-03-15 12:03:05' and `end` < '2025-03-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-03-15 15:03:18] Production.INFO: count ==2000 [2025-03-15 15:03:18] Production.ERROR: pbx CDR StartTime 2025-03-15 12:03:05 - End Time 2025-03-15 15:03:05 [2025-03-15 15:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 15:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686932', 'tblTempUsageDetail_20' ) start [2025-03-15 15:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686932', 'tblTempUsageDetail_20' ) end [2025-03-15 15:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686932', 'tblTempVendorCDR_20' ) start [2025-03-15 15:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686932', 'tblTempVendorCDR_20' ) end [2025-03-15 15:03:18] Production.INFO: ProcessCDR(1,14686932,1,1,2) [2025-03-15 15:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686932', 'tblTempUsageDetail_20' ) start [2025-03-15 15:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686932', 'tblTempUsageDetail_20' ) end [2025-03-15 15:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 15:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 15:03:22] Production.INFO: ==24032== Releasing lock... [2025-03-15 15:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 15:03:22] Production.INFO: 43 MB #Memory Used# [2025-03-15 15:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 12:04:05 [end_date_ymd] => 2025-03-15 15:04:05 [RateCDR] => 1 ) [2025-03-15 15:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 12:04:05' and `end` < '2025-03-15 15:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 15:04:17] Production.INFO: count ==2000 [2025-03-15 15:04:18] Production.ERROR: pbx CDR StartTime 2025-03-15 12:04:05 - End Time 2025-03-15 15:04:05 [2025-03-15 15:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 15:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686937', 'tblTempUsageDetail_20' ) start [2025-03-15 15:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686937', 'tblTempUsageDetail_20' ) end [2025-03-15 15:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686937', 'tblTempVendorCDR_20' ) start [2025-03-15 15:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686937', 'tblTempVendorCDR_20' ) end [2025-03-15 15:04:18] Production.INFO: ProcessCDR(1,14686937,1,1,2) [2025-03-15 15:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686937', 'tblTempUsageDetail_20' ) start [2025-03-15 15:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686937', 'tblTempUsageDetail_20' ) end [2025-03-15 15:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 15:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 15:04:21] Production.INFO: ==24118== Releasing lock... [2025-03-15 15:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 15:04:21] Production.INFO: 43 MB #Memory Used# [2025-03-15 15:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 12:05:05 [end_date_ymd] => 2025-03-15 15:05:05 [RateCDR] => 1 ) [2025-03-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-03-15 12:05:05' and `end` < '2025-03-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-03-15 15:05:18] Production.INFO: count ==2000 [2025-03-15 15:05:18] Production.ERROR: pbx CDR StartTime 2025-03-15 12:05:05 - End Time 2025-03-15 15:05:05 [2025-03-15 15:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 15:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686942', 'tblTempUsageDetail_20' ) start [2025-03-15 15:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686942', 'tblTempUsageDetail_20' ) end [2025-03-15 15:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686942', 'tblTempVendorCDR_20' ) start [2025-03-15 15:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686942', 'tblTempVendorCDR_20' ) end [2025-03-15 15:05:19] Production.INFO: ProcessCDR(1,14686942,1,1,2) [2025-03-15 15:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686942', 'tblTempUsageDetail_20' ) start [2025-03-15 15:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686942', 'tblTempUsageDetail_20' ) end [2025-03-15 15:05:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 15:05:24] Production.ERROR: pbx prc_insertCDR end [2025-03-15 15:05:24] Production.INFO: ==24324== Releasing lock... [2025-03-15 15:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 15:05:24] Production.INFO: 43.25 MB #Memory Used# [2025-03-15 15:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 12:06:05 [end_date_ymd] => 2025-03-15 15:06:05 [RateCDR] => 1 ) [2025-03-15 15:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 12:06:05' and `end` < '2025-03-15 15:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 15:06:18] Production.INFO: count ==2002 [2025-03-15 15:06:18] Production.ERROR: pbx CDR StartTime 2025-03-15 12:06:05 - End Time 2025-03-15 15:06:05 [2025-03-15 15:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 15:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686947', 'tblTempUsageDetail_20' ) start [2025-03-15 15:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686947', 'tblTempUsageDetail_20' ) end [2025-03-15 15:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686947', 'tblTempVendorCDR_20' ) start [2025-03-15 15:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686947', 'tblTempVendorCDR_20' ) end [2025-03-15 15:06:18] Production.INFO: ProcessCDR(1,14686947,1,1,2) [2025-03-15 15:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686947', 'tblTempUsageDetail_20' ) start [2025-03-15 15:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686947', 'tblTempUsageDetail_20' ) end [2025-03-15 15:06:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 15:06:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 15:06:23] Production.INFO: ==24457== Releasing lock... [2025-03-15 15:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 15:06:23] Production.INFO: 43.25 MB #Memory Used# [2025-03-15 15:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 12:07:05 [end_date_ymd] => 2025-03-15 15:07:05 [RateCDR] => 1 ) [2025-03-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-03-15 12:07:05' and `end` < '2025-03-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-03-15 15:07:17] Production.INFO: count ==1998 [2025-03-15 15:07:18] Production.ERROR: pbx CDR StartTime 2025-03-15 12:07:05 - End Time 2025-03-15 15:07:05 [2025-03-15 15:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 15:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686952', 'tblTempUsageDetail_20' ) start [2025-03-15 15:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686952', 'tblTempUsageDetail_20' ) end [2025-03-15 15:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686952', 'tblTempVendorCDR_20' ) start [2025-03-15 15:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686952', 'tblTempVendorCDR_20' ) end [2025-03-15 15:07:18] Production.INFO: ProcessCDR(1,14686952,1,1,2) [2025-03-15 15:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686952', 'tblTempUsageDetail_20' ) start [2025-03-15 15:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686952', 'tblTempUsageDetail_20' ) end [2025-03-15 15:07:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 15:07:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 15:07:23] Production.INFO: ==24577== Releasing lock... [2025-03-15 15:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 15:07:23] Production.INFO: 43 MB #Memory Used# [2025-03-15 15:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 12:08:05 [end_date_ymd] => 2025-03-15 15:08:05 [RateCDR] => 1 ) [2025-03-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-03-15 12:08:05' and `end` < '2025-03-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-03-15 15:08:17] Production.INFO: count ==1997 [2025-03-15 15:08:18] Production.ERROR: pbx CDR StartTime 2025-03-15 12:08:05 - End Time 2025-03-15 15:08:05 [2025-03-15 15:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 15:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686957', 'tblTempUsageDetail_20' ) start [2025-03-15 15:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686957', 'tblTempUsageDetail_20' ) end [2025-03-15 15:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686957', 'tblTempVendorCDR_20' ) start [2025-03-15 15:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686957', 'tblTempVendorCDR_20' ) end [2025-03-15 15:08:18] Production.INFO: ProcessCDR(1,14686957,1,1,2) [2025-03-15 15:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686957', 'tblTempUsageDetail_20' ) start [2025-03-15 15:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686957', 'tblTempUsageDetail_20' ) end [2025-03-15 15:08:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 15:08:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 15:08:23] Production.INFO: ==24782== Releasing lock... [2025-03-15 15:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 15:08:23] Production.INFO: 43 MB #Memory Used# [2025-03-15 15:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 12:09:05 [end_date_ymd] => 2025-03-15 15:09:05 [RateCDR] => 1 ) [2025-03-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-03-15 12:09:05' and `end` < '2025-03-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-03-15 15:09:18] Production.INFO: count ==1987 [2025-03-15 15:09:18] Production.ERROR: pbx CDR StartTime 2025-03-15 12:09:05 - End Time 2025-03-15 15:09:05 [2025-03-15 15:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 15:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686962', 'tblTempUsageDetail_20' ) start [2025-03-15 15:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686962', 'tblTempUsageDetail_20' ) end [2025-03-15 15:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686962', 'tblTempVendorCDR_20' ) start [2025-03-15 15:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686962', 'tblTempVendorCDR_20' ) end [2025-03-15 15:09:18] Production.INFO: ProcessCDR(1,14686962,1,1,2) [2025-03-15 15:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686962', 'tblTempUsageDetail_20' ) start [2025-03-15 15:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686962', 'tblTempUsageDetail_20' ) end [2025-03-15 15:09:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 15:09:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 15:09:22] Production.INFO: ==24907== Releasing lock... [2025-03-15 15:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 15:09:22] Production.INFO: 43 MB #Memory Used# [2025-03-15 15:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 12:10:06 [end_date_ymd] => 2025-03-15 15:10:06 [RateCDR] => 1 ) [2025-03-15 15:10:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 12:10:06' and `end` < '2025-03-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-03-15 15:10:19] Production.INFO: count ==1987 [2025-03-15 15:10:20] Production.ERROR: pbx CDR StartTime 2025-03-15 12:10:06 - End Time 2025-03-15 15:10:06 [2025-03-15 15:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 15:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686967', 'tblTempUsageDetail_20' ) start [2025-03-15 15:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686967', 'tblTempUsageDetail_20' ) end [2025-03-15 15:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686967', 'tblTempVendorCDR_20' ) start [2025-03-15 15:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686967', 'tblTempVendorCDR_20' ) end [2025-03-15 15:10:20] Production.INFO: ProcessCDR(1,14686967,1,1,2) [2025-03-15 15:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686967', 'tblTempUsageDetail_20' ) start [2025-03-15 15:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686967', 'tblTempUsageDetail_20' ) end [2025-03-15 15:10:24] Production.ERROR: pbx prc_insertCDR start [2025-03-15 15:10:24] Production.ERROR: pbx prc_insertCDR end [2025-03-15 15:10:24] Production.INFO: ==25046== Releasing lock... [2025-03-15 15:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 15:10:24] Production.INFO: 43 MB #Memory Used# [2025-03-15 15:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 12:11:06 [end_date_ymd] => 2025-03-15 15:11:06 [RateCDR] => 1 ) [2025-03-15 15:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 12:11:06' and `end` < '2025-03-15 15:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 15:11:18] Production.INFO: count ==1985 [2025-03-15 15:11:19] Production.ERROR: pbx CDR StartTime 2025-03-15 12:11:06 - End Time 2025-03-15 15:11:06 [2025-03-15 15:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 15:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686973', 'tblTempUsageDetail_20' ) start [2025-03-15 15:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686973', 'tblTempUsageDetail_20' ) end [2025-03-15 15:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686973', 'tblTempVendorCDR_20' ) start [2025-03-15 15:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686973', 'tblTempVendorCDR_20' ) end [2025-03-15 15:11:19] Production.INFO: ProcessCDR(1,14686973,1,1,2) [2025-03-15 15:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686973', 'tblTempUsageDetail_20' ) start [2025-03-15 15:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686973', 'tblTempUsageDetail_20' ) end [2025-03-15 15:11:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 15:11:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 15:11:22] Production.INFO: ==25177== Releasing lock... [2025-03-15 15:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 15:11:22] Production.INFO: 43 MB #Memory Used# [2025-03-15 15:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 12:12:05 [end_date_ymd] => 2025-03-15 15:12:05 [RateCDR] => 1 ) [2025-03-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-03-15 12:12:05' and `end` < '2025-03-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-03-15 15:12:17] Production.INFO: count ==1984 [2025-03-15 15:12:18] Production.ERROR: pbx CDR StartTime 2025-03-15 12:12:05 - End Time 2025-03-15 15:12:05 [2025-03-15 15:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 15:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686974', 'tblTempUsageDetail_20' ) start [2025-03-15 15:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686974', 'tblTempUsageDetail_20' ) end [2025-03-15 15:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686974', 'tblTempVendorCDR_20' ) start [2025-03-15 15:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686974', 'tblTempVendorCDR_20' ) end [2025-03-15 15:12:18] Production.INFO: ProcessCDR(1,14686974,1,1,2) [2025-03-15 15:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686974', 'tblTempUsageDetail_20' ) start [2025-03-15 15:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686974', 'tblTempUsageDetail_20' ) end [2025-03-15 15:12:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 15:12:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 15:12:23] Production.INFO: ==25386== Releasing lock... [2025-03-15 15:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 15:12:23] Production.INFO: 43.25 MB #Memory Used# [2025-03-15 15:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 12:13:05 [end_date_ymd] => 2025-03-15 15:13:05 [RateCDR] => 1 ) [2025-03-15 15:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 12:13:05' and `end` < '2025-03-15 15:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 15:13:18] Production.INFO: count ==1991 [2025-03-15 15:13:19] Production.ERROR: pbx CDR StartTime 2025-03-15 12:13:05 - End Time 2025-03-15 15:13:05 [2025-03-15 15:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 15:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686983', 'tblTempUsageDetail_20' ) start [2025-03-15 15:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686983', 'tblTempUsageDetail_20' ) end [2025-03-15 15:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686983', 'tblTempVendorCDR_20' ) start [2025-03-15 15:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686983', 'tblTempVendorCDR_20' ) end [2025-03-15 15:13:19] Production.INFO: ProcessCDR(1,14686983,1,1,2) [2025-03-15 15:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686983', 'tblTempUsageDetail_20' ) start [2025-03-15 15:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686983', 'tblTempUsageDetail_20' ) end [2025-03-15 15:13:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 15:13:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 15:13:23] Production.INFO: ==25517== Releasing lock... [2025-03-15 15:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 15:13:23] Production.INFO: 43.5 MB #Memory Used# [2025-03-15 15:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 12:14:05 [end_date_ymd] => 2025-03-15 15:14:05 [RateCDR] => 1 ) [2025-03-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-03-15 12:14:05' and `end` < '2025-03-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-03-15 15:14:17] Production.INFO: count ==1992 [2025-03-15 15:14:18] Production.ERROR: pbx CDR StartTime 2025-03-15 12:14:05 - End Time 2025-03-15 15:14:05 [2025-03-15 15:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 15:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686988', 'tblTempUsageDetail_20' ) start [2025-03-15 15:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686988', 'tblTempUsageDetail_20' ) end [2025-03-15 15:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686988', 'tblTempVendorCDR_20' ) start [2025-03-15 15:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686988', 'tblTempVendorCDR_20' ) end [2025-03-15 15:14:18] Production.INFO: ProcessCDR(1,14686988,1,1,2) [2025-03-15 15:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686988', 'tblTempUsageDetail_20' ) start [2025-03-15 15:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686988', 'tblTempUsageDetail_20' ) end [2025-03-15 15:14:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 15:14:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 15:14:23] Production.INFO: ==25641== Releasing lock... [2025-03-15 15:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 15:14:23] Production.INFO: 43 MB #Memory Used# [2025-03-15 15:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 12:15:05 [end_date_ymd] => 2025-03-15 15:15:05 [RateCDR] => 1 ) [2025-03-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-03-15 12:15:05' and `end` < '2025-03-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-03-15 15:15:17] Production.INFO: count ==2001 [2025-03-15 15:15:18] Production.ERROR: pbx CDR StartTime 2025-03-15 12:15:05 - End Time 2025-03-15 15:15:05 [2025-03-15 15:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 15:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686993', 'tblTempUsageDetail_20' ) start [2025-03-15 15:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686993', 'tblTempUsageDetail_20' ) end [2025-03-15 15:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686993', 'tblTempVendorCDR_20' ) start [2025-03-15 15:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686993', 'tblTempVendorCDR_20' ) end [2025-03-15 15:15:18] Production.INFO: ProcessCDR(1,14686993,1,1,2) [2025-03-15 15:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686993', 'tblTempUsageDetail_20' ) start [2025-03-15 15:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686993', 'tblTempUsageDetail_20' ) end [2025-03-15 15:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 15:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 15:15:21] Production.INFO: ==25851== Releasing lock... [2025-03-15 15:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 15:15:21] Production.INFO: 43 MB #Memory Used# [2025-03-15 15:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 12:16:06 [end_date_ymd] => 2025-03-15 15:16:06 [RateCDR] => 1 ) [2025-03-15 15:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 12:16:06' and `end` < '2025-03-15 15:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 15:16:18] Production.INFO: count ==1972 [2025-03-15 15:16:19] Production.ERROR: pbx CDR StartTime 2025-03-15 12:16:06 - End Time 2025-03-15 15:16:06 [2025-03-15 15:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 15:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686998', 'tblTempUsageDetail_20' ) start [2025-03-15 15:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14686998', 'tblTempUsageDetail_20' ) end [2025-03-15 15:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686998', 'tblTempVendorCDR_20' ) start [2025-03-15 15:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14686998', 'tblTempVendorCDR_20' ) end [2025-03-15 15:16:19] Production.INFO: ProcessCDR(1,14686998,1,1,2) [2025-03-15 15:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14686998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14686998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14686998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14686998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686998', 'tblTempUsageDetail_20' ) start [2025-03-15 15:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14686998', 'tblTempUsageDetail_20' ) end [2025-03-15 15:16:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 15:16:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 15:16:23] Production.INFO: ==25978== Releasing lock... [2025-03-15 15:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 15:16:23] Production.INFO: 42.75 MB #Memory Used# [2025-03-15 15:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 12:17:05 [end_date_ymd] => 2025-03-15 15:17:05 [RateCDR] => 1 ) [2025-03-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-03-15 12:17:05' and `end` < '2025-03-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-03-15 15:17:18] Production.INFO: count ==1984 [2025-03-15 15:17:19] Production.ERROR: pbx CDR StartTime 2025-03-15 12:17:05 - End Time 2025-03-15 15:17:05 [2025-03-15 15:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 15:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687003', 'tblTempUsageDetail_20' ) start [2025-03-15 15:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687003', 'tblTempUsageDetail_20' ) end [2025-03-15 15:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687003', 'tblTempVendorCDR_20' ) start [2025-03-15 15:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687003', 'tblTempVendorCDR_20' ) end [2025-03-15 15:17:19] Production.INFO: ProcessCDR(1,14687003,1,1,2) [2025-03-15 15:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687003', 'tblTempUsageDetail_20' ) start [2025-03-15 15:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687003', 'tblTempUsageDetail_20' ) end [2025-03-15 15:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 15:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 15:17:22] Production.INFO: ==26141== Releasing lock... [2025-03-15 15:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 15:17:22] Production.INFO: 43.5 MB #Memory Used# [2025-03-15 15:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 12:18:05 [end_date_ymd] => 2025-03-15 15:18:05 [RateCDR] => 1 ) [2025-03-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-03-15 12:18:05' and `end` < '2025-03-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-03-15 15:18:18] Production.INFO: count ==1995 [2025-03-15 15:18:18] Production.ERROR: pbx CDR StartTime 2025-03-15 12:18:05 - End Time 2025-03-15 15:18:05 [2025-03-15 15:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 15:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687008', 'tblTempUsageDetail_20' ) start [2025-03-15 15:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687008', 'tblTempUsageDetail_20' ) end [2025-03-15 15:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687008', 'tblTempVendorCDR_20' ) start [2025-03-15 15:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687008', 'tblTempVendorCDR_20' ) end [2025-03-15 15:18:18] Production.INFO: ProcessCDR(1,14687008,1,1,2) [2025-03-15 15:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687008', 'tblTempUsageDetail_20' ) start [2025-03-15 15:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687008', 'tblTempUsageDetail_20' ) end [2025-03-15 15:18:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 15:18:24] Production.ERROR: pbx prc_insertCDR end [2025-03-15 15:18:24] Production.INFO: ==26269== Releasing lock... [2025-03-15 15:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 15:18:24] Production.INFO: 43.25 MB #Memory Used# [2025-03-15 15:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 12:19:05 [end_date_ymd] => 2025-03-15 15:19:05 [RateCDR] => 1 ) [2025-03-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-03-15 12:19:05' and `end` < '2025-03-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-03-15 15:19:18] Production.INFO: count ==1982 [2025-03-15 15:19:18] Production.ERROR: pbx CDR StartTime 2025-03-15 12:19:05 - End Time 2025-03-15 15:19:05 [2025-03-15 15:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 15:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687013', 'tblTempUsageDetail_20' ) start [2025-03-15 15:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687013', 'tblTempUsageDetail_20' ) end [2025-03-15 15:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687013', 'tblTempVendorCDR_20' ) start [2025-03-15 15:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687013', 'tblTempVendorCDR_20' ) end [2025-03-15 15:19:18] Production.INFO: ProcessCDR(1,14687013,1,1,2) [2025-03-15 15:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687013', 'tblTempUsageDetail_20' ) start [2025-03-15 15:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687013', 'tblTempUsageDetail_20' ) end [2025-03-15 15:19:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 15:19:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 15:19:22] Production.INFO: ==26395== Releasing lock... [2025-03-15 15:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 15:19:22] Production.INFO: 43.5 MB #Memory Used# [2025-03-15 15:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 12:20:07 [end_date_ymd] => 2025-03-15 15:20:07 [RateCDR] => 1 ) [2025-03-15 15:20:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 12:20:07' and `end` < '2025-03-15 15:20:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 15:20:19] Production.INFO: count ==1983 [2025-03-15 15:20:20] Production.ERROR: pbx CDR StartTime 2025-03-15 12:20:07 - End Time 2025-03-15 15:20:07 [2025-03-15 15:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 15:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687019', 'tblTempUsageDetail_20' ) start [2025-03-15 15:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687019', 'tblTempUsageDetail_20' ) end [2025-03-15 15:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687019', 'tblTempVendorCDR_20' ) start [2025-03-15 15:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687019', 'tblTempVendorCDR_20' ) end [2025-03-15 15:20:20] Production.INFO: ProcessCDR(1,14687019,1,1,2) [2025-03-15 15:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687019', 'tblTempUsageDetail_20' ) start [2025-03-15 15:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687019', 'tblTempUsageDetail_20' ) end [2025-03-15 15:20:25] Production.ERROR: pbx prc_insertCDR start [2025-03-15 15:20:25] Production.ERROR: pbx prc_insertCDR end [2025-03-15 15:20:25] Production.INFO: ==26526== Releasing lock... [2025-03-15 15:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 15:20:25] Production.INFO: 43.25 MB #Memory Used# [2025-03-15 15:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 12:21:05 [end_date_ymd] => 2025-03-15 15:21:05 [RateCDR] => 1 ) [2025-03-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-03-15 12:21:05' and `end` < '2025-03-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-03-15 15:21:18] Production.INFO: count ==1984 [2025-03-15 15:21:18] Production.ERROR: pbx CDR StartTime 2025-03-15 12:21:05 - End Time 2025-03-15 15:21:05 [2025-03-15 15:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 15:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687024', 'tblTempUsageDetail_20' ) start [2025-03-15 15:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687024', 'tblTempUsageDetail_20' ) end [2025-03-15 15:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687024', 'tblTempVendorCDR_20' ) start [2025-03-15 15:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687024', 'tblTempVendorCDR_20' ) end [2025-03-15 15:21:19] Production.INFO: ProcessCDR(1,14687024,1,1,2) [2025-03-15 15:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687024', 'tblTempUsageDetail_20' ) start [2025-03-15 15:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687024', 'tblTempUsageDetail_20' ) end [2025-03-15 15:21:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 15:21:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 15:21:22] Production.INFO: ==26651== Releasing lock... [2025-03-15 15:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 15:21:22] Production.INFO: 43.5 MB #Memory Used# [2025-03-15 15:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 12:22:06 [end_date_ymd] => 2025-03-15 15:22:06 [RateCDR] => 1 ) [2025-03-15 15:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 12:22:06' and `end` < '2025-03-15 15:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 15:22:18] Production.INFO: count ==1985 [2025-03-15 15:22:19] Production.ERROR: pbx CDR StartTime 2025-03-15 12:22:06 - End Time 2025-03-15 15:22:06 [2025-03-15 15:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 15:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687029', 'tblTempUsageDetail_20' ) start [2025-03-15 15:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687029', 'tblTempUsageDetail_20' ) end [2025-03-15 15:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687029', 'tblTempVendorCDR_20' ) start [2025-03-15 15:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687029', 'tblTempVendorCDR_20' ) end [2025-03-15 15:22:19] Production.INFO: ProcessCDR(1,14687029,1,1,2) [2025-03-15 15:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687029', 'tblTempUsageDetail_20' ) start [2025-03-15 15:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687029', 'tblTempUsageDetail_20' ) end [2025-03-15 15:22:24] Production.ERROR: pbx prc_insertCDR start [2025-03-15 15:22:24] Production.ERROR: pbx prc_insertCDR end [2025-03-15 15:22:24] Production.INFO: ==26772== Releasing lock... [2025-03-15 15:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 15:22:24] Production.INFO: 43.25 MB #Memory Used# [2025-03-15 15:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 12:23:05 [end_date_ymd] => 2025-03-15 15:23:05 [RateCDR] => 1 ) [2025-03-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-03-15 12:23:05' and `end` < '2025-03-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-03-15 15:23:18] Production.INFO: count ==1993 [2025-03-15 15:23:18] Production.ERROR: pbx CDR StartTime 2025-03-15 12:23:05 - End Time 2025-03-15 15:23:05 [2025-03-15 15:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 15:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687034', 'tblTempUsageDetail_20' ) start [2025-03-15 15:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687034', 'tblTempUsageDetail_20' ) end [2025-03-15 15:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687034', 'tblTempVendorCDR_20' ) start [2025-03-15 15:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687034', 'tblTempVendorCDR_20' ) end [2025-03-15 15:23:18] Production.INFO: ProcessCDR(1,14687034,1,1,2) [2025-03-15 15:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687034', 'tblTempUsageDetail_20' ) start [2025-03-15 15:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687034', 'tblTempUsageDetail_20' ) end [2025-03-15 15:23:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 15:23:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 15:23:23] Production.INFO: ==26891== Releasing lock... [2025-03-15 15:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 15:23:23] Production.INFO: 43.25 MB #Memory Used# [2025-03-15 15:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 12:24:06 [end_date_ymd] => 2025-03-15 15:24:06 [RateCDR] => 1 ) [2025-03-15 15:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 12:24:06' and `end` < '2025-03-15 15:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 15:24:18] Production.INFO: count ==1992 [2025-03-15 15:24:19] Production.ERROR: pbx CDR StartTime 2025-03-15 12:24:06 - End Time 2025-03-15 15:24:06 [2025-03-15 15:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 15:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687039', 'tblTempUsageDetail_20' ) start [2025-03-15 15:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687039', 'tblTempUsageDetail_20' ) end [2025-03-15 15:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687039', 'tblTempVendorCDR_20' ) start [2025-03-15 15:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687039', 'tblTempVendorCDR_20' ) end [2025-03-15 15:24:19] Production.INFO: ProcessCDR(1,14687039,1,1,2) [2025-03-15 15:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687039', 'tblTempUsageDetail_20' ) start [2025-03-15 15:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687039', 'tblTempUsageDetail_20' ) end [2025-03-15 15:24:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 15:24:24] Production.ERROR: pbx prc_insertCDR end [2025-03-15 15:24:24] Production.INFO: ==27011== Releasing lock... [2025-03-15 15:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 15:24:24] Production.INFO: 43.25 MB #Memory Used# [2025-03-15 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 12:25:05 [end_date_ymd] => 2025-03-15 15:25:05 [RateCDR] => 1 ) [2025-03-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-03-15 12:25:05' and `end` < '2025-03-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-03-15 15:25:18] Production.INFO: count ==1991 [2025-03-15 15:25:18] Production.ERROR: pbx CDR StartTime 2025-03-15 12:25:05 - End Time 2025-03-15 15:25:05 [2025-03-15 15:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687044', 'tblTempUsageDetail_20' ) start [2025-03-15 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687044', 'tblTempUsageDetail_20' ) end [2025-03-15 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687044', 'tblTempVendorCDR_20' ) start [2025-03-15 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687044', 'tblTempVendorCDR_20' ) end [2025-03-15 15:25:18] Production.INFO: ProcessCDR(1,14687044,1,1,2) [2025-03-15 15:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687044', 'tblTempUsageDetail_20' ) start [2025-03-15 15:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687044', 'tblTempUsageDetail_20' ) end [2025-03-15 15:25:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 15:25:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 15:25:22] Production.INFO: ==27138== Releasing lock... [2025-03-15 15:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 15:25:22] Production.INFO: 43 MB #Memory Used# [2025-03-15 15:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 12:26:06 [end_date_ymd] => 2025-03-15 15:26:06 [RateCDR] => 1 ) [2025-03-15 15:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 12:26:06' and `end` < '2025-03-15 15:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 15:26:18] Production.INFO: count ==1993 [2025-03-15 15:26:19] Production.ERROR: pbx CDR StartTime 2025-03-15 12:26:06 - End Time 2025-03-15 15:26:06 [2025-03-15 15:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 15:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687049', 'tblTempUsageDetail_20' ) start [2025-03-15 15:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687049', 'tblTempUsageDetail_20' ) end [2025-03-15 15:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687049', 'tblTempVendorCDR_20' ) start [2025-03-15 15:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687049', 'tblTempVendorCDR_20' ) end [2025-03-15 15:26:19] Production.INFO: ProcessCDR(1,14687049,1,1,2) [2025-03-15 15:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687049', 'tblTempUsageDetail_20' ) start [2025-03-15 15:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687049', 'tblTempUsageDetail_20' ) end [2025-03-15 15:26:24] Production.ERROR: pbx prc_insertCDR start [2025-03-15 15:26:24] Production.ERROR: pbx prc_insertCDR end [2025-03-15 15:26:24] Production.INFO: ==27261== Releasing lock... [2025-03-15 15:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 15:26:24] Production.INFO: 43 MB #Memory Used# [2025-03-15 15:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 12:27:05 [end_date_ymd] => 2025-03-15 15:27:05 [RateCDR] => 1 ) [2025-03-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-03-15 12:27:05' and `end` < '2025-03-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-03-15 15:27:18] Production.INFO: count ==1978 [2025-03-15 15:27:18] Production.ERROR: pbx CDR StartTime 2025-03-15 12:27:05 - End Time 2025-03-15 15:27:05 [2025-03-15 15:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 15:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687054', 'tblTempUsageDetail_20' ) start [2025-03-15 15:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687054', 'tblTempUsageDetail_20' ) end [2025-03-15 15:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687054', 'tblTempVendorCDR_20' ) start [2025-03-15 15:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687054', 'tblTempVendorCDR_20' ) end [2025-03-15 15:27:18] Production.INFO: ProcessCDR(1,14687054,1,1,2) [2025-03-15 15:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687054', 'tblTempUsageDetail_20' ) start [2025-03-15 15:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687054', 'tblTempUsageDetail_20' ) end [2025-03-15 15:27:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 15:27:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 15:27:22] Production.INFO: ==27383== Releasing lock... [2025-03-15 15:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 15:27:22] Production.INFO: 43 MB #Memory Used# [2025-03-15 15:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 12:28:05 [end_date_ymd] => 2025-03-15 15:28:05 [RateCDR] => 1 ) [2025-03-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-03-15 12:28:05' and `end` < '2025-03-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-03-15 15:28:18] Production.INFO: count ==1978 [2025-03-15 15:28:19] Production.ERROR: pbx CDR StartTime 2025-03-15 12:28:05 - End Time 2025-03-15 15:28:05 [2025-03-15 15:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 15:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687059', 'tblTempUsageDetail_20' ) start [2025-03-15 15:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687059', 'tblTempUsageDetail_20' ) end [2025-03-15 15:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687059', 'tblTempVendorCDR_20' ) start [2025-03-15 15:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687059', 'tblTempVendorCDR_20' ) end [2025-03-15 15:28:19] Production.INFO: ProcessCDR(1,14687059,1,1,2) [2025-03-15 15:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687059', 'tblTempUsageDetail_20' ) start [2025-03-15 15:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687059', 'tblTempUsageDetail_20' ) end [2025-03-15 15:28:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 15:28:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 15:28:22] Production.INFO: ==27505== Releasing lock... [2025-03-15 15:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 15:28:22] Production.INFO: 43 MB #Memory Used# [2025-03-15 15:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 12:29:05 [end_date_ymd] => 2025-03-15 15:29:05 [RateCDR] => 1 ) [2025-03-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-03-15 12:29:05' and `end` < '2025-03-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-03-15 15:29:17] Production.INFO: count ==1963 [2025-03-15 15:29:18] Production.ERROR: pbx CDR StartTime 2025-03-15 12:29:05 - End Time 2025-03-15 15:29:05 [2025-03-15 15:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 15:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687064', 'tblTempUsageDetail_20' ) start [2025-03-15 15:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687064', 'tblTempUsageDetail_20' ) end [2025-03-15 15:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687064', 'tblTempVendorCDR_20' ) start [2025-03-15 15:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687064', 'tblTempVendorCDR_20' ) end [2025-03-15 15:29:18] Production.INFO: ProcessCDR(1,14687064,1,1,2) [2025-03-15 15:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687064', 'tblTempUsageDetail_20' ) start [2025-03-15 15:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687064', 'tblTempUsageDetail_20' ) end [2025-03-15 15:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 15:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 15:29:21] Production.INFO: ==27629== Releasing lock... [2025-03-15 15:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 15:29:21] Production.INFO: 42.75 MB #Memory Used# [2025-03-15 15:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 12:30:06 [end_date_ymd] => 2025-03-15 15:30:06 [RateCDR] => 1 ) [2025-03-15 15:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 12:30:06' and `end` < '2025-03-15 15:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 15:30:18] Production.INFO: count ==1962 [2025-03-15 15:30:19] Production.ERROR: pbx CDR StartTime 2025-03-15 12:30:06 - End Time 2025-03-15 15:30:06 [2025-03-15 15:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 15:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687070', 'tblTempUsageDetail_20' ) start [2025-03-15 15:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687070', 'tblTempUsageDetail_20' ) end [2025-03-15 15:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687070', 'tblTempVendorCDR_20' ) start [2025-03-15 15:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687070', 'tblTempVendorCDR_20' ) end [2025-03-15 15:30:19] Production.INFO: ProcessCDR(1,14687070,1,1,2) [2025-03-15 15:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687070', 'tblTempUsageDetail_20' ) start [2025-03-15 15:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687070', 'tblTempUsageDetail_20' ) end [2025-03-15 15:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 15:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 15:30:22] Production.INFO: ==27757== Releasing lock... [2025-03-15 15:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 15:30:22] Production.INFO: 42.75 MB #Memory Used# [2025-03-15 15:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 12:31:05 [end_date_ymd] => 2025-03-15 15:31:05 [RateCDR] => 1 ) [2025-03-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-03-15 12:31:05' and `end` < '2025-03-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-03-15 15:31:17] Production.INFO: count ==1940 [2025-03-15 15:31:18] Production.ERROR: pbx CDR StartTime 2025-03-15 12:31:05 - End Time 2025-03-15 15:31:05 [2025-03-15 15:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 15:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687075', 'tblTempUsageDetail_20' ) start [2025-03-15 15:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687075', 'tblTempUsageDetail_20' ) end [2025-03-15 15:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687075', 'tblTempVendorCDR_20' ) start [2025-03-15 15:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687075', 'tblTempVendorCDR_20' ) end [2025-03-15 15:31:18] Production.INFO: ProcessCDR(1,14687075,1,1,2) [2025-03-15 15:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687075', 'tblTempUsageDetail_20' ) start [2025-03-15 15:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687075', 'tblTempUsageDetail_20' ) end [2025-03-15 15:31:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 15:31:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 15:31:23] Production.INFO: ==27885== Releasing lock... [2025-03-15 15:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 15:31:23] Production.INFO: 42.5 MB #Memory Used# [2025-03-15 15:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 12:32:05 [end_date_ymd] => 2025-03-15 15:32:05 [RateCDR] => 1 ) [2025-03-15 15:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 12:32:05' and `end` < '2025-03-15 15:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 15:32:17] Production.INFO: count ==1932 [2025-03-15 15:32:18] Production.ERROR: pbx CDR StartTime 2025-03-15 12:32:05 - End Time 2025-03-15 15:32:05 [2025-03-15 15:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 15:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687080', 'tblTempUsageDetail_20' ) start [2025-03-15 15:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687080', 'tblTempUsageDetail_20' ) end [2025-03-15 15:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687080', 'tblTempVendorCDR_20' ) start [2025-03-15 15:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687080', 'tblTempVendorCDR_20' ) end [2025-03-15 15:32:18] Production.INFO: ProcessCDR(1,14687080,1,1,2) [2025-03-15 15:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687080', 'tblTempUsageDetail_20' ) start [2025-03-15 15:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687080', 'tblTempUsageDetail_20' ) end [2025-03-15 15:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 15:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 15:32:21] Production.INFO: ==28007== Releasing lock... [2025-03-15 15:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 15:32:21] Production.INFO: 42.5 MB #Memory Used# [2025-03-15 15:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 12:33:05 [end_date_ymd] => 2025-03-15 15:33:05 [RateCDR] => 1 ) [2025-03-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-03-15 12:33:05' and `end` < '2025-03-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-03-15 15:33:17] Production.INFO: count ==1933 [2025-03-15 15:33:18] Production.ERROR: pbx CDR StartTime 2025-03-15 12:33:05 - End Time 2025-03-15 15:33:05 [2025-03-15 15:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 15:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687085', 'tblTempUsageDetail_20' ) start [2025-03-15 15:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687085', 'tblTempUsageDetail_20' ) end [2025-03-15 15:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687085', 'tblTempVendorCDR_20' ) start [2025-03-15 15:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687085', 'tblTempVendorCDR_20' ) end [2025-03-15 15:33:18] Production.INFO: ProcessCDR(1,14687085,1,1,2) [2025-03-15 15:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687085', 'tblTempUsageDetail_20' ) start [2025-03-15 15:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687085', 'tblTempUsageDetail_20' ) end [2025-03-15 15:33:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 15:33:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 15:33:23] Production.INFO: ==28143== Releasing lock... [2025-03-15 15:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 15:33:23] Production.INFO: 42.5 MB #Memory Used# [2025-03-15 15:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 12:34:05 [end_date_ymd] => 2025-03-15 15:34:05 [RateCDR] => 1 ) [2025-03-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-03-15 12:34:05' and `end` < '2025-03-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-03-15 15:34:18] Production.INFO: count ==1928 [2025-03-15 15:34:18] Production.ERROR: pbx CDR StartTime 2025-03-15 12:34:05 - End Time 2025-03-15 15:34:05 [2025-03-15 15:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 15:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687090', 'tblTempUsageDetail_20' ) start [2025-03-15 15:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687090', 'tblTempUsageDetail_20' ) end [2025-03-15 15:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687090', 'tblTempVendorCDR_20' ) start [2025-03-15 15:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687090', 'tblTempVendorCDR_20' ) end [2025-03-15 15:34:18] Production.INFO: ProcessCDR(1,14687090,1,1,2) [2025-03-15 15:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687090', 'tblTempUsageDetail_20' ) start [2025-03-15 15:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687090', 'tblTempUsageDetail_20' ) end [2025-03-15 15:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 15:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 15:34:22] Production.INFO: ==28223== Releasing lock... [2025-03-15 15:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 15:34:22] Production.INFO: 42.75 MB #Memory Used# [2025-03-15 15:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 12:35:05 [end_date_ymd] => 2025-03-15 15:35:05 [RateCDR] => 1 ) [2025-03-15 15:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 12:35:05' and `end` < '2025-03-15 15:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 15:35:17] Production.INFO: count ==1901 [2025-03-15 15:35:18] Production.ERROR: pbx CDR StartTime 2025-03-15 12:35:05 - End Time 2025-03-15 15:35:05 [2025-03-15 15:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 15:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687095', 'tblTempUsageDetail_20' ) start [2025-03-15 15:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687095', 'tblTempUsageDetail_20' ) end [2025-03-15 15:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687095', 'tblTempVendorCDR_20' ) start [2025-03-15 15:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687095', 'tblTempVendorCDR_20' ) end [2025-03-15 15:35:18] Production.INFO: ProcessCDR(1,14687095,1,1,2) [2025-03-15 15:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687095', 'tblTempUsageDetail_20' ) start [2025-03-15 15:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687095', 'tblTempUsageDetail_20' ) end [2025-03-15 15:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 15:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 15:35:21] Production.INFO: ==28317== Releasing lock... [2025-03-15 15:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 15:35:21] Production.INFO: 42.5 MB #Memory Used# [2025-03-15 15:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 12:36:05 [end_date_ymd] => 2025-03-15 15:36:05 [RateCDR] => 1 ) [2025-03-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-03-15 12:36:05' and `end` < '2025-03-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-03-15 15:36:18] Production.INFO: count ==1903 [2025-03-15 15:36:18] Production.ERROR: pbx CDR StartTime 2025-03-15 12:36:05 - End Time 2025-03-15 15:36:05 [2025-03-15 15:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 15:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687100', 'tblTempUsageDetail_20' ) start [2025-03-15 15:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687100', 'tblTempUsageDetail_20' ) end [2025-03-15 15:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687100', 'tblTempVendorCDR_20' ) start [2025-03-15 15:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687100', 'tblTempVendorCDR_20' ) end [2025-03-15 15:36:18] Production.INFO: ProcessCDR(1,14687100,1,1,2) [2025-03-15 15:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687100', 'tblTempUsageDetail_20' ) start [2025-03-15 15:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687100', 'tblTempUsageDetail_20' ) end [2025-03-15 15:36:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 15:36:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 15:36:23] Production.INFO: ==28396== Releasing lock... [2025-03-15 15:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 15:36:23] Production.INFO: 42.5 MB #Memory Used# [2025-03-15 15:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 12:37:05 [end_date_ymd] => 2025-03-15 15:37:05 [RateCDR] => 1 ) [2025-03-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-03-15 12:37:05' and `end` < '2025-03-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-03-15 15:37:17] Production.INFO: count ==1904 [2025-03-15 15:37:18] Production.ERROR: pbx CDR StartTime 2025-03-15 12:37:05 - End Time 2025-03-15 15:37:05 [2025-03-15 15:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 15:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687105', 'tblTempUsageDetail_20' ) start [2025-03-15 15:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687105', 'tblTempUsageDetail_20' ) end [2025-03-15 15:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687105', 'tblTempVendorCDR_20' ) start [2025-03-15 15:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687105', 'tblTempVendorCDR_20' ) end [2025-03-15 15:37:18] Production.INFO: ProcessCDR(1,14687105,1,1,2) [2025-03-15 15:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687105', 'tblTempUsageDetail_20' ) start [2025-03-15 15:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687105', 'tblTempUsageDetail_20' ) end [2025-03-15 15:37:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 15:37:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 15:37:23] Production.INFO: ==28473== Releasing lock... [2025-03-15 15:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 15:37:23] Production.INFO: 42.25 MB #Memory Used# [2025-03-15 15:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 12:38:05 [end_date_ymd] => 2025-03-15 15:38:05 [RateCDR] => 1 ) [2025-03-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-03-15 12:38:05' and `end` < '2025-03-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-03-15 15:38:17] Production.INFO: count ==1888 [2025-03-15 15:38:18] Production.ERROR: pbx CDR StartTime 2025-03-15 12:38:05 - End Time 2025-03-15 15:38:05 [2025-03-15 15:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 15:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687110', 'tblTempUsageDetail_20' ) start [2025-03-15 15:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687110', 'tblTempUsageDetail_20' ) end [2025-03-15 15:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687110', 'tblTempVendorCDR_20' ) start [2025-03-15 15:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687110', 'tblTempVendorCDR_20' ) end [2025-03-15 15:38:18] Production.INFO: ProcessCDR(1,14687110,1,1,2) [2025-03-15 15:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687110', 'tblTempUsageDetail_20' ) start [2025-03-15 15:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687110', 'tblTempUsageDetail_20' ) end [2025-03-15 15:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 15:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 15:38:21] Production.INFO: ==28548== Releasing lock... [2025-03-15 15:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 15:38:21] Production.INFO: 42.25 MB #Memory Used# [2025-03-15 15:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 12:39:05 [end_date_ymd] => 2025-03-15 15:39:05 [RateCDR] => 1 ) [2025-03-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-03-15 12:39:05' and `end` < '2025-03-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-03-15 15:39:17] Production.INFO: count ==1882 [2025-03-15 15:39:18] Production.ERROR: pbx CDR StartTime 2025-03-15 12:39:05 - End Time 2025-03-15 15:39:05 [2025-03-15 15:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 15:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687115', 'tblTempUsageDetail_20' ) start [2025-03-15 15:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687115', 'tblTempUsageDetail_20' ) end [2025-03-15 15:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687115', 'tblTempVendorCDR_20' ) start [2025-03-15 15:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687115', 'tblTempVendorCDR_20' ) end [2025-03-15 15:39:18] Production.INFO: ProcessCDR(1,14687115,1,1,2) [2025-03-15 15:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687115', 'tblTempUsageDetail_20' ) start [2025-03-15 15:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687115', 'tblTempUsageDetail_20' ) end [2025-03-15 15:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 15:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 15:39:21] Production.INFO: ==28622== Releasing lock... [2025-03-15 15:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 15:39:21] Production.INFO: 42.25 MB #Memory Used# [2025-03-15 15:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 12:40:06 [end_date_ymd] => 2025-03-15 15:40:06 [RateCDR] => 1 ) [2025-03-15 15:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 12:40:06' and `end` < '2025-03-15 15:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 15:40:18] Production.INFO: count ==1862 [2025-03-15 15:40:19] Production.ERROR: pbx CDR StartTime 2025-03-15 12:40:06 - End Time 2025-03-15 15:40:06 [2025-03-15 15:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 15:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687121', 'tblTempUsageDetail_20' ) start [2025-03-15 15:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687121', 'tblTempUsageDetail_20' ) end [2025-03-15 15:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687121', 'tblTempVendorCDR_20' ) start [2025-03-15 15:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687121', 'tblTempVendorCDR_20' ) end [2025-03-15 15:40:19] Production.INFO: ProcessCDR(1,14687121,1,1,2) [2025-03-15 15:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687121', 'tblTempUsageDetail_20' ) start [2025-03-15 15:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687121', 'tblTempUsageDetail_20' ) end [2025-03-15 15:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 15:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 15:40:22] Production.INFO: ==28705== Releasing lock... [2025-03-15 15:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 15:40:22] Production.INFO: 42.25 MB #Memory Used# [2025-03-15 15:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 12:41:05 [end_date_ymd] => 2025-03-15 15:41:05 [RateCDR] => 1 ) [2025-03-15 15:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 12:41:05' and `end` < '2025-03-15 15:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 15:41:18] Production.INFO: count ==1821 [2025-03-15 15:41:18] Production.ERROR: pbx CDR StartTime 2025-03-15 12:41:05 - End Time 2025-03-15 15:41:05 [2025-03-15 15:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 15:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687126', 'tblTempUsageDetail_20' ) start [2025-03-15 15:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687126', 'tblTempUsageDetail_20' ) end [2025-03-15 15:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687126', 'tblTempVendorCDR_20' ) start [2025-03-15 15:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687126', 'tblTempVendorCDR_20' ) end [2025-03-15 15:41:19] Production.INFO: ProcessCDR(1,14687126,1,1,2) [2025-03-15 15:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687126', 'tblTempUsageDetail_20' ) start [2025-03-15 15:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687126', 'tblTempUsageDetail_20' ) end [2025-03-15 15:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 15:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 15:41:22] Production.INFO: ==28784== Releasing lock... [2025-03-15 15:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 15:41:22] Production.INFO: 42 MB #Memory Used# [2025-03-15 15:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 12:42:05 [end_date_ymd] => 2025-03-15 15:42:05 [RateCDR] => 1 ) [2025-03-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-03-15 12:42:05' and `end` < '2025-03-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-03-15 15:42:18] Production.INFO: count ==1805 [2025-03-15 15:42:18] Production.ERROR: pbx CDR StartTime 2025-03-15 12:42:05 - End Time 2025-03-15 15:42:05 [2025-03-15 15:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 15:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687131', 'tblTempUsageDetail_20' ) start [2025-03-15 15:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687131', 'tblTempUsageDetail_20' ) end [2025-03-15 15:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687131', 'tblTempVendorCDR_20' ) start [2025-03-15 15:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687131', 'tblTempVendorCDR_20' ) end [2025-03-15 15:42:18] Production.INFO: ProcessCDR(1,14687131,1,1,2) [2025-03-15 15:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687131', 'tblTempUsageDetail_20' ) start [2025-03-15 15:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687131', 'tblTempUsageDetail_20' ) end [2025-03-15 15:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 15:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 15:42:22] Production.INFO: ==28864== Releasing lock... [2025-03-15 15:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 15:42:22] Production.INFO: 41.5 MB #Memory Used# [2025-03-15 15:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 12:43:05 [end_date_ymd] => 2025-03-15 15:43:05 [RateCDR] => 1 ) [2025-03-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-03-15 12:43:05' and `end` < '2025-03-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-03-15 15:43:18] Production.INFO: count ==1806 [2025-03-15 15:43:18] Production.ERROR: pbx CDR StartTime 2025-03-15 12:43:05 - End Time 2025-03-15 15:43:05 [2025-03-15 15:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 15:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687136', 'tblTempUsageDetail_20' ) start [2025-03-15 15:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687136', 'tblTempUsageDetail_20' ) end [2025-03-15 15:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687136', 'tblTempVendorCDR_20' ) start [2025-03-15 15:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687136', 'tblTempVendorCDR_20' ) end [2025-03-15 15:43:18] Production.INFO: ProcessCDR(1,14687136,1,1,2) [2025-03-15 15:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687136', 'tblTempUsageDetail_20' ) start [2025-03-15 15:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687136', 'tblTempUsageDetail_20' ) end [2025-03-15 15:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 15:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 15:43:22] Production.INFO: ==28943== Releasing lock... [2025-03-15 15:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 15:43:22] Production.INFO: 41.25 MB #Memory Used# [2025-03-15 15:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 12:44:05 [end_date_ymd] => 2025-03-15 15:44:05 [RateCDR] => 1 ) [2025-03-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-03-15 12:44:05' and `end` < '2025-03-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-03-15 15:44:17] Production.INFO: count ==1808 [2025-03-15 15:44:18] Production.ERROR: pbx CDR StartTime 2025-03-15 12:44:05 - End Time 2025-03-15 15:44:05 [2025-03-15 15:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 15:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687141', 'tblTempUsageDetail_20' ) start [2025-03-15 15:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687141', 'tblTempUsageDetail_20' ) end [2025-03-15 15:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687141', 'tblTempVendorCDR_20' ) start [2025-03-15 15:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687141', 'tblTempVendorCDR_20' ) end [2025-03-15 15:44:18] Production.INFO: ProcessCDR(1,14687141,1,1,2) [2025-03-15 15:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687141', 'tblTempUsageDetail_20' ) start [2025-03-15 15:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687141', 'tblTempUsageDetail_20' ) end [2025-03-15 15:44:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 15:44:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 15:44:23] Production.INFO: ==29020== Releasing lock... [2025-03-15 15:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 15:44:23] Production.INFO: 41.5 MB #Memory Used# [2025-03-15 15:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 12:45:05 [end_date_ymd] => 2025-03-15 15:45:05 [RateCDR] => 1 ) [2025-03-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-03-15 12:45:05' and `end` < '2025-03-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-03-15 15:45:18] Production.INFO: count ==1788 [2025-03-15 15:45:18] Production.ERROR: pbx CDR StartTime 2025-03-15 12:45:05 - End Time 2025-03-15 15:45:05 [2025-03-15 15:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 15:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687146', 'tblTempUsageDetail_20' ) start [2025-03-15 15:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687146', 'tblTempUsageDetail_20' ) end [2025-03-15 15:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687146', 'tblTempVendorCDR_20' ) start [2025-03-15 15:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687146', 'tblTempVendorCDR_20' ) end [2025-03-15 15:45:18] Production.INFO: ProcessCDR(1,14687146,1,1,2) [2025-03-15 15:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687146', 'tblTempUsageDetail_20' ) start [2025-03-15 15:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687146', 'tblTempUsageDetail_20' ) end [2025-03-15 15:45:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 15:45:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 15:45:22] Production.INFO: ==29098== Releasing lock... [2025-03-15 15:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 15:45:22] Production.INFO: 41.75 MB #Memory Used# [2025-03-15 15:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 12:46:04 [end_date_ymd] => 2025-03-15 15:46:04 [RateCDR] => 1 ) [2025-03-15 15: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-03-15 12:46:04' and `end` < '2025-03-15 15: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-03-15 15:46:17] Production.INFO: count ==1747 [2025-03-15 15:46:17] Production.ERROR: pbx CDR StartTime 2025-03-15 12:46:04 - End Time 2025-03-15 15:46:04 [2025-03-15 15:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 15:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687151', 'tblTempUsageDetail_20' ) start [2025-03-15 15:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687151', 'tblTempUsageDetail_20' ) end [2025-03-15 15:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687151', 'tblTempVendorCDR_20' ) start [2025-03-15 15:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687151', 'tblTempVendorCDR_20' ) end [2025-03-15 15:46:17] Production.INFO: ProcessCDR(1,14687151,1,1,2) [2025-03-15 15:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687151', 'tblTempUsageDetail_20' ) start [2025-03-15 15:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687151', 'tblTempUsageDetail_20' ) end [2025-03-15 15:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 15:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 15:46:21] Production.INFO: ==29173== Releasing lock... [2025-03-15 15:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 15:46:21] Production.INFO: 41.25 MB #Memory Used# [2025-03-15 15:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 12:47:05 [end_date_ymd] => 2025-03-15 15:47:05 [RateCDR] => 1 ) [2025-03-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-03-15 12:47:05' and `end` < '2025-03-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-03-15 15:47:18] Production.INFO: count ==1707 [2025-03-15 15:47:18] Production.ERROR: pbx CDR StartTime 2025-03-15 12:47:05 - End Time 2025-03-15 15:47:05 [2025-03-15 15:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 15:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687156', 'tblTempUsageDetail_20' ) start [2025-03-15 15:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687156', 'tblTempUsageDetail_20' ) end [2025-03-15 15:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687156', 'tblTempVendorCDR_20' ) start [2025-03-15 15:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687156', 'tblTempVendorCDR_20' ) end [2025-03-15 15:47:19] Production.INFO: ProcessCDR(1,14687156,1,1,2) [2025-03-15 15:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687156', 'tblTempUsageDetail_20' ) start [2025-03-15 15:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687156', 'tblTempUsageDetail_20' ) end [2025-03-15 15:47:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 15:47:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 15:47:23] Production.INFO: ==29245== Releasing lock... [2025-03-15 15:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 15:47:23] Production.INFO: 40.75 MB #Memory Used# [2025-03-15 15:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 12:48:04 [end_date_ymd] => 2025-03-15 15:48:04 [RateCDR] => 1 ) [2025-03-15 15:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 12:48:04' and `end` < '2025-03-15 15:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 15:48:17] Production.INFO: count ==1703 [2025-03-15 15:48:17] Production.ERROR: pbx CDR StartTime 2025-03-15 12:48:04 - End Time 2025-03-15 15:48:04 [2025-03-15 15:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 15:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687161', 'tblTempUsageDetail_20' ) start [2025-03-15 15:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687161', 'tblTempUsageDetail_20' ) end [2025-03-15 15:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687161', 'tblTempVendorCDR_20' ) start [2025-03-15 15:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687161', 'tblTempVendorCDR_20' ) end [2025-03-15 15:48:17] Production.INFO: ProcessCDR(1,14687161,1,1,2) [2025-03-15 15:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687161', 'tblTempUsageDetail_20' ) start [2025-03-15 15:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687161', 'tblTempUsageDetail_20' ) end [2025-03-15 15:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 15:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 15:48:21] Production.INFO: ==29362== Releasing lock... [2025-03-15 15:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 15:48:21] Production.INFO: 40.75 MB #Memory Used# [2025-03-15 15:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 12:49:05 [end_date_ymd] => 2025-03-15 15:49:05 [RateCDR] => 1 ) [2025-03-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-03-15 12:49:05' and `end` < '2025-03-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-03-15 15:49:17] Production.INFO: count ==1707 [2025-03-15 15:49:18] Production.ERROR: pbx CDR StartTime 2025-03-15 12:49:05 - End Time 2025-03-15 15:49:05 [2025-03-15 15:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 15:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687166', 'tblTempUsageDetail_20' ) start [2025-03-15 15:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687166', 'tblTempUsageDetail_20' ) end [2025-03-15 15:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687166', 'tblTempVendorCDR_20' ) start [2025-03-15 15:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687166', 'tblTempVendorCDR_20' ) end [2025-03-15 15:49:18] Production.INFO: ProcessCDR(1,14687166,1,1,2) [2025-03-15 15:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687166', 'tblTempUsageDetail_20' ) start [2025-03-15 15:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687166', 'tblTempUsageDetail_20' ) end [2025-03-15 15:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 15:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 15:49:21] Production.INFO: ==29446== Releasing lock... [2025-03-15 15:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 15:49:21] Production.INFO: 41.25 MB #Memory Used# [2025-03-15 15:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 12:50:06 [end_date_ymd] => 2025-03-15 15:50:06 [RateCDR] => 1 ) [2025-03-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-03-15 12:50:06' and `end` < '2025-03-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-03-15 15:50:18] Production.INFO: count ==1702 [2025-03-15 15:50:19] Production.ERROR: pbx CDR StartTime 2025-03-15 12:50:06 - End Time 2025-03-15 15:50:06 [2025-03-15 15:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 15:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687172', 'tblTempUsageDetail_20' ) start [2025-03-15 15:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687172', 'tblTempUsageDetail_20' ) end [2025-03-15 15:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687172', 'tblTempVendorCDR_20' ) start [2025-03-15 15:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687172', 'tblTempVendorCDR_20' ) end [2025-03-15 15:50:19] Production.INFO: ProcessCDR(1,14687172,1,1,2) [2025-03-15 15:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687172', 'tblTempUsageDetail_20' ) start [2025-03-15 15:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687172', 'tblTempUsageDetail_20' ) end [2025-03-15 15:50:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 15:50:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 15:50:23] Production.INFO: ==29530== Releasing lock... [2025-03-15 15:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 15:50:23] Production.INFO: 40.75 MB #Memory Used# [2025-03-15 15:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 12:51:05 [end_date_ymd] => 2025-03-15 15:51:05 [RateCDR] => 1 ) [2025-03-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-03-15 12:51:05' and `end` < '2025-03-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-03-15 15:51:17] Production.INFO: count ==1673 [2025-03-15 15:51:17] Production.ERROR: pbx CDR StartTime 2025-03-15 12:51:05 - End Time 2025-03-15 15:51:05 [2025-03-15 15:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 15:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687177', 'tblTempUsageDetail_20' ) start [2025-03-15 15:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687177', 'tblTempUsageDetail_20' ) end [2025-03-15 15:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687177', 'tblTempVendorCDR_20' ) start [2025-03-15 15:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687177', 'tblTempVendorCDR_20' ) end [2025-03-15 15:51:18] Production.INFO: ProcessCDR(1,14687177,1,1,2) [2025-03-15 15:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687177', 'tblTempUsageDetail_20' ) start [2025-03-15 15:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687177', 'tblTempUsageDetail_20' ) end [2025-03-15 15:51:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 15:51:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 15:51:23] Production.INFO: ==29612== Releasing lock... [2025-03-15 15:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 15:51:23] Production.INFO: 41 MB #Memory Used# [2025-03-15 15:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 12:52:05 [end_date_ymd] => 2025-03-15 15:52:05 [RateCDR] => 1 ) [2025-03-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-03-15 12:52:05' and `end` < '2025-03-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-03-15 15:52:18] Production.INFO: count ==1618 [2025-03-15 15:52:18] Production.ERROR: pbx CDR StartTime 2025-03-15 12:52:05 - End Time 2025-03-15 15:52:05 [2025-03-15 15:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 15:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687182', 'tblTempUsageDetail_20' ) start [2025-03-15 15:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687182', 'tblTempUsageDetail_20' ) end [2025-03-15 15:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687182', 'tblTempVendorCDR_20' ) start [2025-03-15 15:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687182', 'tblTempVendorCDR_20' ) end [2025-03-15 15:52:18] Production.INFO: ProcessCDR(1,14687182,1,1,2) [2025-03-15 15:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687182', 'tblTempUsageDetail_20' ) start [2025-03-15 15:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687182', 'tblTempUsageDetail_20' ) end [2025-03-15 15:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 15:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 15:52:21] Production.INFO: ==29689== Releasing lock... [2025-03-15 15:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 15:52:21] Production.INFO: 40.25 MB #Memory Used# [2025-03-15 15:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 12:53:05 [end_date_ymd] => 2025-03-15 15:53:05 [RateCDR] => 1 ) [2025-03-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-03-15 12:53:05' and `end` < '2025-03-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-03-15 15:53:17] Production.INFO: count ==1580 [2025-03-15 15:53:18] Production.ERROR: pbx CDR StartTime 2025-03-15 12:53:05 - End Time 2025-03-15 15:53:05 [2025-03-15 15:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 15:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687187', 'tblTempUsageDetail_20' ) start [2025-03-15 15:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687187', 'tblTempUsageDetail_20' ) end [2025-03-15 15:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687187', 'tblTempVendorCDR_20' ) start [2025-03-15 15:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687187', 'tblTempVendorCDR_20' ) end [2025-03-15 15:53:18] Production.INFO: ProcessCDR(1,14687187,1,1,2) [2025-03-15 15:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687187', 'tblTempUsageDetail_20' ) start [2025-03-15 15:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687187', 'tblTempUsageDetail_20' ) end [2025-03-15 15:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 15:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 15:53:21] Production.INFO: ==29766== Releasing lock... [2025-03-15 15:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 15:53:21] Production.INFO: 40.25 MB #Memory Used# [2025-03-15 15:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 12:54:05 [end_date_ymd] => 2025-03-15 15:54:05 [RateCDR] => 1 ) [2025-03-15 15:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 12:54:05' and `end` < '2025-03-15 15:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 15:54:18] Production.INFO: count ==1567 [2025-03-15 15:54:18] Production.ERROR: pbx CDR StartTime 2025-03-15 12:54:05 - End Time 2025-03-15 15:54:05 [2025-03-15 15:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 15:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687192', 'tblTempUsageDetail_20' ) start [2025-03-15 15:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687192', 'tblTempUsageDetail_20' ) end [2025-03-15 15:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687192', 'tblTempVendorCDR_20' ) start [2025-03-15 15:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687192', 'tblTempVendorCDR_20' ) end [2025-03-15 15:54:18] Production.INFO: ProcessCDR(1,14687192,1,1,2) [2025-03-15 15:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687192', 'tblTempUsageDetail_20' ) start [2025-03-15 15:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687192', 'tblTempUsageDetail_20' ) end [2025-03-15 15:54:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 15:54:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 15:54:23] Production.INFO: ==29844== Releasing lock... [2025-03-15 15:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 15:54:23] Production.INFO: 39.75 MB #Memory Used# [2025-03-15 15:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 12:55:05 [end_date_ymd] => 2025-03-15 15:55:05 [RateCDR] => 1 ) [2025-03-15 15:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 12:55:05' and `end` < '2025-03-15 15:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 15:55:17] Production.INFO: count ==1568 [2025-03-15 15:55:18] Production.ERROR: pbx CDR StartTime 2025-03-15 12:55:05 - End Time 2025-03-15 15:55:05 [2025-03-15 15:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 15:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687197', 'tblTempUsageDetail_20' ) start [2025-03-15 15:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687197', 'tblTempUsageDetail_20' ) end [2025-03-15 15:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687197', 'tblTempVendorCDR_20' ) start [2025-03-15 15:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687197', 'tblTempVendorCDR_20' ) end [2025-03-15 15:55:18] Production.INFO: ProcessCDR(1,14687197,1,1,2) [2025-03-15 15:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687197', 'tblTempUsageDetail_20' ) start [2025-03-15 15:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687197', 'tblTempUsageDetail_20' ) end [2025-03-15 15:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 15:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 15:55:21] Production.INFO: ==29921== Releasing lock... [2025-03-15 15:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 15:55:21] Production.INFO: 39.75 MB #Memory Used# [2025-03-15 15:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 12:56:05 [end_date_ymd] => 2025-03-15 15:56:05 [RateCDR] => 1 ) [2025-03-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-03-15 12:56:05' and `end` < '2025-03-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-03-15 15:56:18] Production.INFO: count ==1567 [2025-03-15 15:56:18] Production.ERROR: pbx CDR StartTime 2025-03-15 12:56:05 - End Time 2025-03-15 15:56:05 [2025-03-15 15:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 15:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687202', 'tblTempUsageDetail_20' ) start [2025-03-15 15:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687202', 'tblTempUsageDetail_20' ) end [2025-03-15 15:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687202', 'tblTempVendorCDR_20' ) start [2025-03-15 15:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687202', 'tblTempVendorCDR_20' ) end [2025-03-15 15:56:18] Production.INFO: ProcessCDR(1,14687202,1,1,2) [2025-03-15 15:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687202', 'tblTempUsageDetail_20' ) start [2025-03-15 15:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687202', 'tblTempUsageDetail_20' ) end [2025-03-15 15:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 15:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 15:56:21] Production.INFO: ==29998== Releasing lock... [2025-03-15 15:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 15:56:21] Production.INFO: 39.75 MB #Memory Used# [2025-03-15 15:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 12:57:04 [end_date_ymd] => 2025-03-15 15:57:04 [RateCDR] => 1 ) [2025-03-15 15: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-03-15 12:57:04' and `end` < '2025-03-15 15: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-03-15 15:57:17] Production.INFO: count ==1571 [2025-03-15 15:57:17] Production.ERROR: pbx CDR StartTime 2025-03-15 12:57:04 - End Time 2025-03-15 15:57:04 [2025-03-15 15:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 15:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687207', 'tblTempUsageDetail_20' ) start [2025-03-15 15:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687207', 'tblTempUsageDetail_20' ) end [2025-03-15 15:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687207', 'tblTempVendorCDR_20' ) start [2025-03-15 15:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687207', 'tblTempVendorCDR_20' ) end [2025-03-15 15:57:17] Production.INFO: ProcessCDR(1,14687207,1,1,2) [2025-03-15 15:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687207', 'tblTempUsageDetail_20' ) start [2025-03-15 15:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687207', 'tblTempUsageDetail_20' ) end [2025-03-15 15:57:20] Production.ERROR: pbx prc_insertCDR start [2025-03-15 15:57:20] Production.ERROR: pbx prc_insertCDR end [2025-03-15 15:57:20] Production.INFO: ==30077== Releasing lock... [2025-03-15 15:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 15:57:20] Production.INFO: 39.5 MB #Memory Used# [2025-03-15 15:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 12:58:05 [end_date_ymd] => 2025-03-15 15:58:05 [RateCDR] => 1 ) [2025-03-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-03-15 12:58:05' and `end` < '2025-03-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-03-15 15:58:18] Production.INFO: count ==1557 [2025-03-15 15:58:18] Production.ERROR: pbx CDR StartTime 2025-03-15 12:58:05 - End Time 2025-03-15 15:58:05 [2025-03-15 15:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 15:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687212', 'tblTempUsageDetail_20' ) start [2025-03-15 15:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687212', 'tblTempUsageDetail_20' ) end [2025-03-15 15:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687212', 'tblTempVendorCDR_20' ) start [2025-03-15 15:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687212', 'tblTempVendorCDR_20' ) end [2025-03-15 15:58:18] Production.INFO: ProcessCDR(1,14687212,1,1,2) [2025-03-15 15:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687212', 'tblTempUsageDetail_20' ) start [2025-03-15 15:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687212', 'tblTempUsageDetail_20' ) end [2025-03-15 15:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 15:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 15:58:22] Production.INFO: ==30156== Releasing lock... [2025-03-15 15:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 15:58:22] Production.INFO: 39.5 MB #Memory Used# [2025-03-15 15:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 12:59:05 [end_date_ymd] => 2025-03-15 15:59:05 [RateCDR] => 1 ) [2025-03-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-03-15 12:59:05' and `end` < '2025-03-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-03-15 15:59:17] Production.INFO: count ==1534 [2025-03-15 15:59:17] Production.ERROR: pbx CDR StartTime 2025-03-15 12:59:05 - End Time 2025-03-15 15:59:05 [2025-03-15 15:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 15:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687217', 'tblTempUsageDetail_20' ) start [2025-03-15 15:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687217', 'tblTempUsageDetail_20' ) end [2025-03-15 15:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687217', 'tblTempVendorCDR_20' ) start [2025-03-15 15:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687217', 'tblTempVendorCDR_20' ) end [2025-03-15 15:59:17] Production.INFO: ProcessCDR(1,14687217,1,1,2) [2025-03-15 15:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 15:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 15:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687217', 'tblTempUsageDetail_20' ) start [2025-03-15 15:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687217', 'tblTempUsageDetail_20' ) end [2025-03-15 15:59:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 15:59:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 15:59:22] Production.INFO: ==30232== Releasing lock... [2025-03-15 15:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 15:59:22] Production.INFO: 39.5 MB #Memory Used# [2025-03-15 16:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 13:00:06 [end_date_ymd] => 2025-03-15 16:00:06 [RateCDR] => 1 ) [2025-03-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-03-15 13:00:06' and `end` < '2025-03-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-03-15 16:00:19] Production.INFO: count ==1532 [2025-03-15 16:00:19] Production.ERROR: pbx CDR StartTime 2025-03-15 13:00:06 - End Time 2025-03-15 16:00:06 [2025-03-15 16:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 16:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687223', 'tblTempUsageDetail_20' ) start [2025-03-15 16:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687223', 'tblTempUsageDetail_20' ) end [2025-03-15 16:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687223', 'tblTempVendorCDR_20' ) start [2025-03-15 16:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687223', 'tblTempVendorCDR_20' ) end [2025-03-15 16:00:19] Production.INFO: ProcessCDR(1,14687223,1,1,2) [2025-03-15 16:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687223', 'tblTempUsageDetail_20' ) start [2025-03-15 16:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687223', 'tblTempUsageDetail_20' ) end [2025-03-15 16:00:24] Production.ERROR: pbx prc_insertCDR start [2025-03-15 16:00:24] Production.ERROR: pbx prc_insertCDR end [2025-03-15 16:00:24] Production.INFO: ==30314== Releasing lock... [2025-03-15 16:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 16:00:24] Production.INFO: 39.25 MB #Memory Used# [2025-03-15 16:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 13:01:05 [end_date_ymd] => 2025-03-15 16:01:05 [RateCDR] => 1 ) [2025-03-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-03-15 13:01:05' and `end` < '2025-03-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-03-15 16:01:18] Production.INFO: count ==1539 [2025-03-15 16:01:18] Production.ERROR: pbx CDR StartTime 2025-03-15 13:01:05 - End Time 2025-03-15 16:01:05 [2025-03-15 16:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 16:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687228', 'tblTempUsageDetail_20' ) start [2025-03-15 16:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687228', 'tblTempUsageDetail_20' ) end [2025-03-15 16:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687228', 'tblTempVendorCDR_20' ) start [2025-03-15 16:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687228', 'tblTempVendorCDR_20' ) end [2025-03-15 16:01:18] Production.INFO: ProcessCDR(1,14687228,1,1,2) [2025-03-15 16:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687228', 'tblTempUsageDetail_20' ) start [2025-03-15 16:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687228', 'tblTempUsageDetail_20' ) end [2025-03-15 16:01:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 16:01:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 16:01:23] Production.INFO: ==30404== Releasing lock... [2025-03-15 16:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 16:01:23] Production.INFO: 39.5 MB #Memory Used# [2025-03-15 16:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 13:02:05 [end_date_ymd] => 2025-03-15 16:02:05 [RateCDR] => 1 ) [2025-03-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-03-15 13:02:05' and `end` < '2025-03-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-03-15 16:02:17] Production.INFO: count ==1533 [2025-03-15 16:02:18] Production.ERROR: pbx CDR StartTime 2025-03-15 13:02:05 - End Time 2025-03-15 16:02:05 [2025-03-15 16:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 16:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687233', 'tblTempUsageDetail_20' ) start [2025-03-15 16:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687233', 'tblTempUsageDetail_20' ) end [2025-03-15 16:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687233', 'tblTempVendorCDR_20' ) start [2025-03-15 16:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687233', 'tblTempVendorCDR_20' ) end [2025-03-15 16:02:18] Production.INFO: ProcessCDR(1,14687233,1,1,2) [2025-03-15 16:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687233', 'tblTempUsageDetail_20' ) start [2025-03-15 16:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687233', 'tblTempUsageDetail_20' ) end [2025-03-15 16:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 16:02:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 16:02:23] Production.INFO: ==30482== Releasing lock... [2025-03-15 16:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 16:02:23] Production.INFO: 39.5 MB #Memory Used# [2025-03-15 16:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 13:03:05 [end_date_ymd] => 2025-03-15 16:03:05 [RateCDR] => 1 ) [2025-03-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-03-15 13:03:05' and `end` < '2025-03-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-03-15 16:03:18] Production.INFO: count ==1535 [2025-03-15 16:03:18] Production.ERROR: pbx CDR StartTime 2025-03-15 13:03:05 - End Time 2025-03-15 16:03:05 [2025-03-15 16:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 16:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687238', 'tblTempUsageDetail_20' ) start [2025-03-15 16:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687238', 'tblTempUsageDetail_20' ) end [2025-03-15 16:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687238', 'tblTempVendorCDR_20' ) start [2025-03-15 16:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687238', 'tblTempVendorCDR_20' ) end [2025-03-15 16:03:18] Production.INFO: ProcessCDR(1,14687238,1,1,2) [2025-03-15 16:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687238', 'tblTempUsageDetail_20' ) start [2025-03-15 16:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687238', 'tblTempUsageDetail_20' ) end [2025-03-15 16:03:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 16:03:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 16:03:23] Production.INFO: ==30563== Releasing lock... [2025-03-15 16:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 16:03:23] Production.INFO: 39.5 MB #Memory Used# [2025-03-15 16:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 13:04:05 [end_date_ymd] => 2025-03-15 16:04:05 [RateCDR] => 1 ) [2025-03-15 16:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 13:04:05' and `end` < '2025-03-15 16:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 16:04:17] Production.INFO: count ==1532 [2025-03-15 16:04:18] Production.ERROR: pbx CDR StartTime 2025-03-15 13:04:05 - End Time 2025-03-15 16:04:05 [2025-03-15 16:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 16:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687243', 'tblTempUsageDetail_20' ) start [2025-03-15 16:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687243', 'tblTempUsageDetail_20' ) end [2025-03-15 16:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687243', 'tblTempVendorCDR_20' ) start [2025-03-15 16:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687243', 'tblTempVendorCDR_20' ) end [2025-03-15 16:04:18] Production.INFO: ProcessCDR(1,14687243,1,1,2) [2025-03-15 16:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687243', 'tblTempUsageDetail_20' ) start [2025-03-15 16:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687243', 'tblTempUsageDetail_20' ) end [2025-03-15 16:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 16:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 16:04:21] Production.INFO: ==30681== Releasing lock... [2025-03-15 16:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 16:04:21] Production.INFO: 39.5 MB #Memory Used# [2025-03-15 16:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 13:05:06 [end_date_ymd] => 2025-03-15 16:05:06 [RateCDR] => 1 ) [2025-03-15 16:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 13:05:06' and `end` < '2025-03-15 16:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 16:05:18] Production.INFO: count ==1529 [2025-03-15 16:05:18] Production.ERROR: pbx CDR StartTime 2025-03-15 13:05:06 - End Time 2025-03-15 16:05:06 [2025-03-15 16:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 16:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687248', 'tblTempUsageDetail_20' ) start [2025-03-15 16:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687248', 'tblTempUsageDetail_20' ) end [2025-03-15 16:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687248', 'tblTempVendorCDR_20' ) start [2025-03-15 16:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687248', 'tblTempVendorCDR_20' ) end [2025-03-15 16:05:18] Production.INFO: ProcessCDR(1,14687248,1,1,2) [2025-03-15 16:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687248', 'tblTempUsageDetail_20' ) start [2025-03-15 16:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687248', 'tblTempUsageDetail_20' ) end [2025-03-15 16:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 16:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 16:05:22] Production.INFO: ==30760== Releasing lock... [2025-03-15 16:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 16:05:22] Production.INFO: 39.75 MB #Memory Used# [2025-03-15 16:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 13:06:05 [end_date_ymd] => 2025-03-15 16:06:05 [RateCDR] => 1 ) [2025-03-15 16:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 13:06:05' and `end` < '2025-03-15 16:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 16:06:17] Production.INFO: count ==1530 [2025-03-15 16:06:18] Production.ERROR: pbx CDR StartTime 2025-03-15 13:06:05 - End Time 2025-03-15 16:06:05 [2025-03-15 16:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 16:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687253', 'tblTempUsageDetail_20' ) start [2025-03-15 16:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687253', 'tblTempUsageDetail_20' ) end [2025-03-15 16:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687253', 'tblTempVendorCDR_20' ) start [2025-03-15 16:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687253', 'tblTempVendorCDR_20' ) end [2025-03-15 16:06:18] Production.INFO: ProcessCDR(1,14687253,1,1,2) [2025-03-15 16:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687253', 'tblTempUsageDetail_20' ) start [2025-03-15 16:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687253', 'tblTempUsageDetail_20' ) end [2025-03-15 16:06:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 16:06:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 16:06:23] Production.INFO: ==30835== Releasing lock... [2025-03-15 16:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 16:06:23] Production.INFO: 39.5 MB #Memory Used# [2025-03-15 16:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 13:07:05 [end_date_ymd] => 2025-03-15 16:07:05 [RateCDR] => 1 ) [2025-03-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-03-15 13:07:05' and `end` < '2025-03-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-03-15 16:07:18] Production.INFO: count ==1530 [2025-03-15 16:07:18] Production.ERROR: pbx CDR StartTime 2025-03-15 13:07:05 - End Time 2025-03-15 16:07:05 [2025-03-15 16:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 16:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687258', 'tblTempUsageDetail_20' ) start [2025-03-15 16:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687258', 'tblTempUsageDetail_20' ) end [2025-03-15 16:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687258', 'tblTempVendorCDR_20' ) start [2025-03-15 16:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687258', 'tblTempVendorCDR_20' ) end [2025-03-15 16:07:18] Production.INFO: ProcessCDR(1,14687258,1,1,2) [2025-03-15 16:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687258', 'tblTempUsageDetail_20' ) start [2025-03-15 16:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687258', 'tblTempUsageDetail_20' ) end [2025-03-15 16:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 16:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 16:07:21] Production.INFO: ==30919== Releasing lock... [2025-03-15 16:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 16:07:21] Production.INFO: 39.5 MB #Memory Used# [2025-03-15 16:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 13:08:05 [end_date_ymd] => 2025-03-15 16:08:05 [RateCDR] => 1 ) [2025-03-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-03-15 13:08:05' and `end` < '2025-03-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-03-15 16:08:17] Production.INFO: count ==1524 [2025-03-15 16:08:18] Production.ERROR: pbx CDR StartTime 2025-03-15 13:08:05 - End Time 2025-03-15 16:08:05 [2025-03-15 16:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 16:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687263', 'tblTempUsageDetail_20' ) start [2025-03-15 16:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687263', 'tblTempUsageDetail_20' ) end [2025-03-15 16:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687263', 'tblTempVendorCDR_20' ) start [2025-03-15 16:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687263', 'tblTempVendorCDR_20' ) end [2025-03-15 16:08:18] Production.INFO: ProcessCDR(1,14687263,1,1,2) [2025-03-15 16:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687263', 'tblTempUsageDetail_20' ) start [2025-03-15 16:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687263', 'tblTempUsageDetail_20' ) end [2025-03-15 16:08:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 16:08:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 16:08:22] Production.INFO: ==30997== Releasing lock... [2025-03-15 16:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 16:08:22] Production.INFO: 39.5 MB #Memory Used# [2025-03-15 16:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 13:09:05 [end_date_ymd] => 2025-03-15 16:09:05 [RateCDR] => 1 ) [2025-03-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-03-15 13:09:05' and `end` < '2025-03-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-03-15 16:09:17] Production.INFO: count ==1516 [2025-03-15 16:09:18] Production.ERROR: pbx CDR StartTime 2025-03-15 13:09:05 - End Time 2025-03-15 16:09:05 [2025-03-15 16:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 16:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687268', 'tblTempUsageDetail_20' ) start [2025-03-15 16:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687268', 'tblTempUsageDetail_20' ) end [2025-03-15 16:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687268', 'tblTempVendorCDR_20' ) start [2025-03-15 16:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687268', 'tblTempVendorCDR_20' ) end [2025-03-15 16:09:18] Production.INFO: ProcessCDR(1,14687268,1,1,2) [2025-03-15 16:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687268', 'tblTempUsageDetail_20' ) start [2025-03-15 16:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687268', 'tblTempUsageDetail_20' ) end [2025-03-15 16:09:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 16:09:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 16:09:22] Production.INFO: ==31074== Releasing lock... [2025-03-15 16:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 16:09:22] Production.INFO: 39.5 MB #Memory Used# [2025-03-15 16:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 13:10:05 [end_date_ymd] => 2025-03-15 16:10:05 [RateCDR] => 1 ) [2025-03-15 16:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 13:10:05' and `end` < '2025-03-15 16:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 16:10:17] Production.INFO: count ==1514 [2025-03-15 16:10:18] Production.ERROR: pbx CDR StartTime 2025-03-15 13:10:05 - End Time 2025-03-15 16:10:05 [2025-03-15 16:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 16:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687274', 'tblTempUsageDetail_20' ) start [2025-03-15 16:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687274', 'tblTempUsageDetail_20' ) end [2025-03-15 16:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687274', 'tblTempVendorCDR_20' ) start [2025-03-15 16:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687274', 'tblTempVendorCDR_20' ) end [2025-03-15 16:10:18] Production.INFO: ProcessCDR(1,14687274,1,1,2) [2025-03-15 16:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687274', 'tblTempUsageDetail_20' ) start [2025-03-15 16:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687274', 'tblTempUsageDetail_20' ) end [2025-03-15 16:10:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 16:10:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 16:10:23] Production.INFO: ==31161== Releasing lock... [2025-03-15 16:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 16:10:23] Production.INFO: 39.75 MB #Memory Used# [2025-03-15 16:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 13:11:05 [end_date_ymd] => 2025-03-15 16:11:05 [RateCDR] => 1 ) [2025-03-15 16:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 13:11:05' and `end` < '2025-03-15 16:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 16:11:17] Production.INFO: count ==1532 [2025-03-15 16:11:18] Production.ERROR: pbx CDR StartTime 2025-03-15 13:11:05 - End Time 2025-03-15 16:11:05 [2025-03-15 16:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 16:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687279', 'tblTempUsageDetail_20' ) start [2025-03-15 16:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687279', 'tblTempUsageDetail_20' ) end [2025-03-15 16:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687279', 'tblTempVendorCDR_20' ) start [2025-03-15 16:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687279', 'tblTempVendorCDR_20' ) end [2025-03-15 16:11:18] Production.INFO: ProcessCDR(1,14687279,1,1,2) [2025-03-15 16:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687279', 'tblTempUsageDetail_20' ) start [2025-03-15 16:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687279', 'tblTempUsageDetail_20' ) end [2025-03-15 16:11:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 16:11:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 16:11:22] Production.INFO: ==31249== Releasing lock... [2025-03-15 16:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 16:11:22] Production.INFO: 39.5 MB #Memory Used# [2025-03-15 16:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 13:12:05 [end_date_ymd] => 2025-03-15 16:12:05 [RateCDR] => 1 ) [2025-03-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-03-15 13:12:05' and `end` < '2025-03-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-03-15 16:12:17] Production.INFO: count ==1532 [2025-03-15 16:12:18] Production.ERROR: pbx CDR StartTime 2025-03-15 13:12:05 - End Time 2025-03-15 16:12:05 [2025-03-15 16:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 16:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687284', 'tblTempUsageDetail_20' ) start [2025-03-15 16:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687284', 'tblTempUsageDetail_20' ) end [2025-03-15 16:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687284', 'tblTempVendorCDR_20' ) start [2025-03-15 16:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687284', 'tblTempVendorCDR_20' ) end [2025-03-15 16:12:18] Production.INFO: ProcessCDR(1,14687284,1,1,2) [2025-03-15 16:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687284', 'tblTempUsageDetail_20' ) start [2025-03-15 16:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687284', 'tblTempUsageDetail_20' ) end [2025-03-15 16:12:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 16:12:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 16:12:23] Production.INFO: ==31324== Releasing lock... [2025-03-15 16:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 16:12:23] Production.INFO: 39.25 MB #Memory Used# [2025-03-15 16:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 13:13:05 [end_date_ymd] => 2025-03-15 16:13:05 [RateCDR] => 1 ) [2025-03-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-03-15 13:13:05' and `end` < '2025-03-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-03-15 16:13:17] Production.INFO: count ==1533 [2025-03-15 16:13:18] Production.ERROR: pbx CDR StartTime 2025-03-15 13:13:05 - End Time 2025-03-15 16:13:05 [2025-03-15 16:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 16:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687289', 'tblTempUsageDetail_20' ) start [2025-03-15 16:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687289', 'tblTempUsageDetail_20' ) end [2025-03-15 16:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687289', 'tblTempVendorCDR_20' ) start [2025-03-15 16:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687289', 'tblTempVendorCDR_20' ) end [2025-03-15 16:13:18] Production.INFO: ProcessCDR(1,14687289,1,1,2) [2025-03-15 16:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687289', 'tblTempUsageDetail_20' ) start [2025-03-15 16:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687289', 'tblTempUsageDetail_20' ) end [2025-03-15 16:13:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 16:13:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 16:13:23] Production.INFO: ==31403== Releasing lock... [2025-03-15 16:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 16:13:23] Production.INFO: 39.5 MB #Memory Used# [2025-03-15 16:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 13:14:06 [end_date_ymd] => 2025-03-15 16:14:06 [RateCDR] => 1 ) [2025-03-15 16:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 13:14:06' and `end` < '2025-03-15 16:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 16:14:18] Production.INFO: count ==1536 [2025-03-15 16:14:18] Production.ERROR: pbx CDR StartTime 2025-03-15 13:14:06 - End Time 2025-03-15 16:14:06 [2025-03-15 16:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 16:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687294', 'tblTempUsageDetail_20' ) start [2025-03-15 16:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687294', 'tblTempUsageDetail_20' ) end [2025-03-15 16:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687294', 'tblTempVendorCDR_20' ) start [2025-03-15 16:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687294', 'tblTempVendorCDR_20' ) end [2025-03-15 16:14:18] Production.INFO: ProcessCDR(1,14687294,1,1,2) [2025-03-15 16:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687294', 'tblTempUsageDetail_20' ) start [2025-03-15 16:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687294', 'tblTempUsageDetail_20' ) end [2025-03-15 16:14:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 16:14:24] Production.ERROR: pbx prc_insertCDR end [2025-03-15 16:14:24] Production.INFO: ==31484== Releasing lock... [2025-03-15 16:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 16:14:24] Production.INFO: 39.5 MB #Memory Used# [2025-03-15 16:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 13:15:05 [end_date_ymd] => 2025-03-15 16:15:05 [RateCDR] => 1 ) [2025-03-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-03-15 13:15:05' and `end` < '2025-03-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-03-15 16:15:17] Production.INFO: count ==1535 [2025-03-15 16:15:18] Production.ERROR: pbx CDR StartTime 2025-03-15 13:15:05 - End Time 2025-03-15 16:15:05 [2025-03-15 16:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 16:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687299', 'tblTempUsageDetail_20' ) start [2025-03-15 16:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687299', 'tblTempUsageDetail_20' ) end [2025-03-15 16:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687299', 'tblTempVendorCDR_20' ) start [2025-03-15 16:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687299', 'tblTempVendorCDR_20' ) end [2025-03-15 16:15:18] Production.INFO: ProcessCDR(1,14687299,1,1,2) [2025-03-15 16:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687299', 'tblTempUsageDetail_20' ) start [2025-03-15 16:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687299', 'tblTempUsageDetail_20' ) end [2025-03-15 16:15:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 16:15:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 16:15:23] Production.INFO: ==31559== Releasing lock... [2025-03-15 16:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 16:15:23] Production.INFO: 39.5 MB #Memory Used# [2025-03-15 16:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 13:16:05 [end_date_ymd] => 2025-03-15 16:16:05 [RateCDR] => 1 ) [2025-03-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-03-15 13:16:05' and `end` < '2025-03-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-03-15 16:16:18] Production.INFO: count ==1536 [2025-03-15 16:16:18] Production.ERROR: pbx CDR StartTime 2025-03-15 13:16:05 - End Time 2025-03-15 16:16:05 [2025-03-15 16:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 16:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687304', 'tblTempUsageDetail_20' ) start [2025-03-15 16:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687304', 'tblTempUsageDetail_20' ) end [2025-03-15 16:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687304', 'tblTempVendorCDR_20' ) start [2025-03-15 16:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687304', 'tblTempVendorCDR_20' ) end [2025-03-15 16:16:18] Production.INFO: ProcessCDR(1,14687304,1,1,2) [2025-03-15 16:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687304', 'tblTempUsageDetail_20' ) start [2025-03-15 16:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687304', 'tblTempUsageDetail_20' ) end [2025-03-15 16:16:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 16:16:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 16:16:23] Production.INFO: ==31637== Releasing lock... [2025-03-15 16:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 16:16:23] Production.INFO: 39.5 MB #Memory Used# [2025-03-15 16:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 13:17:05 [end_date_ymd] => 2025-03-15 16:17:05 [RateCDR] => 1 ) [2025-03-15 16:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 13:17:05' and `end` < '2025-03-15 16:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 16:17:17] Production.INFO: count ==1532 [2025-03-15 16:17:18] Production.ERROR: pbx CDR StartTime 2025-03-15 13:17:05 - End Time 2025-03-15 16:17:05 [2025-03-15 16:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 16:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687309', 'tblTempUsageDetail_20' ) start [2025-03-15 16:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687309', 'tblTempUsageDetail_20' ) end [2025-03-15 16:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687309', 'tblTempVendorCDR_20' ) start [2025-03-15 16:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687309', 'tblTempVendorCDR_20' ) end [2025-03-15 16:17:18] Production.INFO: ProcessCDR(1,14687309,1,1,2) [2025-03-15 16:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687309', 'tblTempUsageDetail_20' ) start [2025-03-15 16:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687309', 'tblTempUsageDetail_20' ) end [2025-03-15 16:17:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 16:17:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 16:17:23] Production.INFO: ==31716== Releasing lock... [2025-03-15 16:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 16:17:23] Production.INFO: 39.75 MB #Memory Used# [2025-03-15 16:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 13:18:05 [end_date_ymd] => 2025-03-15 16:18:05 [RateCDR] => 1 ) [2025-03-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-03-15 13:18:05' and `end` < '2025-03-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-03-15 16:18:17] Production.INFO: count ==1522 [2025-03-15 16:18:18] Production.ERROR: pbx CDR StartTime 2025-03-15 13:18:05 - End Time 2025-03-15 16:18:05 [2025-03-15 16:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 16:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687314', 'tblTempUsageDetail_20' ) start [2025-03-15 16:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687314', 'tblTempUsageDetail_20' ) end [2025-03-15 16:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687314', 'tblTempVendorCDR_20' ) start [2025-03-15 16:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687314', 'tblTempVendorCDR_20' ) end [2025-03-15 16:18:18] Production.INFO: ProcessCDR(1,14687314,1,1,2) [2025-03-15 16:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687314', 'tblTempUsageDetail_20' ) start [2025-03-15 16:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687314', 'tblTempUsageDetail_20' ) end [2025-03-15 16:18:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 16:18:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 16:18:23] Production.INFO: ==31796== Releasing lock... [2025-03-15 16:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 16:18:23] Production.INFO: 39.5 MB #Memory Used# [2025-03-15 16:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 13:19:04 [end_date_ymd] => 2025-03-15 16:19:04 [RateCDR] => 1 ) [2025-03-15 16:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 13:19:04' and `end` < '2025-03-15 16:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 16:19:17] Production.INFO: count ==1523 [2025-03-15 16:19:17] Production.ERROR: pbx CDR StartTime 2025-03-15 13:19:04 - End Time 2025-03-15 16:19:04 [2025-03-15 16:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 16:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687319', 'tblTempUsageDetail_20' ) start [2025-03-15 16:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687319', 'tblTempUsageDetail_20' ) end [2025-03-15 16:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687319', 'tblTempVendorCDR_20' ) start [2025-03-15 16:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687319', 'tblTempVendorCDR_20' ) end [2025-03-15 16:19:17] Production.INFO: ProcessCDR(1,14687319,1,1,2) [2025-03-15 16:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687319', 'tblTempUsageDetail_20' ) start [2025-03-15 16:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687319', 'tblTempUsageDetail_20' ) end [2025-03-15 16:19:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 16:19:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 16:19:22] Production.INFO: ==31910== Releasing lock... [2025-03-15 16:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 16:19:22] Production.INFO: 39.5 MB #Memory Used# [2025-03-15 16:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 13:20:06 [end_date_ymd] => 2025-03-15 16:20:06 [RateCDR] => 1 ) [2025-03-15 16:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 13:20:06' and `end` < '2025-03-15 16:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 16:20:18] Production.INFO: count ==1524 [2025-03-15 16:20:19] Production.ERROR: pbx CDR StartTime 2025-03-15 13:20:06 - End Time 2025-03-15 16:20:06 [2025-03-15 16:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 16:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687325', 'tblTempUsageDetail_20' ) start [2025-03-15 16:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687325', 'tblTempUsageDetail_20' ) end [2025-03-15 16:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687325', 'tblTempVendorCDR_20' ) start [2025-03-15 16:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687325', 'tblTempVendorCDR_20' ) end [2025-03-15 16:20:19] Production.INFO: ProcessCDR(1,14687325,1,1,2) [2025-03-15 16:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687325', 'tblTempUsageDetail_20' ) start [2025-03-15 16:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687325', 'tblTempUsageDetail_20' ) end [2025-03-15 16:20:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 16:20:24] Production.ERROR: pbx prc_insertCDR end [2025-03-15 16:20:24] Production.INFO: ==31990== Releasing lock... [2025-03-15 16:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 16:20:24] Production.INFO: 39.5 MB #Memory Used# [2025-03-15 16:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 13:21:05 [end_date_ymd] => 2025-03-15 16:21:05 [RateCDR] => 1 ) [2025-03-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-03-15 13:21:05' and `end` < '2025-03-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-03-15 16:21:18] Production.INFO: count ==1538 [2025-03-15 16:21:18] Production.ERROR: pbx CDR StartTime 2025-03-15 13:21:05 - End Time 2025-03-15 16:21:05 [2025-03-15 16:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 16:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687330', 'tblTempUsageDetail_20' ) start [2025-03-15 16:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687330', 'tblTempUsageDetail_20' ) end [2025-03-15 16:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687330', 'tblTempVendorCDR_20' ) start [2025-03-15 16:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687330', 'tblTempVendorCDR_20' ) end [2025-03-15 16:21:18] Production.INFO: ProcessCDR(1,14687330,1,1,2) [2025-03-15 16:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687330', 'tblTempUsageDetail_20' ) start [2025-03-15 16:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687330', 'tblTempUsageDetail_20' ) end [2025-03-15 16:21:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 16:21:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 16:21:23] Production.INFO: ==32070== Releasing lock... [2025-03-15 16:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 16:21:23] Production.INFO: 39.75 MB #Memory Used# [2025-03-15 16:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 13:22:06 [end_date_ymd] => 2025-03-15 16:22:06 [RateCDR] => 1 ) [2025-03-15 16:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 13:22:06' and `end` < '2025-03-15 16:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 16:22:18] Production.INFO: count ==1537 [2025-03-15 16:22:18] Production.ERROR: pbx CDR StartTime 2025-03-15 13:22:06 - End Time 2025-03-15 16:22:06 [2025-03-15 16:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 16:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687335', 'tblTempUsageDetail_20' ) start [2025-03-15 16:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687335', 'tblTempUsageDetail_20' ) end [2025-03-15 16:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687335', 'tblTempVendorCDR_20' ) start [2025-03-15 16:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687335', 'tblTempVendorCDR_20' ) end [2025-03-15 16:22:18] Production.INFO: ProcessCDR(1,14687335,1,1,2) [2025-03-15 16:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687335', 'tblTempUsageDetail_20' ) start [2025-03-15 16:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687335', 'tblTempUsageDetail_20' ) end [2025-03-15 16:22:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 16:22:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 16:22:23] Production.INFO: ==32145== Releasing lock... [2025-03-15 16:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 16:22:23] Production.INFO: 39.5 MB #Memory Used# [2025-03-15 16:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 13:23:05 [end_date_ymd] => 2025-03-15 16:23:05 [RateCDR] => 1 ) [2025-03-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-03-15 13:23:05' and `end` < '2025-03-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-03-15 16:23:18] Production.INFO: count ==1542 [2025-03-15 16:23:18] Production.ERROR: pbx CDR StartTime 2025-03-15 13:23:05 - End Time 2025-03-15 16:23:05 [2025-03-15 16:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 16:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687340', 'tblTempUsageDetail_20' ) start [2025-03-15 16:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687340', 'tblTempUsageDetail_20' ) end [2025-03-15 16:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687340', 'tblTempVendorCDR_20' ) start [2025-03-15 16:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687340', 'tblTempVendorCDR_20' ) end [2025-03-15 16:23:18] Production.INFO: ProcessCDR(1,14687340,1,1,2) [2025-03-15 16:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687340', 'tblTempUsageDetail_20' ) start [2025-03-15 16:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687340', 'tblTempUsageDetail_20' ) end [2025-03-15 16:23:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 16:23:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 16:23:23] Production.INFO: ==32220== Releasing lock... [2025-03-15 16:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 16:23:23] Production.INFO: 39.5 MB #Memory Used# [2025-03-15 16:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 13:24:05 [end_date_ymd] => 2025-03-15 16:24:05 [RateCDR] => 1 ) [2025-03-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-03-15 13:24:05' and `end` < '2025-03-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-03-15 16:24:18] Production.INFO: count ==1534 [2025-03-15 16:24:18] Production.ERROR: pbx CDR StartTime 2025-03-15 13:24:05 - End Time 2025-03-15 16:24:05 [2025-03-15 16:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 16:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687345', 'tblTempUsageDetail_20' ) start [2025-03-15 16:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687345', 'tblTempUsageDetail_20' ) end [2025-03-15 16:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687345', 'tblTempVendorCDR_20' ) start [2025-03-15 16:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687345', 'tblTempVendorCDR_20' ) end [2025-03-15 16:24:18] Production.INFO: ProcessCDR(1,14687345,1,1,2) [2025-03-15 16:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687345', 'tblTempUsageDetail_20' ) start [2025-03-15 16:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687345', 'tblTempUsageDetail_20' ) end [2025-03-15 16:24:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 16:24:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 16:24:23] Production.INFO: ==32296== Releasing lock... [2025-03-15 16:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 16:24:23] Production.INFO: 39.75 MB #Memory Used# [2025-03-15 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 13:25:05 [end_date_ymd] => 2025-03-15 16:25:05 [RateCDR] => 1 ) [2025-03-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-03-15 13:25:05' and `end` < '2025-03-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-03-15 16:25:18] Production.INFO: count ==1543 [2025-03-15 16:25:18] Production.ERROR: pbx CDR StartTime 2025-03-15 13:25:05 - End Time 2025-03-15 16:25:05 [2025-03-15 16:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687350', 'tblTempUsageDetail_20' ) start [2025-03-15 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687350', 'tblTempUsageDetail_20' ) end [2025-03-15 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687350', 'tblTempVendorCDR_20' ) start [2025-03-15 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687350', 'tblTempVendorCDR_20' ) end [2025-03-15 16:25:18] Production.INFO: ProcessCDR(1,14687350,1,1,2) [2025-03-15 16:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687350', 'tblTempUsageDetail_20' ) start [2025-03-15 16:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687350', 'tblTempUsageDetail_20' ) end [2025-03-15 16:25:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 16:25:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 16:25:23] Production.INFO: ==32369== Releasing lock... [2025-03-15 16:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 16:25:23] Production.INFO: 39.75 MB #Memory Used# [2025-03-15 16:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 13:26:05 [end_date_ymd] => 2025-03-15 16:26:05 [RateCDR] => 1 ) [2025-03-15 16:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 13:26:05' and `end` < '2025-03-15 16:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 16:26:17] Production.INFO: count ==1546 [2025-03-15 16:26:17] Production.ERROR: pbx CDR StartTime 2025-03-15 13:26:05 - End Time 2025-03-15 16:26:05 [2025-03-15 16:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 16:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687355', 'tblTempUsageDetail_20' ) start [2025-03-15 16:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687355', 'tblTempUsageDetail_20' ) end [2025-03-15 16:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687355', 'tblTempVendorCDR_20' ) start [2025-03-15 16:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687355', 'tblTempVendorCDR_20' ) end [2025-03-15 16:26:18] Production.INFO: ProcessCDR(1,14687355,1,1,2) [2025-03-15 16:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687355', 'tblTempUsageDetail_20' ) start [2025-03-15 16:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687355', 'tblTempUsageDetail_20' ) end [2025-03-15 16:26:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 16:26:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 16:26:22] Production.INFO: ==32442== Releasing lock... [2025-03-15 16:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 16:26:22] Production.INFO: 40 MB #Memory Used# [2025-03-15 16:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 13:27:05 [end_date_ymd] => 2025-03-15 16:27:05 [RateCDR] => 1 ) [2025-03-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-03-15 13:27:05' and `end` < '2025-03-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-03-15 16:27:18] Production.INFO: count ==1550 [2025-03-15 16:27:18] Production.ERROR: pbx CDR StartTime 2025-03-15 13:27:05 - End Time 2025-03-15 16:27:05 [2025-03-15 16:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 16:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687360', 'tblTempUsageDetail_20' ) start [2025-03-15 16:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687360', 'tblTempUsageDetail_20' ) end [2025-03-15 16:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687360', 'tblTempVendorCDR_20' ) start [2025-03-15 16:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687360', 'tblTempVendorCDR_20' ) end [2025-03-15 16:27:18] Production.INFO: ProcessCDR(1,14687360,1,1,2) [2025-03-15 16:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687360', 'tblTempUsageDetail_20' ) start [2025-03-15 16:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687360', 'tblTempUsageDetail_20' ) end [2025-03-15 16:27:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 16:27:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 16:27:23] Production.INFO: ==32515== Releasing lock... [2025-03-15 16:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 16:27:23] Production.INFO: 39.75 MB #Memory Used# [2025-03-15 16:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 13:28:04 [end_date_ymd] => 2025-03-15 16:28:04 [RateCDR] => 1 ) [2025-03-15 16:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 13:28:04' and `end` < '2025-03-15 16: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-03-15 16:28:17] Production.INFO: count ==1556 [2025-03-15 16:28:17] Production.ERROR: pbx CDR StartTime 2025-03-15 13:28:04 - End Time 2025-03-15 16:28:04 [2025-03-15 16:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 16:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687365', 'tblTempUsageDetail_20' ) start [2025-03-15 16:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687365', 'tblTempUsageDetail_20' ) end [2025-03-15 16:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687365', 'tblTempVendorCDR_20' ) start [2025-03-15 16:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687365', 'tblTempVendorCDR_20' ) end [2025-03-15 16:28:17] Production.INFO: ProcessCDR(1,14687365,1,1,2) [2025-03-15 16:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687365', 'tblTempUsageDetail_20' ) start [2025-03-15 16:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687365', 'tblTempUsageDetail_20' ) end [2025-03-15 16:28:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 16:28:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 16:28:23] Production.INFO: ==32592== Releasing lock... [2025-03-15 16:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 16:28:23] Production.INFO: 40 MB #Memory Used# [2025-03-15 16:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 13:29:05 [end_date_ymd] => 2025-03-15 16:29:05 [RateCDR] => 1 ) [2025-03-15 16:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 13:29:05' and `end` < '2025-03-15 16:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 16:29:18] Production.INFO: count ==1570 [2025-03-15 16:29:18] Production.ERROR: pbx CDR StartTime 2025-03-15 13:29:05 - End Time 2025-03-15 16:29:05 [2025-03-15 16:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 16:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687370', 'tblTempUsageDetail_20' ) start [2025-03-15 16:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687370', 'tblTempUsageDetail_20' ) end [2025-03-15 16:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687370', 'tblTempVendorCDR_20' ) start [2025-03-15 16:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687370', 'tblTempVendorCDR_20' ) end [2025-03-15 16:29:18] Production.INFO: ProcessCDR(1,14687370,1,1,2) [2025-03-15 16:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687370', 'tblTempUsageDetail_20' ) start [2025-03-15 16:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687370', 'tblTempUsageDetail_20' ) end [2025-03-15 16:29:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 16:29:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 16:29:23] Production.INFO: ==32667== Releasing lock... [2025-03-15 16:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 16:29:23] Production.INFO: 39.75 MB #Memory Used# [2025-03-15 16:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 13:30:05 [end_date_ymd] => 2025-03-15 16:30:05 [RateCDR] => 1 ) [2025-03-15 16:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 13:30:05' and `end` < '2025-03-15 16:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 16:30:18] Production.INFO: count ==1580 [2025-03-15 16:30:18] Production.ERROR: pbx CDR StartTime 2025-03-15 13:30:05 - End Time 2025-03-15 16:30:05 [2025-03-15 16:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 16:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687376', 'tblTempUsageDetail_20' ) start [2025-03-15 16:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687376', 'tblTempUsageDetail_20' ) end [2025-03-15 16:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687376', 'tblTempVendorCDR_20' ) start [2025-03-15 16:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687376', 'tblTempVendorCDR_20' ) end [2025-03-15 16:30:18] Production.INFO: ProcessCDR(1,14687376,1,1,2) [2025-03-15 16:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687376', 'tblTempUsageDetail_20' ) start [2025-03-15 16:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687376', 'tblTempUsageDetail_20' ) end [2025-03-15 16:30:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 16:30:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 16:30:23] Production.INFO: ==32743== Releasing lock... [2025-03-15 16:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 16:30:23] Production.INFO: 40 MB #Memory Used# [2025-03-15 16:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 13:31:05 [end_date_ymd] => 2025-03-15 16:31:05 [RateCDR] => 1 ) [2025-03-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-03-15 13:31:05' and `end` < '2025-03-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-03-15 16:31:17] Production.INFO: count ==1648 [2025-03-15 16:31:18] Production.ERROR: pbx CDR StartTime 2025-03-15 13:31:05 - End Time 2025-03-15 16:31:05 [2025-03-15 16:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 16:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687381', 'tblTempUsageDetail_20' ) start [2025-03-15 16:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687381', 'tblTempUsageDetail_20' ) end [2025-03-15 16:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687381', 'tblTempVendorCDR_20' ) start [2025-03-15 16:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687381', 'tblTempVendorCDR_20' ) end [2025-03-15 16:31:18] Production.INFO: ProcessCDR(1,14687381,1,1,2) [2025-03-15 16:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687381', 'tblTempUsageDetail_20' ) start [2025-03-15 16:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687381', 'tblTempUsageDetail_20' ) end [2025-03-15 16:31:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 16:31:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 16:31:23] Production.INFO: ==371== Releasing lock... [2025-03-15 16:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 16:31:23] Production.INFO: 40.5 MB #Memory Used# [2025-03-15 16:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 13:32:05 [end_date_ymd] => 2025-03-15 16:32:05 [RateCDR] => 1 ) [2025-03-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-03-15 13:32:05' and `end` < '2025-03-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-03-15 16:32:18] Production.INFO: count ==1649 [2025-03-15 16:32:18] Production.ERROR: pbx CDR StartTime 2025-03-15 13:32:05 - End Time 2025-03-15 16:32:05 [2025-03-15 16:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 16:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687386', 'tblTempUsageDetail_20' ) start [2025-03-15 16:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687386', 'tblTempUsageDetail_20' ) end [2025-03-15 16:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687386', 'tblTempVendorCDR_20' ) start [2025-03-15 16:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687386', 'tblTempVendorCDR_20' ) end [2025-03-15 16:32:18] Production.INFO: ProcessCDR(1,14687386,1,1,2) [2025-03-15 16:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687386', 'tblTempUsageDetail_20' ) start [2025-03-15 16:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687386', 'tblTempUsageDetail_20' ) end [2025-03-15 16:32:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 16:32:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 16:32:23] Production.INFO: ==446== Releasing lock... [2025-03-15 16:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 16:32:23] Production.INFO: 40.5 MB #Memory Used# [2025-03-15 16:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 13:33:05 [end_date_ymd] => 2025-03-15 16:33:05 [RateCDR] => 1 ) [2025-03-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-03-15 13:33:05' and `end` < '2025-03-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-03-15 16:33:17] Production.INFO: count ==1663 [2025-03-15 16:33:17] Production.ERROR: pbx CDR StartTime 2025-03-15 13:33:05 - End Time 2025-03-15 16:33:05 [2025-03-15 16:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 16:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687391', 'tblTempUsageDetail_20' ) start [2025-03-15 16:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687391', 'tblTempUsageDetail_20' ) end [2025-03-15 16:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687391', 'tblTempVendorCDR_20' ) start [2025-03-15 16:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687391', 'tblTempVendorCDR_20' ) end [2025-03-15 16:33:17] Production.INFO: ProcessCDR(1,14687391,1,1,2) [2025-03-15 16:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687391', 'tblTempUsageDetail_20' ) start [2025-03-15 16:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687391', 'tblTempUsageDetail_20' ) end [2025-03-15 16:33:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 16:33:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 16:33:22] Production.INFO: ==521== Releasing lock... [2025-03-15 16:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 16:33:22] Production.INFO: 40.25 MB #Memory Used# [2025-03-15 16:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 13:34:05 [end_date_ymd] => 2025-03-15 16:34:05 [RateCDR] => 1 ) [2025-03-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-03-15 13:34:05' and `end` < '2025-03-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-03-15 16:34:17] Production.INFO: count ==1666 [2025-03-15 16:34:18] Production.ERROR: pbx CDR StartTime 2025-03-15 13:34:05 - End Time 2025-03-15 16:34:05 [2025-03-15 16:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 16:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687396', 'tblTempUsageDetail_20' ) start [2025-03-15 16:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687396', 'tblTempUsageDetail_20' ) end [2025-03-15 16:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687396', 'tblTempVendorCDR_20' ) start [2025-03-15 16:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687396', 'tblTempVendorCDR_20' ) end [2025-03-15 16:34:18] Production.INFO: ProcessCDR(1,14687396,1,1,2) [2025-03-15 16:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687396', 'tblTempUsageDetail_20' ) start [2025-03-15 16:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687396', 'tblTempUsageDetail_20' ) end [2025-03-15 16:34:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 16:34:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 16:34:23] Production.INFO: ==598== Releasing lock... [2025-03-15 16:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 16:34:23] Production.INFO: 40.5 MB #Memory Used# [2025-03-15 16:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 13:35:04 [end_date_ymd] => 2025-03-15 16:35:04 [RateCDR] => 1 ) [2025-03-15 16: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-03-15 13:35:04' and `end` < '2025-03-15 16: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-03-15 16:35:17] Production.INFO: count ==1661 [2025-03-15 16:35:17] Production.ERROR: pbx CDR StartTime 2025-03-15 13:35:04 - End Time 2025-03-15 16:35:04 [2025-03-15 16:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 16:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687401', 'tblTempUsageDetail_20' ) start [2025-03-15 16:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687401', 'tblTempUsageDetail_20' ) end [2025-03-15 16:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687401', 'tblTempVendorCDR_20' ) start [2025-03-15 16:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687401', 'tblTempVendorCDR_20' ) end [2025-03-15 16:35:17] Production.INFO: ProcessCDR(1,14687401,1,1,2) [2025-03-15 16:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687401', 'tblTempUsageDetail_20' ) start [2025-03-15 16:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687401', 'tblTempUsageDetail_20' ) end [2025-03-15 16:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 16:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 16:35:22] Production.INFO: ==741== Releasing lock... [2025-03-15 16:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 16:35:22] Production.INFO: 40.5 MB #Memory Used# [2025-03-15 16:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 13:36:05 [end_date_ymd] => 2025-03-15 16:36:05 [RateCDR] => 1 ) [2025-03-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-03-15 13:36:05' and `end` < '2025-03-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-03-15 16:36:17] Production.INFO: count ==1656 [2025-03-15 16:36:18] Production.ERROR: pbx CDR StartTime 2025-03-15 13:36:05 - End Time 2025-03-15 16:36:05 [2025-03-15 16:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 16:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687406', 'tblTempUsageDetail_20' ) start [2025-03-15 16:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687406', 'tblTempUsageDetail_20' ) end [2025-03-15 16:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687406', 'tblTempVendorCDR_20' ) start [2025-03-15 16:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687406', 'tblTempVendorCDR_20' ) end [2025-03-15 16:36:18] Production.INFO: ProcessCDR(1,14687406,1,1,2) [2025-03-15 16:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687406', 'tblTempUsageDetail_20' ) start [2025-03-15 16:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687406', 'tblTempUsageDetail_20' ) end [2025-03-15 16:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 16:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 16:36:21] Production.INFO: ==818== Releasing lock... [2025-03-15 16:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 16:36:21] Production.INFO: 40.5 MB #Memory Used# [2025-03-15 16:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 13:37:05 [end_date_ymd] => 2025-03-15 16:37:05 [RateCDR] => 1 ) [2025-03-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-03-15 13:37:05' and `end` < '2025-03-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-03-15 16:37:18] Production.INFO: count ==1652 [2025-03-15 16:37:18] Production.ERROR: pbx CDR StartTime 2025-03-15 13:37:05 - End Time 2025-03-15 16:37:05 [2025-03-15 16:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 16:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687411', 'tblTempUsageDetail_20' ) start [2025-03-15 16:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687411', 'tblTempUsageDetail_20' ) end [2025-03-15 16:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687411', 'tblTempVendorCDR_20' ) start [2025-03-15 16:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687411', 'tblTempVendorCDR_20' ) end [2025-03-15 16:37:18] Production.INFO: ProcessCDR(1,14687411,1,1,2) [2025-03-15 16:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687411', 'tblTempUsageDetail_20' ) start [2025-03-15 16:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687411', 'tblTempUsageDetail_20' ) end [2025-03-15 16:37:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 16:37:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 16:37:23] Production.INFO: ==892== Releasing lock... [2025-03-15 16:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 16:37:23] Production.INFO: 40.25 MB #Memory Used# [2025-03-15 16:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 13:38:05 [end_date_ymd] => 2025-03-15 16:38:05 [RateCDR] => 1 ) [2025-03-15 16:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 13:38:05' and `end` < '2025-03-15 16:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 16:38:18] Production.INFO: count ==1653 [2025-03-15 16:38:18] Production.ERROR: pbx CDR StartTime 2025-03-15 13:38:05 - End Time 2025-03-15 16:38:05 [2025-03-15 16:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 16:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687416', 'tblTempUsageDetail_20' ) start [2025-03-15 16:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687416', 'tblTempUsageDetail_20' ) end [2025-03-15 16:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687416', 'tblTempVendorCDR_20' ) start [2025-03-15 16:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687416', 'tblTempVendorCDR_20' ) end [2025-03-15 16:38:18] Production.INFO: ProcessCDR(1,14687416,1,1,2) [2025-03-15 16:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687416', 'tblTempUsageDetail_20' ) start [2025-03-15 16:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687416', 'tblTempUsageDetail_20' ) end [2025-03-15 16:38:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 16:38:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 16:38:23] Production.INFO: ==963== Releasing lock... [2025-03-15 16:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 16:38:23] Production.INFO: 40.25 MB #Memory Used# [2025-03-15 16:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 13:39:05 [end_date_ymd] => 2025-03-15 16:39:05 [RateCDR] => 1 ) [2025-03-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-03-15 13:39:05' and `end` < '2025-03-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-03-15 16:39:17] Production.INFO: count ==1656 [2025-03-15 16:39:18] Production.ERROR: pbx CDR StartTime 2025-03-15 13:39:05 - End Time 2025-03-15 16:39:05 [2025-03-15 16:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 16:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687421', 'tblTempUsageDetail_20' ) start [2025-03-15 16:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687421', 'tblTempUsageDetail_20' ) end [2025-03-15 16:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687421', 'tblTempVendorCDR_20' ) start [2025-03-15 16:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687421', 'tblTempVendorCDR_20' ) end [2025-03-15 16:39:18] Production.INFO: ProcessCDR(1,14687421,1,1,2) [2025-03-15 16:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687421', 'tblTempUsageDetail_20' ) start [2025-03-15 16:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687421', 'tblTempUsageDetail_20' ) end [2025-03-15 16:39:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 16:39:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 16:39:23] Production.INFO: ==1038== Releasing lock... [2025-03-15 16:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 16:39:23] Production.INFO: 40.5 MB #Memory Used# [2025-03-15 16:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 13:40:06 [end_date_ymd] => 2025-03-15 16:40:06 [RateCDR] => 1 ) [2025-03-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-03-15 13:40:06' and `end` < '2025-03-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-03-15 16:40:18] Production.INFO: count ==1654 [2025-03-15 16:40:18] Production.ERROR: pbx CDR StartTime 2025-03-15 13:40:06 - End Time 2025-03-15 16:40:06 [2025-03-15 16:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 16:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687426', 'tblTempUsageDetail_20' ) start [2025-03-15 16:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687426', 'tblTempUsageDetail_20' ) end [2025-03-15 16:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687426', 'tblTempVendorCDR_20' ) start [2025-03-15 16:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687426', 'tblTempVendorCDR_20' ) end [2025-03-15 16:40:19] Production.INFO: ProcessCDR(1,14687426,1,1,2) [2025-03-15 16:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687426', 'tblTempUsageDetail_20' ) start [2025-03-15 16:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687426', 'tblTempUsageDetail_20' ) end [2025-03-15 16:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 16:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 16:40:22] Production.INFO: ==1113== Releasing lock... [2025-03-15 16:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 16:40:22] Production.INFO: 40.25 MB #Memory Used# [2025-03-15 16:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 13:41:05 [end_date_ymd] => 2025-03-15 16:41:05 [RateCDR] => 1 ) [2025-03-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-03-15 13:41:05' and `end` < '2025-03-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-03-15 16:41:17] Production.INFO: count ==1645 [2025-03-15 16:41:18] Production.ERROR: pbx CDR StartTime 2025-03-15 13:41:05 - End Time 2025-03-15 16:41:05 [2025-03-15 16:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 16:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687432', 'tblTempUsageDetail_20' ) start [2025-03-15 16:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687432', 'tblTempUsageDetail_20' ) end [2025-03-15 16:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687432', 'tblTempVendorCDR_20' ) start [2025-03-15 16:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687432', 'tblTempVendorCDR_20' ) end [2025-03-15 16:41:18] Production.INFO: ProcessCDR(1,14687432,1,1,2) [2025-03-15 16:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687432', 'tblTempUsageDetail_20' ) start [2025-03-15 16:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687432', 'tblTempUsageDetail_20' ) end [2025-03-15 16:41:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 16:41:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 16:41:23] Production.INFO: ==1195== Releasing lock... [2025-03-15 16:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 16:41:23] Production.INFO: 40.5 MB #Memory Used# [2025-03-15 16:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 13:42:05 [end_date_ymd] => 2025-03-15 16:42:05 [RateCDR] => 1 ) [2025-03-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-03-15 13:42:05' and `end` < '2025-03-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-03-15 16:42:18] Production.INFO: count ==1646 [2025-03-15 16:42:18] Production.ERROR: pbx CDR StartTime 2025-03-15 13:42:05 - End Time 2025-03-15 16:42:05 [2025-03-15 16:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 16:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687437', 'tblTempUsageDetail_20' ) start [2025-03-15 16:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687437', 'tblTempUsageDetail_20' ) end [2025-03-15 16:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687437', 'tblTempVendorCDR_20' ) start [2025-03-15 16:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687437', 'tblTempVendorCDR_20' ) end [2025-03-15 16:42:18] Production.INFO: ProcessCDR(1,14687437,1,1,2) [2025-03-15 16:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687437', 'tblTempUsageDetail_20' ) start [2025-03-15 16:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687437', 'tblTempUsageDetail_20' ) end [2025-03-15 16:42:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 16:42:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 16:42:23] Production.INFO: ==1281== Releasing lock... [2025-03-15 16:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 16:42:23] Production.INFO: 40.5 MB #Memory Used# [2025-03-15 16:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 13:43:04 [end_date_ymd] => 2025-03-15 16:43:04 [RateCDR] => 1 ) [2025-03-15 16:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 13:43:04' and `end` < '2025-03-15 16:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 16:43:17] Production.INFO: count ==1654 [2025-03-15 16:43:17] Production.ERROR: pbx CDR StartTime 2025-03-15 13:43:04 - End Time 2025-03-15 16:43:04 [2025-03-15 16:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 16:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687442', 'tblTempUsageDetail_20' ) start [2025-03-15 16:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687442', 'tblTempUsageDetail_20' ) end [2025-03-15 16:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687442', 'tblTempVendorCDR_20' ) start [2025-03-15 16:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687442', 'tblTempVendorCDR_20' ) end [2025-03-15 16:43:17] Production.INFO: ProcessCDR(1,14687442,1,1,2) [2025-03-15 16:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687442', 'tblTempUsageDetail_20' ) start [2025-03-15 16:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687442', 'tblTempUsageDetail_20' ) end [2025-03-15 16:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 16:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 16:43:22] Production.INFO: ==1355== Releasing lock... [2025-03-15 16:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 16:43:22] Production.INFO: 40.25 MB #Memory Used# [2025-03-15 16:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 13:44:05 [end_date_ymd] => 2025-03-15 16:44:05 [RateCDR] => 1 ) [2025-03-15 16:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 13:44:05' and `end` < '2025-03-15 16:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 16:44:17] Production.INFO: count ==1648 [2025-03-15 16:44:18] Production.ERROR: pbx CDR StartTime 2025-03-15 13:44:05 - End Time 2025-03-15 16:44:05 [2025-03-15 16:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 16:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687447', 'tblTempUsageDetail_20' ) start [2025-03-15 16:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687447', 'tblTempUsageDetail_20' ) end [2025-03-15 16:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687447', 'tblTempVendorCDR_20' ) start [2025-03-15 16:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687447', 'tblTempVendorCDR_20' ) end [2025-03-15 16:44:18] Production.INFO: ProcessCDR(1,14687447,1,1,2) [2025-03-15 16:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687447', 'tblTempUsageDetail_20' ) start [2025-03-15 16:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687447', 'tblTempUsageDetail_20' ) end [2025-03-15 16:44:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 16:44:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 16:44:23] Production.INFO: ==1429== Releasing lock... [2025-03-15 16:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 16:44:23] Production.INFO: 40.25 MB #Memory Used# [2025-03-15 16:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 13:45:06 [end_date_ymd] => 2025-03-15 16:45:06 [RateCDR] => 1 ) [2025-03-15 16:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 13:45:06' and `end` < '2025-03-15 16:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 16:45:18] Production.INFO: count ==1650 [2025-03-15 16:45:18] Production.ERROR: pbx CDR StartTime 2025-03-15 13:45:06 - End Time 2025-03-15 16:45:06 [2025-03-15 16:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 16:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687452', 'tblTempUsageDetail_20' ) start [2025-03-15 16:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687452', 'tblTempUsageDetail_20' ) end [2025-03-15 16:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687452', 'tblTempVendorCDR_20' ) start [2025-03-15 16:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687452', 'tblTempVendorCDR_20' ) end [2025-03-15 16:45:18] Production.INFO: ProcessCDR(1,14687452,1,1,2) [2025-03-15 16:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687452', 'tblTempUsageDetail_20' ) start [2025-03-15 16:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687452', 'tblTempUsageDetail_20' ) end [2025-03-15 16:45:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 16:45:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 16:45:23] Production.INFO: ==1538== Releasing lock... [2025-03-15 16:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 16:45:23] Production.INFO: 40.75 MB #Memory Used# [2025-03-15 16:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 13:46:05 [end_date_ymd] => 2025-03-15 16:46:05 [RateCDR] => 1 ) [2025-03-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-03-15 13:46:05' and `end` < '2025-03-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-03-15 16:46:17] Production.INFO: count ==1653 [2025-03-15 16:46:18] Production.ERROR: pbx CDR StartTime 2025-03-15 13:46:05 - End Time 2025-03-15 16:46:05 [2025-03-15 16:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 16:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687457', 'tblTempUsageDetail_20' ) start [2025-03-15 16:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687457', 'tblTempUsageDetail_20' ) end [2025-03-15 16:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687457', 'tblTempVendorCDR_20' ) start [2025-03-15 16:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687457', 'tblTempVendorCDR_20' ) end [2025-03-15 16:46:18] Production.INFO: ProcessCDR(1,14687457,1,1,2) [2025-03-15 16:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687457', 'tblTempUsageDetail_20' ) start [2025-03-15 16:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687457', 'tblTempUsageDetail_20' ) end [2025-03-15 16:46:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 16:46:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 16:46:23] Production.INFO: ==1615== Releasing lock... [2025-03-15 16:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 16:46:23] Production.INFO: 40.5 MB #Memory Used# [2025-03-15 16:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 13:47:05 [end_date_ymd] => 2025-03-15 16:47:05 [RateCDR] => 1 ) [2025-03-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-03-15 13:47:05' and `end` < '2025-03-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-03-15 16:47:17] Production.INFO: count ==1658 [2025-03-15 16:47:18] Production.ERROR: pbx CDR StartTime 2025-03-15 13:47:05 - End Time 2025-03-15 16:47:05 [2025-03-15 16:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 16:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687462', 'tblTempUsageDetail_20' ) start [2025-03-15 16:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687462', 'tblTempUsageDetail_20' ) end [2025-03-15 16:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687462', 'tblTempVendorCDR_20' ) start [2025-03-15 16:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687462', 'tblTempVendorCDR_20' ) end [2025-03-15 16:47:18] Production.INFO: ProcessCDR(1,14687462,1,1,2) [2025-03-15 16:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687462', 'tblTempUsageDetail_20' ) start [2025-03-15 16:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687462', 'tblTempUsageDetail_20' ) end [2025-03-15 16:47:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 16:47:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 16:47:23] Production.INFO: ==1687== Releasing lock... [2025-03-15 16:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 16:47:23] Production.INFO: 40.5 MB #Memory Used# [2025-03-15 16:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 13:48:05 [end_date_ymd] => 2025-03-15 16:48:05 [RateCDR] => 1 ) [2025-03-15 16:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 13:48:05' and `end` < '2025-03-15 16:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 16:48:17] Production.INFO: count ==1656 [2025-03-15 16:48:18] Production.ERROR: pbx CDR StartTime 2025-03-15 13:48:05 - End Time 2025-03-15 16:48:05 [2025-03-15 16:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 16:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687467', 'tblTempUsageDetail_20' ) start [2025-03-15 16:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687467', 'tblTempUsageDetail_20' ) end [2025-03-15 16:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687467', 'tblTempVendorCDR_20' ) start [2025-03-15 16:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687467', 'tblTempVendorCDR_20' ) end [2025-03-15 16:48:18] Production.INFO: ProcessCDR(1,14687467,1,1,2) [2025-03-15 16:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687467', 'tblTempUsageDetail_20' ) start [2025-03-15 16:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687467', 'tblTempUsageDetail_20' ) end [2025-03-15 16:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 16:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 16:48:21] Production.INFO: ==1760== Releasing lock... [2025-03-15 16:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 16:48:21] Production.INFO: 40.25 MB #Memory Used# [2025-03-15 16:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 13:49:05 [end_date_ymd] => 2025-03-15 16:49:05 [RateCDR] => 1 ) [2025-03-15 16:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 13:49:05' and `end` < '2025-03-15 16:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 16:49:18] Production.INFO: count ==1663 [2025-03-15 16:49:18] Production.ERROR: pbx CDR StartTime 2025-03-15 13:49:05 - End Time 2025-03-15 16:49:05 [2025-03-15 16:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 16:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687472', 'tblTempUsageDetail_20' ) start [2025-03-15 16:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687472', 'tblTempUsageDetail_20' ) end [2025-03-15 16:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687472', 'tblTempVendorCDR_20' ) start [2025-03-15 16:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687472', 'tblTempVendorCDR_20' ) end [2025-03-15 16:49:18] Production.INFO: ProcessCDR(1,14687472,1,1,2) [2025-03-15 16:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687472', 'tblTempUsageDetail_20' ) start [2025-03-15 16:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687472', 'tblTempUsageDetail_20' ) end [2025-03-15 16:49:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 16:49:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 16:49:23] Production.INFO: ==1845== Releasing lock... [2025-03-15 16:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 16:49:23] Production.INFO: 40.25 MB #Memory Used# [2025-03-15 16:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 13:50:05 [end_date_ymd] => 2025-03-15 16:50:05 [RateCDR] => 1 ) [2025-03-15 16:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 13:50:05' and `end` < '2025-03-15 16:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 16:50:18] Production.INFO: count ==1670 [2025-03-15 16:50:18] Production.ERROR: pbx CDR StartTime 2025-03-15 13:50:05 - End Time 2025-03-15 16:50:05 [2025-03-15 16:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 16:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687478', 'tblTempUsageDetail_20' ) start [2025-03-15 16:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687478', 'tblTempUsageDetail_20' ) end [2025-03-15 16:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687478', 'tblTempVendorCDR_20' ) start [2025-03-15 16:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687478', 'tblTempVendorCDR_20' ) end [2025-03-15 16:50:18] Production.INFO: ProcessCDR(1,14687478,1,1,2) [2025-03-15 16:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687478', 'tblTempUsageDetail_20' ) start [2025-03-15 16:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687478', 'tblTempUsageDetail_20' ) end [2025-03-15 16:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 16:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 16:50:22] Production.INFO: ==1960== Releasing lock... [2025-03-15 16:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 16:50:22] Production.INFO: 40.5 MB #Memory Used# [2025-03-15 16:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 13:51:05 [end_date_ymd] => 2025-03-15 16:51:05 [RateCDR] => 1 ) [2025-03-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-03-15 13:51:05' and `end` < '2025-03-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-03-15 16:51:18] Production.INFO: count ==1649 [2025-03-15 16:51:18] Production.ERROR: pbx CDR StartTime 2025-03-15 13:51:05 - End Time 2025-03-15 16:51:05 [2025-03-15 16:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 16:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687483', 'tblTempUsageDetail_20' ) start [2025-03-15 16:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687483', 'tblTempUsageDetail_20' ) end [2025-03-15 16:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687483', 'tblTempVendorCDR_20' ) start [2025-03-15 16:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687483', 'tblTempVendorCDR_20' ) end [2025-03-15 16:51:18] Production.INFO: ProcessCDR(1,14687483,1,1,2) [2025-03-15 16:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687483', 'tblTempUsageDetail_20' ) start [2025-03-15 16:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687483', 'tblTempUsageDetail_20' ) end [2025-03-15 16:51:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 16:51:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 16:51:23] Production.INFO: ==2038== Releasing lock... [2025-03-15 16:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 16:51:23] Production.INFO: 40.5 MB #Memory Used# [2025-03-15 16:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 13:52:05 [end_date_ymd] => 2025-03-15 16:52:05 [RateCDR] => 1 ) [2025-03-15 16:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 13:52:05' and `end` < '2025-03-15 16:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 16:52:17] Production.INFO: count ==1638 [2025-03-15 16:52:17] Production.ERROR: pbx CDR StartTime 2025-03-15 13:52:05 - End Time 2025-03-15 16:52:05 [2025-03-15 16:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 16:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687488', 'tblTempUsageDetail_20' ) start [2025-03-15 16:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687488', 'tblTempUsageDetail_20' ) end [2025-03-15 16:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687488', 'tblTempVendorCDR_20' ) start [2025-03-15 16:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687488', 'tblTempVendorCDR_20' ) end [2025-03-15 16:52:17] Production.INFO: ProcessCDR(1,14687488,1,1,2) [2025-03-15 16:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687488', 'tblTempUsageDetail_20' ) start [2025-03-15 16:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687488', 'tblTempUsageDetail_20' ) end [2025-03-15 16:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 16:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 16:52:21] Production.INFO: ==2108== Releasing lock... [2025-03-15 16:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 16:52:21] Production.INFO: 40.25 MB #Memory Used# [2025-03-15 16:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 13:53:05 [end_date_ymd] => 2025-03-15 16:53:05 [RateCDR] => 1 ) [2025-03-15 16:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 13:53:05' and `end` < '2025-03-15 16:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 16:53:18] Production.INFO: count ==1635 [2025-03-15 16:53:18] Production.ERROR: pbx CDR StartTime 2025-03-15 13:53:05 - End Time 2025-03-15 16:53:05 [2025-03-15 16:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 16:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687493', 'tblTempUsageDetail_20' ) start [2025-03-15 16:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687493', 'tblTempUsageDetail_20' ) end [2025-03-15 16:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687493', 'tblTempVendorCDR_20' ) start [2025-03-15 16:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687493', 'tblTempVendorCDR_20' ) end [2025-03-15 16:53:18] Production.INFO: ProcessCDR(1,14687493,1,1,2) [2025-03-15 16:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687493', 'tblTempUsageDetail_20' ) start [2025-03-15 16:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687493', 'tblTempUsageDetail_20' ) end [2025-03-15 16:53:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 16:53:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 16:53:23] Production.INFO: ==2184== Releasing lock... [2025-03-15 16:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 16:53:23] Production.INFO: 40 MB #Memory Used# [2025-03-15 16:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 13:54:06 [end_date_ymd] => 2025-03-15 16:54:06 [RateCDR] => 1 ) [2025-03-15 16:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 13:54:06' and `end` < '2025-03-15 16:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 16:54:18] Production.INFO: count ==1638 [2025-03-15 16:54:19] Production.ERROR: pbx CDR StartTime 2025-03-15 13:54:06 - End Time 2025-03-15 16:54:06 [2025-03-15 16:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 16:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687498', 'tblTempUsageDetail_20' ) start [2025-03-15 16:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687498', 'tblTempUsageDetail_20' ) end [2025-03-15 16:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687498', 'tblTempVendorCDR_20' ) start [2025-03-15 16:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687498', 'tblTempVendorCDR_20' ) end [2025-03-15 16:54:19] Production.INFO: ProcessCDR(1,14687498,1,1,2) [2025-03-15 16:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687498', 'tblTempUsageDetail_20' ) start [2025-03-15 16:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687498', 'tblTempUsageDetail_20' ) end [2025-03-15 16:54:24] Production.ERROR: pbx prc_insertCDR start [2025-03-15 16:54:24] Production.ERROR: pbx prc_insertCDR end [2025-03-15 16:54:24] Production.INFO: ==2260== Releasing lock... [2025-03-15 16:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 16:54:24] Production.INFO: 40.25 MB #Memory Used# [2025-03-15 16:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 13:55:05 [end_date_ymd] => 2025-03-15 16:55:05 [RateCDR] => 1 ) [2025-03-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-03-15 13:55:05' and `end` < '2025-03-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-03-15 16:55:17] Production.INFO: count ==1633 [2025-03-15 16:55:18] Production.ERROR: pbx CDR StartTime 2025-03-15 13:55:05 - End Time 2025-03-15 16:55:05 [2025-03-15 16:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 16:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687503', 'tblTempUsageDetail_20' ) start [2025-03-15 16:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687503', 'tblTempUsageDetail_20' ) end [2025-03-15 16:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687503', 'tblTempVendorCDR_20' ) start [2025-03-15 16:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687503', 'tblTempVendorCDR_20' ) end [2025-03-15 16:55:18] Production.INFO: ProcessCDR(1,14687503,1,1,2) [2025-03-15 16:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687503', 'tblTempUsageDetail_20' ) start [2025-03-15 16:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687503', 'tblTempUsageDetail_20' ) end [2025-03-15 16:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 16:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 16:55:21] Production.INFO: ==2332== Releasing lock... [2025-03-15 16:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 16:55:21] Production.INFO: 40.25 MB #Memory Used# [2025-03-15 16:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 13:56:05 [end_date_ymd] => 2025-03-15 16:56:05 [RateCDR] => 1 ) [2025-03-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-03-15 13:56:05' and `end` < '2025-03-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-03-15 16:56:18] Production.INFO: count ==1631 [2025-03-15 16:56:19] Production.ERROR: pbx CDR StartTime 2025-03-15 13:56:05 - End Time 2025-03-15 16:56:05 [2025-03-15 16:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 16:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687508', 'tblTempUsageDetail_20' ) start [2025-03-15 16:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687508', 'tblTempUsageDetail_20' ) end [2025-03-15 16:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687508', 'tblTempVendorCDR_20' ) start [2025-03-15 16:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687508', 'tblTempVendorCDR_20' ) end [2025-03-15 16:56:19] Production.INFO: ProcessCDR(1,14687508,1,1,2) [2025-03-15 16:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687508', 'tblTempUsageDetail_20' ) start [2025-03-15 16:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687508', 'tblTempUsageDetail_20' ) end [2025-03-15 16:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 16:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 16:56:22] Production.INFO: ==2406== Releasing lock... [2025-03-15 16:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 16:56:22] Production.INFO: 40.25 MB #Memory Used# [2025-03-15 16:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 13:57:05 [end_date_ymd] => 2025-03-15 16:57:05 [RateCDR] => 1 ) [2025-03-15 16:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 13:57:05' and `end` < '2025-03-15 16:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 16:57:17] Production.INFO: count ==1636 [2025-03-15 16:57:18] Production.ERROR: pbx CDR StartTime 2025-03-15 13:57:05 - End Time 2025-03-15 16:57:05 [2025-03-15 16:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 16:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687513', 'tblTempUsageDetail_20' ) start [2025-03-15 16:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687513', 'tblTempUsageDetail_20' ) end [2025-03-15 16:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687513', 'tblTempVendorCDR_20' ) start [2025-03-15 16:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687513', 'tblTempVendorCDR_20' ) end [2025-03-15 16:57:18] Production.INFO: ProcessCDR(1,14687513,1,1,2) [2025-03-15 16:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687513', 'tblTempUsageDetail_20' ) start [2025-03-15 16:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687513', 'tblTempUsageDetail_20' ) end [2025-03-15 16:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 16:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 16:57:22] Production.INFO: ==2476== Releasing lock... [2025-03-15 16:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 16:57:22] Production.INFO: 40 MB #Memory Used# [2025-03-15 16:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 13:58:05 [end_date_ymd] => 2025-03-15 16:58:05 [RateCDR] => 1 ) [2025-03-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-03-15 13:58:05' and `end` < '2025-03-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-03-15 16:58:18] Production.INFO: count ==1635 [2025-03-15 16:58:18] Production.ERROR: pbx CDR StartTime 2025-03-15 13:58:05 - End Time 2025-03-15 16:58:05 [2025-03-15 16:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 16:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687518', 'tblTempUsageDetail_20' ) start [2025-03-15 16:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687518', 'tblTempUsageDetail_20' ) end [2025-03-15 16:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687518', 'tblTempVendorCDR_20' ) start [2025-03-15 16:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687518', 'tblTempVendorCDR_20' ) end [2025-03-15 16:58:18] Production.INFO: ProcessCDR(1,14687518,1,1,2) [2025-03-15 16:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687518', 'tblTempUsageDetail_20' ) start [2025-03-15 16:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687518', 'tblTempUsageDetail_20' ) end [2025-03-15 16:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 16:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 16:58:22] Production.INFO: ==2554== Releasing lock... [2025-03-15 16:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 16:58:22] Production.INFO: 40.25 MB #Memory Used# [2025-03-15 16:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 13:59:05 [end_date_ymd] => 2025-03-15 16:59:05 [RateCDR] => 1 ) [2025-03-15 16:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 13:59:05' and `end` < '2025-03-15 16:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 16:59:17] Production.INFO: count ==1642 [2025-03-15 16:59:18] Production.ERROR: pbx CDR StartTime 2025-03-15 13:59:05 - End Time 2025-03-15 16:59:05 [2025-03-15 16:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 16:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687523', 'tblTempUsageDetail_20' ) start [2025-03-15 16:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687523', 'tblTempUsageDetail_20' ) end [2025-03-15 16:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687523', 'tblTempVendorCDR_20' ) start [2025-03-15 16:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687523', 'tblTempVendorCDR_20' ) end [2025-03-15 16:59:18] Production.INFO: ProcessCDR(1,14687523,1,1,2) [2025-03-15 16:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 16:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 16:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687523', 'tblTempUsageDetail_20' ) start [2025-03-15 16:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687523', 'tblTempUsageDetail_20' ) end [2025-03-15 16:59:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 16:59:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 16:59:22] Production.INFO: ==2628== Releasing lock... [2025-03-15 16:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 16:59:22] Production.INFO: 40.25 MB #Memory Used# [2025-03-15 17:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 14:00:06 [end_date_ymd] => 2025-03-15 17:00:06 [RateCDR] => 1 ) [2025-03-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-03-15 14:00:06' and `end` < '2025-03-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-03-15 17:00:19] Production.INFO: count ==1644 [2025-03-15 17:00:19] Production.ERROR: pbx CDR StartTime 2025-03-15 14:00:06 - End Time 2025-03-15 17:00:06 [2025-03-15 17:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 17:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687529', 'tblTempUsageDetail_20' ) start [2025-03-15 17:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687529', 'tblTempUsageDetail_20' ) end [2025-03-15 17:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687529', 'tblTempVendorCDR_20' ) start [2025-03-15 17:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687529', 'tblTempVendorCDR_20' ) end [2025-03-15 17:00:20] Production.INFO: ProcessCDR(1,14687529,1,1,2) [2025-03-15 17:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687529', 'tblTempUsageDetail_20' ) start [2025-03-15 17:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687529', 'tblTempUsageDetail_20' ) end [2025-03-15 17:00:24] Production.ERROR: pbx prc_insertCDR start [2025-03-15 17:00:25] Production.ERROR: pbx prc_insertCDR end [2025-03-15 17:00:25] Production.INFO: ==2708== Releasing lock... [2025-03-15 17:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 17:00:25] Production.INFO: 40.5 MB #Memory Used# [2025-03-15 17:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 14:01:05 [end_date_ymd] => 2025-03-15 17:01:05 [RateCDR] => 1 ) [2025-03-15 17:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 14:01:05' and `end` < '2025-03-15 17:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 17:01:18] Production.INFO: count ==1678 [2025-03-15 17:01:18] Production.ERROR: pbx CDR StartTime 2025-03-15 14:01:05 - End Time 2025-03-15 17:01:05 [2025-03-15 17:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 17:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687534', 'tblTempUsageDetail_20' ) start [2025-03-15 17:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687534', 'tblTempUsageDetail_20' ) end [2025-03-15 17:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687534', 'tblTempVendorCDR_20' ) start [2025-03-15 17:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687534', 'tblTempVendorCDR_20' ) end [2025-03-15 17:01:18] Production.INFO: ProcessCDR(1,14687534,1,1,2) [2025-03-15 17:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687534', 'tblTempUsageDetail_20' ) start [2025-03-15 17:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687534', 'tblTempUsageDetail_20' ) end [2025-03-15 17:01:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 17:01:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 17:01:23] Production.INFO: ==2793== Releasing lock... [2025-03-15 17:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 17:01:23] Production.INFO: 40.5 MB #Memory Used# [2025-03-15 17:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 14:02:06 [end_date_ymd] => 2025-03-15 17:02:06 [RateCDR] => 1 ) [2025-03-15 17:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 14:02:06' and `end` < '2025-03-15 17:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 17:02:18] Production.INFO: count ==1681 [2025-03-15 17:02:19] Production.ERROR: pbx CDR StartTime 2025-03-15 14:02:06 - End Time 2025-03-15 17:02:06 [2025-03-15 17:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 17:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687539', 'tblTempUsageDetail_20' ) start [2025-03-15 17:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687539', 'tblTempUsageDetail_20' ) end [2025-03-15 17:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687539', 'tblTempVendorCDR_20' ) start [2025-03-15 17:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687539', 'tblTempVendorCDR_20' ) end [2025-03-15 17:02:19] Production.INFO: ProcessCDR(1,14687539,1,1,2) [2025-03-15 17:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687539', 'tblTempUsageDetail_20' ) start [2025-03-15 17:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687539', 'tblTempUsageDetail_20' ) end [2025-03-15 17:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 17:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 17:02:22] Production.INFO: ==2866== Releasing lock... [2025-03-15 17:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 17:02:22] Production.INFO: 40.5 MB #Memory Used# [2025-03-15 17:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 14:03:05 [end_date_ymd] => 2025-03-15 17:03:05 [RateCDR] => 1 ) [2025-03-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-03-15 14:03:05' and `end` < '2025-03-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-03-15 17:03:18] Production.INFO: count ==1684 [2025-03-15 17:03:18] Production.ERROR: pbx CDR StartTime 2025-03-15 14:03:05 - End Time 2025-03-15 17:03:05 [2025-03-15 17:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 17:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687544', 'tblTempUsageDetail_20' ) start [2025-03-15 17:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687544', 'tblTempUsageDetail_20' ) end [2025-03-15 17:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687544', 'tblTempVendorCDR_20' ) start [2025-03-15 17:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687544', 'tblTempVendorCDR_20' ) end [2025-03-15 17:03:18] Production.INFO: ProcessCDR(1,14687544,1,1,2) [2025-03-15 17:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687544', 'tblTempUsageDetail_20' ) start [2025-03-15 17:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687544', 'tblTempUsageDetail_20' ) end [2025-03-15 17:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 17:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 17:03:22] Production.INFO: ==2939== Releasing lock... [2025-03-15 17:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 17:03:22] Production.INFO: 40.75 MB #Memory Used# [2025-03-15 17:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 14:04:06 [end_date_ymd] => 2025-03-15 17:04:06 [RateCDR] => 1 ) [2025-03-15 17:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 14:04:06' and `end` < '2025-03-15 17:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 17:04:18] Production.INFO: count ==1683 [2025-03-15 17:04:19] Production.ERROR: pbx CDR StartTime 2025-03-15 14:04:06 - End Time 2025-03-15 17:04:06 [2025-03-15 17:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 17:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687549', 'tblTempUsageDetail_20' ) start [2025-03-15 17:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687549', 'tblTempUsageDetail_20' ) end [2025-03-15 17:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687549', 'tblTempVendorCDR_20' ) start [2025-03-15 17:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687549', 'tblTempVendorCDR_20' ) end [2025-03-15 17:04:19] Production.INFO: ProcessCDR(1,14687549,1,1,2) [2025-03-15 17:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687549', 'tblTempUsageDetail_20' ) start [2025-03-15 17:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687549', 'tblTempUsageDetail_20' ) end [2025-03-15 17:04:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 17:04:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 17:04:23] Production.INFO: ==3015== Releasing lock... [2025-03-15 17:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 17:04:23] Production.INFO: 40.75 MB #Memory Used# [2025-03-15 17:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 14:05:05 [end_date_ymd] => 2025-03-15 17:05:05 [RateCDR] => 1 ) [2025-03-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-03-15 14:05:05' and `end` < '2025-03-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-03-15 17:05:17] Production.INFO: count ==1676 [2025-03-15 17:05:18] Production.ERROR: pbx CDR StartTime 2025-03-15 14:05:05 - End Time 2025-03-15 17:05:05 [2025-03-15 17:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 17:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687554', 'tblTempUsageDetail_20' ) start [2025-03-15 17:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687554', 'tblTempUsageDetail_20' ) end [2025-03-15 17:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687554', 'tblTempVendorCDR_20' ) start [2025-03-15 17:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687554', 'tblTempVendorCDR_20' ) end [2025-03-15 17:05:18] Production.INFO: ProcessCDR(1,14687554,1,1,2) [2025-03-15 17:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687554', 'tblTempUsageDetail_20' ) start [2025-03-15 17:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687554', 'tblTempUsageDetail_20' ) end [2025-03-15 17:05:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 17:05:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 17:05:23] Production.INFO: ==3089== Releasing lock... [2025-03-15 17:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 17:05:23] Production.INFO: 40.75 MB #Memory Used# [2025-03-15 17:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 14:06:06 [end_date_ymd] => 2025-03-15 17:06:06 [RateCDR] => 1 ) [2025-03-15 17:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 14:06:06' and `end` < '2025-03-15 17:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 17:06:18] Production.INFO: count ==1680 [2025-03-15 17:06:19] Production.ERROR: pbx CDR StartTime 2025-03-15 14:06:06 - End Time 2025-03-15 17:06:06 [2025-03-15 17:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 17:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687559', 'tblTempUsageDetail_20' ) start [2025-03-15 17:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687559', 'tblTempUsageDetail_20' ) end [2025-03-15 17:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687559', 'tblTempVendorCDR_20' ) start [2025-03-15 17:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687559', 'tblTempVendorCDR_20' ) end [2025-03-15 17:06:19] Production.INFO: ProcessCDR(1,14687559,1,1,2) [2025-03-15 17:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687559', 'tblTempUsageDetail_20' ) start [2025-03-15 17:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687559', 'tblTempUsageDetail_20' ) end [2025-03-15 17:06:24] Production.ERROR: pbx prc_insertCDR start [2025-03-15 17:06:24] Production.ERROR: pbx prc_insertCDR end [2025-03-15 17:06:24] Production.INFO: ==3205== Releasing lock... [2025-03-15 17:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 17:06:24] Production.INFO: 40.75 MB #Memory Used# [2025-03-15 17:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 14:07:05 [end_date_ymd] => 2025-03-15 17:07:05 [RateCDR] => 1 ) [2025-03-15 17:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 14:07:05' and `end` < '2025-03-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-03-15 17:07:17] Production.INFO: count ==1680 [2025-03-15 17:07:18] Production.ERROR: pbx CDR StartTime 2025-03-15 14:07:05 - End Time 2025-03-15 17:07:05 [2025-03-15 17:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 17:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687564', 'tblTempUsageDetail_20' ) start [2025-03-15 17:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687564', 'tblTempUsageDetail_20' ) end [2025-03-15 17:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687564', 'tblTempVendorCDR_20' ) start [2025-03-15 17:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687564', 'tblTempVendorCDR_20' ) end [2025-03-15 17:07:18] Production.INFO: ProcessCDR(1,14687564,1,1,2) [2025-03-15 17:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687564', 'tblTempUsageDetail_20' ) start [2025-03-15 17:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687564', 'tblTempUsageDetail_20' ) end [2025-03-15 17:07:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 17:07:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 17:07:23] Production.INFO: ==3277== Releasing lock... [2025-03-15 17:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 17:07:23] Production.INFO: 40.75 MB #Memory Used# [2025-03-15 17:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 14:08:06 [end_date_ymd] => 2025-03-15 17:08:06 [RateCDR] => 1 ) [2025-03-15 17:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 14:08:06' and `end` < '2025-03-15 17:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 17:08:18] Production.INFO: count ==1675 [2025-03-15 17:08:19] Production.ERROR: pbx CDR StartTime 2025-03-15 14:08:06 - End Time 2025-03-15 17:08:06 [2025-03-15 17:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 17:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687569', 'tblTempUsageDetail_20' ) start [2025-03-15 17:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687569', 'tblTempUsageDetail_20' ) end [2025-03-15 17:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687569', 'tblTempVendorCDR_20' ) start [2025-03-15 17:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687569', 'tblTempVendorCDR_20' ) end [2025-03-15 17:08:19] Production.INFO: ProcessCDR(1,14687569,1,1,2) [2025-03-15 17:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687569', 'tblTempUsageDetail_20' ) start [2025-03-15 17:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687569', 'tblTempUsageDetail_20' ) end [2025-03-15 17:08:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 17:08:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 17:08:23] Production.INFO: ==3357== Releasing lock... [2025-03-15 17:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 17:08:23] Production.INFO: 40.75 MB #Memory Used# [2025-03-15 17:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 14:09:05 [end_date_ymd] => 2025-03-15 17:09:05 [RateCDR] => 1 ) [2025-03-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-03-15 14:09:05' and `end` < '2025-03-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-03-15 17:09:18] Production.INFO: count ==1679 [2025-03-15 17:09:18] Production.ERROR: pbx CDR StartTime 2025-03-15 14:09:05 - End Time 2025-03-15 17:09:05 [2025-03-15 17:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 17:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687574', 'tblTempUsageDetail_20' ) start [2025-03-15 17:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687574', 'tblTempUsageDetail_20' ) end [2025-03-15 17:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687574', 'tblTempVendorCDR_20' ) start [2025-03-15 17:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687574', 'tblTempVendorCDR_20' ) end [2025-03-15 17:09:18] Production.INFO: ProcessCDR(1,14687574,1,1,2) [2025-03-15 17:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687574', 'tblTempUsageDetail_20' ) start [2025-03-15 17:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687574', 'tblTempUsageDetail_20' ) end [2025-03-15 17:09:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 17:09:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 17:09:23] Production.INFO: ==3431== Releasing lock... [2025-03-15 17:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 17:09:23] Production.INFO: 40.75 MB #Memory Used# [2025-03-15 17:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 14:10:07 [end_date_ymd] => 2025-03-15 17:10:07 [RateCDR] => 1 ) [2025-03-15 17:10:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 14:10:07' and `end` < '2025-03-15 17:10:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 17:10:19] Production.INFO: count ==1666 [2025-03-15 17:10:19] Production.ERROR: pbx CDR StartTime 2025-03-15 14:10:07 - End Time 2025-03-15 17:10:07 [2025-03-15 17:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 17:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687580', 'tblTempUsageDetail_20' ) start [2025-03-15 17:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687580', 'tblTempUsageDetail_20' ) end [2025-03-15 17:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687580', 'tblTempVendorCDR_20' ) start [2025-03-15 17:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687580', 'tblTempVendorCDR_20' ) end [2025-03-15 17:10:20] Production.INFO: ProcessCDR(1,14687580,1,1,2) [2025-03-15 17:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687580', 'tblTempUsageDetail_20' ) start [2025-03-15 17:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687580', 'tblTempUsageDetail_20' ) end [2025-03-15 17:10:24] Production.ERROR: pbx prc_insertCDR start [2025-03-15 17:10:24] Production.ERROR: pbx prc_insertCDR end [2025-03-15 17:10:24] Production.INFO: ==3508== Releasing lock... [2025-03-15 17:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 17:10:24] Production.INFO: 40.25 MB #Memory Used# [2025-03-15 17:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 14:11:05 [end_date_ymd] => 2025-03-15 17:11:05 [RateCDR] => 1 ) [2025-03-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-03-15 14:11:05' and `end` < '2025-03-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-03-15 17:11:17] Production.INFO: count ==1670 [2025-03-15 17:11:18] Production.ERROR: pbx CDR StartTime 2025-03-15 14:11:05 - End Time 2025-03-15 17:11:05 [2025-03-15 17:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 17:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687585', 'tblTempUsageDetail_20' ) start [2025-03-15 17:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687585', 'tblTempUsageDetail_20' ) end [2025-03-15 17:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687585', 'tblTempVendorCDR_20' ) start [2025-03-15 17:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687585', 'tblTempVendorCDR_20' ) end [2025-03-15 17:11:18] Production.INFO: ProcessCDR(1,14687585,1,1,2) [2025-03-15 17:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687585', 'tblTempUsageDetail_20' ) start [2025-03-15 17:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687585', 'tblTempUsageDetail_20' ) end [2025-03-15 17:11:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 17:11:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 17:11:23] Production.INFO: ==3587== Releasing lock... [2025-03-15 17:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 17:11:23] Production.INFO: 40.5 MB #Memory Used# [2025-03-15 17:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 14:12:05 [end_date_ymd] => 2025-03-15 17:12:05 [RateCDR] => 1 ) [2025-03-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-03-15 14:12:05' and `end` < '2025-03-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-03-15 17:12:17] Production.INFO: count ==1674 [2025-03-15 17:12:18] Production.ERROR: pbx CDR StartTime 2025-03-15 14:12:05 - End Time 2025-03-15 17:12:05 [2025-03-15 17:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 17:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687590', 'tblTempUsageDetail_20' ) start [2025-03-15 17:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687590', 'tblTempUsageDetail_20' ) end [2025-03-15 17:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687590', 'tblTempVendorCDR_20' ) start [2025-03-15 17:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687590', 'tblTempVendorCDR_20' ) end [2025-03-15 17:12:18] Production.INFO: ProcessCDR(1,14687590,1,1,2) [2025-03-15 17:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687590', 'tblTempUsageDetail_20' ) start [2025-03-15 17:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687590', 'tblTempUsageDetail_20' ) end [2025-03-15 17:12:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 17:12:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 17:12:23] Production.INFO: ==3658== Releasing lock... [2025-03-15 17:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 17:12:23] Production.INFO: 40.25 MB #Memory Used# [2025-03-15 17:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 14:13:05 [end_date_ymd] => 2025-03-15 17:13:05 [RateCDR] => 1 ) [2025-03-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-03-15 14:13:05' and `end` < '2025-03-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-03-15 17:13:17] Production.INFO: count ==1681 [2025-03-15 17:13:17] Production.ERROR: pbx CDR StartTime 2025-03-15 14:13:05 - End Time 2025-03-15 17:13:05 [2025-03-15 17:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 17:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687595', 'tblTempUsageDetail_20' ) start [2025-03-15 17:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687595', 'tblTempUsageDetail_20' ) end [2025-03-15 17:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687595', 'tblTempVendorCDR_20' ) start [2025-03-15 17:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687595', 'tblTempVendorCDR_20' ) end [2025-03-15 17:13:17] Production.INFO: ProcessCDR(1,14687595,1,1,2) [2025-03-15 17:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687595', 'tblTempUsageDetail_20' ) start [2025-03-15 17:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687595', 'tblTempUsageDetail_20' ) end [2025-03-15 17:13:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 17:13:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 17:13:23] Production.INFO: ==3737== Releasing lock... [2025-03-15 17:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 17:13:23] Production.INFO: 40.75 MB #Memory Used# [2025-03-15 17:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 14:14:05 [end_date_ymd] => 2025-03-15 17:14:05 [RateCDR] => 1 ) [2025-03-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-03-15 14:14:05' and `end` < '2025-03-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-03-15 17:14:18] Production.INFO: count ==1684 [2025-03-15 17:14:18] Production.ERROR: pbx CDR StartTime 2025-03-15 14:14:05 - End Time 2025-03-15 17:14:05 [2025-03-15 17:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 17:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687600', 'tblTempUsageDetail_20' ) start [2025-03-15 17:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687600', 'tblTempUsageDetail_20' ) end [2025-03-15 17:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687600', 'tblTempVendorCDR_20' ) start [2025-03-15 17:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687600', 'tblTempVendorCDR_20' ) end [2025-03-15 17:14:18] Production.INFO: ProcessCDR(1,14687600,1,1,2) [2025-03-15 17:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687600', 'tblTempUsageDetail_20' ) start [2025-03-15 17:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687600', 'tblTempUsageDetail_20' ) end [2025-03-15 17:14:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 17:14:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 17:14:22] Production.INFO: ==3810== Releasing lock... [2025-03-15 17:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 17:14:22] Production.INFO: 41 MB #Memory Used# [2025-03-15 17:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 14:15:05 [end_date_ymd] => 2025-03-15 17:15:05 [RateCDR] => 1 ) [2025-03-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-03-15 14:15:05' and `end` < '2025-03-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-03-15 17:15:17] Production.INFO: count ==1682 [2025-03-15 17:15:18] Production.ERROR: pbx CDR StartTime 2025-03-15 14:15:05 - End Time 2025-03-15 17:15:05 [2025-03-15 17:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 17:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687605', 'tblTempUsageDetail_20' ) start [2025-03-15 17:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687605', 'tblTempUsageDetail_20' ) end [2025-03-15 17:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687605', 'tblTempVendorCDR_20' ) start [2025-03-15 17:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687605', 'tblTempVendorCDR_20' ) end [2025-03-15 17:15:18] Production.INFO: ProcessCDR(1,14687605,1,1,2) [2025-03-15 17:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687605', 'tblTempUsageDetail_20' ) start [2025-03-15 17:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687605', 'tblTempUsageDetail_20' ) end [2025-03-15 17:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 17:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 17:15:21] Production.INFO: ==3883== Releasing lock... [2025-03-15 17:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 17:15:21] Production.INFO: 40.5 MB #Memory Used# [2025-03-15 17:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 14:16:05 [end_date_ymd] => 2025-03-15 17:16:05 [RateCDR] => 1 ) [2025-03-15 17:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 14:16:05' and `end` < '2025-03-15 17:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 17:16:17] Production.INFO: count ==1682 [2025-03-15 17:16:18] Production.ERROR: pbx CDR StartTime 2025-03-15 14:16:05 - End Time 2025-03-15 17:16:05 [2025-03-15 17:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 17:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687610', 'tblTempUsageDetail_20' ) start [2025-03-15 17:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687610', 'tblTempUsageDetail_20' ) end [2025-03-15 17:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687610', 'tblTempVendorCDR_20' ) start [2025-03-15 17:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687610', 'tblTempVendorCDR_20' ) end [2025-03-15 17:16:18] Production.INFO: ProcessCDR(1,14687610,1,1,2) [2025-03-15 17:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687610', 'tblTempUsageDetail_20' ) start [2025-03-15 17:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687610', 'tblTempUsageDetail_20' ) end [2025-03-15 17:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 17:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 17:16:21] Production.INFO: ==3966== Releasing lock... [2025-03-15 17:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 17:16:21] Production.INFO: 40.75 MB #Memory Used# [2025-03-15 17:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 14:17:05 [end_date_ymd] => 2025-03-15 17:17:05 [RateCDR] => 1 ) [2025-03-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-03-15 14:17:05' and `end` < '2025-03-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-03-15 17:17:17] Production.INFO: count ==1684 [2025-03-15 17:17:18] Production.ERROR: pbx CDR StartTime 2025-03-15 14:17:05 - End Time 2025-03-15 17:17:05 [2025-03-15 17:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 17:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687615', 'tblTempUsageDetail_20' ) start [2025-03-15 17:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687615', 'tblTempUsageDetail_20' ) end [2025-03-15 17:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687615', 'tblTempVendorCDR_20' ) start [2025-03-15 17:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687615', 'tblTempVendorCDR_20' ) end [2025-03-15 17:17:18] Production.INFO: ProcessCDR(1,14687615,1,1,2) [2025-03-15 17:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687615', 'tblTempUsageDetail_20' ) start [2025-03-15 17:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687615', 'tblTempUsageDetail_20' ) end [2025-03-15 17:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 17:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 17:17:22] Production.INFO: ==4039== Releasing lock... [2025-03-15 17:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 17:17:22] Production.INFO: 40.75 MB #Memory Used# [2025-03-15 17:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 14:18:05 [end_date_ymd] => 2025-03-15 17:18:05 [RateCDR] => 1 ) [2025-03-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-03-15 14:18:05' and `end` < '2025-03-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-03-15 17:18:18] Production.INFO: count ==1686 [2025-03-15 17:18:18] Production.ERROR: pbx CDR StartTime 2025-03-15 14:18:05 - End Time 2025-03-15 17:18:05 [2025-03-15 17:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 17:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687620', 'tblTempUsageDetail_20' ) start [2025-03-15 17:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687620', 'tblTempUsageDetail_20' ) end [2025-03-15 17:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687620', 'tblTempVendorCDR_20' ) start [2025-03-15 17:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687620', 'tblTempVendorCDR_20' ) end [2025-03-15 17:18:18] Production.INFO: ProcessCDR(1,14687620,1,1,2) [2025-03-15 17:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687620', 'tblTempUsageDetail_20' ) start [2025-03-15 17:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687620', 'tblTempUsageDetail_20' ) end [2025-03-15 17:18:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 17:18:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 17:18:23] Production.INFO: ==4125== Releasing lock... [2025-03-15 17:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 17:18:23] Production.INFO: 40.75 MB #Memory Used# [2025-03-15 17:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 14:19:05 [end_date_ymd] => 2025-03-15 17:19:05 [RateCDR] => 1 ) [2025-03-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-03-15 14:19:05' and `end` < '2025-03-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-03-15 17:19:17] Production.INFO: count ==1677 [2025-03-15 17:19:18] Production.ERROR: pbx CDR StartTime 2025-03-15 14:19:05 - End Time 2025-03-15 17:19:05 [2025-03-15 17:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 17:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687625', 'tblTempUsageDetail_20' ) start [2025-03-15 17:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687625', 'tblTempUsageDetail_20' ) end [2025-03-15 17:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687625', 'tblTempVendorCDR_20' ) start [2025-03-15 17:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687625', 'tblTempVendorCDR_20' ) end [2025-03-15 17:19:18] Production.INFO: ProcessCDR(1,14687625,1,1,2) [2025-03-15 17:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687625', 'tblTempUsageDetail_20' ) start [2025-03-15 17:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687625', 'tblTempUsageDetail_20' ) end [2025-03-15 17:19:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 17:19:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 17:19:23] Production.INFO: ==4200== Releasing lock... [2025-03-15 17:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 17:19:23] Production.INFO: 40.5 MB #Memory Used# [2025-03-15 17:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 14:20:06 [end_date_ymd] => 2025-03-15 17:20:06 [RateCDR] => 1 ) [2025-03-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-03-15 14:20:06' and `end` < '2025-03-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-03-15 17:20:19] Production.INFO: count ==1663 [2025-03-15 17:20:19] Production.ERROR: pbx CDR StartTime 2025-03-15 14:20:06 - End Time 2025-03-15 17:20:06 [2025-03-15 17:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 17:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687631', 'tblTempUsageDetail_20' ) start [2025-03-15 17:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687631', 'tblTempUsageDetail_20' ) end [2025-03-15 17:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687631', 'tblTempVendorCDR_20' ) start [2025-03-15 17:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687631', 'tblTempVendorCDR_20' ) end [2025-03-15 17:20:19] Production.INFO: ProcessCDR(1,14687631,1,1,2) [2025-03-15 17:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687631', 'tblTempUsageDetail_20' ) start [2025-03-15 17:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687631', 'tblTempUsageDetail_20' ) end [2025-03-15 17:20:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 17:20:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 17:20:23] Production.INFO: ==4274== Releasing lock... [2025-03-15 17:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 17:20:23] Production.INFO: 40.75 MB #Memory Used# [2025-03-15 17:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 14:21:05 [end_date_ymd] => 2025-03-15 17:21:05 [RateCDR] => 1 ) [2025-03-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-03-15 14:21:05' and `end` < '2025-03-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-03-15 17:21:18] Production.INFO: count ==1680 [2025-03-15 17:21:18] Production.ERROR: pbx CDR StartTime 2025-03-15 14:21:05 - End Time 2025-03-15 17:21:05 [2025-03-15 17:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 17:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687636', 'tblTempUsageDetail_20' ) start [2025-03-15 17:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687636', 'tblTempUsageDetail_20' ) end [2025-03-15 17:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687636', 'tblTempVendorCDR_20' ) start [2025-03-15 17:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687636', 'tblTempVendorCDR_20' ) end [2025-03-15 17:21:18] Production.INFO: ProcessCDR(1,14687636,1,1,2) [2025-03-15 17:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687636', 'tblTempUsageDetail_20' ) start [2025-03-15 17:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687636', 'tblTempUsageDetail_20' ) end [2025-03-15 17:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 17:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 17:21:21] Production.INFO: ==4387== Releasing lock... [2025-03-15 17:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 17:21:21] Production.INFO: 40.5 MB #Memory Used# [2025-03-15 17:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 14:22:05 [end_date_ymd] => 2025-03-15 17:22:05 [RateCDR] => 1 ) [2025-03-15 17:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 14:22:05' and `end` < '2025-03-15 17:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 17:22:18] Production.INFO: count ==1683 [2025-03-15 17:22:18] Production.ERROR: pbx CDR StartTime 2025-03-15 14:22:05 - End Time 2025-03-15 17:22:05 [2025-03-15 17:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 17:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687641', 'tblTempUsageDetail_20' ) start [2025-03-15 17:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687641', 'tblTempUsageDetail_20' ) end [2025-03-15 17:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687641', 'tblTempVendorCDR_20' ) start [2025-03-15 17:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687641', 'tblTempVendorCDR_20' ) end [2025-03-15 17:22:18] Production.INFO: ProcessCDR(1,14687641,1,1,2) [2025-03-15 17:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687641', 'tblTempUsageDetail_20' ) start [2025-03-15 17:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687641', 'tblTempUsageDetail_20' ) end [2025-03-15 17:22:24] Production.ERROR: pbx prc_insertCDR start [2025-03-15 17:22:24] Production.ERROR: pbx prc_insertCDR end [2025-03-15 17:22:24] Production.INFO: ==4460== Releasing lock... [2025-03-15 17:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 17:22:24] Production.INFO: 40.75 MB #Memory Used# [2025-03-15 17:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 14:23:05 [end_date_ymd] => 2025-03-15 17:23:05 [RateCDR] => 1 ) [2025-03-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-03-15 14:23:05' and `end` < '2025-03-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-03-15 17:23:18] Production.INFO: count ==1688 [2025-03-15 17:23:18] Production.ERROR: pbx CDR StartTime 2025-03-15 14:23:05 - End Time 2025-03-15 17:23:05 [2025-03-15 17:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 17:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687646', 'tblTempUsageDetail_20' ) start [2025-03-15 17:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687646', 'tblTempUsageDetail_20' ) end [2025-03-15 17:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687646', 'tblTempVendorCDR_20' ) start [2025-03-15 17:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687646', 'tblTempVendorCDR_20' ) end [2025-03-15 17:23:18] Production.INFO: ProcessCDR(1,14687646,1,1,2) [2025-03-15 17:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687646', 'tblTempUsageDetail_20' ) start [2025-03-15 17:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687646', 'tblTempUsageDetail_20' ) end [2025-03-15 17:23:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 17:23:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 17:23:23] Production.INFO: ==4536== Releasing lock... [2025-03-15 17:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 17:23:23] Production.INFO: 40.75 MB #Memory Used# [2025-03-15 17:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 14:24:06 [end_date_ymd] => 2025-03-15 17:24:06 [RateCDR] => 1 ) [2025-03-15 17:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 14:24:06' and `end` < '2025-03-15 17:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 17:24:18] Production.INFO: count ==1675 [2025-03-15 17:24:19] Production.ERROR: pbx CDR StartTime 2025-03-15 14:24:06 - End Time 2025-03-15 17:24:06 [2025-03-15 17:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 17:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687651', 'tblTempUsageDetail_20' ) start [2025-03-15 17:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687651', 'tblTempUsageDetail_20' ) end [2025-03-15 17:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687651', 'tblTempVendorCDR_20' ) start [2025-03-15 17:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687651', 'tblTempVendorCDR_20' ) end [2025-03-15 17:24:19] Production.INFO: ProcessCDR(1,14687651,1,1,2) [2025-03-15 17:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687651', 'tblTempUsageDetail_20' ) start [2025-03-15 17:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687651', 'tblTempUsageDetail_20' ) end [2025-03-15 17:24:24] Production.ERROR: pbx prc_insertCDR start [2025-03-15 17:24:24] Production.ERROR: pbx prc_insertCDR end [2025-03-15 17:24:24] Production.INFO: ==4613== Releasing lock... [2025-03-15 17:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 17:24:24] Production.INFO: 40.75 MB #Memory Used# [2025-03-15 17:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 14:25:06 [end_date_ymd] => 2025-03-15 17:25:06 [RateCDR] => 1 ) [2025-03-15 17:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 14:25:06' and `end` < '2025-03-15 17:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 17:25:18] Production.INFO: count ==1671 [2025-03-15 17:25:19] Production.ERROR: pbx CDR StartTime 2025-03-15 14:25:06 - End Time 2025-03-15 17:25:06 [2025-03-15 17:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 17:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687656', 'tblTempUsageDetail_20' ) start [2025-03-15 17:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687656', 'tblTempUsageDetail_20' ) end [2025-03-15 17:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687656', 'tblTempVendorCDR_20' ) start [2025-03-15 17:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687656', 'tblTempVendorCDR_20' ) end [2025-03-15 17:25:19] Production.INFO: ProcessCDR(1,14687656,1,1,2) [2025-03-15 17:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687656', 'tblTempUsageDetail_20' ) start [2025-03-15 17:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687656', 'tblTempUsageDetail_20' ) end [2025-03-15 17:25:24] Production.ERROR: pbx prc_insertCDR start [2025-03-15 17:25:24] Production.ERROR: pbx prc_insertCDR end [2025-03-15 17:25:24] Production.INFO: ==4689== Releasing lock... [2025-03-15 17:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 17:25:24] Production.INFO: 40.5 MB #Memory Used# [2025-03-15 17:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 14:26:05 [end_date_ymd] => 2025-03-15 17:26:05 [RateCDR] => 1 ) [2025-03-15 17:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 14:26:05' and `end` < '2025-03-15 17:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 17:26:17] Production.INFO: count ==1672 [2025-03-15 17:26:18] Production.ERROR: pbx CDR StartTime 2025-03-15 14:26:05 - End Time 2025-03-15 17:26:05 [2025-03-15 17:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 17:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687661', 'tblTempUsageDetail_20' ) start [2025-03-15 17:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687661', 'tblTempUsageDetail_20' ) end [2025-03-15 17:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687661', 'tblTempVendorCDR_20' ) start [2025-03-15 17:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687661', 'tblTempVendorCDR_20' ) end [2025-03-15 17:26:18] Production.INFO: ProcessCDR(1,14687661,1,1,2) [2025-03-15 17:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687661', 'tblTempUsageDetail_20' ) start [2025-03-15 17:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687661', 'tblTempUsageDetail_20' ) end [2025-03-15 17:26:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 17:26:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 17:26:23] Production.INFO: ==4762== Releasing lock... [2025-03-15 17:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 17:26:23] Production.INFO: 40.5 MB #Memory Used# [2025-03-15 17:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 14:27:06 [end_date_ymd] => 2025-03-15 17:27:06 [RateCDR] => 1 ) [2025-03-15 17:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 14:27:06' and `end` < '2025-03-15 17:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 17:27:18] Production.INFO: count ==1677 [2025-03-15 17:27:19] Production.ERROR: pbx CDR StartTime 2025-03-15 14:27:06 - End Time 2025-03-15 17:27:06 [2025-03-15 17:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 17:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687666', 'tblTempUsageDetail_20' ) start [2025-03-15 17:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687666', 'tblTempUsageDetail_20' ) end [2025-03-15 17:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687666', 'tblTempVendorCDR_20' ) start [2025-03-15 17:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687666', 'tblTempVendorCDR_20' ) end [2025-03-15 17:27:19] Production.INFO: ProcessCDR(1,14687666,1,1,2) [2025-03-15 17:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687666', 'tblTempUsageDetail_20' ) start [2025-03-15 17:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687666', 'tblTempUsageDetail_20' ) end [2025-03-15 17:27:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 17:27:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 17:27:23] Production.INFO: ==4841== Releasing lock... [2025-03-15 17:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 17:27:23] Production.INFO: 40.5 MB #Memory Used# [2025-03-15 17:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 14:28:05 [end_date_ymd] => 2025-03-15 17:28:05 [RateCDR] => 1 ) [2025-03-15 17:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 14:28:05' and `end` < '2025-03-15 17:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 17:28:17] Production.INFO: count ==1670 [2025-03-15 17:28:18] Production.ERROR: pbx CDR StartTime 2025-03-15 14:28:05 - End Time 2025-03-15 17:28:05 [2025-03-15 17:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 17:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687671', 'tblTempUsageDetail_20' ) start [2025-03-15 17:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687671', 'tblTempUsageDetail_20' ) end [2025-03-15 17:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687671', 'tblTempVendorCDR_20' ) start [2025-03-15 17:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687671', 'tblTempVendorCDR_20' ) end [2025-03-15 17:28:18] Production.INFO: ProcessCDR(1,14687671,1,1,2) [2025-03-15 17:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687671', 'tblTempUsageDetail_20' ) start [2025-03-15 17:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687671', 'tblTempUsageDetail_20' ) end [2025-03-15 17:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 17:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 17:28:21] Production.INFO: ==4920== Releasing lock... [2025-03-15 17:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 17:28:21] Production.INFO: 40.5 MB #Memory Used# [2025-03-15 17:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 14:29:05 [end_date_ymd] => 2025-03-15 17:29:05 [RateCDR] => 1 ) [2025-03-15 17:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 14:29:05' and `end` < '2025-03-15 17:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 17:29:18] Production.INFO: count ==1669 [2025-03-15 17:29:18] Production.ERROR: pbx CDR StartTime 2025-03-15 14:29:05 - End Time 2025-03-15 17:29:05 [2025-03-15 17:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 17:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687676', 'tblTempUsageDetail_20' ) start [2025-03-15 17:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687676', 'tblTempUsageDetail_20' ) end [2025-03-15 17:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687676', 'tblTempVendorCDR_20' ) start [2025-03-15 17:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687676', 'tblTempVendorCDR_20' ) end [2025-03-15 17:29:18] Production.INFO: ProcessCDR(1,14687676,1,1,2) [2025-03-15 17:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687676', 'tblTempUsageDetail_20' ) start [2025-03-15 17:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687676', 'tblTempUsageDetail_20' ) end [2025-03-15 17:29:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 17:29:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 17:29:22] Production.INFO: ==4991== Releasing lock... [2025-03-15 17:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 17:29:22] Production.INFO: 40.75 MB #Memory Used# [2025-03-15 17:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 14:30:06 [end_date_ymd] => 2025-03-15 17:30:06 [RateCDR] => 1 ) [2025-03-15 17:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 14:30:06' and `end` < '2025-03-15 17:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 17:30:18] Production.INFO: count ==1670 [2025-03-15 17:30:19] Production.ERROR: pbx CDR StartTime 2025-03-15 14:30:06 - End Time 2025-03-15 17:30:06 [2025-03-15 17:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 17:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687682', 'tblTempUsageDetail_20' ) start [2025-03-15 17:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687682', 'tblTempUsageDetail_20' ) end [2025-03-15 17:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687682', 'tblTempVendorCDR_20' ) start [2025-03-15 17:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687682', 'tblTempVendorCDR_20' ) end [2025-03-15 17:30:19] Production.INFO: ProcessCDR(1,14687682,1,1,2) [2025-03-15 17:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687682', 'tblTempUsageDetail_20' ) start [2025-03-15 17:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687682', 'tblTempUsageDetail_20' ) end [2025-03-15 17:30:24] Production.ERROR: pbx prc_insertCDR start [2025-03-15 17:30:24] Production.ERROR: pbx prc_insertCDR end [2025-03-15 17:30:24] Production.INFO: ==5065== Releasing lock... [2025-03-15 17:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 17:30:24] Production.INFO: 40.5 MB #Memory Used# [2025-03-15 17:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 14:31:05 [end_date_ymd] => 2025-03-15 17:31:05 [RateCDR] => 1 ) [2025-03-15 17:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 14:31:05' and `end` < '2025-03-15 17:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 17:31:18] Production.INFO: count ==1669 [2025-03-15 17:31:18] Production.ERROR: pbx CDR StartTime 2025-03-15 14:31:05 - End Time 2025-03-15 17:31:05 [2025-03-15 17:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 17:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687687', 'tblTempUsageDetail_20' ) start [2025-03-15 17:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687687', 'tblTempUsageDetail_20' ) end [2025-03-15 17:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687687', 'tblTempVendorCDR_20' ) start [2025-03-15 17:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687687', 'tblTempVendorCDR_20' ) end [2025-03-15 17:31:18] Production.INFO: ProcessCDR(1,14687687,1,1,2) [2025-03-15 17:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687687', 'tblTempUsageDetail_20' ) start [2025-03-15 17:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687687', 'tblTempUsageDetail_20' ) end [2025-03-15 17:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 17:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 17:31:21] Production.INFO: ==5140== Releasing lock... [2025-03-15 17:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 17:31:21] Production.INFO: 40.5 MB #Memory Used# [2025-03-15 17:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 14:32:05 [end_date_ymd] => 2025-03-15 17:32:05 [RateCDR] => 1 ) [2025-03-15 17:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 14:32:05' and `end` < '2025-03-15 17:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 17:32:17] Production.INFO: count ==1667 [2025-03-15 17:32:18] Production.ERROR: pbx CDR StartTime 2025-03-15 14:32:05 - End Time 2025-03-15 17:32:05 [2025-03-15 17:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 17:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687692', 'tblTempUsageDetail_20' ) start [2025-03-15 17:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687692', 'tblTempUsageDetail_20' ) end [2025-03-15 17:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687692', 'tblTempVendorCDR_20' ) start [2025-03-15 17:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687692', 'tblTempVendorCDR_20' ) end [2025-03-15 17:32:18] Production.INFO: ProcessCDR(1,14687692,1,1,2) [2025-03-15 17:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687692', 'tblTempUsageDetail_20' ) start [2025-03-15 17:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687692', 'tblTempUsageDetail_20' ) end [2025-03-15 17:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 17:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 17:32:21] Production.INFO: ==5218== Releasing lock... [2025-03-15 17:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 17:32:21] Production.INFO: 40.5 MB #Memory Used# [2025-03-15 17:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 14:33:05 [end_date_ymd] => 2025-03-15 17:33:05 [RateCDR] => 1 ) [2025-03-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-03-15 14:33:05' and `end` < '2025-03-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-03-15 17:33:18] Production.INFO: count ==1677 [2025-03-15 17:33:18] Production.ERROR: pbx CDR StartTime 2025-03-15 14:33:05 - End Time 2025-03-15 17:33:05 [2025-03-15 17:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 17:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687697', 'tblTempUsageDetail_20' ) start [2025-03-15 17:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687697', 'tblTempUsageDetail_20' ) end [2025-03-15 17:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687697', 'tblTempVendorCDR_20' ) start [2025-03-15 17:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687697', 'tblTempVendorCDR_20' ) end [2025-03-15 17:33:18] Production.INFO: ProcessCDR(1,14687697,1,1,2) [2025-03-15 17:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687697', 'tblTempUsageDetail_20' ) start [2025-03-15 17:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687697', 'tblTempUsageDetail_20' ) end [2025-03-15 17:33:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 17:33:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 17:33:23] Production.INFO: ==5294== Releasing lock... [2025-03-15 17:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 17:33:23] Production.INFO: 40.75 MB #Memory Used# [2025-03-15 17:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 14:34:04 [end_date_ymd] => 2025-03-15 17:34:04 [RateCDR] => 1 ) [2025-03-15 17: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-03-15 14:34:04' and `end` < '2025-03-15 17: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-03-15 17:34:17] Production.INFO: count ==1679 [2025-03-15 17:34:17] Production.ERROR: pbx CDR StartTime 2025-03-15 14:34:04 - End Time 2025-03-15 17:34:04 [2025-03-15 17:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 17:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687702', 'tblTempUsageDetail_20' ) start [2025-03-15 17:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687702', 'tblTempUsageDetail_20' ) end [2025-03-15 17:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687702', 'tblTempVendorCDR_20' ) start [2025-03-15 17:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687702', 'tblTempVendorCDR_20' ) end [2025-03-15 17:34:17] Production.INFO: ProcessCDR(1,14687702,1,1,2) [2025-03-15 17:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687702', 'tblTempUsageDetail_20' ) start [2025-03-15 17:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687702', 'tblTempUsageDetail_20' ) end [2025-03-15 17:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 17:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 17:34:22] Production.INFO: ==5365== Releasing lock... [2025-03-15 17:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 17:34:22] Production.INFO: 40.5 MB #Memory Used# [2025-03-15 17:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 14:35:05 [end_date_ymd] => 2025-03-15 17:35:05 [RateCDR] => 1 ) [2025-03-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-03-15 14:35:05' and `end` < '2025-03-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-03-15 17:35:18] Production.INFO: count ==1680 [2025-03-15 17:35:18] Production.ERROR: pbx CDR StartTime 2025-03-15 14:35:05 - End Time 2025-03-15 17:35:05 [2025-03-15 17:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 17:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687707', 'tblTempUsageDetail_20' ) start [2025-03-15 17:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687707', 'tblTempUsageDetail_20' ) end [2025-03-15 17:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687707', 'tblTempVendorCDR_20' ) start [2025-03-15 17:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687707', 'tblTempVendorCDR_20' ) end [2025-03-15 17:35:18] Production.INFO: ProcessCDR(1,14687707,1,1,2) [2025-03-15 17:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687707', 'tblTempUsageDetail_20' ) start [2025-03-15 17:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687707', 'tblTempUsageDetail_20' ) end [2025-03-15 17:35:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 17:35:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 17:35:23] Production.INFO: ==5441== Releasing lock... [2025-03-15 17:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 17:35:23] Production.INFO: 40.75 MB #Memory Used# [2025-03-15 17:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 14:36:05 [end_date_ymd] => 2025-03-15 17:36:05 [RateCDR] => 1 ) [2025-03-15 17:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 14:36:05' and `end` < '2025-03-15 17:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 17:36:17] Production.INFO: count ==1679 [2025-03-15 17:36:18] Production.ERROR: pbx CDR StartTime 2025-03-15 14:36:05 - End Time 2025-03-15 17:36:05 [2025-03-15 17:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 17:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687712', 'tblTempUsageDetail_20' ) start [2025-03-15 17:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687712', 'tblTempUsageDetail_20' ) end [2025-03-15 17:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687712', 'tblTempVendorCDR_20' ) start [2025-03-15 17:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687712', 'tblTempVendorCDR_20' ) end [2025-03-15 17:36:18] Production.INFO: ProcessCDR(1,14687712,1,1,2) [2025-03-15 17:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687712', 'tblTempUsageDetail_20' ) start [2025-03-15 17:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687712', 'tblTempUsageDetail_20' ) end [2025-03-15 17:36:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 17:36:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 17:36:23] Production.INFO: ==5552== Releasing lock... [2025-03-15 17:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 17:36:23] Production.INFO: 40.75 MB #Memory Used# [2025-03-15 17:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 14:37:05 [end_date_ymd] => 2025-03-15 17:37:05 [RateCDR] => 1 ) [2025-03-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-03-15 14:37:05' and `end` < '2025-03-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-03-15 17:37:17] Production.INFO: count ==1676 [2025-03-15 17:37:18] Production.ERROR: pbx CDR StartTime 2025-03-15 14:37:05 - End Time 2025-03-15 17:37:05 [2025-03-15 17:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 17:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687717', 'tblTempUsageDetail_20' ) start [2025-03-15 17:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687717', 'tblTempUsageDetail_20' ) end [2025-03-15 17:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687717', 'tblTempVendorCDR_20' ) start [2025-03-15 17:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687717', 'tblTempVendorCDR_20' ) end [2025-03-15 17:37:18] Production.INFO: ProcessCDR(1,14687717,1,1,2) [2025-03-15 17:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687717', 'tblTempUsageDetail_20' ) start [2025-03-15 17:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687717', 'tblTempUsageDetail_20' ) end [2025-03-15 17:37:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 17:37:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 17:37:23] Production.INFO: ==5629== Releasing lock... [2025-03-15 17:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 17:37:23] Production.INFO: 40.75 MB #Memory Used# [2025-03-15 17:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 14:38:05 [end_date_ymd] => 2025-03-15 17:38:05 [RateCDR] => 1 ) [2025-03-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-03-15 14:38:05' and `end` < '2025-03-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-03-15 17:38:17] Production.INFO: count ==1677 [2025-03-15 17:38:18] Production.ERROR: pbx CDR StartTime 2025-03-15 14:38:05 - End Time 2025-03-15 17:38:05 [2025-03-15 17:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 17:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687722', 'tblTempUsageDetail_20' ) start [2025-03-15 17:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687722', 'tblTempUsageDetail_20' ) end [2025-03-15 17:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687722', 'tblTempVendorCDR_20' ) start [2025-03-15 17:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687722', 'tblTempVendorCDR_20' ) end [2025-03-15 17:38:18] Production.INFO: ProcessCDR(1,14687722,1,1,2) [2025-03-15 17:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687722', 'tblTempUsageDetail_20' ) start [2025-03-15 17:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687722', 'tblTempUsageDetail_20' ) end [2025-03-15 17:38:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 17:38:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 17:38:23] Production.INFO: ==5704== Releasing lock... [2025-03-15 17:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 17:38:23] Production.INFO: 40.75 MB #Memory Used# [2025-03-15 17:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 14:39:05 [end_date_ymd] => 2025-03-15 17:39:05 [RateCDR] => 1 ) [2025-03-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-03-15 14:39:05' and `end` < '2025-03-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-03-15 17:39:18] Production.INFO: count ==1677 [2025-03-15 17:39:18] Production.ERROR: pbx CDR StartTime 2025-03-15 14:39:05 - End Time 2025-03-15 17:39:05 [2025-03-15 17:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 17:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687727', 'tblTempUsageDetail_20' ) start [2025-03-15 17:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687727', 'tblTempUsageDetail_20' ) end [2025-03-15 17:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687727', 'tblTempVendorCDR_20' ) start [2025-03-15 17:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687727', 'tblTempVendorCDR_20' ) end [2025-03-15 17:39:18] Production.INFO: ProcessCDR(1,14687727,1,1,2) [2025-03-15 17:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687727', 'tblTempUsageDetail_20' ) start [2025-03-15 17:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687727', 'tblTempUsageDetail_20' ) end [2025-03-15 17:39:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 17:39:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 17:39:23] Production.INFO: ==5778== Releasing lock... [2025-03-15 17:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 17:39:23] Production.INFO: 40.75 MB #Memory Used# [2025-03-15 17:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 14:40:06 [end_date_ymd] => 2025-03-15 17:40:06 [RateCDR] => 1 ) [2025-03-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-03-15 14:40:06' and `end` < '2025-03-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-03-15 17:40:19] Production.INFO: count ==1680 [2025-03-15 17:40:19] Production.ERROR: pbx CDR StartTime 2025-03-15 14:40:06 - End Time 2025-03-15 17:40:06 [2025-03-15 17:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 17:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687733', 'tblTempUsageDetail_20' ) start [2025-03-15 17:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687733', 'tblTempUsageDetail_20' ) end [2025-03-15 17:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687733', 'tblTempVendorCDR_20' ) start [2025-03-15 17:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687733', 'tblTempVendorCDR_20' ) end [2025-03-15 17:40:19] Production.INFO: ProcessCDR(1,14687733,1,1,2) [2025-03-15 17:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687733', 'tblTempUsageDetail_20' ) start [2025-03-15 17:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687733', 'tblTempUsageDetail_20' ) end [2025-03-15 17:40:24] Production.ERROR: pbx prc_insertCDR start [2025-03-15 17:40:24] Production.ERROR: pbx prc_insertCDR end [2025-03-15 17:40:24] Production.INFO: ==5855== Releasing lock... [2025-03-15 17:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 17:40:24] Production.INFO: 40.75 MB #Memory Used# [2025-03-15 17:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 14:41:05 [end_date_ymd] => 2025-03-15 17:41:05 [RateCDR] => 1 ) [2025-03-15 17:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 14:41:05' and `end` < '2025-03-15 17:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 17:41:18] Production.INFO: count ==1716 [2025-03-15 17:41:18] Production.ERROR: pbx CDR StartTime 2025-03-15 14:41:05 - End Time 2025-03-15 17:41:05 [2025-03-15 17:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 17:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687738', 'tblTempUsageDetail_20' ) start [2025-03-15 17:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687738', 'tblTempUsageDetail_20' ) end [2025-03-15 17:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687738', 'tblTempVendorCDR_20' ) start [2025-03-15 17:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687738', 'tblTempVendorCDR_20' ) end [2025-03-15 17:41:18] Production.INFO: ProcessCDR(1,14687738,1,1,2) [2025-03-15 17:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687738', 'tblTempUsageDetail_20' ) start [2025-03-15 17:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687738', 'tblTempUsageDetail_20' ) end [2025-03-15 17:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 17:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 17:41:22] Production.INFO: ==5935== Releasing lock... [2025-03-15 17:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 17:41:22] Production.INFO: 41 MB #Memory Used# [2025-03-15 17:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 14:42:05 [end_date_ymd] => 2025-03-15 17:42:05 [RateCDR] => 1 ) [2025-03-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-03-15 14:42:05' and `end` < '2025-03-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-03-15 17:42:18] Production.INFO: count ==1716 [2025-03-15 17:42:18] Production.ERROR: pbx CDR StartTime 2025-03-15 14:42:05 - End Time 2025-03-15 17:42:05 [2025-03-15 17:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 17:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687743', 'tblTempUsageDetail_20' ) start [2025-03-15 17:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687743', 'tblTempUsageDetail_20' ) end [2025-03-15 17:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687743', 'tblTempVendorCDR_20' ) start [2025-03-15 17:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687743', 'tblTempVendorCDR_20' ) end [2025-03-15 17:42:18] Production.INFO: ProcessCDR(1,14687743,1,1,2) [2025-03-15 17:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687743', 'tblTempUsageDetail_20' ) start [2025-03-15 17:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687743', 'tblTempUsageDetail_20' ) end [2025-03-15 17:42:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 17:42:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 17:42:23] Production.INFO: ==6010== Releasing lock... [2025-03-15 17:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 17:42:23] Production.INFO: 41 MB #Memory Used# [2025-03-15 17:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 14:43:05 [end_date_ymd] => 2025-03-15 17:43:05 [RateCDR] => 1 ) [2025-03-15 17:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 14:43:05' and `end` < '2025-03-15 17:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 17:43:17] Production.INFO: count ==1709 [2025-03-15 17:43:18] Production.ERROR: pbx CDR StartTime 2025-03-15 14:43:05 - End Time 2025-03-15 17:43:05 [2025-03-15 17:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 17:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687748', 'tblTempUsageDetail_20' ) start [2025-03-15 17:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687748', 'tblTempUsageDetail_20' ) end [2025-03-15 17:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687748', 'tblTempVendorCDR_20' ) start [2025-03-15 17:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687748', 'tblTempVendorCDR_20' ) end [2025-03-15 17:43:18] Production.INFO: ProcessCDR(1,14687748,1,1,2) [2025-03-15 17:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687748', 'tblTempUsageDetail_20' ) start [2025-03-15 17:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687748', 'tblTempUsageDetail_20' ) end [2025-03-15 17:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 17:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 17:43:21] Production.INFO: ==6089== Releasing lock... [2025-03-15 17:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 17:43:21] Production.INFO: 41 MB #Memory Used# [2025-03-15 17:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 14:44:05 [end_date_ymd] => 2025-03-15 17:44:05 [RateCDR] => 1 ) [2025-03-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-03-15 14:44:05' and `end` < '2025-03-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-03-15 17:44:18] Production.INFO: count ==1715 [2025-03-15 17:44:18] Production.ERROR: pbx CDR StartTime 2025-03-15 14:44:05 - End Time 2025-03-15 17:44:05 [2025-03-15 17:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 17:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687753', 'tblTempUsageDetail_20' ) start [2025-03-15 17:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687753', 'tblTempUsageDetail_20' ) end [2025-03-15 17:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687753', 'tblTempVendorCDR_20' ) start [2025-03-15 17:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687753', 'tblTempVendorCDR_20' ) end [2025-03-15 17:44:18] Production.INFO: ProcessCDR(1,14687753,1,1,2) [2025-03-15 17:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687753', 'tblTempUsageDetail_20' ) start [2025-03-15 17:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687753', 'tblTempUsageDetail_20' ) end [2025-03-15 17:44:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 17:44:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 17:44:23] Production.INFO: ==6163== Releasing lock... [2025-03-15 17:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 17:44:23] Production.INFO: 41 MB #Memory Used# [2025-03-15 17:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 14:45:05 [end_date_ymd] => 2025-03-15 17:45:05 [RateCDR] => 1 ) [2025-03-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-03-15 14:45:05' and `end` < '2025-03-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-03-15 17:45:18] Production.INFO: count ==1707 [2025-03-15 17:45:18] Production.ERROR: pbx CDR StartTime 2025-03-15 14:45:05 - End Time 2025-03-15 17:45:05 [2025-03-15 17:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 17:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687758', 'tblTempUsageDetail_20' ) start [2025-03-15 17:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687758', 'tblTempUsageDetail_20' ) end [2025-03-15 17:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687758', 'tblTempVendorCDR_20' ) start [2025-03-15 17:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687758', 'tblTempVendorCDR_20' ) end [2025-03-15 17:45:18] Production.INFO: ProcessCDR(1,14687758,1,1,2) [2025-03-15 17:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687758', 'tblTempUsageDetail_20' ) start [2025-03-15 17:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687758', 'tblTempUsageDetail_20' ) end [2025-03-15 17:45:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 17:45:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 17:45:23] Production.INFO: ==6237== Releasing lock... [2025-03-15 17:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 17:45:23] Production.INFO: 40.75 MB #Memory Used# [2025-03-15 17:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 14:46:06 [end_date_ymd] => 2025-03-15 17:46:06 [RateCDR] => 1 ) [2025-03-15 17:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 14:46:06' and `end` < '2025-03-15 17:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 17:46:19] Production.INFO: count ==1708 [2025-03-15 17:46:19] Production.ERROR: pbx CDR StartTime 2025-03-15 14:46:06 - End Time 2025-03-15 17:46:06 [2025-03-15 17:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 17:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687763', 'tblTempUsageDetail_20' ) start [2025-03-15 17:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687763', 'tblTempUsageDetail_20' ) end [2025-03-15 17:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687763', 'tblTempVendorCDR_20' ) start [2025-03-15 17:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687763', 'tblTempVendorCDR_20' ) end [2025-03-15 17:46:19] Production.INFO: ProcessCDR(1,14687763,1,1,2) [2025-03-15 17:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687763', 'tblTempUsageDetail_20' ) start [2025-03-15 17:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687763', 'tblTempUsageDetail_20' ) end [2025-03-15 17:46:24] Production.ERROR: pbx prc_insertCDR start [2025-03-15 17:46:24] Production.ERROR: pbx prc_insertCDR end [2025-03-15 17:46:24] Production.INFO: ==6312== Releasing lock... [2025-03-15 17:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 17:46:24] Production.INFO: 40.75 MB #Memory Used# [2025-03-15 17:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 14:47:05 [end_date_ymd] => 2025-03-15 17:47:05 [RateCDR] => 1 ) [2025-03-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-03-15 14:47:05' and `end` < '2025-03-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-03-15 17:47:18] Production.INFO: count ==1704 [2025-03-15 17:47:18] Production.ERROR: pbx CDR StartTime 2025-03-15 14:47:05 - End Time 2025-03-15 17:47:05 [2025-03-15 17:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 17:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687768', 'tblTempUsageDetail_20' ) start [2025-03-15 17:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687768', 'tblTempUsageDetail_20' ) end [2025-03-15 17:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687768', 'tblTempVendorCDR_20' ) start [2025-03-15 17:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687768', 'tblTempVendorCDR_20' ) end [2025-03-15 17:47:18] Production.INFO: ProcessCDR(1,14687768,1,1,2) [2025-03-15 17:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687768', 'tblTempUsageDetail_20' ) start [2025-03-15 17:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687768', 'tblTempUsageDetail_20' ) end [2025-03-15 17:47:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 17:47:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 17:47:23] Production.INFO: ==6387== Releasing lock... [2025-03-15 17:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 17:47:23] Production.INFO: 40.75 MB #Memory Used# [2025-03-15 17:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 14:48:06 [end_date_ymd] => 2025-03-15 17:48:06 [RateCDR] => 1 ) [2025-03-15 17:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 14:48:06' and `end` < '2025-03-15 17:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 17:48:18] Production.INFO: count ==1706 [2025-03-15 17:48:19] Production.ERROR: pbx CDR StartTime 2025-03-15 14:48:06 - End Time 2025-03-15 17:48:06 [2025-03-15 17:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 17:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687773', 'tblTempUsageDetail_20' ) start [2025-03-15 17:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687773', 'tblTempUsageDetail_20' ) end [2025-03-15 17:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687773', 'tblTempVendorCDR_20' ) start [2025-03-15 17:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687773', 'tblTempVendorCDR_20' ) end [2025-03-15 17:48:19] Production.INFO: ProcessCDR(1,14687773,1,1,2) [2025-03-15 17:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687773', 'tblTempUsageDetail_20' ) start [2025-03-15 17:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687773', 'tblTempUsageDetail_20' ) end [2025-03-15 17:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 17:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 17:48:22] Production.INFO: ==6465== Releasing lock... [2025-03-15 17:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 17:48:22] Production.INFO: 40.75 MB #Memory Used# [2025-03-15 17:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 14:49:05 [end_date_ymd] => 2025-03-15 17:49:05 [RateCDR] => 1 ) [2025-03-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-03-15 14:49:05' and `end` < '2025-03-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-03-15 17:49:17] Production.INFO: count ==1713 [2025-03-15 17:49:18] Production.ERROR: pbx CDR StartTime 2025-03-15 14:49:05 - End Time 2025-03-15 17:49:05 [2025-03-15 17:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 17:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687778', 'tblTempUsageDetail_20' ) start [2025-03-15 17:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687778', 'tblTempUsageDetail_20' ) end [2025-03-15 17:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687778', 'tblTempVendorCDR_20' ) start [2025-03-15 17:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687778', 'tblTempVendorCDR_20' ) end [2025-03-15 17:49:18] Production.INFO: ProcessCDR(1,14687778,1,1,2) [2025-03-15 17:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687778', 'tblTempUsageDetail_20' ) start [2025-03-15 17:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687778', 'tblTempUsageDetail_20' ) end [2025-03-15 17:49:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 17:49:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 17:49:23] Production.INFO: ==6541== Releasing lock... [2025-03-15 17:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 17:49:23] Production.INFO: 41 MB #Memory Used# [2025-03-15 17:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 14:50:06 [end_date_ymd] => 2025-03-15 17:50:06 [RateCDR] => 1 ) [2025-03-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-03-15 14:50:06' and `end` < '2025-03-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-03-15 17:50:19] Production.INFO: count ==1711 [2025-03-15 17:50:19] Production.ERROR: pbx CDR StartTime 2025-03-15 14:50:06 - End Time 2025-03-15 17:50:06 [2025-03-15 17:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 17:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687784', 'tblTempUsageDetail_20' ) start [2025-03-15 17:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687784', 'tblTempUsageDetail_20' ) end [2025-03-15 17:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687784', 'tblTempVendorCDR_20' ) start [2025-03-15 17:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687784', 'tblTempVendorCDR_20' ) end [2025-03-15 17:50:19] Production.INFO: ProcessCDR(1,14687784,1,1,2) [2025-03-15 17:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687784', 'tblTempUsageDetail_20' ) start [2025-03-15 17:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687784', 'tblTempUsageDetail_20' ) end [2025-03-15 17:50:25] Production.ERROR: pbx prc_insertCDR start [2025-03-15 17:50:25] Production.ERROR: pbx prc_insertCDR end [2025-03-15 17:50:25] Production.INFO: ==6622== Releasing lock... [2025-03-15 17:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 17:50:25] Production.INFO: 41.25 MB #Memory Used# [2025-03-15 17:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 14:51:05 [end_date_ymd] => 2025-03-15 17:51:05 [RateCDR] => 1 ) [2025-03-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-03-15 14:51:05' and `end` < '2025-03-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-03-15 17:51:17] Production.INFO: count ==1728 [2025-03-15 17:51:18] Production.ERROR: pbx CDR StartTime 2025-03-15 14:51:05 - End Time 2025-03-15 17:51:05 [2025-03-15 17:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 17:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687789', 'tblTempUsageDetail_20' ) start [2025-03-15 17:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687789', 'tblTempUsageDetail_20' ) end [2025-03-15 17:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687789', 'tblTempVendorCDR_20' ) start [2025-03-15 17:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687789', 'tblTempVendorCDR_20' ) end [2025-03-15 17:51:18] Production.INFO: ProcessCDR(1,14687789,1,1,2) [2025-03-15 17:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687789', 'tblTempUsageDetail_20' ) start [2025-03-15 17:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687789', 'tblTempUsageDetail_20' ) end [2025-03-15 17:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 17:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 17:51:21] Production.INFO: ==6699== Releasing lock... [2025-03-15 17:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 17:51:21] Production.INFO: 41 MB #Memory Used# [2025-03-15 17:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 14:52:06 [end_date_ymd] => 2025-03-15 17:52:06 [RateCDR] => 1 ) [2025-03-15 17:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 14:52:06' and `end` < '2025-03-15 17:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 17:52:18] Production.INFO: count ==1712 [2025-03-15 17:52:19] Production.ERROR: pbx CDR StartTime 2025-03-15 14:52:06 - End Time 2025-03-15 17:52:06 [2025-03-15 17:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 17:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687794', 'tblTempUsageDetail_20' ) start [2025-03-15 17:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687794', 'tblTempUsageDetail_20' ) end [2025-03-15 17:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687794', 'tblTempVendorCDR_20' ) start [2025-03-15 17:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687794', 'tblTempVendorCDR_20' ) end [2025-03-15 17:52:19] Production.INFO: ProcessCDR(1,14687794,1,1,2) [2025-03-15 17:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687794', 'tblTempUsageDetail_20' ) start [2025-03-15 17:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687794', 'tblTempUsageDetail_20' ) end [2025-03-15 17:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 17:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 17:52:22] Production.INFO: ==6812== Releasing lock... [2025-03-15 17:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 17:52:22] Production.INFO: 41 MB #Memory Used# [2025-03-15 17:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 14:53:05 [end_date_ymd] => 2025-03-15 17:53:05 [RateCDR] => 1 ) [2025-03-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-03-15 14:53:05' and `end` < '2025-03-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-03-15 17:53:17] Production.INFO: count ==1715 [2025-03-15 17:53:18] Production.ERROR: pbx CDR StartTime 2025-03-15 14:53:05 - End Time 2025-03-15 17:53:05 [2025-03-15 17:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 17:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687799', 'tblTempUsageDetail_20' ) start [2025-03-15 17:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687799', 'tblTempUsageDetail_20' ) end [2025-03-15 17:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687799', 'tblTempVendorCDR_20' ) start [2025-03-15 17:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687799', 'tblTempVendorCDR_20' ) end [2025-03-15 17:53:18] Production.INFO: ProcessCDR(1,14687799,1,1,2) [2025-03-15 17:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687799', 'tblTempUsageDetail_20' ) start [2025-03-15 17:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687799', 'tblTempUsageDetail_20' ) end [2025-03-15 17:53:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 17:53:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 17:53:23] Production.INFO: ==6890== Releasing lock... [2025-03-15 17:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 17:53:23] Production.INFO: 40.75 MB #Memory Used# [2025-03-15 17:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 14:54:06 [end_date_ymd] => 2025-03-15 17:54:06 [RateCDR] => 1 ) [2025-03-15 17:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 14:54:06' and `end` < '2025-03-15 17:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 17:54:18] Production.INFO: count ==1717 [2025-03-15 17:54:18] Production.ERROR: pbx CDR StartTime 2025-03-15 14:54:06 - End Time 2025-03-15 17:54:06 [2025-03-15 17:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 17:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687804', 'tblTempUsageDetail_20' ) start [2025-03-15 17:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687804', 'tblTempUsageDetail_20' ) end [2025-03-15 17:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687804', 'tblTempVendorCDR_20' ) start [2025-03-15 17:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687804', 'tblTempVendorCDR_20' ) end [2025-03-15 17:54:19] Production.INFO: ProcessCDR(1,14687804,1,1,2) [2025-03-15 17:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687804', 'tblTempUsageDetail_20' ) start [2025-03-15 17:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687804', 'tblTempUsageDetail_20' ) end [2025-03-15 17:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 17:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 17:54:22] Production.INFO: ==6968== Releasing lock... [2025-03-15 17:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 17:54:22] Production.INFO: 41.25 MB #Memory Used# [2025-03-15 17:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 14:55:05 [end_date_ymd] => 2025-03-15 17:55:05 [RateCDR] => 1 ) [2025-03-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-03-15 14:55:05' and `end` < '2025-03-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-03-15 17:55:17] Production.INFO: count ==1712 [2025-03-15 17:55:18] Production.ERROR: pbx CDR StartTime 2025-03-15 14:55:05 - End Time 2025-03-15 17:55:05 [2025-03-15 17:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 17:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687809', 'tblTempUsageDetail_20' ) start [2025-03-15 17:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687809', 'tblTempUsageDetail_20' ) end [2025-03-15 17:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687809', 'tblTempVendorCDR_20' ) start [2025-03-15 17:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687809', 'tblTempVendorCDR_20' ) end [2025-03-15 17:55:18] Production.INFO: ProcessCDR(1,14687809,1,1,2) [2025-03-15 17:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687809', 'tblTempUsageDetail_20' ) start [2025-03-15 17:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687809', 'tblTempUsageDetail_20' ) end [2025-03-15 17:55:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 17:55:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 17:55:23] Production.INFO: ==7043== Releasing lock... [2025-03-15 17:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 17:55:23] Production.INFO: 41 MB #Memory Used# [2025-03-15 17:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 14:56:06 [end_date_ymd] => 2025-03-15 17:56:06 [RateCDR] => 1 ) [2025-03-15 17:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 14:56:06' and `end` < '2025-03-15 17:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 17:56:18] Production.INFO: count ==1720 [2025-03-15 17:56:19] Production.ERROR: pbx CDR StartTime 2025-03-15 14:56:06 - End Time 2025-03-15 17:56:06 [2025-03-15 17:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 17:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687814', 'tblTempUsageDetail_20' ) start [2025-03-15 17:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687814', 'tblTempUsageDetail_20' ) end [2025-03-15 17:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687814', 'tblTempVendorCDR_20' ) start [2025-03-15 17:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687814', 'tblTempVendorCDR_20' ) end [2025-03-15 17:56:19] Production.INFO: ProcessCDR(1,14687814,1,1,2) [2025-03-15 17:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687814', 'tblTempUsageDetail_20' ) start [2025-03-15 17:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687814', 'tblTempUsageDetail_20' ) end [2025-03-15 17:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 17:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 17:56:22] Production.INFO: ==7128== Releasing lock... [2025-03-15 17:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 17:56:22] Production.INFO: 40.75 MB #Memory Used# [2025-03-15 17:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 14:57:05 [end_date_ymd] => 2025-03-15 17:57:05 [RateCDR] => 1 ) [2025-03-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-03-15 14:57:05' and `end` < '2025-03-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-03-15 17:57:17] Production.INFO: count ==1726 [2025-03-15 17:57:18] Production.ERROR: pbx CDR StartTime 2025-03-15 14:57:05 - End Time 2025-03-15 17:57:05 [2025-03-15 17:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 17:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687819', 'tblTempUsageDetail_20' ) start [2025-03-15 17:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687819', 'tblTempUsageDetail_20' ) end [2025-03-15 17:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687819', 'tblTempVendorCDR_20' ) start [2025-03-15 17:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687819', 'tblTempVendorCDR_20' ) end [2025-03-15 17:57:18] Production.INFO: ProcessCDR(1,14687819,1,1,2) [2025-03-15 17:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687819', 'tblTempUsageDetail_20' ) start [2025-03-15 17:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687819', 'tblTempUsageDetail_20' ) end [2025-03-15 17:57:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 17:57:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 17:57:23] Production.INFO: ==7200== Releasing lock... [2025-03-15 17:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 17:57:23] Production.INFO: 41.25 MB #Memory Used# [2025-03-15 17:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 14:58:05 [end_date_ymd] => 2025-03-15 17:58:05 [RateCDR] => 1 ) [2025-03-15 17:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 14:58:05' and `end` < '2025-03-15 17:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 17:58:18] Production.INFO: count ==1721 [2025-03-15 17:58:18] Production.ERROR: pbx CDR StartTime 2025-03-15 14:58:05 - End Time 2025-03-15 17:58:05 [2025-03-15 17:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 17:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687824', 'tblTempUsageDetail_20' ) start [2025-03-15 17:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687824', 'tblTempUsageDetail_20' ) end [2025-03-15 17:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687824', 'tblTempVendorCDR_20' ) start [2025-03-15 17:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687824', 'tblTempVendorCDR_20' ) end [2025-03-15 17:58:18] Production.INFO: ProcessCDR(1,14687824,1,1,2) [2025-03-15 17:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687824', 'tblTempUsageDetail_20' ) start [2025-03-15 17:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687824', 'tblTempUsageDetail_20' ) end [2025-03-15 17:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 17:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 17:58:21] Production.INFO: ==7279== Releasing lock... [2025-03-15 17:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 17:58:21] Production.INFO: 40.75 MB #Memory Used# [2025-03-15 17:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 14:59:05 [end_date_ymd] => 2025-03-15 17:59:05 [RateCDR] => 1 ) [2025-03-15 17:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 14:59:05' and `end` < '2025-03-15 17:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 17:59:18] Production.INFO: count ==1718 [2025-03-15 17:59:18] Production.ERROR: pbx CDR StartTime 2025-03-15 14:59:05 - End Time 2025-03-15 17:59:05 [2025-03-15 17:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 17:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687829', 'tblTempUsageDetail_20' ) start [2025-03-15 17:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687829', 'tblTempUsageDetail_20' ) end [2025-03-15 17:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687829', 'tblTempVendorCDR_20' ) start [2025-03-15 17:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687829', 'tblTempVendorCDR_20' ) end [2025-03-15 17:59:18] Production.INFO: ProcessCDR(1,14687829,1,1,2) [2025-03-15 17:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 17:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 17:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687829', 'tblTempUsageDetail_20' ) start [2025-03-15 17:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687829', 'tblTempUsageDetail_20' ) end [2025-03-15 17:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 17:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 17:59:21] Production.INFO: ==7355== Releasing lock... [2025-03-15 17:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 17:59:21] Production.INFO: 41 MB #Memory Used# [2025-03-15 18:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 15:00:06 [end_date_ymd] => 2025-03-15 18:00:06 [RateCDR] => 1 ) [2025-03-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-03-15 15:00:06' and `end` < '2025-03-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-03-15 18:00:19] Production.INFO: count ==1716 [2025-03-15 18:00:19] Production.ERROR: pbx CDR StartTime 2025-03-15 15:00:06 - End Time 2025-03-15 18:00:06 [2025-03-15 18:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 18:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687835', 'tblTempUsageDetail_20' ) start [2025-03-15 18:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687835', 'tblTempUsageDetail_20' ) end [2025-03-15 18:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687835', 'tblTempVendorCDR_20' ) start [2025-03-15 18:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687835', 'tblTempVendorCDR_20' ) end [2025-03-15 18:00:19] Production.INFO: ProcessCDR(1,14687835,1,1,2) [2025-03-15 18:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687835', 'tblTempUsageDetail_20' ) start [2025-03-15 18:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687835', 'tblTempUsageDetail_20' ) end [2025-03-15 18:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 18:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 18:00:23] Production.INFO: ==7432== Releasing lock... [2025-03-15 18:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 18:00:23] Production.INFO: 40.75 MB #Memory Used# [2025-03-15 18:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 15:01:05 [end_date_ymd] => 2025-03-15 18:01:05 [RateCDR] => 1 ) [2025-03-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-03-15 15:01:05' and `end` < '2025-03-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-03-15 18:01:17] Production.INFO: count ==1692 [2025-03-15 18:01:18] Production.ERROR: pbx CDR StartTime 2025-03-15 15:01:05 - End Time 2025-03-15 18:01:05 [2025-03-15 18:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 18:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687840', 'tblTempUsageDetail_20' ) start [2025-03-15 18:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687840', 'tblTempUsageDetail_20' ) end [2025-03-15 18:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687840', 'tblTempVendorCDR_20' ) start [2025-03-15 18:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687840', 'tblTempVendorCDR_20' ) end [2025-03-15 18:01:18] Production.INFO: ProcessCDR(1,14687840,1,1,2) [2025-03-15 18:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687840', 'tblTempUsageDetail_20' ) start [2025-03-15 18:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687840', 'tblTempUsageDetail_20' ) end [2025-03-15 18:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 18:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 18:01:21] Production.INFO: ==7520== Releasing lock... [2025-03-15 18:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 18:01:21] Production.INFO: 40.75 MB #Memory Used# [2025-03-15 18:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 15:02:05 [end_date_ymd] => 2025-03-15 18:02:05 [RateCDR] => 1 ) [2025-03-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-03-15 15:02:05' and `end` < '2025-03-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-03-15 18:02:18] Production.INFO: count ==1674 [2025-03-15 18:02:18] Production.ERROR: pbx CDR StartTime 2025-03-15 15:02:05 - End Time 2025-03-15 18:02:05 [2025-03-15 18:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 18:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687845', 'tblTempUsageDetail_20' ) start [2025-03-15 18:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687845', 'tblTempUsageDetail_20' ) end [2025-03-15 18:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687845', 'tblTempVendorCDR_20' ) start [2025-03-15 18:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687845', 'tblTempVendorCDR_20' ) end [2025-03-15 18:02:18] Production.INFO: ProcessCDR(1,14687845,1,1,2) [2025-03-15 18:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687845', 'tblTempUsageDetail_20' ) start [2025-03-15 18:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687845', 'tblTempUsageDetail_20' ) end [2025-03-15 18:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 18:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 18:02:22] Production.INFO: ==7602== Releasing lock... [2025-03-15 18:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 18:02:22] Production.INFO: 40.5 MB #Memory Used# [2025-03-15 18:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 15:03:05 [end_date_ymd] => 2025-03-15 18:03:05 [RateCDR] => 1 ) [2025-03-15 18:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 15:03:05' and `end` < '2025-03-15 18:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 18:03:17] Production.INFO: count ==1639 [2025-03-15 18:03:18] Production.ERROR: pbx CDR StartTime 2025-03-15 15:03:05 - End Time 2025-03-15 18:03:05 [2025-03-15 18:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 18:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687850', 'tblTempUsageDetail_20' ) start [2025-03-15 18:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687850', 'tblTempUsageDetail_20' ) end [2025-03-15 18:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687850', 'tblTempVendorCDR_20' ) start [2025-03-15 18:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687850', 'tblTempVendorCDR_20' ) end [2025-03-15 18:03:18] Production.INFO: ProcessCDR(1,14687850,1,1,2) [2025-03-15 18:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687850', 'tblTempUsageDetail_20' ) start [2025-03-15 18:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687850', 'tblTempUsageDetail_20' ) end [2025-03-15 18:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 18:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 18:03:21] Production.INFO: ==7678== Releasing lock... [2025-03-15 18:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 18:03:21] Production.INFO: 40 MB #Memory Used# [2025-03-15 18:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 15:04:05 [end_date_ymd] => 2025-03-15 18:04:05 [RateCDR] => 1 ) [2025-03-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-03-15 15:04:05' and `end` < '2025-03-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-03-15 18:04:18] Production.INFO: count ==1641 [2025-03-15 18:04:18] Production.ERROR: pbx CDR StartTime 2025-03-15 15:04:05 - End Time 2025-03-15 18:04:05 [2025-03-15 18:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 18:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687855', 'tblTempUsageDetail_20' ) start [2025-03-15 18:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687855', 'tblTempUsageDetail_20' ) end [2025-03-15 18:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687855', 'tblTempVendorCDR_20' ) start [2025-03-15 18:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687855', 'tblTempVendorCDR_20' ) end [2025-03-15 18:04:18] Production.INFO: ProcessCDR(1,14687855,1,1,2) [2025-03-15 18:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687855', 'tblTempUsageDetail_20' ) start [2025-03-15 18:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687855', 'tblTempUsageDetail_20' ) end [2025-03-15 18:04:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 18:04:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 18:04:23] Production.INFO: ==7754== Releasing lock... [2025-03-15 18:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 18:04:23] Production.INFO: 40 MB #Memory Used# [2025-03-15 18:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 15:05:05 [end_date_ymd] => 2025-03-15 18:05:05 [RateCDR] => 1 ) [2025-03-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-03-15 15:05:05' and `end` < '2025-03-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-03-15 18:05:18] Production.INFO: count ==1651 [2025-03-15 18:05:18] Production.ERROR: pbx CDR StartTime 2025-03-15 15:05:05 - End Time 2025-03-15 18:05:05 [2025-03-15 18:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 18:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687860', 'tblTempUsageDetail_20' ) start [2025-03-15 18:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687860', 'tblTempUsageDetail_20' ) end [2025-03-15 18:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687860', 'tblTempVendorCDR_20' ) start [2025-03-15 18:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687860', 'tblTempVendorCDR_20' ) end [2025-03-15 18:05:18] Production.INFO: ProcessCDR(1,14687860,1,1,2) [2025-03-15 18:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687860', 'tblTempUsageDetail_20' ) start [2025-03-15 18:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687860', 'tblTempUsageDetail_20' ) end [2025-03-15 18:05:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 18:05:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 18:05:23] Production.INFO: ==7836== Releasing lock... [2025-03-15 18:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 18:05:23] Production.INFO: 40.5 MB #Memory Used# [2025-03-15 18:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 15:06:05 [end_date_ymd] => 2025-03-15 18:06:05 [RateCDR] => 1 ) [2025-03-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-03-15 15:06:05' and `end` < '2025-03-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-03-15 18:06:18] Production.INFO: count ==1649 [2025-03-15 18:06:18] Production.ERROR: pbx CDR StartTime 2025-03-15 15:06:05 - End Time 2025-03-15 18:06:05 [2025-03-15 18:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 18:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687865', 'tblTempUsageDetail_20' ) start [2025-03-15 18:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687865', 'tblTempUsageDetail_20' ) end [2025-03-15 18:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687865', 'tblTempVendorCDR_20' ) start [2025-03-15 18:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687865', 'tblTempVendorCDR_20' ) end [2025-03-15 18:06:18] Production.INFO: ProcessCDR(1,14687865,1,1,2) [2025-03-15 18:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687865', 'tblTempUsageDetail_20' ) start [2025-03-15 18:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687865', 'tblTempUsageDetail_20' ) end [2025-03-15 18:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 18:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 18:06:22] Production.INFO: ==7913== Releasing lock... [2025-03-15 18:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 18:06:22] Production.INFO: 40.5 MB #Memory Used# [2025-03-15 18:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 15:07:05 [end_date_ymd] => 2025-03-15 18:07:05 [RateCDR] => 1 ) [2025-03-15 18:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 15:07:05' and `end` < '2025-03-15 18:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 18:07:18] Production.INFO: count ==1656 [2025-03-15 18:07:18] Production.ERROR: pbx CDR StartTime 2025-03-15 15:07:05 - End Time 2025-03-15 18:07:05 [2025-03-15 18:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 18:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687870', 'tblTempUsageDetail_20' ) start [2025-03-15 18:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687870', 'tblTempUsageDetail_20' ) end [2025-03-15 18:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687870', 'tblTempVendorCDR_20' ) start [2025-03-15 18:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687870', 'tblTempVendorCDR_20' ) end [2025-03-15 18:07:18] Production.INFO: ProcessCDR(1,14687870,1,1,2) [2025-03-15 18:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687870', 'tblTempUsageDetail_20' ) start [2025-03-15 18:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687870', 'tblTempUsageDetail_20' ) end [2025-03-15 18:07:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 18:07:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 18:07:23] Production.INFO: ==8026== Releasing lock... [2025-03-15 18:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 18:07:23] Production.INFO: 40.5 MB #Memory Used# [2025-03-15 18:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 15:08:05 [end_date_ymd] => 2025-03-15 18:08:05 [RateCDR] => 1 ) [2025-03-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-03-15 15:08:05' and `end` < '2025-03-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-03-15 18:08:18] Production.INFO: count ==1659 [2025-03-15 18:08:18] Production.ERROR: pbx CDR StartTime 2025-03-15 15:08:05 - End Time 2025-03-15 18:08:05 [2025-03-15 18:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 18:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687875', 'tblTempUsageDetail_20' ) start [2025-03-15 18:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687875', 'tblTempUsageDetail_20' ) end [2025-03-15 18:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687875', 'tblTempVendorCDR_20' ) start [2025-03-15 18:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687875', 'tblTempVendorCDR_20' ) end [2025-03-15 18:08:18] Production.INFO: ProcessCDR(1,14687875,1,1,2) [2025-03-15 18:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687875', 'tblTempUsageDetail_20' ) start [2025-03-15 18:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687875', 'tblTempUsageDetail_20' ) end [2025-03-15 18:08:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 18:08:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 18:08:23] Production.INFO: ==8105== Releasing lock... [2025-03-15 18:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 18:08:23] Production.INFO: 40.25 MB #Memory Used# [2025-03-15 18:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 15:09:04 [end_date_ymd] => 2025-03-15 18:09:04 [RateCDR] => 1 ) [2025-03-15 18: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-03-15 15:09:04' and `end` < '2025-03-15 18: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-03-15 18:09:17] Production.INFO: count ==1665 [2025-03-15 18:09:17] Production.ERROR: pbx CDR StartTime 2025-03-15 15:09:04 - End Time 2025-03-15 18:09:04 [2025-03-15 18:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 18:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687880', 'tblTempUsageDetail_20' ) start [2025-03-15 18:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687880', 'tblTempUsageDetail_20' ) end [2025-03-15 18:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687880', 'tblTempVendorCDR_20' ) start [2025-03-15 18:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687880', 'tblTempVendorCDR_20' ) end [2025-03-15 18:09:17] Production.INFO: ProcessCDR(1,14687880,1,1,2) [2025-03-15 18:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687880', 'tblTempUsageDetail_20' ) start [2025-03-15 18:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687880', 'tblTempUsageDetail_20' ) end [2025-03-15 18:09:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 18:09:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 18:09:22] Production.INFO: ==8179== Releasing lock... [2025-03-15 18:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 18:09:22] Production.INFO: 40.5 MB #Memory Used# [2025-03-15 18:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 15:10:06 [end_date_ymd] => 2025-03-15 18:10:06 [RateCDR] => 1 ) [2025-03-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-03-15 15:10:06' and `end` < '2025-03-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-03-15 18:10:18] Production.INFO: count ==1668 [2025-03-15 18:10:19] Production.ERROR: pbx CDR StartTime 2025-03-15 15:10:06 - End Time 2025-03-15 18:10:06 [2025-03-15 18:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 18:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687886', 'tblTempUsageDetail_20' ) start [2025-03-15 18:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687886', 'tblTempUsageDetail_20' ) end [2025-03-15 18:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687886', 'tblTempVendorCDR_20' ) start [2025-03-15 18:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687886', 'tblTempVendorCDR_20' ) end [2025-03-15 18:10:19] Production.INFO: ProcessCDR(1,14687886,1,1,2) [2025-03-15 18:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687886', 'tblTempUsageDetail_20' ) start [2025-03-15 18:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687886', 'tblTempUsageDetail_20' ) end [2025-03-15 18:10:24] Production.ERROR: pbx prc_insertCDR start [2025-03-15 18:10:24] Production.ERROR: pbx prc_insertCDR end [2025-03-15 18:10:24] Production.INFO: ==8261== Releasing lock... [2025-03-15 18:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 18:10:24] Production.INFO: 40.75 MB #Memory Used# [2025-03-15 18:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 15:11:04 [end_date_ymd] => 2025-03-15 18:11:04 [RateCDR] => 1 ) [2025-03-15 18:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 15:11:04' and `end` < '2025-03-15 18:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 18:11:17] Production.INFO: count ==1685 [2025-03-15 18:11:17] Production.ERROR: pbx CDR StartTime 2025-03-15 15:11:04 - End Time 2025-03-15 18:11:04 [2025-03-15 18:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 18:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687891', 'tblTempUsageDetail_20' ) start [2025-03-15 18:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687891', 'tblTempUsageDetail_20' ) end [2025-03-15 18:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687891', 'tblTempVendorCDR_20' ) start [2025-03-15 18:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687891', 'tblTempVendorCDR_20' ) end [2025-03-15 18:11:17] Production.INFO: ProcessCDR(1,14687891,1,1,2) [2025-03-15 18:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687891', 'tblTempUsageDetail_20' ) start [2025-03-15 18:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687891', 'tblTempUsageDetail_20' ) end [2025-03-15 18:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 18:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 18:11:21] Production.INFO: ==8348== Releasing lock... [2025-03-15 18:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 18:11:21] Production.INFO: 40.5 MB #Memory Used# [2025-03-15 18:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 15:12:05 [end_date_ymd] => 2025-03-15 18:12:05 [RateCDR] => 1 ) [2025-03-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-03-15 15:12:05' and `end` < '2025-03-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-03-15 18:12:18] Production.INFO: count ==1680 [2025-03-15 18:12:18] Production.ERROR: pbx CDR StartTime 2025-03-15 15:12:05 - End Time 2025-03-15 18:12:05 [2025-03-15 18:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 18:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687896', 'tblTempUsageDetail_20' ) start [2025-03-15 18:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687896', 'tblTempUsageDetail_20' ) end [2025-03-15 18:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687896', 'tblTempVendorCDR_20' ) start [2025-03-15 18:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687896', 'tblTempVendorCDR_20' ) end [2025-03-15 18:12:18] Production.INFO: ProcessCDR(1,14687896,1,1,2) [2025-03-15 18:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687896', 'tblTempUsageDetail_20' ) start [2025-03-15 18:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687896', 'tblTempUsageDetail_20' ) end [2025-03-15 18:12:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 18:12:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 18:12:23] Production.INFO: ==8431== Releasing lock... [2025-03-15 18:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 18:12:23] Production.INFO: 40.75 MB #Memory Used# [2025-03-15 18:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 15:13:06 [end_date_ymd] => 2025-03-15 18:13:06 [RateCDR] => 1 ) [2025-03-15 18:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 15:13:06' and `end` < '2025-03-15 18:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 18:13:18] Production.INFO: count ==1679 [2025-03-15 18:13:18] Production.ERROR: pbx CDR StartTime 2025-03-15 15:13:06 - End Time 2025-03-15 18:13:06 [2025-03-15 18:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 18:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687901', 'tblTempUsageDetail_20' ) start [2025-03-15 18:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687901', 'tblTempUsageDetail_20' ) end [2025-03-15 18:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687901', 'tblTempVendorCDR_20' ) start [2025-03-15 18:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687901', 'tblTempVendorCDR_20' ) end [2025-03-15 18:13:19] Production.INFO: ProcessCDR(1,14687901,1,1,2) [2025-03-15 18:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687901', 'tblTempUsageDetail_20' ) start [2025-03-15 18:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687901', 'tblTempUsageDetail_20' ) end [2025-03-15 18:13:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 18:13:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 18:13:22] Production.INFO: ==8508== Releasing lock... [2025-03-15 18:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 18:13:22] Production.INFO: 40.75 MB #Memory Used# [2025-03-15 18:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 15:14:05 [end_date_ymd] => 2025-03-15 18:14:05 [RateCDR] => 1 ) [2025-03-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-03-15 15:14:05' and `end` < '2025-03-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-03-15 18:14:17] Production.INFO: count ==1667 [2025-03-15 18:14:17] Production.ERROR: pbx CDR StartTime 2025-03-15 15:14:05 - End Time 2025-03-15 18:14:05 [2025-03-15 18:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 18:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687906', 'tblTempUsageDetail_20' ) start [2025-03-15 18:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687906', 'tblTempUsageDetail_20' ) end [2025-03-15 18:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687906', 'tblTempVendorCDR_20' ) start [2025-03-15 18:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687906', 'tblTempVendorCDR_20' ) end [2025-03-15 18:14:17] Production.INFO: ProcessCDR(1,14687906,1,1,2) [2025-03-15 18:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687906', 'tblTempUsageDetail_20' ) start [2025-03-15 18:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687906', 'tblTempUsageDetail_20' ) end [2025-03-15 18:14:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 18:14:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 18:14:22] Production.INFO: ==8585== Releasing lock... [2025-03-15 18:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 18:14:22] Production.INFO: 40.25 MB #Memory Used# [2025-03-15 18:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 15:15:06 [end_date_ymd] => 2025-03-15 18:15:06 [RateCDR] => 1 ) [2025-03-15 18:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 15:15:06' and `end` < '2025-03-15 18:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 18:15:18] Production.INFO: count ==1656 [2025-03-15 18:15:18] Production.ERROR: pbx CDR StartTime 2025-03-15 15:15:06 - End Time 2025-03-15 18:15:06 [2025-03-15 18:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 18:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687911', 'tblTempUsageDetail_20' ) start [2025-03-15 18:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687911', 'tblTempUsageDetail_20' ) end [2025-03-15 18:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687911', 'tblTempVendorCDR_20' ) start [2025-03-15 18:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687911', 'tblTempVendorCDR_20' ) end [2025-03-15 18:15:18] Production.INFO: ProcessCDR(1,14687911,1,1,2) [2025-03-15 18:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687911', 'tblTempUsageDetail_20' ) start [2025-03-15 18:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687911', 'tblTempUsageDetail_20' ) end [2025-03-15 18:15:24] Production.ERROR: pbx prc_insertCDR start [2025-03-15 18:15:24] Production.ERROR: pbx prc_insertCDR end [2025-03-15 18:15:24] Production.INFO: ==8661== Releasing lock... [2025-03-15 18:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 18:15:24] Production.INFO: 40.75 MB #Memory Used# [2025-03-15 18:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 15:16:05 [end_date_ymd] => 2025-03-15 18:16:05 [RateCDR] => 1 ) [2025-03-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-03-15 15:16:05' and `end` < '2025-03-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-03-15 18:16:17] Production.INFO: count ==1661 [2025-03-15 18:16:18] Production.ERROR: pbx CDR StartTime 2025-03-15 15:16:05 - End Time 2025-03-15 18:16:05 [2025-03-15 18:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 18:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687916', 'tblTempUsageDetail_20' ) start [2025-03-15 18:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687916', 'tblTempUsageDetail_20' ) end [2025-03-15 18:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687916', 'tblTempVendorCDR_20' ) start [2025-03-15 18:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687916', 'tblTempVendorCDR_20' ) end [2025-03-15 18:16:18] Production.INFO: ProcessCDR(1,14687916,1,1,2) [2025-03-15 18:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687916', 'tblTempUsageDetail_20' ) start [2025-03-15 18:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687916', 'tblTempUsageDetail_20' ) end [2025-03-15 18:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 18:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 18:16:21] Production.INFO: ==8753== Releasing lock... [2025-03-15 18:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 18:16:21] Production.INFO: 40.5 MB #Memory Used# [2025-03-15 18:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 15:17:05 [end_date_ymd] => 2025-03-15 18:17:05 [RateCDR] => 1 ) [2025-03-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-03-15 15:17:05' and `end` < '2025-03-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-03-15 18:17:18] Production.INFO: count ==1653 [2025-03-15 18:17:18] Production.ERROR: pbx CDR StartTime 2025-03-15 15:17:05 - End Time 2025-03-15 18:17:05 [2025-03-15 18:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 18:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687921', 'tblTempUsageDetail_20' ) start [2025-03-15 18:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687921', 'tblTempUsageDetail_20' ) end [2025-03-15 18:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687921', 'tblTempVendorCDR_20' ) start [2025-03-15 18:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687921', 'tblTempVendorCDR_20' ) end [2025-03-15 18:17:18] Production.INFO: ProcessCDR(1,14687921,1,1,2) [2025-03-15 18:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687921', 'tblTempUsageDetail_20' ) start [2025-03-15 18:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687921', 'tblTempUsageDetail_20' ) end [2025-03-15 18:17:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 18:17:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 18:17:23] Production.INFO: ==8853== Releasing lock... [2025-03-15 18:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 18:17:23] Production.INFO: 40.25 MB #Memory Used# [2025-03-15 18:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 15:18:05 [end_date_ymd] => 2025-03-15 18:18:05 [RateCDR] => 1 ) [2025-03-15 18:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 15:18:05' and `end` < '2025-03-15 18:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 18:18:17] Production.INFO: count ==1657 [2025-03-15 18:18:17] Production.ERROR: pbx CDR StartTime 2025-03-15 15:18:05 - End Time 2025-03-15 18:18:05 [2025-03-15 18:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 18:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687926', 'tblTempUsageDetail_20' ) start [2025-03-15 18:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687926', 'tblTempUsageDetail_20' ) end [2025-03-15 18:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687926', 'tblTempVendorCDR_20' ) start [2025-03-15 18:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687926', 'tblTempVendorCDR_20' ) end [2025-03-15 18:18:18] Production.INFO: ProcessCDR(1,14687926,1,1,2) [2025-03-15 18:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687926', 'tblTempUsageDetail_20' ) start [2025-03-15 18:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687926', 'tblTempUsageDetail_20' ) end [2025-03-15 18:18:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 18:18:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 18:18:23] Production.INFO: ==8933== Releasing lock... [2025-03-15 18:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 18:18:23] Production.INFO: 40.5 MB #Memory Used# [2025-03-15 18:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 15:19:05 [end_date_ymd] => 2025-03-15 18:19:05 [RateCDR] => 1 ) [2025-03-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-03-15 15:19:05' and `end` < '2025-03-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-03-15 18:19:18] Production.INFO: count ==1656 [2025-03-15 18:19:18] Production.ERROR: pbx CDR StartTime 2025-03-15 15:19:05 - End Time 2025-03-15 18:19:05 [2025-03-15 18:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 18:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687931', 'tblTempUsageDetail_20' ) start [2025-03-15 18:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687931', 'tblTempUsageDetail_20' ) end [2025-03-15 18:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687931', 'tblTempVendorCDR_20' ) start [2025-03-15 18:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687931', 'tblTempVendorCDR_20' ) end [2025-03-15 18:19:18] Production.INFO: ProcessCDR(1,14687931,1,1,2) [2025-03-15 18:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687931', 'tblTempUsageDetail_20' ) start [2025-03-15 18:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687931', 'tblTempUsageDetail_20' ) end [2025-03-15 18:19:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 18:19:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 18:19:23] Production.INFO: ==9055== Releasing lock... [2025-03-15 18:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 18:19:23] Production.INFO: 40.5 MB #Memory Used# [2025-03-15 18:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 15:20:06 [end_date_ymd] => 2025-03-15 18:20:06 [RateCDR] => 1 ) [2025-03-15 18:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 15:20:06' and `end` < '2025-03-15 18:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 18:20:18] Production.INFO: count ==1648 [2025-03-15 18:20:19] Production.ERROR: pbx CDR StartTime 2025-03-15 15:20:06 - End Time 2025-03-15 18:20:06 [2025-03-15 18:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 18:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687936', 'tblTempUsageDetail_20' ) start [2025-03-15 18:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687936', 'tblTempUsageDetail_20' ) end [2025-03-15 18:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687936', 'tblTempVendorCDR_20' ) start [2025-03-15 18:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687936', 'tblTempVendorCDR_20' ) end [2025-03-15 18:20:19] Production.INFO: ProcessCDR(1,14687936,1,1,2) [2025-03-15 18:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687936', 'tblTempUsageDetail_20' ) start [2025-03-15 18:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687936', 'tblTempUsageDetail_20' ) end [2025-03-15 18:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 18:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 18:20:22] Production.INFO: ==9137== Releasing lock... [2025-03-15 18:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 18:20:22] Production.INFO: 40.5 MB #Memory Used# [2025-03-15 18:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 15:21:05 [end_date_ymd] => 2025-03-15 18:21:05 [RateCDR] => 1 ) [2025-03-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-03-15 15:21:05' and `end` < '2025-03-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-03-15 18:21:17] Production.INFO: count ==1638 [2025-03-15 18:21:18] Production.ERROR: pbx CDR StartTime 2025-03-15 15:21:05 - End Time 2025-03-15 18:21:05 [2025-03-15 18:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 18:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687942', 'tblTempUsageDetail_20' ) start [2025-03-15 18:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687942', 'tblTempUsageDetail_20' ) end [2025-03-15 18:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687942', 'tblTempVendorCDR_20' ) start [2025-03-15 18:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687942', 'tblTempVendorCDR_20' ) end [2025-03-15 18:21:18] Production.INFO: ProcessCDR(1,14687942,1,1,2) [2025-03-15 18:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687942', 'tblTempUsageDetail_20' ) start [2025-03-15 18:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687942', 'tblTempUsageDetail_20' ) end [2025-03-15 18:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 18:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 18:21:21] Production.INFO: ==9250== Releasing lock... [2025-03-15 18:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 18:21:21] Production.INFO: 40.25 MB #Memory Used# [2025-03-15 18:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 15:22:05 [end_date_ymd] => 2025-03-15 18:22:05 [RateCDR] => 1 ) [2025-03-15 18:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 15:22:05' and `end` < '2025-03-15 18:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 18:22:17] Production.INFO: count ==1631 [2025-03-15 18:22:18] Production.ERROR: pbx CDR StartTime 2025-03-15 15:22:05 - End Time 2025-03-15 18:22:05 [2025-03-15 18:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 18:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687947', 'tblTempUsageDetail_20' ) start [2025-03-15 18:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687947', 'tblTempUsageDetail_20' ) end [2025-03-15 18:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687947', 'tblTempVendorCDR_20' ) start [2025-03-15 18:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687947', 'tblTempVendorCDR_20' ) end [2025-03-15 18:22:18] Production.INFO: ProcessCDR(1,14687947,1,1,2) [2025-03-15 18:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687947', 'tblTempUsageDetail_20' ) start [2025-03-15 18:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687947', 'tblTempUsageDetail_20' ) end [2025-03-15 18:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 18:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 18:22:21] Production.INFO: ==9327== Releasing lock... [2025-03-15 18:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 18:22:21] Production.INFO: 40.25 MB #Memory Used# [2025-03-15 18:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 15:23:05 [end_date_ymd] => 2025-03-15 18:23:05 [RateCDR] => 1 ) [2025-03-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-03-15 15:23:05' and `end` < '2025-03-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-03-15 18:23:17] Production.INFO: count ==1626 [2025-03-15 18:23:18] Production.ERROR: pbx CDR StartTime 2025-03-15 15:23:05 - End Time 2025-03-15 18:23:05 [2025-03-15 18:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 18:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687952', 'tblTempUsageDetail_20' ) start [2025-03-15 18:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687952', 'tblTempUsageDetail_20' ) end [2025-03-15 18:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687952', 'tblTempVendorCDR_20' ) start [2025-03-15 18:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687952', 'tblTempVendorCDR_20' ) end [2025-03-15 18:23:18] Production.INFO: ProcessCDR(1,14687952,1,1,2) [2025-03-15 18:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687952', 'tblTempUsageDetail_20' ) start [2025-03-15 18:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687952', 'tblTempUsageDetail_20' ) end [2025-03-15 18:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 18:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 18:23:21] Production.INFO: ==9479== Releasing lock... [2025-03-15 18:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 18:23:21] Production.INFO: 40.25 MB #Memory Used# [2025-03-15 18:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 15:24:05 [end_date_ymd] => 2025-03-15 18:24:05 [RateCDR] => 1 ) [2025-03-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-03-15 15:24:05' and `end` < '2025-03-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-03-15 18:24:18] Production.INFO: count ==1635 [2025-03-15 18:24:18] Production.ERROR: pbx CDR StartTime 2025-03-15 15:24:05 - End Time 2025-03-15 18:24:05 [2025-03-15 18:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 18:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687957', 'tblTempUsageDetail_20' ) start [2025-03-15 18:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687957', 'tblTempUsageDetail_20' ) end [2025-03-15 18:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687957', 'tblTempVendorCDR_20' ) start [2025-03-15 18:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687957', 'tblTempVendorCDR_20' ) end [2025-03-15 18:24:18] Production.INFO: ProcessCDR(1,14687957,1,1,2) [2025-03-15 18:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687957', 'tblTempUsageDetail_20' ) start [2025-03-15 18:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687957', 'tblTempUsageDetail_20' ) end [2025-03-15 18:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 18:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 18:24:21] Production.INFO: ==9564== Releasing lock... [2025-03-15 18:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 18:24:21] Production.INFO: 40 MB #Memory Used# [2025-03-15 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 15:25:05 [end_date_ymd] => 2025-03-15 18:25:05 [RateCDR] => 1 ) [2025-03-15 18:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 15:25:05' and `end` < '2025-03-15 18:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 18:25:17] Production.INFO: count ==1637 [2025-03-15 18:25:18] Production.ERROR: pbx CDR StartTime 2025-03-15 15:25:05 - End Time 2025-03-15 18:25:05 [2025-03-15 18:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687962', 'tblTempUsageDetail_20' ) start [2025-03-15 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687962', 'tblTempUsageDetail_20' ) end [2025-03-15 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687962', 'tblTempVendorCDR_20' ) start [2025-03-15 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687962', 'tblTempVendorCDR_20' ) end [2025-03-15 18:25:18] Production.INFO: ProcessCDR(1,14687962,1,1,2) [2025-03-15 18:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687962', 'tblTempUsageDetail_20' ) start [2025-03-15 18:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687962', 'tblTempUsageDetail_20' ) end [2025-03-15 18:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 18:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 18:25:21] Production.INFO: ==9676== Releasing lock... [2025-03-15 18:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 18:25:21] Production.INFO: 40 MB #Memory Used# [2025-03-15 18:26:19] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 15:26:19 [end_date_ymd] => 2025-03-15 18:26:19 [RateCDR] => 1 ) [2025-03-15 18:26: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-03-15 15:26:19' and `end` < '2025-03-15 18:26: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-03-15 18:26:31] Production.INFO: count ==1636 [2025-03-15 18:26:43] Production.ERROR: pbx CDR StartTime 2025-03-15 15:26:19 - End Time 2025-03-15 18:26:19 [2025-03-15 18:26:43] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 18:26:43] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687967', 'tblTempUsageDetail_20' ) start [2025-03-15 18:26:46] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687967', 'tblTempUsageDetail_20' ) end [2025-03-15 18:26:46] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687967', 'tblTempVendorCDR_20' ) start [2025-03-15 18:26:47] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687967', 'tblTempVendorCDR_20' ) end [2025-03-15 18:26:47] Production.INFO: ProcessCDR(1,14687967,1,1,2) [2025-03-15 18:26:47] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:27:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:27:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:27:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:27:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687967', 'tblTempUsageDetail_20' ) start [2025-03-15 18:27:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687967', 'tblTempUsageDetail_20' ) end [2025-03-15 18:27:38] Production.ERROR: pbx prc_insertCDR start [2025-03-15 18:27:38] Production.ERROR: pbx prc_insertCDR end [2025-03-15 18:27:38] Production.INFO: ==9765== Releasing lock... [2025-03-15 18:27:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 18:27:38] Production.INFO: 40.25 MB #Memory Used# [2025-03-15 18:28:15] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 15:28:15 [end_date_ymd] => 2025-03-15 18:28:15 [RateCDR] => 1 ) [2025-03-15 18:28: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-03-15 15:28:15' and `end` < '2025-03-15 18:28: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-03-15 18:28:27] Production.INFO: count ==1638 [2025-03-15 18:28:31] Production.ERROR: pbx CDR StartTime 2025-03-15 15:28:15 - End Time 2025-03-15 18:28:15 [2025-03-15 18:28:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 18:28:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687975', 'tblTempUsageDetail_20' ) start [2025-03-15 18:28:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687975', 'tblTempUsageDetail_20' ) end [2025-03-15 18:28:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687975', 'tblTempVendorCDR_20' ) start [2025-03-15 18:28:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687975', 'tblTempVendorCDR_20' ) end [2025-03-15 18:28:32] Production.INFO: ProcessCDR(1,14687975,1,1,2) [2025-03-15 18:28:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:28:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:28:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:28:45] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:28:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687975', 'tblTempUsageDetail_20' ) start [2025-03-15 18:28:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687975', 'tblTempUsageDetail_20' ) end [2025-03-15 18:28:45] Production.ERROR: pbx prc_insertCDR start [2025-03-15 18:28:45] Production.ERROR: pbx prc_insertCDR end [2025-03-15 18:28:47] Production.INFO: ==9943== Releasing lock... [2025-03-15 18:28:47] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 18:28:47] Production.INFO: 40 MB #Memory Used# [2025-03-15 18:29:12] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 15:29:12 [end_date_ymd] => 2025-03-15 18:29:12 [RateCDR] => 1 ) [2025-03-15 18:29:12] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 15:29:12' and `end` < '2025-03-15 18:29:12' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 18:29:24] Production.INFO: count ==1637 [2025-03-15 18:29:36] Production.ERROR: pbx CDR StartTime 2025-03-15 15:29:12 - End Time 2025-03-15 18:29:12 [2025-03-15 18:29:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 18:29:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687980', 'tblTempUsageDetail_20' ) start [2025-03-15 18:29:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687980', 'tblTempUsageDetail_20' ) end [2025-03-15 18:29:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687980', 'tblTempVendorCDR_20' ) start [2025-03-15 18:29:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687980', 'tblTempVendorCDR_20' ) end [2025-03-15 18:29:36] Production.INFO: ProcessCDR(1,14687980,1,1,2) [2025-03-15 18:29:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:29:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:29:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:29:54] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:29:54] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687980', 'tblTempUsageDetail_20' ) start [2025-03-15 18:29:56] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687980', 'tblTempUsageDetail_20' ) end [2025-03-15 18:29:56] Production.ERROR: pbx prc_insertCDR start [2025-03-15 18:29:56] Production.ERROR: pbx prc_insertCDR end [2025-03-15 18:29:59] Production.INFO: ==10046== Releasing lock... [2025-03-15 18:29:59] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 18:29:59] Production.INFO: 40 MB #Memory Used# [2025-03-15 18:30:22] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 15:30:22 [end_date_ymd] => 2025-03-15 18:30:22 [RateCDR] => 1 ) [2025-03-15 18:30:22] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 15:30:22' and `end` < '2025-03-15 18:30:22' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 18:30:34] Production.INFO: count ==1654 [2025-03-15 18:30:42] Production.ERROR: pbx CDR StartTime 2025-03-15 15:30:22 - End Time 2025-03-15 18:30:22 [2025-03-15 18:30:42] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 18:30:42] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687985', 'tblTempUsageDetail_20' ) start [2025-03-15 18:30:43] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687985', 'tblTempUsageDetail_20' ) end [2025-03-15 18:30:43] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687985', 'tblTempVendorCDR_20' ) start [2025-03-15 18:30:43] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687985', 'tblTempVendorCDR_20' ) end [2025-03-15 18:30:43] Production.INFO: ProcessCDR(1,14687985,1,1,2) [2025-03-15 18:30:43] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:30:46] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:30:46] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:31:03] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:31:03] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687985', 'tblTempUsageDetail_20' ) start [2025-03-15 18:31:06] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687985', 'tblTempUsageDetail_20' ) end [2025-03-15 18:31:06] Production.ERROR: pbx prc_insertCDR start [2025-03-15 18:31:06] Production.ERROR: pbx prc_insertCDR end [2025-03-15 18:31:09] Production.INFO: ==10133== Releasing lock... [2025-03-15 18:31:09] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 18:31:09] Production.INFO: 40.5 MB #Memory Used# [2025-03-15 18:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 15:32:05 [end_date_ymd] => 2025-03-15 18:32:05 [RateCDR] => 1 ) [2025-03-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-03-15 15:32:05' and `end` < '2025-03-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-03-15 18:32:18] Production.INFO: count ==1675 [2025-03-15 18:32:18] Production.ERROR: pbx CDR StartTime 2025-03-15 15:32:05 - End Time 2025-03-15 18:32:05 [2025-03-15 18:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 18:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687994', 'tblTempUsageDetail_20' ) start [2025-03-15 18:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687994', 'tblTempUsageDetail_20' ) end [2025-03-15 18:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687994', 'tblTempVendorCDR_20' ) start [2025-03-15 18:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687994', 'tblTempVendorCDR_20' ) end [2025-03-15 18:32:18] Production.INFO: ProcessCDR(1,14687994,1,1,2) [2025-03-15 18:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687994', 'tblTempUsageDetail_20' ) start [2025-03-15 18:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687994', 'tblTempUsageDetail_20' ) end [2025-03-15 18:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 18:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 18:32:22] Production.INFO: ==10290== Releasing lock... [2025-03-15 18:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 18:32:22] Production.INFO: 40.5 MB #Memory Used# [2025-03-15 18:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 15:33:05 [end_date_ymd] => 2025-03-15 18:33:05 [RateCDR] => 1 ) [2025-03-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-03-15 15:33:05' and `end` < '2025-03-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-03-15 18:33:18] Production.INFO: count ==1674 [2025-03-15 18:33:18] Production.ERROR: pbx CDR StartTime 2025-03-15 15:33:05 - End Time 2025-03-15 18:33:05 [2025-03-15 18:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 18:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687999', 'tblTempUsageDetail_20' ) start [2025-03-15 18:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14687999', 'tblTempUsageDetail_20' ) end [2025-03-15 18:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687999', 'tblTempVendorCDR_20' ) start [2025-03-15 18:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14687999', 'tblTempVendorCDR_20' ) end [2025-03-15 18:33:18] Production.INFO: ProcessCDR(1,14687999,1,1,2) [2025-03-15 18:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14687999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14687999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14687999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14687999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687999', 'tblTempUsageDetail_20' ) start [2025-03-15 18:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14687999', 'tblTempUsageDetail_20' ) end [2025-03-15 18:33:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 18:33:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 18:33:22] Production.INFO: ==10366== Releasing lock... [2025-03-15 18:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 18:33:22] Production.INFO: 40.25 MB #Memory Used# [2025-03-15 18:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 15:34:05 [end_date_ymd] => 2025-03-15 18:34:05 [RateCDR] => 1 ) [2025-03-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-03-15 15:34:05' and `end` < '2025-03-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-03-15 18:34:18] Production.INFO: count ==1675 [2025-03-15 18:34:18] Production.ERROR: pbx CDR StartTime 2025-03-15 15:34:05 - End Time 2025-03-15 18:34:05 [2025-03-15 18:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 18:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688004', 'tblTempUsageDetail_20' ) start [2025-03-15 18:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688004', 'tblTempUsageDetail_20' ) end [2025-03-15 18:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688004', 'tblTempVendorCDR_20' ) start [2025-03-15 18:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688004', 'tblTempVendorCDR_20' ) end [2025-03-15 18:34:18] Production.INFO: ProcessCDR(1,14688004,1,1,2) [2025-03-15 18:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688004', 'tblTempUsageDetail_20' ) start [2025-03-15 18:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688004', 'tblTempUsageDetail_20' ) end [2025-03-15 18:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 18:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 18:34:21] Production.INFO: ==10438== Releasing lock... [2025-03-15 18:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 18:34:21] Production.INFO: 40.25 MB #Memory Used# [2025-03-15 18:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 15:35:05 [end_date_ymd] => 2025-03-15 18:35:05 [RateCDR] => 1 ) [2025-03-15 18:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 15:35:05' and `end` < '2025-03-15 18:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 18:35:17] Production.INFO: count ==1675 [2025-03-15 18:35:17] Production.ERROR: pbx CDR StartTime 2025-03-15 15:35:05 - End Time 2025-03-15 18:35:05 [2025-03-15 18:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 18:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688009', 'tblTempUsageDetail_20' ) start [2025-03-15 18:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688009', 'tblTempUsageDetail_20' ) end [2025-03-15 18:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688009', 'tblTempVendorCDR_20' ) start [2025-03-15 18:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688009', 'tblTempVendorCDR_20' ) end [2025-03-15 18:35:18] Production.INFO: ProcessCDR(1,14688009,1,1,2) [2025-03-15 18:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688009', 'tblTempUsageDetail_20' ) start [2025-03-15 18:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688009', 'tblTempUsageDetail_20' ) end [2025-03-15 18:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 18:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 18:35:21] Production.INFO: ==10514== Releasing lock... [2025-03-15 18:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 18:35:21] Production.INFO: 40.25 MB #Memory Used# [2025-03-15 18:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 15:36:05 [end_date_ymd] => 2025-03-15 18:36:05 [RateCDR] => 1 ) [2025-03-15 18:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 15:36:05' and `end` < '2025-03-15 18:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 18:36:18] Production.INFO: count ==1675 [2025-03-15 18:36:18] Production.ERROR: pbx CDR StartTime 2025-03-15 15:36:05 - End Time 2025-03-15 18:36:05 [2025-03-15 18:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 18:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688014', 'tblTempUsageDetail_20' ) start [2025-03-15 18:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688014', 'tblTempUsageDetail_20' ) end [2025-03-15 18:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688014', 'tblTempVendorCDR_20' ) start [2025-03-15 18:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688014', 'tblTempVendorCDR_20' ) end [2025-03-15 18:36:18] Production.INFO: ProcessCDR(1,14688014,1,1,2) [2025-03-15 18:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688014', 'tblTempUsageDetail_20' ) start [2025-03-15 18:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688014', 'tblTempUsageDetail_20' ) end [2025-03-15 18:36:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 18:36:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 18:36:22] Production.INFO: ==10589== Releasing lock... [2025-03-15 18:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 18:36:22] Production.INFO: 40.5 MB #Memory Used# [2025-03-15 18:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 15:37:06 [end_date_ymd] => 2025-03-15 18:37:06 [RateCDR] => 1 ) [2025-03-15 18:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 15:37:06' and `end` < '2025-03-15 18:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 18:37:18] Production.INFO: count ==1681 [2025-03-15 18:37:18] Production.ERROR: pbx CDR StartTime 2025-03-15 15:37:06 - End Time 2025-03-15 18:37:06 [2025-03-15 18:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 18:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688019', 'tblTempUsageDetail_20' ) start [2025-03-15 18:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688019', 'tblTempUsageDetail_20' ) end [2025-03-15 18:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688019', 'tblTempVendorCDR_20' ) start [2025-03-15 18:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688019', 'tblTempVendorCDR_20' ) end [2025-03-15 18:37:18] Production.INFO: ProcessCDR(1,14688019,1,1,2) [2025-03-15 18:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688019', 'tblTempUsageDetail_20' ) start [2025-03-15 18:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688019', 'tblTempUsageDetail_20' ) end [2025-03-15 18:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 18:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 18:37:22] Production.INFO: ==10663== Releasing lock... [2025-03-15 18:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 18:37:22] Production.INFO: 40.75 MB #Memory Used# [2025-03-15 18:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 15:38:05 [end_date_ymd] => 2025-03-15 18:38:05 [RateCDR] => 1 ) [2025-03-15 18:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 15:38:05' and `end` < '2025-03-15 18:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 18:38:17] Production.INFO: count ==1686 [2025-03-15 18:38:18] Production.ERROR: pbx CDR StartTime 2025-03-15 15:38:05 - End Time 2025-03-15 18:38:05 [2025-03-15 18:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 18:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688024', 'tblTempUsageDetail_20' ) start [2025-03-15 18:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688024', 'tblTempUsageDetail_20' ) end [2025-03-15 18:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688024', 'tblTempVendorCDR_20' ) start [2025-03-15 18:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688024', 'tblTempVendorCDR_20' ) end [2025-03-15 18:38:18] Production.INFO: ProcessCDR(1,14688024,1,1,2) [2025-03-15 18:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688024', 'tblTempUsageDetail_20' ) start [2025-03-15 18:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688024', 'tblTempUsageDetail_20' ) end [2025-03-15 18:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 18:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 18:38:21] Production.INFO: ==10773== Releasing lock... [2025-03-15 18:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 18:38:21] Production.INFO: 40.75 MB #Memory Used# [2025-03-15 18:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 15:39:06 [end_date_ymd] => 2025-03-15 18:39:06 [RateCDR] => 1 ) [2025-03-15 18:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 15:39:06' and `end` < '2025-03-15 18:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 18:39:18] Production.INFO: count ==1686 [2025-03-15 18:39:18] Production.ERROR: pbx CDR StartTime 2025-03-15 15:39:06 - End Time 2025-03-15 18:39:06 [2025-03-15 18:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 18:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688029', 'tblTempUsageDetail_20' ) start [2025-03-15 18:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688029', 'tblTempUsageDetail_20' ) end [2025-03-15 18:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688029', 'tblTempVendorCDR_20' ) start [2025-03-15 18:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688029', 'tblTempVendorCDR_20' ) end [2025-03-15 18:39:18] Production.INFO: ProcessCDR(1,14688029,1,1,2) [2025-03-15 18:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688029', 'tblTempUsageDetail_20' ) start [2025-03-15 18:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688029', 'tblTempUsageDetail_20' ) end [2025-03-15 18:39:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 18:39:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 18:39:22] Production.INFO: ==10849== Releasing lock... [2025-03-15 18:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 18:39:22] Production.INFO: 40.75 MB #Memory Used# [2025-03-15 18:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 15:40:06 [end_date_ymd] => 2025-03-15 18:40:06 [RateCDR] => 1 ) [2025-03-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-03-15 15:40:06' and `end` < '2025-03-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-03-15 18:40:18] Production.INFO: count ==1682 [2025-03-15 18:40:19] Production.ERROR: pbx CDR StartTime 2025-03-15 15:40:06 - End Time 2025-03-15 18:40:06 [2025-03-15 18:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 18:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688035', 'tblTempUsageDetail_20' ) start [2025-03-15 18:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688035', 'tblTempUsageDetail_20' ) end [2025-03-15 18:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688035', 'tblTempVendorCDR_20' ) start [2025-03-15 18:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688035', 'tblTempVendorCDR_20' ) end [2025-03-15 18:40:19] Production.INFO: ProcessCDR(1,14688035,1,1,2) [2025-03-15 18:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688035', 'tblTempUsageDetail_20' ) start [2025-03-15 18:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688035', 'tblTempUsageDetail_20' ) end [2025-03-15 18:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 18:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 18:40:22] Production.INFO: ==10929== Releasing lock... [2025-03-15 18:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 18:40:22] Production.INFO: 40.75 MB #Memory Used# [2025-03-15 18:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 15:41:05 [end_date_ymd] => 2025-03-15 18:41:05 [RateCDR] => 1 ) [2025-03-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-03-15 15:41:05' and `end` < '2025-03-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-03-15 18:41:18] Production.INFO: count ==1711 [2025-03-15 18:41:18] Production.ERROR: pbx CDR StartTime 2025-03-15 15:41:05 - End Time 2025-03-15 18:41:05 [2025-03-15 18:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 18:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688040', 'tblTempUsageDetail_20' ) start [2025-03-15 18:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688040', 'tblTempUsageDetail_20' ) end [2025-03-15 18:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688040', 'tblTempVendorCDR_20' ) start [2025-03-15 18:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688040', 'tblTempVendorCDR_20' ) end [2025-03-15 18:41:18] Production.INFO: ProcessCDR(1,14688040,1,1,2) [2025-03-15 18:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688040', 'tblTempUsageDetail_20' ) start [2025-03-15 18:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688040', 'tblTempUsageDetail_20' ) end [2025-03-15 18:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 18:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 18:41:21] Production.INFO: ==11005== Releasing lock... [2025-03-15 18:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 18:41:21] Production.INFO: 41 MB #Memory Used# [2025-03-15 18:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 15:42:05 [end_date_ymd] => 2025-03-15 18:42:05 [RateCDR] => 1 ) [2025-03-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-03-15 15:42:05' and `end` < '2025-03-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-03-15 18:42:17] Production.INFO: count ==1717 [2025-03-15 18:42:18] Production.ERROR: pbx CDR StartTime 2025-03-15 15:42:05 - End Time 2025-03-15 18:42:05 [2025-03-15 18:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 18:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688045', 'tblTempUsageDetail_20' ) start [2025-03-15 18:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688045', 'tblTempUsageDetail_20' ) end [2025-03-15 18:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688045', 'tblTempVendorCDR_20' ) start [2025-03-15 18:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688045', 'tblTempVendorCDR_20' ) end [2025-03-15 18:42:18] Production.INFO: ProcessCDR(1,14688045,1,1,2) [2025-03-15 18:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688045', 'tblTempUsageDetail_20' ) start [2025-03-15 18:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688045', 'tblTempUsageDetail_20' ) end [2025-03-15 18:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 18:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 18:42:21] Production.INFO: ==11081== Releasing lock... [2025-03-15 18:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 18:42:21] Production.INFO: 40.75 MB #Memory Used# [2025-03-15 18:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 15:43:05 [end_date_ymd] => 2025-03-15 18:43:05 [RateCDR] => 1 ) [2025-03-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-03-15 15:43:05' and `end` < '2025-03-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-03-15 18:43:18] Production.INFO: count ==1722 [2025-03-15 18:43:18] Production.ERROR: pbx CDR StartTime 2025-03-15 15:43:05 - End Time 2025-03-15 18:43:05 [2025-03-15 18:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 18:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688050', 'tblTempUsageDetail_20' ) start [2025-03-15 18:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688050', 'tblTempUsageDetail_20' ) end [2025-03-15 18:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688050', 'tblTempVendorCDR_20' ) start [2025-03-15 18:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688050', 'tblTempVendorCDR_20' ) end [2025-03-15 18:43:18] Production.INFO: ProcessCDR(1,14688050,1,1,2) [2025-03-15 18:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688050', 'tblTempUsageDetail_20' ) start [2025-03-15 18:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688050', 'tblTempUsageDetail_20' ) end [2025-03-15 18:43:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 18:43:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 18:43:23] Production.INFO: ==11154== Releasing lock... [2025-03-15 18:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 18:43:23] Production.INFO: 41 MB #Memory Used# [2025-03-15 18:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 15:44:05 [end_date_ymd] => 2025-03-15 18:44:05 [RateCDR] => 1 ) [2025-03-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-03-15 15:44:05' and `end` < '2025-03-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-03-15 18:44:17] Production.INFO: count ==1728 [2025-03-15 18:44:17] Production.ERROR: pbx CDR StartTime 2025-03-15 15:44:05 - End Time 2025-03-15 18:44:05 [2025-03-15 18:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 18:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688055', 'tblTempUsageDetail_20' ) start [2025-03-15 18:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688055', 'tblTempUsageDetail_20' ) end [2025-03-15 18:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688055', 'tblTempVendorCDR_20' ) start [2025-03-15 18:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688055', 'tblTempVendorCDR_20' ) end [2025-03-15 18:44:17] Production.INFO: ProcessCDR(1,14688055,1,1,2) [2025-03-15 18:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688055', 'tblTempUsageDetail_20' ) start [2025-03-15 18:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688055', 'tblTempUsageDetail_20' ) end [2025-03-15 18:44:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 18:44:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 18:44:23] Production.INFO: ==11229== Releasing lock... [2025-03-15 18:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 18:44:23] Production.INFO: 40.75 MB #Memory Used# [2025-03-15 18:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 15:45:05 [end_date_ymd] => 2025-03-15 18:45:05 [RateCDR] => 1 ) [2025-03-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-03-15 15:45:05' and `end` < '2025-03-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-03-15 18:45:18] Production.INFO: count ==1732 [2025-03-15 18:45:18] Production.ERROR: pbx CDR StartTime 2025-03-15 15:45:05 - End Time 2025-03-15 18:45:05 [2025-03-15 18:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 18:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688060', 'tblTempUsageDetail_20' ) start [2025-03-15 18:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688060', 'tblTempUsageDetail_20' ) end [2025-03-15 18:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688060', 'tblTempVendorCDR_20' ) start [2025-03-15 18:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688060', 'tblTempVendorCDR_20' ) end [2025-03-15 18:45:18] Production.INFO: ProcessCDR(1,14688060,1,1,2) [2025-03-15 18:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688060', 'tblTempUsageDetail_20' ) start [2025-03-15 18:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688060', 'tblTempUsageDetail_20' ) end [2025-03-15 18:45:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 18:45:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 18:45:23] Production.INFO: ==11310== Releasing lock... [2025-03-15 18:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 18:45:23] Production.INFO: 41 MB #Memory Used# [2025-03-15 18:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 15:46:06 [end_date_ymd] => 2025-03-15 18:46:06 [RateCDR] => 1 ) [2025-03-15 18:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 15:46:06' and `end` < '2025-03-15 18:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 18:46:18] Production.INFO: count ==1736 [2025-03-15 18:46:19] Production.ERROR: pbx CDR StartTime 2025-03-15 15:46:06 - End Time 2025-03-15 18:46:06 [2025-03-15 18:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688065', 'tblTempUsageDetail_20' ) start [2025-03-15 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688065', 'tblTempUsageDetail_20' ) end [2025-03-15 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688065', 'tblTempVendorCDR_20' ) start [2025-03-15 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688065', 'tblTempVendorCDR_20' ) end [2025-03-15 18:46:19] Production.INFO: ProcessCDR(1,14688065,1,1,2) [2025-03-15 18:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688065', 'tblTempUsageDetail_20' ) start [2025-03-15 18:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688065', 'tblTempUsageDetail_20' ) end [2025-03-15 18:46:24] Production.ERROR: pbx prc_insertCDR start [2025-03-15 18:46:24] Production.ERROR: pbx prc_insertCDR end [2025-03-15 18:46:24] Production.INFO: ==11382== Releasing lock... [2025-03-15 18:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 18:46:24] Production.INFO: 41 MB #Memory Used# [2025-03-15 18:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 15:47:05 [end_date_ymd] => 2025-03-15 18:47:05 [RateCDR] => 1 ) [2025-03-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-03-15 15:47:05' and `end` < '2025-03-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-03-15 18:47:17] Production.INFO: count ==1742 [2025-03-15 18:47:18] Production.ERROR: pbx CDR StartTime 2025-03-15 15:47:05 - End Time 2025-03-15 18:47:05 [2025-03-15 18:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 18:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688070', 'tblTempUsageDetail_20' ) start [2025-03-15 18:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688070', 'tblTempUsageDetail_20' ) end [2025-03-15 18:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688070', 'tblTempVendorCDR_20' ) start [2025-03-15 18:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688070', 'tblTempVendorCDR_20' ) end [2025-03-15 18:47:18] Production.INFO: ProcessCDR(1,14688070,1,1,2) [2025-03-15 18:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688070', 'tblTempUsageDetail_20' ) start [2025-03-15 18:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688070', 'tblTempUsageDetail_20' ) end [2025-03-15 18:47:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 18:47:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 18:47:23] Production.INFO: ==11456== Releasing lock... [2025-03-15 18:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 18:47:23] Production.INFO: 41 MB #Memory Used# [2025-03-15 18:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 15:48:05 [end_date_ymd] => 2025-03-15 18:48:05 [RateCDR] => 1 ) [2025-03-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-03-15 15:48:05' and `end` < '2025-03-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-03-15 18:48:18] Production.INFO: count ==1743 [2025-03-15 18:48:18] Production.ERROR: pbx CDR StartTime 2025-03-15 15:48:05 - End Time 2025-03-15 18:48:05 [2025-03-15 18:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 18:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688075', 'tblTempUsageDetail_20' ) start [2025-03-15 18:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688075', 'tblTempUsageDetail_20' ) end [2025-03-15 18:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688075', 'tblTempVendorCDR_20' ) start [2025-03-15 18:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688075', 'tblTempVendorCDR_20' ) end [2025-03-15 18:48:18] Production.INFO: ProcessCDR(1,14688075,1,1,2) [2025-03-15 18:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688075', 'tblTempUsageDetail_20' ) start [2025-03-15 18:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688075', 'tblTempUsageDetail_20' ) end [2025-03-15 18:48:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 18:48:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 18:48:23] Production.INFO: ==11532== Releasing lock... [2025-03-15 18:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 18:48:23] Production.INFO: 41 MB #Memory Used# [2025-03-15 18:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 15:49:05 [end_date_ymd] => 2025-03-15 18:49:05 [RateCDR] => 1 ) [2025-03-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-03-15 15:49:05' and `end` < '2025-03-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-03-15 18:49:17] Production.INFO: count ==1749 [2025-03-15 18:49:18] Production.ERROR: pbx CDR StartTime 2025-03-15 15:49:05 - End Time 2025-03-15 18:49:05 [2025-03-15 18:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 18:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688080', 'tblTempUsageDetail_20' ) start [2025-03-15 18:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688080', 'tblTempUsageDetail_20' ) end [2025-03-15 18:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688080', 'tblTempVendorCDR_20' ) start [2025-03-15 18:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688080', 'tblTempVendorCDR_20' ) end [2025-03-15 18:49:18] Production.INFO: ProcessCDR(1,14688080,1,1,2) [2025-03-15 18:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688080', 'tblTempUsageDetail_20' ) start [2025-03-15 18:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688080', 'tblTempUsageDetail_20' ) end [2025-03-15 18:49:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 18:49:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 18:49:23] Production.INFO: ==11607== Releasing lock... [2025-03-15 18:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 18:49:23] Production.INFO: 41 MB #Memory Used# [2025-03-15 18:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 15:50:06 [end_date_ymd] => 2025-03-15 18:50:06 [RateCDR] => 1 ) [2025-03-15 18:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 15:50:06' and `end` < '2025-03-15 18:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 18:50:18] Production.INFO: count ==1753 [2025-03-15 18:50:19] Production.ERROR: pbx CDR StartTime 2025-03-15 15:50:06 - End Time 2025-03-15 18:50:06 [2025-03-15 18:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688086', 'tblTempUsageDetail_20' ) start [2025-03-15 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688086', 'tblTempUsageDetail_20' ) end [2025-03-15 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688086', 'tblTempVendorCDR_20' ) start [2025-03-15 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688086', 'tblTempVendorCDR_20' ) end [2025-03-15 18:50:19] Production.INFO: ProcessCDR(1,14688086,1,1,2) [2025-03-15 18:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688086', 'tblTempUsageDetail_20' ) start [2025-03-15 18:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688086', 'tblTempUsageDetail_20' ) end [2025-03-15 18:50:24] Production.ERROR: pbx prc_insertCDR start [2025-03-15 18:50:24] Production.ERROR: pbx prc_insertCDR end [2025-03-15 18:50:24] Production.INFO: ==11684== Releasing lock... [2025-03-15 18:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 18:50:24] Production.INFO: 41 MB #Memory Used# [2025-03-15 18:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 15:51:04 [end_date_ymd] => 2025-03-15 18:51:04 [RateCDR] => 1 ) [2025-03-15 18: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-03-15 15:51:04' and `end` < '2025-03-15 18: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-03-15 18:51:17] Production.INFO: count ==1766 [2025-03-15 18:51:17] Production.ERROR: pbx CDR StartTime 2025-03-15 15:51:04 - End Time 2025-03-15 18:51:04 [2025-03-15 18:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 18:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688091', 'tblTempUsageDetail_20' ) start [2025-03-15 18:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688091', 'tblTempUsageDetail_20' ) end [2025-03-15 18:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688091', 'tblTempVendorCDR_20' ) start [2025-03-15 18:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688091', 'tblTempVendorCDR_20' ) end [2025-03-15 18:51:17] Production.INFO: ProcessCDR(1,14688091,1,1,2) [2025-03-15 18:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688091', 'tblTempUsageDetail_20' ) start [2025-03-15 18:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688091', 'tblTempUsageDetail_20' ) end [2025-03-15 18:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 18:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 18:51:21] Production.INFO: ==11761== Releasing lock... [2025-03-15 18:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 18:51:21] Production.INFO: 41.5 MB #Memory Used# [2025-03-15 18:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 15:52:05 [end_date_ymd] => 2025-03-15 18:52:05 [RateCDR] => 1 ) [2025-03-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-03-15 15:52:05' and `end` < '2025-03-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-03-15 18:52:17] Production.INFO: count ==1757 [2025-03-15 18:52:18] Production.ERROR: pbx CDR StartTime 2025-03-15 15:52:05 - End Time 2025-03-15 18:52:05 [2025-03-15 18:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 18:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688096', 'tblTempUsageDetail_20' ) start [2025-03-15 18:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688096', 'tblTempUsageDetail_20' ) end [2025-03-15 18:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688096', 'tblTempVendorCDR_20' ) start [2025-03-15 18:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688096', 'tblTempVendorCDR_20' ) end [2025-03-15 18:52:18] Production.INFO: ProcessCDR(1,14688096,1,1,2) [2025-03-15 18:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688096', 'tblTempUsageDetail_20' ) start [2025-03-15 18:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688096', 'tblTempUsageDetail_20' ) end [2025-03-15 18:52:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 18:52:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 18:52:23] Production.INFO: ==11834== Releasing lock... [2025-03-15 18:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 18:52:23] Production.INFO: 41.75 MB #Memory Used# [2025-03-15 18:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 15:53:05 [end_date_ymd] => 2025-03-15 18:53:05 [RateCDR] => 1 ) [2025-03-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-03-15 15:53:05' and `end` < '2025-03-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-03-15 18:53:18] Production.INFO: count ==1750 [2025-03-15 18:53:18] Production.ERROR: pbx CDR StartTime 2025-03-15 15:53:05 - End Time 2025-03-15 18:53:05 [2025-03-15 18:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 18:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688101', 'tblTempUsageDetail_20' ) start [2025-03-15 18:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688101', 'tblTempUsageDetail_20' ) end [2025-03-15 18:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688101', 'tblTempVendorCDR_20' ) start [2025-03-15 18:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688101', 'tblTempVendorCDR_20' ) end [2025-03-15 18:53:18] Production.INFO: ProcessCDR(1,14688101,1,1,2) [2025-03-15 18:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688101', 'tblTempUsageDetail_20' ) start [2025-03-15 18:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688101', 'tblTempUsageDetail_20' ) end [2025-03-15 18:53:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 18:53:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 18:53:23] Production.INFO: ==11911== Releasing lock... [2025-03-15 18:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 18:53:23] Production.INFO: 41.25 MB #Memory Used# [2025-03-15 18:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 15:54:05 [end_date_ymd] => 2025-03-15 18:54:05 [RateCDR] => 1 ) [2025-03-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-03-15 15:54:05' and `end` < '2025-03-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-03-15 18:54:17] Production.INFO: count ==1746 [2025-03-15 18:54:18] Production.ERROR: pbx CDR StartTime 2025-03-15 15:54:05 - End Time 2025-03-15 18:54:05 [2025-03-15 18:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 18:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688106', 'tblTempUsageDetail_20' ) start [2025-03-15 18:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688106', 'tblTempUsageDetail_20' ) end [2025-03-15 18:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688106', 'tblTempVendorCDR_20' ) start [2025-03-15 18:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688106', 'tblTempVendorCDR_20' ) end [2025-03-15 18:54:18] Production.INFO: ProcessCDR(1,14688106,1,1,2) [2025-03-15 18:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688106', 'tblTempUsageDetail_20' ) start [2025-03-15 18:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688106', 'tblTempUsageDetail_20' ) end [2025-03-15 18:54:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 18:54:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 18:54:23] Production.INFO: ==12026== Releasing lock... [2025-03-15 18:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 18:54:23] Production.INFO: 41.25 MB #Memory Used# [2025-03-15 18:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 15:55:06 [end_date_ymd] => 2025-03-15 18:55:06 [RateCDR] => 1 ) [2025-03-15 18:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 15:55:06' and `end` < '2025-03-15 18:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 18:55:18] Production.INFO: count ==1740 [2025-03-15 18:55:18] Production.ERROR: pbx CDR StartTime 2025-03-15 15:55:06 - End Time 2025-03-15 18:55:06 [2025-03-15 18:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 18:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688111', 'tblTempUsageDetail_20' ) start [2025-03-15 18:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688111', 'tblTempUsageDetail_20' ) end [2025-03-15 18:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688111', 'tblTempVendorCDR_20' ) start [2025-03-15 18:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688111', 'tblTempVendorCDR_20' ) end [2025-03-15 18:55:18] Production.INFO: ProcessCDR(1,14688111,1,1,2) [2025-03-15 18:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688111', 'tblTempUsageDetail_20' ) start [2025-03-15 18:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688111', 'tblTempUsageDetail_20' ) end [2025-03-15 18:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 18:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 18:55:22] Production.INFO: ==12098== Releasing lock... [2025-03-15 18:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 18:55:22] Production.INFO: 41.25 MB #Memory Used# [2025-03-15 18:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 15:56:06 [end_date_ymd] => 2025-03-15 18:56:06 [RateCDR] => 1 ) [2025-03-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-03-15 15:56:06' and `end` < '2025-03-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-03-15 18:56:18] Production.INFO: count ==1745 [2025-03-15 18:56:19] Production.ERROR: pbx CDR StartTime 2025-03-15 15:56:06 - End Time 2025-03-15 18:56:06 [2025-03-15 18:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688116', 'tblTempUsageDetail_20' ) start [2025-03-15 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688116', 'tblTempUsageDetail_20' ) end [2025-03-15 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688116', 'tblTempVendorCDR_20' ) start [2025-03-15 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688116', 'tblTempVendorCDR_20' ) end [2025-03-15 18:56:19] Production.INFO: ProcessCDR(1,14688116,1,1,2) [2025-03-15 18:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688116', 'tblTempUsageDetail_20' ) start [2025-03-15 18:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688116', 'tblTempUsageDetail_20' ) end [2025-03-15 18:56:24] Production.ERROR: pbx prc_insertCDR start [2025-03-15 18:56:24] Production.ERROR: pbx prc_insertCDR end [2025-03-15 18:56:24] Production.INFO: ==12173== Releasing lock... [2025-03-15 18:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 18:56:24] Production.INFO: 41.25 MB #Memory Used# [2025-03-15 18:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 15:57:05 [end_date_ymd] => 2025-03-15 18:57:05 [RateCDR] => 1 ) [2025-03-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-03-15 15:57:05' and `end` < '2025-03-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-03-15 18:57:18] Production.INFO: count ==1750 [2025-03-15 18:57:18] Production.ERROR: pbx CDR StartTime 2025-03-15 15:57:05 - End Time 2025-03-15 18:57:05 [2025-03-15 18:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 18:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688121', 'tblTempUsageDetail_20' ) start [2025-03-15 18:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688121', 'tblTempUsageDetail_20' ) end [2025-03-15 18:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688121', 'tblTempVendorCDR_20' ) start [2025-03-15 18:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688121', 'tblTempVendorCDR_20' ) end [2025-03-15 18:57:18] Production.INFO: ProcessCDR(1,14688121,1,1,2) [2025-03-15 18:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688121', 'tblTempUsageDetail_20' ) start [2025-03-15 18:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688121', 'tblTempUsageDetail_20' ) end [2025-03-15 18:57:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 18:57:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 18:57:23] Production.INFO: ==12246== Releasing lock... [2025-03-15 18:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 18:57:23] Production.INFO: 41.25 MB #Memory Used# [2025-03-15 18:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 15:58:05 [end_date_ymd] => 2025-03-15 18:58:05 [RateCDR] => 1 ) [2025-03-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-03-15 15:58:05' and `end` < '2025-03-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-03-15 18:58:17] Production.INFO: count ==1750 [2025-03-15 18:58:18] Production.ERROR: pbx CDR StartTime 2025-03-15 15:58:05 - End Time 2025-03-15 18:58:05 [2025-03-15 18:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 18:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688126', 'tblTempUsageDetail_20' ) start [2025-03-15 18:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688126', 'tblTempUsageDetail_20' ) end [2025-03-15 18:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688126', 'tblTempVendorCDR_20' ) start [2025-03-15 18:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688126', 'tblTempVendorCDR_20' ) end [2025-03-15 18:58:18] Production.INFO: ProcessCDR(1,14688126,1,1,2) [2025-03-15 18:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688126', 'tblTempUsageDetail_20' ) start [2025-03-15 18:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688126', 'tblTempUsageDetail_20' ) end [2025-03-15 18:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 18:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 18:58:21] Production.INFO: ==12322== Releasing lock... [2025-03-15 18:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 18:58:21] Production.INFO: 41.25 MB #Memory Used# [2025-03-15 18:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 15:59:06 [end_date_ymd] => 2025-03-15 18:59:06 [RateCDR] => 1 ) [2025-03-15 18:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 15:59:06' and `end` < '2025-03-15 18:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 18:59:18] Production.INFO: count ==1758 [2025-03-15 18:59:18] Production.ERROR: pbx CDR StartTime 2025-03-15 15:59:06 - End Time 2025-03-15 18:59:06 [2025-03-15 18:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 18:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688131', 'tblTempUsageDetail_20' ) start [2025-03-15 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688131', 'tblTempUsageDetail_20' ) end [2025-03-15 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688131', 'tblTempVendorCDR_20' ) start [2025-03-15 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688131', 'tblTempVendorCDR_20' ) end [2025-03-15 18:59:19] Production.INFO: ProcessCDR(1,14688131,1,1,2) [2025-03-15 18:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 18:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 18:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688131', 'tblTempUsageDetail_20' ) start [2025-03-15 18:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688131', 'tblTempUsageDetail_20' ) end [2025-03-15 18:59:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 18:59:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 18:59:23] Production.INFO: ==12396== Releasing lock... [2025-03-15 18:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 18:59:23] Production.INFO: 41.5 MB #Memory Used# [2025-03-15 19:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 16:00:06 [end_date_ymd] => 2025-03-15 19:00:06 [RateCDR] => 1 ) [2025-03-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-03-15 16:00:06' and `end` < '2025-03-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-03-15 19:00:18] Production.INFO: count ==1760 [2025-03-15 19:00:19] Production.ERROR: pbx CDR StartTime 2025-03-15 16:00:06 - End Time 2025-03-15 19:00:06 [2025-03-15 19:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688137', 'tblTempUsageDetail_20' ) start [2025-03-15 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688137', 'tblTempUsageDetail_20' ) end [2025-03-15 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688137', 'tblTempVendorCDR_20' ) start [2025-03-15 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688137', 'tblTempVendorCDR_20' ) end [2025-03-15 19:00:19] Production.INFO: ProcessCDR(1,14688137,1,1,2) [2025-03-15 19:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688137', 'tblTempUsageDetail_20' ) start [2025-03-15 19:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688137', 'tblTempUsageDetail_20' ) end [2025-03-15 19:00:24] Production.ERROR: pbx prc_insertCDR start [2025-03-15 19:00:24] Production.ERROR: pbx prc_insertCDR end [2025-03-15 19:00:24] Production.INFO: ==12474== Releasing lock... [2025-03-15 19:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 19:00:24] Production.INFO: 41.25 MB #Memory Used# [2025-03-15 19:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 16:01:05 [end_date_ymd] => 2025-03-15 19:01:05 [RateCDR] => 1 ) [2025-03-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-03-15 16:01:05' and `end` < '2025-03-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-03-15 19:01:18] Production.INFO: count ==1745 [2025-03-15 19:01:18] Production.ERROR: pbx CDR StartTime 2025-03-15 16:01:05 - End Time 2025-03-15 19:01:05 [2025-03-15 19:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 19:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688142', 'tblTempUsageDetail_20' ) start [2025-03-15 19:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688142', 'tblTempUsageDetail_20' ) end [2025-03-15 19:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688142', 'tblTempVendorCDR_20' ) start [2025-03-15 19:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688142', 'tblTempVendorCDR_20' ) end [2025-03-15 19:01:18] Production.INFO: ProcessCDR(1,14688142,1,1,2) [2025-03-15 19:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688142', 'tblTempUsageDetail_20' ) start [2025-03-15 19:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688142', 'tblTempUsageDetail_20' ) end [2025-03-15 19:01:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 19:01:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 19:01:23] Production.INFO: ==12637== Releasing lock... [2025-03-15 19:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 19:01:23] Production.INFO: 41.25 MB #Memory Used# [2025-03-15 19:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 16:02:05 [end_date_ymd] => 2025-03-15 19:02:05 [RateCDR] => 1 ) [2025-03-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-03-15 16:02:05' and `end` < '2025-03-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-03-15 19:02:17] Production.INFO: count ==1748 [2025-03-15 19:02:18] Production.ERROR: pbx CDR StartTime 2025-03-15 16:02:05 - End Time 2025-03-15 19:02:05 [2025-03-15 19:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 19:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688147', 'tblTempUsageDetail_20' ) start [2025-03-15 19:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688147', 'tblTempUsageDetail_20' ) end [2025-03-15 19:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688147', 'tblTempVendorCDR_20' ) start [2025-03-15 19:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688147', 'tblTempVendorCDR_20' ) end [2025-03-15 19:02:18] Production.INFO: ProcessCDR(1,14688147,1,1,2) [2025-03-15 19:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688147', 'tblTempUsageDetail_20' ) start [2025-03-15 19:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688147', 'tblTempUsageDetail_20' ) end [2025-03-15 19:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 19:02:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 19:02:23] Production.INFO: ==12711== Releasing lock... [2025-03-15 19:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 19:02:23] Production.INFO: 41.25 MB #Memory Used# [2025-03-15 19:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 16:03:05 [end_date_ymd] => 2025-03-15 19:03:05 [RateCDR] => 1 ) [2025-03-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-03-15 16:03:05' and `end` < '2025-03-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-03-15 19:03:18] Production.INFO: count ==1753 [2025-03-15 19:03:18] Production.ERROR: pbx CDR StartTime 2025-03-15 16:03:05 - End Time 2025-03-15 19:03:05 [2025-03-15 19:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 19:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688152', 'tblTempUsageDetail_20' ) start [2025-03-15 19:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688152', 'tblTempUsageDetail_20' ) end [2025-03-15 19:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688152', 'tblTempVendorCDR_20' ) start [2025-03-15 19:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688152', 'tblTempVendorCDR_20' ) end [2025-03-15 19:03:18] Production.INFO: ProcessCDR(1,14688152,1,1,2) [2025-03-15 19:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688152', 'tblTempUsageDetail_20' ) start [2025-03-15 19:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688152', 'tblTempUsageDetail_20' ) end [2025-03-15 19:03:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 19:03:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 19:03:23] Production.INFO: ==12786== Releasing lock... [2025-03-15 19:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 19:03:23] Production.INFO: 41.5 MB #Memory Used# [2025-03-15 19:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 16:04:05 [end_date_ymd] => 2025-03-15 19:04:05 [RateCDR] => 1 ) [2025-03-15 19:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 16:04:05' and `end` < '2025-03-15 19:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 19:04:17] Production.INFO: count ==1755 [2025-03-15 19:04:18] Production.ERROR: pbx CDR StartTime 2025-03-15 16:04:05 - End Time 2025-03-15 19:04:05 [2025-03-15 19:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 19:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688157', 'tblTempUsageDetail_20' ) start [2025-03-15 19:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688157', 'tblTempUsageDetail_20' ) end [2025-03-15 19:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688157', 'tblTempVendorCDR_20' ) start [2025-03-15 19:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688157', 'tblTempVendorCDR_20' ) end [2025-03-15 19:04:18] Production.INFO: ProcessCDR(1,14688157,1,1,2) [2025-03-15 19:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688157', 'tblTempUsageDetail_20' ) start [2025-03-15 19:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688157', 'tblTempUsageDetail_20' ) end [2025-03-15 19:04:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 19:04:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 19:04:23] Production.INFO: ==12864== Releasing lock... [2025-03-15 19:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 19:04:23] Production.INFO: 41.25 MB #Memory Used# [2025-03-15 19:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 16:05:05 [end_date_ymd] => 2025-03-15 19:05:05 [RateCDR] => 1 ) [2025-03-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-03-15 16:05:05' and `end` < '2025-03-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-03-15 19:05:18] Production.INFO: count ==1763 [2025-03-15 19:05:18] Production.ERROR: pbx CDR StartTime 2025-03-15 16:05:05 - End Time 2025-03-15 19:05:05 [2025-03-15 19:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 19:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688162', 'tblTempUsageDetail_20' ) start [2025-03-15 19:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688162', 'tblTempUsageDetail_20' ) end [2025-03-15 19:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688162', 'tblTempVendorCDR_20' ) start [2025-03-15 19:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688162', 'tblTempVendorCDR_20' ) end [2025-03-15 19:05:18] Production.INFO: ProcessCDR(1,14688162,1,1,2) [2025-03-15 19:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688162', 'tblTempUsageDetail_20' ) start [2025-03-15 19:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688162', 'tblTempUsageDetail_20' ) end [2025-03-15 19:05:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 19:05:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 19:05:23] Production.INFO: ==13015== Releasing lock... [2025-03-15 19:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 19:05:23] Production.INFO: 41.25 MB #Memory Used# [2025-03-15 19:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 16:06:05 [end_date_ymd] => 2025-03-15 19:06:05 [RateCDR] => 1 ) [2025-03-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-03-15 16:06:05' and `end` < '2025-03-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-03-15 19:06:18] Production.INFO: count ==1761 [2025-03-15 19:06:18] Production.ERROR: pbx CDR StartTime 2025-03-15 16:06:05 - End Time 2025-03-15 19:06:05 [2025-03-15 19:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 19:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688167', 'tblTempUsageDetail_20' ) start [2025-03-15 19:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688167', 'tblTempUsageDetail_20' ) end [2025-03-15 19:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688167', 'tblTempVendorCDR_20' ) start [2025-03-15 19:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688167', 'tblTempVendorCDR_20' ) end [2025-03-15 19:06:18] Production.INFO: ProcessCDR(1,14688167,1,1,2) [2025-03-15 19:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688167', 'tblTempUsageDetail_20' ) start [2025-03-15 19:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688167', 'tblTempUsageDetail_20' ) end [2025-03-15 19:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 19:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 19:06:22] Production.INFO: ==13093== Releasing lock... [2025-03-15 19:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 19:06:22] Production.INFO: 41.5 MB #Memory Used# [2025-03-15 19:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 16:07:05 [end_date_ymd] => 2025-03-15 19:07:05 [RateCDR] => 1 ) [2025-03-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-03-15 16:07:05' and `end` < '2025-03-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-03-15 19:07:18] Production.INFO: count ==1762 [2025-03-15 19:07:18] Production.ERROR: pbx CDR StartTime 2025-03-15 16:07:05 - End Time 2025-03-15 19:07:05 [2025-03-15 19:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 19:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688172', 'tblTempUsageDetail_20' ) start [2025-03-15 19:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688172', 'tblTempUsageDetail_20' ) end [2025-03-15 19:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688172', 'tblTempVendorCDR_20' ) start [2025-03-15 19:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688172', 'tblTempVendorCDR_20' ) end [2025-03-15 19:07:18] Production.INFO: ProcessCDR(1,14688172,1,1,2) [2025-03-15 19:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688172', 'tblTempUsageDetail_20' ) start [2025-03-15 19:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688172', 'tblTempUsageDetail_20' ) end [2025-03-15 19:07:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 19:07:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 19:07:23] Production.INFO: ==13177== Releasing lock... [2025-03-15 19:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 19:07:23] Production.INFO: 41 MB #Memory Used# [2025-03-15 19:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 16:08:05 [end_date_ymd] => 2025-03-15 19:08:05 [RateCDR] => 1 ) [2025-03-15 19:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 16:08:05' and `end` < '2025-03-15 19:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 19:08:17] Production.INFO: count ==1757 [2025-03-15 19:08:17] Production.ERROR: pbx CDR StartTime 2025-03-15 16:08:05 - End Time 2025-03-15 19:08:05 [2025-03-15 19:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 19:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688177', 'tblTempUsageDetail_20' ) start [2025-03-15 19:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688177', 'tblTempUsageDetail_20' ) end [2025-03-15 19:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688177', 'tblTempVendorCDR_20' ) start [2025-03-15 19:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688177', 'tblTempVendorCDR_20' ) end [2025-03-15 19:08:17] Production.INFO: ProcessCDR(1,14688177,1,1,2) [2025-03-15 19:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688177', 'tblTempUsageDetail_20' ) start [2025-03-15 19:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688177', 'tblTempUsageDetail_20' ) end [2025-03-15 19:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 19:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 19:08:21] Production.INFO: ==13329== Releasing lock... [2025-03-15 19:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 19:08:21] Production.INFO: 41 MB #Memory Used# [2025-03-15 19:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 16:09:06 [end_date_ymd] => 2025-03-15 19:09:06 [RateCDR] => 1 ) [2025-03-15 19:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 16:09:06' and `end` < '2025-03-15 19:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 19:09:18] Production.INFO: count ==1756 [2025-03-15 19:09:18] Production.ERROR: pbx CDR StartTime 2025-03-15 16:09:06 - End Time 2025-03-15 19:09:06 [2025-03-15 19:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 19:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688182', 'tblTempUsageDetail_20' ) start [2025-03-15 19:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688182', 'tblTempUsageDetail_20' ) end [2025-03-15 19:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688182', 'tblTempVendorCDR_20' ) start [2025-03-15 19:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688182', 'tblTempVendorCDR_20' ) end [2025-03-15 19:09:18] Production.INFO: ProcessCDR(1,14688182,1,1,2) [2025-03-15 19:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688182', 'tblTempUsageDetail_20' ) start [2025-03-15 19:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688182', 'tblTempUsageDetail_20' ) end [2025-03-15 19:09:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 19:09:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 19:09:22] Production.INFO: ==13441== Releasing lock... [2025-03-15 19:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 19:09:22] Production.INFO: 41.25 MB #Memory Used# [2025-03-15 19:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 16:10:05 [end_date_ymd] => 2025-03-15 19:10:05 [RateCDR] => 1 ) [2025-03-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-03-15 16:10:05' and `end` < '2025-03-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-03-15 19:10:18] Production.INFO: count ==1765 [2025-03-15 19:10:18] Production.ERROR: pbx CDR StartTime 2025-03-15 16:10:05 - End Time 2025-03-15 19:10:05 [2025-03-15 19:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 19:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688188', 'tblTempUsageDetail_20' ) start [2025-03-15 19:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688188', 'tblTempUsageDetail_20' ) end [2025-03-15 19:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688188', 'tblTempVendorCDR_20' ) start [2025-03-15 19:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688188', 'tblTempVendorCDR_20' ) end [2025-03-15 19:10:18] Production.INFO: ProcessCDR(1,14688188,1,1,2) [2025-03-15 19:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688188', 'tblTempUsageDetail_20' ) start [2025-03-15 19:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688188', 'tblTempUsageDetail_20' ) end [2025-03-15 19:10:24] Production.ERROR: pbx prc_insertCDR start [2025-03-15 19:10:24] Production.ERROR: pbx prc_insertCDR end [2025-03-15 19:10:24] Production.INFO: ==13514== Releasing lock... [2025-03-15 19:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 19:10:24] Production.INFO: 41 MB #Memory Used# [2025-03-15 19:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 16:11:05 [end_date_ymd] => 2025-03-15 19:11:05 [RateCDR] => 1 ) [2025-03-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-03-15 16:11:05' and `end` < '2025-03-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-03-15 19:11:17] Production.INFO: count ==1751 [2025-03-15 19:11:18] Production.ERROR: pbx CDR StartTime 2025-03-15 16:11:05 - End Time 2025-03-15 19:11:05 [2025-03-15 19:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 19:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688193', 'tblTempUsageDetail_20' ) start [2025-03-15 19:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688193', 'tblTempUsageDetail_20' ) end [2025-03-15 19:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688193', 'tblTempVendorCDR_20' ) start [2025-03-15 19:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688193', 'tblTempVendorCDR_20' ) end [2025-03-15 19:11:18] Production.INFO: ProcessCDR(1,14688193,1,1,2) [2025-03-15 19:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688193', 'tblTempUsageDetail_20' ) start [2025-03-15 19:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688193', 'tblTempUsageDetail_20' ) end [2025-03-15 19:11:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 19:11:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 19:11:23] Production.INFO: ==13594== Releasing lock... [2025-03-15 19:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 19:11:23] Production.INFO: 41 MB #Memory Used# [2025-03-15 19:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 16:12:06 [end_date_ymd] => 2025-03-15 19:12:06 [RateCDR] => 1 ) [2025-03-15 19:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 16:12:06' and `end` < '2025-03-15 19:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 19:12:18] Production.INFO: count ==1761 [2025-03-15 19:12:19] Production.ERROR: pbx CDR StartTime 2025-03-15 16:12:06 - End Time 2025-03-15 19:12:06 [2025-03-15 19:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688198', 'tblTempUsageDetail_20' ) start [2025-03-15 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688198', 'tblTempUsageDetail_20' ) end [2025-03-15 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688198', 'tblTempVendorCDR_20' ) start [2025-03-15 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688198', 'tblTempVendorCDR_20' ) end [2025-03-15 19:12:19] Production.INFO: ProcessCDR(1,14688198,1,1,2) [2025-03-15 19:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688198', 'tblTempUsageDetail_20' ) start [2025-03-15 19:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688198', 'tblTempUsageDetail_20' ) end [2025-03-15 19:12:24] Production.ERROR: pbx prc_insertCDR start [2025-03-15 19:12:24] Production.ERROR: pbx prc_insertCDR end [2025-03-15 19:12:24] Production.INFO: ==13748== Releasing lock... [2025-03-15 19:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 19:12:24] Production.INFO: 41.5 MB #Memory Used# [2025-03-15 19:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 16:13:05 [end_date_ymd] => 2025-03-15 19:13:05 [RateCDR] => 1 ) [2025-03-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-03-15 16:13:05' and `end` < '2025-03-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-03-15 19:13:18] Production.INFO: count ==1761 [2025-03-15 19:13:18] Production.ERROR: pbx CDR StartTime 2025-03-15 16:13:05 - End Time 2025-03-15 19:13:05 [2025-03-15 19:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 19:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688203', 'tblTempUsageDetail_20' ) start [2025-03-15 19:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688203', 'tblTempUsageDetail_20' ) end [2025-03-15 19:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688203', 'tblTempVendorCDR_20' ) start [2025-03-15 19:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688203', 'tblTempVendorCDR_20' ) end [2025-03-15 19:13:18] Production.INFO: ProcessCDR(1,14688203,1,1,2) [2025-03-15 19:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688203', 'tblTempUsageDetail_20' ) start [2025-03-15 19:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688203', 'tblTempUsageDetail_20' ) end [2025-03-15 19:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 19:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 19:13:21] Production.INFO: ==13824== Releasing lock... [2025-03-15 19:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 19:13:21] Production.INFO: 41.5 MB #Memory Used# [2025-03-15 19:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 16:14:05 [end_date_ymd] => 2025-03-15 19:14:05 [RateCDR] => 1 ) [2025-03-15 19:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 16:14:05' and `end` < '2025-03-15 19:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 19:14:17] Production.INFO: count ==1757 [2025-03-15 19:14:18] Production.ERROR: pbx CDR StartTime 2025-03-15 16:14:05 - End Time 2025-03-15 19:14:05 [2025-03-15 19:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 19:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688208', 'tblTempUsageDetail_20' ) start [2025-03-15 19:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688208', 'tblTempUsageDetail_20' ) end [2025-03-15 19:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688208', 'tblTempVendorCDR_20' ) start [2025-03-15 19:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688208', 'tblTempVendorCDR_20' ) end [2025-03-15 19:14:18] Production.INFO: ProcessCDR(1,14688208,1,1,2) [2025-03-15 19:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688208', 'tblTempUsageDetail_20' ) start [2025-03-15 19:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688208', 'tblTempUsageDetail_20' ) end [2025-03-15 19:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 19:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 19:14:21] Production.INFO: ==13903== Releasing lock... [2025-03-15 19:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 19:14:21] Production.INFO: 41 MB #Memory Used# [2025-03-15 19:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 16:15:05 [end_date_ymd] => 2025-03-15 19:15:05 [RateCDR] => 1 ) [2025-03-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-03-15 16:15:05' and `end` < '2025-03-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-03-15 19:15:18] Production.INFO: count ==1761 [2025-03-15 19:15:18] Production.ERROR: pbx CDR StartTime 2025-03-15 16:15:05 - End Time 2025-03-15 19:15:05 [2025-03-15 19:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 19:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688213', 'tblTempUsageDetail_20' ) start [2025-03-15 19:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688213', 'tblTempUsageDetail_20' ) end [2025-03-15 19:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688213', 'tblTempVendorCDR_20' ) start [2025-03-15 19:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688213', 'tblTempVendorCDR_20' ) end [2025-03-15 19:15:18] Production.INFO: ProcessCDR(1,14688213,1,1,2) [2025-03-15 19:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688213', 'tblTempUsageDetail_20' ) start [2025-03-15 19:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688213', 'tblTempUsageDetail_20' ) end [2025-03-15 19:15:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 19:15:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 19:15:22] Production.INFO: ==14054== Releasing lock... [2025-03-15 19:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 19:15:22] Production.INFO: 41.25 MB #Memory Used# [2025-03-15 19:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 16:16:05 [end_date_ymd] => 2025-03-15 19:16:05 [RateCDR] => 1 ) [2025-03-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-03-15 16:16:05' and `end` < '2025-03-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-03-15 19:16:17] Production.INFO: count ==1765 [2025-03-15 19:16:18] Production.ERROR: pbx CDR StartTime 2025-03-15 16:16:05 - End Time 2025-03-15 19:16:05 [2025-03-15 19:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 19:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688218', 'tblTempUsageDetail_20' ) start [2025-03-15 19:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688218', 'tblTempUsageDetail_20' ) end [2025-03-15 19:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688218', 'tblTempVendorCDR_20' ) start [2025-03-15 19:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688218', 'tblTempVendorCDR_20' ) end [2025-03-15 19:16:18] Production.INFO: ProcessCDR(1,14688218,1,1,2) [2025-03-15 19:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688218', 'tblTempUsageDetail_20' ) start [2025-03-15 19:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688218', 'tblTempUsageDetail_20' ) end [2025-03-15 19:16:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 19:16:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 19:16:23] Production.INFO: ==14135== Releasing lock... [2025-03-15 19:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 19:16:23] Production.INFO: 41.25 MB #Memory Used# [2025-03-15 19:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 16:17:05 [end_date_ymd] => 2025-03-15 19:17:05 [RateCDR] => 1 ) [2025-03-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-03-15 16:17:05' and `end` < '2025-03-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-03-15 19:17:17] Production.INFO: count ==1770 [2025-03-15 19:17:18] Production.ERROR: pbx CDR StartTime 2025-03-15 16:17:05 - End Time 2025-03-15 19:17:05 [2025-03-15 19:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 19:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688223', 'tblTempUsageDetail_20' ) start [2025-03-15 19:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688223', 'tblTempUsageDetail_20' ) end [2025-03-15 19:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688223', 'tblTempVendorCDR_20' ) start [2025-03-15 19:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688223', 'tblTempVendorCDR_20' ) end [2025-03-15 19:17:18] Production.INFO: ProcessCDR(1,14688223,1,1,2) [2025-03-15 19:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688223', 'tblTempUsageDetail_20' ) start [2025-03-15 19:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688223', 'tblTempUsageDetail_20' ) end [2025-03-15 19:17:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 19:17:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 19:17:23] Production.INFO: ==14210== Releasing lock... [2025-03-15 19:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 19:17:23] Production.INFO: 41.5 MB #Memory Used# [2025-03-15 19:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 16:18:05 [end_date_ymd] => 2025-03-15 19:18:05 [RateCDR] => 1 ) [2025-03-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-03-15 16:18:05' and `end` < '2025-03-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-03-15 19:18:17] Production.INFO: count ==1775 [2025-03-15 19:18:18] Production.ERROR: pbx CDR StartTime 2025-03-15 16:18:05 - End Time 2025-03-15 19:18:05 [2025-03-15 19:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 19:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688228', 'tblTempUsageDetail_20' ) start [2025-03-15 19:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688228', 'tblTempUsageDetail_20' ) end [2025-03-15 19:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688228', 'tblTempVendorCDR_20' ) start [2025-03-15 19:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688228', 'tblTempVendorCDR_20' ) end [2025-03-15 19:18:18] Production.INFO: ProcessCDR(1,14688228,1,1,2) [2025-03-15 19:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688228', 'tblTempUsageDetail_20' ) start [2025-03-15 19:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688228', 'tblTempUsageDetail_20' ) end [2025-03-15 19:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 19:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 19:18:21] Production.INFO: ==14288== Releasing lock... [2025-03-15 19:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 19:18:21] Production.INFO: 41 MB #Memory Used# [2025-03-15 19:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 16:19:05 [end_date_ymd] => 2025-03-15 19:19:05 [RateCDR] => 1 ) [2025-03-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-03-15 16:19:05' and `end` < '2025-03-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-03-15 19:19:17] Production.INFO: count ==1764 [2025-03-15 19:19:18] Production.ERROR: pbx CDR StartTime 2025-03-15 16:19:05 - End Time 2025-03-15 19:19:05 [2025-03-15 19:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 19:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688233', 'tblTempUsageDetail_20' ) start [2025-03-15 19:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688233', 'tblTempUsageDetail_20' ) end [2025-03-15 19:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688233', 'tblTempVendorCDR_20' ) start [2025-03-15 19:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688233', 'tblTempVendorCDR_20' ) end [2025-03-15 19:19:18] Production.INFO: ProcessCDR(1,14688233,1,1,2) [2025-03-15 19:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688233', 'tblTempUsageDetail_20' ) start [2025-03-15 19:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688233', 'tblTempUsageDetail_20' ) end [2025-03-15 19:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 19:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 19:19:21] Production.INFO: ==14364== Releasing lock... [2025-03-15 19:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 19:19:21] Production.INFO: 41.25 MB #Memory Used# [2025-03-15 19:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 16:20:06 [end_date_ymd] => 2025-03-15 19:20:06 [RateCDR] => 1 ) [2025-03-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-03-15 16:20:06' and `end` < '2025-03-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-03-15 19:20:19] Production.INFO: count ==1762 [2025-03-15 19:20:19] Production.ERROR: pbx CDR StartTime 2025-03-15 16:20:06 - End Time 2025-03-15 19:20:06 [2025-03-15 19:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688238', 'tblTempUsageDetail_20' ) start [2025-03-15 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688238', 'tblTempUsageDetail_20' ) end [2025-03-15 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688238', 'tblTempVendorCDR_20' ) start [2025-03-15 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688238', 'tblTempVendorCDR_20' ) end [2025-03-15 19:20:19] Production.INFO: ProcessCDR(1,14688238,1,1,2) [2025-03-15 19:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688238', 'tblTempUsageDetail_20' ) start [2025-03-15 19:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688238', 'tblTempUsageDetail_20' ) end [2025-03-15 19:20:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 19:20:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 19:20:23] Production.INFO: ==14444== Releasing lock... [2025-03-15 19:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 19:20:23] Production.INFO: 41.25 MB #Memory Used# [2025-03-15 19:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 16:21:05 [end_date_ymd] => 2025-03-15 19:21:05 [RateCDR] => 1 ) [2025-03-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-03-15 16:21:05' and `end` < '2025-03-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-03-15 19:21:17] Production.INFO: count ==1743 [2025-03-15 19:21:18] Production.ERROR: pbx CDR StartTime 2025-03-15 16:21:05 - End Time 2025-03-15 19:21:05 [2025-03-15 19:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 19:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688244', 'tblTempUsageDetail_20' ) start [2025-03-15 19:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688244', 'tblTempUsageDetail_20' ) end [2025-03-15 19:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688244', 'tblTempVendorCDR_20' ) start [2025-03-15 19:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688244', 'tblTempVendorCDR_20' ) end [2025-03-15 19:21:18] Production.INFO: ProcessCDR(1,14688244,1,1,2) [2025-03-15 19:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688244', 'tblTempUsageDetail_20' ) start [2025-03-15 19:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688244', 'tblTempUsageDetail_20' ) end [2025-03-15 19:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 19:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 19:21:21] Production.INFO: ==14537== Releasing lock... [2025-03-15 19:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 19:21:21] Production.INFO: 41.25 MB #Memory Used# [2025-03-15 19:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 16:22:06 [end_date_ymd] => 2025-03-15 19:22:06 [RateCDR] => 1 ) [2025-03-15 19:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 16:22:06' and `end` < '2025-03-15 19:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 19:22:18] Production.INFO: count ==1739 [2025-03-15 19:22:19] Production.ERROR: pbx CDR StartTime 2025-03-15 16:22:06 - End Time 2025-03-15 19:22:06 [2025-03-15 19:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688249', 'tblTempUsageDetail_20' ) start [2025-03-15 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688249', 'tblTempUsageDetail_20' ) end [2025-03-15 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688249', 'tblTempVendorCDR_20' ) start [2025-03-15 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688249', 'tblTempVendorCDR_20' ) end [2025-03-15 19:22:19] Production.INFO: ProcessCDR(1,14688249,1,1,2) [2025-03-15 19:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688249', 'tblTempUsageDetail_20' ) start [2025-03-15 19:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688249', 'tblTempUsageDetail_20' ) end [2025-03-15 19:22:24] Production.ERROR: pbx prc_insertCDR start [2025-03-15 19:22:24] Production.ERROR: pbx prc_insertCDR end [2025-03-15 19:22:24] Production.INFO: ==14615== Releasing lock... [2025-03-15 19:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 19:22:24] Production.INFO: 41 MB #Memory Used# [2025-03-15 19:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 16:23:05 [end_date_ymd] => 2025-03-15 19:23:05 [RateCDR] => 1 ) [2025-03-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-03-15 16:23:05' and `end` < '2025-03-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-03-15 19:23:17] Production.INFO: count ==1729 [2025-03-15 19:23:18] Production.ERROR: pbx CDR StartTime 2025-03-15 16:23:05 - End Time 2025-03-15 19:23:05 [2025-03-15 19:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 19:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688254', 'tblTempUsageDetail_20' ) start [2025-03-15 19:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688254', 'tblTempUsageDetail_20' ) end [2025-03-15 19:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688254', 'tblTempVendorCDR_20' ) start [2025-03-15 19:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688254', 'tblTempVendorCDR_20' ) end [2025-03-15 19:23:18] Production.INFO: ProcessCDR(1,14688254,1,1,2) [2025-03-15 19:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688254', 'tblTempUsageDetail_20' ) start [2025-03-15 19:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688254', 'tblTempUsageDetail_20' ) end [2025-03-15 19:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 19:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 19:23:21] Production.INFO: ==14696== Releasing lock... [2025-03-15 19:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 19:23:21] Production.INFO: 41 MB #Memory Used# [2025-03-15 19:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 16:24:06 [end_date_ymd] => 2025-03-15 19:24:06 [RateCDR] => 1 ) [2025-03-15 19:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 16:24:06' and `end` < '2025-03-15 19:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 19:24:18] Production.INFO: count ==1736 [2025-03-15 19:24:19] Production.ERROR: pbx CDR StartTime 2025-03-15 16:24:06 - End Time 2025-03-15 19:24:06 [2025-03-15 19:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688259', 'tblTempUsageDetail_20' ) start [2025-03-15 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688259', 'tblTempUsageDetail_20' ) end [2025-03-15 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688259', 'tblTempVendorCDR_20' ) start [2025-03-15 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688259', 'tblTempVendorCDR_20' ) end [2025-03-15 19:24:19] Production.INFO: ProcessCDR(1,14688259,1,1,2) [2025-03-15 19:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688259', 'tblTempUsageDetail_20' ) start [2025-03-15 19:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688259', 'tblTempUsageDetail_20' ) end [2025-03-15 19:24:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 19:24:24] Production.ERROR: pbx prc_insertCDR end [2025-03-15 19:24:24] Production.INFO: ==14780== Releasing lock... [2025-03-15 19:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 19:24:24] Production.INFO: 41 MB #Memory Used# [2025-03-15 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 16:25:05 [end_date_ymd] => 2025-03-15 19:25:05 [RateCDR] => 1 ) [2025-03-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-03-15 16:25:05' and `end` < '2025-03-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-03-15 19:25:18] Production.INFO: count ==1731 [2025-03-15 19:25:18] Production.ERROR: pbx CDR StartTime 2025-03-15 16:25:05 - End Time 2025-03-15 19:25:05 [2025-03-15 19:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688264', 'tblTempUsageDetail_20' ) start [2025-03-15 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688264', 'tblTempUsageDetail_20' ) end [2025-03-15 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688264', 'tblTempVendorCDR_20' ) start [2025-03-15 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688264', 'tblTempVendorCDR_20' ) end [2025-03-15 19:25:18] Production.INFO: ProcessCDR(1,14688264,1,1,2) [2025-03-15 19:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688264', 'tblTempUsageDetail_20' ) start [2025-03-15 19:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688264', 'tblTempUsageDetail_20' ) end [2025-03-15 19:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 19:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 19:25:21] Production.INFO: ==14898== Releasing lock... [2025-03-15 19:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 19:25:21] Production.INFO: 41 MB #Memory Used# [2025-03-15 19:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 16:26:05 [end_date_ymd] => 2025-03-15 19:26:05 [RateCDR] => 1 ) [2025-03-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-03-15 16:26:05' and `end` < '2025-03-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-03-15 19:26:18] Production.INFO: count ==1738 [2025-03-15 19:26:18] Production.ERROR: pbx CDR StartTime 2025-03-15 16:26:05 - End Time 2025-03-15 19:26:05 [2025-03-15 19:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 19:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688269', 'tblTempUsageDetail_20' ) start [2025-03-15 19:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688269', 'tblTempUsageDetail_20' ) end [2025-03-15 19:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688269', 'tblTempVendorCDR_20' ) start [2025-03-15 19:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688269', 'tblTempVendorCDR_20' ) end [2025-03-15 19:26:18] Production.INFO: ProcessCDR(1,14688269,1,1,2) [2025-03-15 19:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688269', 'tblTempUsageDetail_20' ) start [2025-03-15 19:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688269', 'tblTempUsageDetail_20' ) end [2025-03-15 19:26:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 19:26:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 19:26:23] Production.INFO: ==14977== Releasing lock... [2025-03-15 19:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 19:26:23] Production.INFO: 41.25 MB #Memory Used# [2025-03-15 19:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 16:27:05 [end_date_ymd] => 2025-03-15 19:27:05 [RateCDR] => 1 ) [2025-03-15 19:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 16:27:05' and `end` < '2025-03-15 19:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 19:27:17] Production.INFO: count ==1741 [2025-03-15 19:27:18] Production.ERROR: pbx CDR StartTime 2025-03-15 16:27:05 - End Time 2025-03-15 19:27:05 [2025-03-15 19:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 19:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688274', 'tblTempUsageDetail_20' ) start [2025-03-15 19:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688274', 'tblTempUsageDetail_20' ) end [2025-03-15 19:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688274', 'tblTempVendorCDR_20' ) start [2025-03-15 19:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688274', 'tblTempVendorCDR_20' ) end [2025-03-15 19:27:18] Production.INFO: ProcessCDR(1,14688274,1,1,2) [2025-03-15 19:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688274', 'tblTempUsageDetail_20' ) start [2025-03-15 19:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688274', 'tblTempUsageDetail_20' ) end [2025-03-15 19:27:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 19:27:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 19:27:22] Production.INFO: ==15060== Releasing lock... [2025-03-15 19:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 19:27:22] Production.INFO: 40.75 MB #Memory Used# [2025-03-15 19:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 16:28:05 [end_date_ymd] => 2025-03-15 19:28:05 [RateCDR] => 1 ) [2025-03-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-03-15 16:28:05' and `end` < '2025-03-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-03-15 19:28:18] Production.INFO: count ==1728 [2025-03-15 19:28:18] Production.ERROR: pbx CDR StartTime 2025-03-15 16:28:05 - End Time 2025-03-15 19:28:05 [2025-03-15 19:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688279', 'tblTempUsageDetail_20' ) start [2025-03-15 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688279', 'tblTempUsageDetail_20' ) end [2025-03-15 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688279', 'tblTempVendorCDR_20' ) start [2025-03-15 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688279', 'tblTempVendorCDR_20' ) end [2025-03-15 19:28:18] Production.INFO: ProcessCDR(1,14688279,1,1,2) [2025-03-15 19:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688279', 'tblTempUsageDetail_20' ) start [2025-03-15 19:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688279', 'tblTempUsageDetail_20' ) end [2025-03-15 19:28:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 19:28:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 19:28:22] Production.INFO: ==15143== Releasing lock... [2025-03-15 19:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 19:28:22] Production.INFO: 41 MB #Memory Used# [2025-03-15 19:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 16:29:05 [end_date_ymd] => 2025-03-15 19:29:05 [RateCDR] => 1 ) [2025-03-15 19:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 16:29:05' and `end` < '2025-03-15 19:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 19:29:17] Production.INFO: count ==1716 [2025-03-15 19:29:18] Production.ERROR: pbx CDR StartTime 2025-03-15 16:29:05 - End Time 2025-03-15 19:29:05 [2025-03-15 19:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 19:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688284', 'tblTempUsageDetail_20' ) start [2025-03-15 19:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688284', 'tblTempUsageDetail_20' ) end [2025-03-15 19:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688284', 'tblTempVendorCDR_20' ) start [2025-03-15 19:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688284', 'tblTempVendorCDR_20' ) end [2025-03-15 19:29:18] Production.INFO: ProcessCDR(1,14688284,1,1,2) [2025-03-15 19:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688284', 'tblTempUsageDetail_20' ) start [2025-03-15 19:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688284', 'tblTempUsageDetail_20' ) end [2025-03-15 19:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 19:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 19:29:21] Production.INFO: ==15219== Releasing lock... [2025-03-15 19:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 19:29:21] Production.INFO: 41 MB #Memory Used# [2025-03-15 19:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 16:30:07 [end_date_ymd] => 2025-03-15 19:30:07 [RateCDR] => 1 ) [2025-03-15 19:30:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 16:30:07' and `end` < '2025-03-15 19:30:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 19:30:19] Production.INFO: count ==1708 [2025-03-15 19:30:19] Production.ERROR: pbx CDR StartTime 2025-03-15 16:30:07 - End Time 2025-03-15 19:30:07 [2025-03-15 19:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688290', 'tblTempUsageDetail_20' ) start [2025-03-15 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688290', 'tblTempUsageDetail_20' ) end [2025-03-15 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688290', 'tblTempVendorCDR_20' ) start [2025-03-15 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688290', 'tblTempVendorCDR_20' ) end [2025-03-15 19:30:20] Production.INFO: ProcessCDR(1,14688290,1,1,2) [2025-03-15 19:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688290', 'tblTempUsageDetail_20' ) start [2025-03-15 19:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688290', 'tblTempUsageDetail_20' ) end [2025-03-15 19:30:24] Production.ERROR: pbx prc_insertCDR start [2025-03-15 19:30:24] Production.ERROR: pbx prc_insertCDR end [2025-03-15 19:30:24] Production.INFO: ==15299== Releasing lock... [2025-03-15 19:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 19:30:24] Production.INFO: 41 MB #Memory Used# [2025-03-15 19:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 16:31:05 [end_date_ymd] => 2025-03-15 19:31:05 [RateCDR] => 1 ) [2025-03-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-03-15 16:31:05' and `end` < '2025-03-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-03-15 19:31:17] Production.INFO: count ==1643 [2025-03-15 19:31:18] Production.ERROR: pbx CDR StartTime 2025-03-15 16:31:05 - End Time 2025-03-15 19:31:05 [2025-03-15 19:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 19:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688295', 'tblTempUsageDetail_20' ) start [2025-03-15 19:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688295', 'tblTempUsageDetail_20' ) end [2025-03-15 19:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688295', 'tblTempVendorCDR_20' ) start [2025-03-15 19:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688295', 'tblTempVendorCDR_20' ) end [2025-03-15 19:31:18] Production.INFO: ProcessCDR(1,14688295,1,1,2) [2025-03-15 19:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688295', 'tblTempUsageDetail_20' ) start [2025-03-15 19:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688295', 'tblTempUsageDetail_20' ) end [2025-03-15 19:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 19:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 19:31:21] Production.INFO: ==15389== Releasing lock... [2025-03-15 19:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 19:31:21] Production.INFO: 40.25 MB #Memory Used# [2025-03-15 19:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 16:32:06 [end_date_ymd] => 2025-03-15 19:32:06 [RateCDR] => 1 ) [2025-03-15 19:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 16:32:06' and `end` < '2025-03-15 19:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 19:32:18] Production.INFO: count ==1641 [2025-03-15 19:32:18] Production.ERROR: pbx CDR StartTime 2025-03-15 16:32:06 - End Time 2025-03-15 19:32:06 [2025-03-15 19:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 19:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688300', 'tblTempUsageDetail_20' ) start [2025-03-15 19:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688300', 'tblTempUsageDetail_20' ) end [2025-03-15 19:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688300', 'tblTempVendorCDR_20' ) start [2025-03-15 19:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688300', 'tblTempVendorCDR_20' ) end [2025-03-15 19:32:18] Production.INFO: ProcessCDR(1,14688300,1,1,2) [2025-03-15 19:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688300', 'tblTempUsageDetail_20' ) start [2025-03-15 19:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688300', 'tblTempUsageDetail_20' ) end [2025-03-15 19:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 19:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 19:32:22] Production.INFO: ==15472== Releasing lock... [2025-03-15 19:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 19:32:22] Production.INFO: 40.25 MB #Memory Used# [2025-03-15 19:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 16:33:04 [end_date_ymd] => 2025-03-15 19:33:04 [RateCDR] => 1 ) [2025-03-15 19: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-03-15 16:33:04' and `end` < '2025-03-15 19: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-03-15 19:33:17] Production.INFO: count ==1648 [2025-03-15 19:33:17] Production.ERROR: pbx CDR StartTime 2025-03-15 16:33:04 - End Time 2025-03-15 19:33:04 [2025-03-15 19:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 19:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688305', 'tblTempUsageDetail_20' ) start [2025-03-15 19:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688305', 'tblTempUsageDetail_20' ) end [2025-03-15 19:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688305', 'tblTempVendorCDR_20' ) start [2025-03-15 19:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688305', 'tblTempVendorCDR_20' ) end [2025-03-15 19:33:17] Production.INFO: ProcessCDR(1,14688305,1,1,2) [2025-03-15 19:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688305', 'tblTempUsageDetail_20' ) start [2025-03-15 19:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688305', 'tblTempUsageDetail_20' ) end [2025-03-15 19:33:20] Production.ERROR: pbx prc_insertCDR start [2025-03-15 19:33:20] Production.ERROR: pbx prc_insertCDR end [2025-03-15 19:33:20] Production.INFO: ==15550== Releasing lock... [2025-03-15 19:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 19:33:20] Production.INFO: 40.25 MB #Memory Used# [2025-03-15 19:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 16:34:05 [end_date_ymd] => 2025-03-15 19:34:05 [RateCDR] => 1 ) [2025-03-15 19:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 16:34:05' and `end` < '2025-03-15 19:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 19:34:17] Production.INFO: count ==1644 [2025-03-15 19:34:18] Production.ERROR: pbx CDR StartTime 2025-03-15 16:34:05 - End Time 2025-03-15 19:34:05 [2025-03-15 19:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 19:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688310', 'tblTempUsageDetail_20' ) start [2025-03-15 19:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688310', 'tblTempUsageDetail_20' ) end [2025-03-15 19:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688310', 'tblTempVendorCDR_20' ) start [2025-03-15 19:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688310', 'tblTempVendorCDR_20' ) end [2025-03-15 19:34:18] Production.INFO: ProcessCDR(1,14688310,1,1,2) [2025-03-15 19:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688310', 'tblTempUsageDetail_20' ) start [2025-03-15 19:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688310', 'tblTempUsageDetail_20' ) end [2025-03-15 19:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 19:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 19:34:21] Production.INFO: ==15637== Releasing lock... [2025-03-15 19:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 19:34:21] Production.INFO: 40.5 MB #Memory Used# [2025-03-15 19:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 16:35:04 [end_date_ymd] => 2025-03-15 19:35:04 [RateCDR] => 1 ) [2025-03-15 19:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 16:35:04' and `end` < '2025-03-15 19:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 19:35:17] Production.INFO: count ==1642 [2025-03-15 19:35:17] Production.ERROR: pbx CDR StartTime 2025-03-15 16:35:04 - End Time 2025-03-15 19:35:04 [2025-03-15 19:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 19:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688315', 'tblTempUsageDetail_20' ) start [2025-03-15 19:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688315', 'tblTempUsageDetail_20' ) end [2025-03-15 19:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688315', 'tblTempVendorCDR_20' ) start [2025-03-15 19:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688315', 'tblTempVendorCDR_20' ) end [2025-03-15 19:35:17] Production.INFO: ProcessCDR(1,14688315,1,1,2) [2025-03-15 19:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688315', 'tblTempUsageDetail_20' ) start [2025-03-15 19:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688315', 'tblTempUsageDetail_20' ) end [2025-03-15 19:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 19:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 19:35:21] Production.INFO: ==15717== Releasing lock... [2025-03-15 19:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 19:35:21] Production.INFO: 40.25 MB #Memory Used# [2025-03-15 19:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 16:36:05 [end_date_ymd] => 2025-03-15 19:36:05 [RateCDR] => 1 ) [2025-03-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-03-15 16:36:05' and `end` < '2025-03-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-03-15 19:36:17] Production.INFO: count ==1644 [2025-03-15 19:36:18] Production.ERROR: pbx CDR StartTime 2025-03-15 16:36:05 - End Time 2025-03-15 19:36:05 [2025-03-15 19:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 19:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688319', 'tblTempUsageDetail_20' ) start [2025-03-15 19:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688319', 'tblTempUsageDetail_20' ) end [2025-03-15 19:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688319', 'tblTempVendorCDR_20' ) start [2025-03-15 19:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688319', 'tblTempVendorCDR_20' ) end [2025-03-15 19:36:18] Production.INFO: ProcessCDR(1,14688319,1,1,2) [2025-03-15 19:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688319', 'tblTempUsageDetail_20' ) start [2025-03-15 19:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688319', 'tblTempUsageDetail_20' ) end [2025-03-15 19:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 19:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 19:36:21] Production.INFO: ==15801== Releasing lock... [2025-03-15 19:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 19:36:21] Production.INFO: 40.5 MB #Memory Used# [2025-03-15 19:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 16:37:05 [end_date_ymd] => 2025-03-15 19:37:05 [RateCDR] => 1 ) [2025-03-15 19:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 16:37:05' and `end` < '2025-03-15 19:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 19:37:18] Production.INFO: count ==1640 [2025-03-15 19:37:18] Production.ERROR: pbx CDR StartTime 2025-03-15 16:37:05 - End Time 2025-03-15 19:37:05 [2025-03-15 19:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688325', 'tblTempUsageDetail_20' ) start [2025-03-15 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688325', 'tblTempUsageDetail_20' ) end [2025-03-15 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688325', 'tblTempVendorCDR_20' ) start [2025-03-15 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688325', 'tblTempVendorCDR_20' ) end [2025-03-15 19:37:18] Production.INFO: ProcessCDR(1,14688325,1,1,2) [2025-03-15 19:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688325', 'tblTempUsageDetail_20' ) start [2025-03-15 19:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688325', 'tblTempUsageDetail_20' ) end [2025-03-15 19:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 19:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 19:37:22] Production.INFO: ==15882== Releasing lock... [2025-03-15 19:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 19:37:22] Production.INFO: 40.5 MB #Memory Used# [2025-03-15 19:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 16:38:05 [end_date_ymd] => 2025-03-15 19:38:05 [RateCDR] => 1 ) [2025-03-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-03-15 16:38:05' and `end` < '2025-03-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-03-15 19:38:17] Production.INFO: count ==1642 [2025-03-15 19:38:18] Production.ERROR: pbx CDR StartTime 2025-03-15 16:38:05 - End Time 2025-03-15 19:38:05 [2025-03-15 19:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 19:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688330', 'tblTempUsageDetail_20' ) start [2025-03-15 19:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688330', 'tblTempUsageDetail_20' ) end [2025-03-15 19:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688330', 'tblTempVendorCDR_20' ) start [2025-03-15 19:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688330', 'tblTempVendorCDR_20' ) end [2025-03-15 19:38:18] Production.INFO: ProcessCDR(1,14688330,1,1,2) [2025-03-15 19:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688330', 'tblTempUsageDetail_20' ) start [2025-03-15 19:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688330', 'tblTempUsageDetail_20' ) end [2025-03-15 19:38:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 19:38:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 19:38:23] Production.INFO: ==15966== Releasing lock... [2025-03-15 19:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 19:38:23] Production.INFO: 40.25 MB #Memory Used# [2025-03-15 19:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 16:39:05 [end_date_ymd] => 2025-03-15 19:39:05 [RateCDR] => 1 ) [2025-03-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-03-15 16:39:05' and `end` < '2025-03-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-03-15 19:39:18] Production.INFO: count ==1639 [2025-03-15 19:39:18] Production.ERROR: pbx CDR StartTime 2025-03-15 16:39:05 - End Time 2025-03-15 19:39:05 [2025-03-15 19:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688335', 'tblTempUsageDetail_20' ) start [2025-03-15 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688335', 'tblTempUsageDetail_20' ) end [2025-03-15 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688335', 'tblTempVendorCDR_20' ) start [2025-03-15 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688335', 'tblTempVendorCDR_20' ) end [2025-03-15 19:39:18] Production.INFO: ProcessCDR(1,14688335,1,1,2) [2025-03-15 19:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688335', 'tblTempUsageDetail_20' ) start [2025-03-15 19:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688335', 'tblTempUsageDetail_20' ) end [2025-03-15 19:39:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 19:39:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 19:39:22] Production.INFO: ==16047== Releasing lock... [2025-03-15 19:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 19:39:22] Production.INFO: 40.25 MB #Memory Used# [2025-03-15 19:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 16:40:06 [end_date_ymd] => 2025-03-15 19:40:06 [RateCDR] => 1 ) [2025-03-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-03-15 16:40:06' and `end` < '2025-03-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-03-15 19:40:18] Production.INFO: count ==1634 [2025-03-15 19:40:19] Production.ERROR: pbx CDR StartTime 2025-03-15 16:40:06 - End Time 2025-03-15 19:40:06 [2025-03-15 19:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688341', 'tblTempUsageDetail_20' ) start [2025-03-15 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688341', 'tblTempUsageDetail_20' ) end [2025-03-15 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688341', 'tblTempVendorCDR_20' ) start [2025-03-15 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688341', 'tblTempVendorCDR_20' ) end [2025-03-15 19:40:19] Production.INFO: ProcessCDR(1,14688341,1,1,2) [2025-03-15 19:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688341', 'tblTempUsageDetail_20' ) start [2025-03-15 19:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688341', 'tblTempUsageDetail_20' ) end [2025-03-15 19:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 19:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 19:40:22] Production.INFO: ==16174== Releasing lock... [2025-03-15 19:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 19:40:22] Production.INFO: 40.25 MB #Memory Used# [2025-03-15 19:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 16:41:05 [end_date_ymd] => 2025-03-15 19:41:05 [RateCDR] => 1 ) [2025-03-15 19:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 16:41:05' and `end` < '2025-03-15 19:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 19:41:18] Production.INFO: count ==1615 [2025-03-15 19:41:18] Production.ERROR: pbx CDR StartTime 2025-03-15 16:41:05 - End Time 2025-03-15 19:41:05 [2025-03-15 19:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688346', 'tblTempUsageDetail_20' ) start [2025-03-15 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688346', 'tblTempUsageDetail_20' ) end [2025-03-15 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688346', 'tblTempVendorCDR_20' ) start [2025-03-15 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688346', 'tblTempVendorCDR_20' ) end [2025-03-15 19:41:18] Production.INFO: ProcessCDR(1,14688346,1,1,2) [2025-03-15 19:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688346', 'tblTempUsageDetail_20' ) start [2025-03-15 19:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688346', 'tblTempUsageDetail_20' ) end [2025-03-15 19:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 19:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 19:41:21] Production.INFO: ==16272== Releasing lock... [2025-03-15 19:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 19:41:21] Production.INFO: 40.5 MB #Memory Used# [2025-03-15 19:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 16:42:05 [end_date_ymd] => 2025-03-15 19:42:05 [RateCDR] => 1 ) [2025-03-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-03-15 16:42:05' and `end` < '2025-03-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-03-15 19:42:17] Production.INFO: count ==1614 [2025-03-15 19:42:18] Production.ERROR: pbx CDR StartTime 2025-03-15 16:42:05 - End Time 2025-03-15 19:42:05 [2025-03-15 19:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 19:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688351', 'tblTempUsageDetail_20' ) start [2025-03-15 19:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688351', 'tblTempUsageDetail_20' ) end [2025-03-15 19:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688351', 'tblTempVendorCDR_20' ) start [2025-03-15 19:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688351', 'tblTempVendorCDR_20' ) end [2025-03-15 19:42:18] Production.INFO: ProcessCDR(1,14688351,1,1,2) [2025-03-15 19:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688351', 'tblTempUsageDetail_20' ) start [2025-03-15 19:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688351', 'tblTempUsageDetail_20' ) end [2025-03-15 19:42:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 19:42:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 19:42:23] Production.INFO: ==16359== Releasing lock... [2025-03-15 19:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 19:42:23] Production.INFO: 40.25 MB #Memory Used# [2025-03-15 19:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 16:43:05 [end_date_ymd] => 2025-03-15 19:43:05 [RateCDR] => 1 ) [2025-03-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-03-15 16:43:05' and `end` < '2025-03-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-03-15 19:43:18] Production.INFO: count ==1608 [2025-03-15 19:43:18] Production.ERROR: pbx CDR StartTime 2025-03-15 16:43:05 - End Time 2025-03-15 19:43:05 [2025-03-15 19:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688356', 'tblTempUsageDetail_20' ) start [2025-03-15 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688356', 'tblTempUsageDetail_20' ) end [2025-03-15 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688356', 'tblTempVendorCDR_20' ) start [2025-03-15 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688356', 'tblTempVendorCDR_20' ) end [2025-03-15 19:43:18] Production.INFO: ProcessCDR(1,14688356,1,1,2) [2025-03-15 19:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688356', 'tblTempUsageDetail_20' ) start [2025-03-15 19:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688356', 'tblTempUsageDetail_20' ) end [2025-03-15 19:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 19:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 19:43:21] Production.INFO: ==16442== Releasing lock... [2025-03-15 19:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 19:43:21] Production.INFO: 40 MB #Memory Used# [2025-03-15 19:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 16:44:05 [end_date_ymd] => 2025-03-15 19:44:05 [RateCDR] => 1 ) [2025-03-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-03-15 16:44:05' and `end` < '2025-03-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-03-15 19:44:17] Production.INFO: count ==1613 [2025-03-15 19:44:18] Production.ERROR: pbx CDR StartTime 2025-03-15 16:44:05 - End Time 2025-03-15 19:44:05 [2025-03-15 19:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688361', 'tblTempUsageDetail_20' ) start [2025-03-15 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688361', 'tblTempUsageDetail_20' ) end [2025-03-15 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688361', 'tblTempVendorCDR_20' ) start [2025-03-15 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688361', 'tblTempVendorCDR_20' ) end [2025-03-15 19:44:18] Production.INFO: ProcessCDR(1,14688361,1,1,2) [2025-03-15 19:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688361', 'tblTempUsageDetail_20' ) start [2025-03-15 19:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688361', 'tblTempUsageDetail_20' ) end [2025-03-15 19:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 19:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 19:44:22] Production.INFO: ==16525== Releasing lock... [2025-03-15 19:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 19:44:22] Production.INFO: 40.5 MB #Memory Used# [2025-03-15 19:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 16:45:05 [end_date_ymd] => 2025-03-15 19:45:05 [RateCDR] => 1 ) [2025-03-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-03-15 16:45:05' and `end` < '2025-03-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-03-15 19:45:17] Production.INFO: count ==1608 [2025-03-15 19:45:18] Production.ERROR: pbx CDR StartTime 2025-03-15 16:45:05 - End Time 2025-03-15 19:45:05 [2025-03-15 19:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688366', 'tblTempUsageDetail_20' ) start [2025-03-15 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688366', 'tblTempUsageDetail_20' ) end [2025-03-15 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688366', 'tblTempVendorCDR_20' ) start [2025-03-15 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688366', 'tblTempVendorCDR_20' ) end [2025-03-15 19:45:18] Production.INFO: ProcessCDR(1,14688366,1,1,2) [2025-03-15 19:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688366', 'tblTempUsageDetail_20' ) start [2025-03-15 19:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688366', 'tblTempUsageDetail_20' ) end [2025-03-15 19:45:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 19:45:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 19:45:23] Production.INFO: ==16615== Releasing lock... [2025-03-15 19:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 19:45:23] Production.INFO: 40.25 MB #Memory Used# [2025-03-15 19:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 16:46:04 [end_date_ymd] => 2025-03-15 19:46:04 [RateCDR] => 1 ) [2025-03-15 19:46:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 16:46:04' and `end` < '2025-03-15 19:46:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 19:46:17] Production.INFO: count ==1614 [2025-03-15 19:46:17] Production.ERROR: pbx CDR StartTime 2025-03-15 16:46:04 - End Time 2025-03-15 19:46:04 [2025-03-15 19:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 19:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688371', 'tblTempUsageDetail_20' ) start [2025-03-15 19:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688371', 'tblTempUsageDetail_20' ) end [2025-03-15 19:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688371', 'tblTempVendorCDR_20' ) start [2025-03-15 19:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688371', 'tblTempVendorCDR_20' ) end [2025-03-15 19:46:17] Production.INFO: ProcessCDR(1,14688371,1,1,2) [2025-03-15 19:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688371', 'tblTempUsageDetail_20' ) start [2025-03-15 19:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688371', 'tblTempUsageDetail_20' ) end [2025-03-15 19:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 19:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 19:46:22] Production.INFO: ==16695== Releasing lock... [2025-03-15 19:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 19:46:22] Production.INFO: 40.5 MB #Memory Used# [2025-03-15 19:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 16:47:05 [end_date_ymd] => 2025-03-15 19:47:05 [RateCDR] => 1 ) [2025-03-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-03-15 16:47:05' and `end` < '2025-03-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-03-15 19:47:17] Production.INFO: count ==1612 [2025-03-15 19:47:18] Production.ERROR: pbx CDR StartTime 2025-03-15 16:47:05 - End Time 2025-03-15 19:47:05 [2025-03-15 19:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688376', 'tblTempUsageDetail_20' ) start [2025-03-15 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688376', 'tblTempUsageDetail_20' ) end [2025-03-15 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688376', 'tblTempVendorCDR_20' ) start [2025-03-15 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688376', 'tblTempVendorCDR_20' ) end [2025-03-15 19:47:18] Production.INFO: ProcessCDR(1,14688376,1,1,2) [2025-03-15 19:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688376', 'tblTempUsageDetail_20' ) start [2025-03-15 19:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688376', 'tblTempUsageDetail_20' ) end [2025-03-15 19:47:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 19:47:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 19:47:23] Production.INFO: ==16786== Releasing lock... [2025-03-15 19:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 19:47:23] Production.INFO: 40.5 MB #Memory Used# [2025-03-15 19:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 16:48:06 [end_date_ymd] => 2025-03-15 19:48:06 [RateCDR] => 1 ) [2025-03-15 19:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 16:48:06' and `end` < '2025-03-15 19:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 19:48:18] Production.INFO: count ==1616 [2025-03-15 19:48:19] Production.ERROR: pbx CDR StartTime 2025-03-15 16:48:06 - End Time 2025-03-15 19:48:06 [2025-03-15 19:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688381', 'tblTempUsageDetail_20' ) start [2025-03-15 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688381', 'tblTempUsageDetail_20' ) end [2025-03-15 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688381', 'tblTempVendorCDR_20' ) start [2025-03-15 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688381', 'tblTempVendorCDR_20' ) end [2025-03-15 19:48:19] Production.INFO: ProcessCDR(1,14688381,1,1,2) [2025-03-15 19:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688381', 'tblTempUsageDetail_20' ) start [2025-03-15 19:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688381', 'tblTempUsageDetail_20' ) end [2025-03-15 19:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 19:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 19:48:22] Production.INFO: ==16869== Releasing lock... [2025-03-15 19:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 19:48:22] Production.INFO: 40.25 MB #Memory Used# [2025-03-15 19:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 16:49:05 [end_date_ymd] => 2025-03-15 19:49:05 [RateCDR] => 1 ) [2025-03-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-03-15 16:49:05' and `end` < '2025-03-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-03-15 19:49:17] Production.INFO: count ==1613 [2025-03-15 19:49:18] Production.ERROR: pbx CDR StartTime 2025-03-15 16:49:05 - End Time 2025-03-15 19:49:05 [2025-03-15 19:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688386', 'tblTempUsageDetail_20' ) start [2025-03-15 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688386', 'tblTempUsageDetail_20' ) end [2025-03-15 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688386', 'tblTempVendorCDR_20' ) start [2025-03-15 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688386', 'tblTempVendorCDR_20' ) end [2025-03-15 19:49:18] Production.INFO: ProcessCDR(1,14688386,1,1,2) [2025-03-15 19:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688386', 'tblTempUsageDetail_20' ) start [2025-03-15 19:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688386', 'tblTempUsageDetail_20' ) end [2025-03-15 19:49:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 19:49:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 19:49:23] Production.INFO: ==16957== Releasing lock... [2025-03-15 19:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 19:49:23] Production.INFO: 40.5 MB #Memory Used# [2025-03-15 19:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 16:50:06 [end_date_ymd] => 2025-03-15 19:50:06 [RateCDR] => 1 ) [2025-03-15 19:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 16:50:06' and `end` < '2025-03-15 19:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 19:50:19] Production.INFO: count ==1619 [2025-03-15 19:50:19] Production.ERROR: pbx CDR StartTime 2025-03-15 16:50:06 - End Time 2025-03-15 19:50:06 [2025-03-15 19:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688391', 'tblTempUsageDetail_20' ) start [2025-03-15 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688391', 'tblTempUsageDetail_20' ) end [2025-03-15 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688391', 'tblTempVendorCDR_20' ) start [2025-03-15 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688391', 'tblTempVendorCDR_20' ) end [2025-03-15 19:50:19] Production.INFO: ProcessCDR(1,14688391,1,1,2) [2025-03-15 19:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688391', 'tblTempUsageDetail_20' ) start [2025-03-15 19:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688391', 'tblTempUsageDetail_20' ) end [2025-03-15 19:50:24] Production.ERROR: pbx prc_insertCDR start [2025-03-15 19:50:24] Production.ERROR: pbx prc_insertCDR end [2025-03-15 19:50:24] Production.INFO: ==17050== Releasing lock... [2025-03-15 19:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 19:50:24] Production.INFO: 40.25 MB #Memory Used# [2025-03-15 19:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 16:51:05 [end_date_ymd] => 2025-03-15 19:51:05 [RateCDR] => 1 ) [2025-03-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-03-15 16:51:05' and `end` < '2025-03-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-03-15 19:51:17] Production.INFO: count ==1657 [2025-03-15 19:51:18] Production.ERROR: pbx CDR StartTime 2025-03-15 16:51:05 - End Time 2025-03-15 19:51:05 [2025-03-15 19:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688397', 'tblTempUsageDetail_20' ) start [2025-03-15 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688397', 'tblTempUsageDetail_20' ) end [2025-03-15 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688397', 'tblTempVendorCDR_20' ) start [2025-03-15 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688397', 'tblTempVendorCDR_20' ) end [2025-03-15 19:51:18] Production.INFO: ProcessCDR(1,14688397,1,1,2) [2025-03-15 19:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688397', 'tblTempUsageDetail_20' ) start [2025-03-15 19:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688397', 'tblTempUsageDetail_20' ) end [2025-03-15 19:51:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 19:51:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 19:51:23] Production.INFO: ==17136== Releasing lock... [2025-03-15 19:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 19:51:23] Production.INFO: 40.75 MB #Memory Used# [2025-03-15 19:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 16:52:06 [end_date_ymd] => 2025-03-15 19:52:06 [RateCDR] => 1 ) [2025-03-15 19:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 16:52:06' and `end` < '2025-03-15 19:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 19:52:18] Production.INFO: count ==1670 [2025-03-15 19:52:18] Production.ERROR: pbx CDR StartTime 2025-03-15 16:52:06 - End Time 2025-03-15 19:52:06 [2025-03-15 19:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688402', 'tblTempUsageDetail_20' ) start [2025-03-15 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688402', 'tblTempUsageDetail_20' ) end [2025-03-15 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688402', 'tblTempVendorCDR_20' ) start [2025-03-15 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688402', 'tblTempVendorCDR_20' ) end [2025-03-15 19:52:18] Production.INFO: ProcessCDR(1,14688402,1,1,2) [2025-03-15 19:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688402', 'tblTempUsageDetail_20' ) start [2025-03-15 19:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688402', 'tblTempUsageDetail_20' ) end [2025-03-15 19:52:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 19:52:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 19:52:23] Production.INFO: ==17217== Releasing lock... [2025-03-15 19:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 19:52:23] Production.INFO: 40.25 MB #Memory Used# [2025-03-15 19:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 16:53:05 [end_date_ymd] => 2025-03-15 19:53:05 [RateCDR] => 1 ) [2025-03-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-03-15 16:53:05' and `end` < '2025-03-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-03-15 19:53:17] Production.INFO: count ==1666 [2025-03-15 19:53:18] Production.ERROR: pbx CDR StartTime 2025-03-15 16:53:05 - End Time 2025-03-15 19:53:05 [2025-03-15 19:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688407', 'tblTempUsageDetail_20' ) start [2025-03-15 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688407', 'tblTempUsageDetail_20' ) end [2025-03-15 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688407', 'tblTempVendorCDR_20' ) start [2025-03-15 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688407', 'tblTempVendorCDR_20' ) end [2025-03-15 19:53:18] Production.INFO: ProcessCDR(1,14688407,1,1,2) [2025-03-15 19:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688407', 'tblTempUsageDetail_20' ) start [2025-03-15 19:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688407', 'tblTempUsageDetail_20' ) end [2025-03-15 19:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 19:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 19:53:21] Production.INFO: ==17303== Releasing lock... [2025-03-15 19:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 19:53:21] Production.INFO: 40.5 MB #Memory Used# [2025-03-15 19:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 16:54:05 [end_date_ymd] => 2025-03-15 19:54:05 [RateCDR] => 1 ) [2025-03-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-03-15 16:54:05' and `end` < '2025-03-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-03-15 19:54:18] Production.INFO: count ==1678 [2025-03-15 19:54:18] Production.ERROR: pbx CDR StartTime 2025-03-15 16:54:05 - End Time 2025-03-15 19:54:05 [2025-03-15 19:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688412', 'tblTempUsageDetail_20' ) start [2025-03-15 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688412', 'tblTempUsageDetail_20' ) end [2025-03-15 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688412', 'tblTempVendorCDR_20' ) start [2025-03-15 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688412', 'tblTempVendorCDR_20' ) end [2025-03-15 19:54:18] Production.INFO: ProcessCDR(1,14688412,1,1,2) [2025-03-15 19:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688412', 'tblTempUsageDetail_20' ) start [2025-03-15 19:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688412', 'tblTempUsageDetail_20' ) end [2025-03-15 19:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 19:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 19:54:21] Production.INFO: ==17386== Releasing lock... [2025-03-15 19:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 19:54:21] Production.INFO: 40.75 MB #Memory Used# [2025-03-15 19:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 16:55:05 [end_date_ymd] => 2025-03-15 19:55:05 [RateCDR] => 1 ) [2025-03-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-03-15 16:55:05' and `end` < '2025-03-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-03-15 19:55:17] Production.INFO: count ==1683 [2025-03-15 19:55:17] Production.ERROR: pbx CDR StartTime 2025-03-15 16:55:05 - End Time 2025-03-15 19:55:05 [2025-03-15 19:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 19:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688417', 'tblTempUsageDetail_20' ) start [2025-03-15 19:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688417', 'tblTempUsageDetail_20' ) end [2025-03-15 19:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688417', 'tblTempVendorCDR_20' ) start [2025-03-15 19:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688417', 'tblTempVendorCDR_20' ) end [2025-03-15 19:55:17] Production.INFO: ProcessCDR(1,14688417,1,1,2) [2025-03-15 19:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688417', 'tblTempUsageDetail_20' ) start [2025-03-15 19:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688417', 'tblTempUsageDetail_20' ) end [2025-03-15 19:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 19:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 19:55:21] Production.INFO: ==17477== Releasing lock... [2025-03-15 19:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 19:55:21] Production.INFO: 40.75 MB #Memory Used# [2025-03-15 19:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 16:56:05 [end_date_ymd] => 2025-03-15 19:56:05 [RateCDR] => 1 ) [2025-03-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-03-15 16:56:05' and `end` < '2025-03-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-03-15 19:56:18] Production.INFO: count ==1678 [2025-03-15 19:56:18] Production.ERROR: pbx CDR StartTime 2025-03-15 16:56:05 - End Time 2025-03-15 19:56:05 [2025-03-15 19:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688422', 'tblTempUsageDetail_20' ) start [2025-03-15 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688422', 'tblTempUsageDetail_20' ) end [2025-03-15 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688422', 'tblTempVendorCDR_20' ) start [2025-03-15 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688422', 'tblTempVendorCDR_20' ) end [2025-03-15 19:56:18] Production.INFO: ProcessCDR(1,14688422,1,1,2) [2025-03-15 19:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688422', 'tblTempUsageDetail_20' ) start [2025-03-15 19:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688422', 'tblTempUsageDetail_20' ) end [2025-03-15 19:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 19:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 19:56:22] Production.INFO: ==17597== Releasing lock... [2025-03-15 19:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 19:56:22] Production.INFO: 41 MB #Memory Used# [2025-03-15 19:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 16:57:05 [end_date_ymd] => 2025-03-15 19:57:05 [RateCDR] => 1 ) [2025-03-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-03-15 16:57:05' and `end` < '2025-03-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-03-15 19:57:17] Production.INFO: count ==1676 [2025-03-15 19:57:18] Production.ERROR: pbx CDR StartTime 2025-03-15 16:57:05 - End Time 2025-03-15 19:57:05 [2025-03-15 19:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688427', 'tblTempUsageDetail_20' ) start [2025-03-15 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688427', 'tblTempUsageDetail_20' ) end [2025-03-15 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688427', 'tblTempVendorCDR_20' ) start [2025-03-15 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688427', 'tblTempVendorCDR_20' ) end [2025-03-15 19:57:18] Production.INFO: ProcessCDR(1,14688427,1,1,2) [2025-03-15 19:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688427', 'tblTempUsageDetail_20' ) start [2025-03-15 19:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688427', 'tblTempUsageDetail_20' ) end [2025-03-15 19:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 19:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 19:57:21] Production.INFO: ==17681== Releasing lock... [2025-03-15 19:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 19:57:21] Production.INFO: 40.5 MB #Memory Used# [2025-03-15 19:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 16:58:05 [end_date_ymd] => 2025-03-15 19:58:05 [RateCDR] => 1 ) [2025-03-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-03-15 16:58:05' and `end` < '2025-03-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-03-15 19:58:18] Production.INFO: count ==1683 [2025-03-15 19:58:18] Production.ERROR: pbx CDR StartTime 2025-03-15 16:58:05 - End Time 2025-03-15 19:58:05 [2025-03-15 19:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688432', 'tblTempUsageDetail_20' ) start [2025-03-15 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688432', 'tblTempUsageDetail_20' ) end [2025-03-15 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688432', 'tblTempVendorCDR_20' ) start [2025-03-15 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688432', 'tblTempVendorCDR_20' ) end [2025-03-15 19:58:18] Production.INFO: ProcessCDR(1,14688432,1,1,2) [2025-03-15 19:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688432', 'tblTempUsageDetail_20' ) start [2025-03-15 19:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688432', 'tblTempUsageDetail_20' ) end [2025-03-15 19:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 19:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 19:58:22] Production.INFO: ==17768== Releasing lock... [2025-03-15 19:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 19:58:22] Production.INFO: 41 MB #Memory Used# [2025-03-15 19:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 16:59:06 [end_date_ymd] => 2025-03-15 19:59:06 [RateCDR] => 1 ) [2025-03-15 19:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 16:59:06' and `end` < '2025-03-15 19:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 19:59:18] Production.INFO: count ==1676 [2025-03-15 19:59:18] Production.ERROR: pbx CDR StartTime 2025-03-15 16:59:06 - End Time 2025-03-15 19:59:06 [2025-03-15 19:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688437', 'tblTempUsageDetail_20' ) start [2025-03-15 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688437', 'tblTempUsageDetail_20' ) end [2025-03-15 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688437', 'tblTempVendorCDR_20' ) start [2025-03-15 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688437', 'tblTempVendorCDR_20' ) end [2025-03-15 19:59:18] Production.INFO: ProcessCDR(1,14688437,1,1,2) [2025-03-15 19:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 19:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 19:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688437', 'tblTempUsageDetail_20' ) start [2025-03-15 19:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688437', 'tblTempUsageDetail_20' ) end [2025-03-15 19:59:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 19:59:24] Production.ERROR: pbx prc_insertCDR end [2025-03-15 19:59:24] Production.INFO: ==17849== Releasing lock... [2025-03-15 19:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 19:59:24] Production.INFO: 40.5 MB #Memory Used# [2025-03-15 20:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 17:00:06 [end_date_ymd] => 2025-03-15 20:00:06 [RateCDR] => 1 ) [2025-03-15 20:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 17:00:06' and `end` < '2025-03-15 20:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 20:00:18] Production.INFO: count ==1677 [2025-03-15 20:00:19] Production.ERROR: pbx CDR StartTime 2025-03-15 17:00:06 - End Time 2025-03-15 20:00:06 [2025-03-15 20:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688443', 'tblTempUsageDetail_20' ) start [2025-03-15 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688443', 'tblTempUsageDetail_20' ) end [2025-03-15 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688443', 'tblTempVendorCDR_20' ) start [2025-03-15 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688443', 'tblTempVendorCDR_20' ) end [2025-03-15 20:00:19] Production.INFO: ProcessCDR(1,14688443,1,1,2) [2025-03-15 20:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688443', 'tblTempUsageDetail_20' ) start [2025-03-15 20:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688443', 'tblTempUsageDetail_20' ) end [2025-03-15 20:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 20:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 20:00:23] Production.INFO: ==17941== Releasing lock... [2025-03-15 20:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 20:00:23] Production.INFO: 40.75 MB #Memory Used# [2025-03-15 20:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 17:01:05 [end_date_ymd] => 2025-03-15 20:01:05 [RateCDR] => 1 ) [2025-03-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-03-15 17:01:05' and `end` < '2025-03-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-03-15 20:01:17] Production.INFO: count ==1628 [2025-03-15 20:01:18] Production.ERROR: pbx CDR StartTime 2025-03-15 17:01:05 - End Time 2025-03-15 20:01:05 [2025-03-15 20:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688448', 'tblTempUsageDetail_20' ) start [2025-03-15 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688448', 'tblTempUsageDetail_20' ) end [2025-03-15 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688448', 'tblTempVendorCDR_20' ) start [2025-03-15 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688448', 'tblTempVendorCDR_20' ) end [2025-03-15 20:01:18] Production.INFO: ProcessCDR(1,14688448,1,1,2) [2025-03-15 20:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688448', 'tblTempUsageDetail_20' ) start [2025-03-15 20:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688448', 'tblTempUsageDetail_20' ) end [2025-03-15 20:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 20:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 20:01:21] Production.INFO: ==18071== Releasing lock... [2025-03-15 20:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 20:01:21] Production.INFO: 40.25 MB #Memory Used# [2025-03-15 20:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 17:02:05 [end_date_ymd] => 2025-03-15 20:02:05 [RateCDR] => 1 ) [2025-03-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-03-15 17:02:05' and `end` < '2025-03-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-03-15 20:02:17] Production.INFO: count ==1632 [2025-03-15 20:02:18] Production.ERROR: pbx CDR StartTime 2025-03-15 17:02:05 - End Time 2025-03-15 20:02:05 [2025-03-15 20:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688453', 'tblTempUsageDetail_20' ) start [2025-03-15 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688453', 'tblTempUsageDetail_20' ) end [2025-03-15 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688453', 'tblTempVendorCDR_20' ) start [2025-03-15 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688453', 'tblTempVendorCDR_20' ) end [2025-03-15 20:02:18] Production.INFO: ProcessCDR(1,14688453,1,1,2) [2025-03-15 20:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688453', 'tblTempUsageDetail_20' ) start [2025-03-15 20:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688453', 'tblTempUsageDetail_20' ) end [2025-03-15 20:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 20:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 20:02:22] Production.INFO: ==18155== Releasing lock... [2025-03-15 20:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 20:02:22] Production.INFO: 40.5 MB #Memory Used# [2025-03-15 20:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 17:03:05 [end_date_ymd] => 2025-03-15 20:03:05 [RateCDR] => 1 ) [2025-03-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-03-15 17:03:05' and `end` < '2025-03-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-03-15 20:03:17] Production.INFO: count ==1630 [2025-03-15 20:03:17] Production.ERROR: pbx CDR StartTime 2025-03-15 17:03:05 - End Time 2025-03-15 20:03:05 [2025-03-15 20:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 20:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688458', 'tblTempUsageDetail_20' ) start [2025-03-15 20:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688458', 'tblTempUsageDetail_20' ) end [2025-03-15 20:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688458', 'tblTempVendorCDR_20' ) start [2025-03-15 20:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688458', 'tblTempVendorCDR_20' ) end [2025-03-15 20:03:17] Production.INFO: ProcessCDR(1,14688458,1,1,2) [2025-03-15 20:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688458', 'tblTempUsageDetail_20' ) start [2025-03-15 20:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688458', 'tblTempUsageDetail_20' ) end [2025-03-15 20:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 20:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 20:03:21] Production.INFO: ==18233== Releasing lock... [2025-03-15 20:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 20:03:21] Production.INFO: 40.25 MB #Memory Used# [2025-03-15 20:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 17:04:05 [end_date_ymd] => 2025-03-15 20:04:05 [RateCDR] => 1 ) [2025-03-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-03-15 17:04:05' and `end` < '2025-03-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-03-15 20:04:18] Production.INFO: count ==1629 [2025-03-15 20:04:18] Production.ERROR: pbx CDR StartTime 2025-03-15 17:04:05 - End Time 2025-03-15 20:04:05 [2025-03-15 20:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688463', 'tblTempUsageDetail_20' ) start [2025-03-15 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688463', 'tblTempUsageDetail_20' ) end [2025-03-15 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688463', 'tblTempVendorCDR_20' ) start [2025-03-15 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688463', 'tblTempVendorCDR_20' ) end [2025-03-15 20:04:18] Production.INFO: ProcessCDR(1,14688463,1,1,2) [2025-03-15 20:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688463', 'tblTempUsageDetail_20' ) start [2025-03-15 20:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688463', 'tblTempUsageDetail_20' ) end [2025-03-15 20:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 20:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 20:04:21] Production.INFO: ==18309== Releasing lock... [2025-03-15 20:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 20:04:21] Production.INFO: 40.25 MB #Memory Used# [2025-03-15 20:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 17:05:04 [end_date_ymd] => 2025-03-15 20:05:04 [RateCDR] => 1 ) [2025-03-15 20: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-03-15 17:05:04' and `end` < '2025-03-15 20:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 20:05:17] Production.INFO: count ==1631 [2025-03-15 20:05:17] Production.ERROR: pbx CDR StartTime 2025-03-15 17:05:04 - End Time 2025-03-15 20:05:04 [2025-03-15 20:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 20:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688468', 'tblTempUsageDetail_20' ) start [2025-03-15 20:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688468', 'tblTempUsageDetail_20' ) end [2025-03-15 20:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688468', 'tblTempVendorCDR_20' ) start [2025-03-15 20:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688468', 'tblTempVendorCDR_20' ) end [2025-03-15 20:05:17] Production.INFO: ProcessCDR(1,14688468,1,1,2) [2025-03-15 20:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688468', 'tblTempUsageDetail_20' ) start [2025-03-15 20:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688468', 'tblTempUsageDetail_20' ) end [2025-03-15 20:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 20:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 20:05:21] Production.INFO: ==18382== Releasing lock... [2025-03-15 20:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 20:05:21] Production.INFO: 40.25 MB #Memory Used# [2025-03-15 20:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 17:06:05 [end_date_ymd] => 2025-03-15 20:06:05 [RateCDR] => 1 ) [2025-03-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-03-15 17:06:05' and `end` < '2025-03-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-03-15 20:06:17] Production.INFO: count ==1629 [2025-03-15 20:06:18] Production.ERROR: pbx CDR StartTime 2025-03-15 17:06:05 - End Time 2025-03-15 20:06:05 [2025-03-15 20:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688473', 'tblTempUsageDetail_20' ) start [2025-03-15 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688473', 'tblTempUsageDetail_20' ) end [2025-03-15 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688473', 'tblTempVendorCDR_20' ) start [2025-03-15 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688473', 'tblTempVendorCDR_20' ) end [2025-03-15 20:06:18] Production.INFO: ProcessCDR(1,14688473,1,1,2) [2025-03-15 20:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688473', 'tblTempUsageDetail_20' ) start [2025-03-15 20:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688473', 'tblTempUsageDetail_20' ) end [2025-03-15 20:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 20:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 20:06:21] Production.INFO: ==18456== Releasing lock... [2025-03-15 20:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 20:06:21] Production.INFO: 40.25 MB #Memory Used# [2025-03-15 20:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 17:07:05 [end_date_ymd] => 2025-03-15 20:07:05 [RateCDR] => 1 ) [2025-03-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-03-15 17:07:05' and `end` < '2025-03-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-03-15 20:07:17] Production.INFO: count ==1629 [2025-03-15 20:07:17] Production.ERROR: pbx CDR StartTime 2025-03-15 17:07:05 - End Time 2025-03-15 20:07:05 [2025-03-15 20:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 20:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688478', 'tblTempUsageDetail_20' ) start [2025-03-15 20:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688478', 'tblTempUsageDetail_20' ) end [2025-03-15 20:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688478', 'tblTempVendorCDR_20' ) start [2025-03-15 20:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688478', 'tblTempVendorCDR_20' ) end [2025-03-15 20:07:18] Production.INFO: ProcessCDR(1,14688478,1,1,2) [2025-03-15 20:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688478', 'tblTempUsageDetail_20' ) start [2025-03-15 20:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688478', 'tblTempUsageDetail_20' ) end [2025-03-15 20:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 20:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 20:07:21] Production.INFO: ==18531== Releasing lock... [2025-03-15 20:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 20:07:21] Production.INFO: 40.5 MB #Memory Used# [2025-03-15 20:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 17:08:05 [end_date_ymd] => 2025-03-15 20:08:05 [RateCDR] => 1 ) [2025-03-15 20:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 17:08:05' and `end` < '2025-03-15 20:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 20:08:17] Production.INFO: count ==1633 [2025-03-15 20:08:18] Production.ERROR: pbx CDR StartTime 2025-03-15 17:08:05 - End Time 2025-03-15 20:08:05 [2025-03-15 20:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688483', 'tblTempUsageDetail_20' ) start [2025-03-15 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688483', 'tblTempUsageDetail_20' ) end [2025-03-15 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688483', 'tblTempVendorCDR_20' ) start [2025-03-15 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688483', 'tblTempVendorCDR_20' ) end [2025-03-15 20:08:18] Production.INFO: ProcessCDR(1,14688483,1,1,2) [2025-03-15 20:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688483', 'tblTempUsageDetail_20' ) start [2025-03-15 20:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688483', 'tblTempUsageDetail_20' ) end [2025-03-15 20:08:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 20:08:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 20:08:23] Production.INFO: ==18609== Releasing lock... [2025-03-15 20:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 20:08:23] Production.INFO: 40.25 MB #Memory Used# [2025-03-15 20:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 17:09:05 [end_date_ymd] => 2025-03-15 20:09:05 [RateCDR] => 1 ) [2025-03-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-03-15 17:09:05' and `end` < '2025-03-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-03-15 20:09:17] Production.INFO: count ==1630 [2025-03-15 20:09:18] Production.ERROR: pbx CDR StartTime 2025-03-15 17:09:05 - End Time 2025-03-15 20:09:05 [2025-03-15 20:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688488', 'tblTempUsageDetail_20' ) start [2025-03-15 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688488', 'tblTempUsageDetail_20' ) end [2025-03-15 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688488', 'tblTempVendorCDR_20' ) start [2025-03-15 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688488', 'tblTempVendorCDR_20' ) end [2025-03-15 20:09:18] Production.INFO: ProcessCDR(1,14688488,1,1,2) [2025-03-15 20:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688488', 'tblTempUsageDetail_20' ) start [2025-03-15 20:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688488', 'tblTempUsageDetail_20' ) end [2025-03-15 20:09:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 20:09:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 20:09:23] Production.INFO: ==18685== Releasing lock... [2025-03-15 20:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 20:09:23] Production.INFO: 40.25 MB #Memory Used# [2025-03-15 20:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 17:10:05 [end_date_ymd] => 2025-03-15 20:10:05 [RateCDR] => 1 ) [2025-03-15 20:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 17:10:05' and `end` < '2025-03-15 20:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 20:10:18] Production.INFO: count ==1631 [2025-03-15 20:10:18] Production.ERROR: pbx CDR StartTime 2025-03-15 17:10:05 - End Time 2025-03-15 20:10:05 [2025-03-15 20:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 20:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688491', 'tblTempUsageDetail_20' ) start [2025-03-15 20:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688491', 'tblTempUsageDetail_20' ) end [2025-03-15 20:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688491', 'tblTempVendorCDR_20' ) start [2025-03-15 20:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688491', 'tblTempVendorCDR_20' ) end [2025-03-15 20:10:18] Production.INFO: ProcessCDR(1,14688491,1,1,2) [2025-03-15 20:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688491', 'tblTempUsageDetail_20' ) start [2025-03-15 20:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688491', 'tblTempUsageDetail_20' ) end [2025-03-15 20:10:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 20:10:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 20:10:23] Production.INFO: ==18764== Releasing lock... [2025-03-15 20:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 20:10:23] Production.INFO: 40.25 MB #Memory Used# [2025-03-15 20:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 17:11:06 [end_date_ymd] => 2025-03-15 20:11:06 [RateCDR] => 1 ) [2025-03-15 20:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 17:11:06' and `end` < '2025-03-15 20:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 20:11:18] Production.INFO: count ==1615 [2025-03-15 20:11:18] Production.ERROR: pbx CDR StartTime 2025-03-15 17:11:06 - End Time 2025-03-15 20:11:06 [2025-03-15 20:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688499', 'tblTempUsageDetail_20' ) start [2025-03-15 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688499', 'tblTempUsageDetail_20' ) end [2025-03-15 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688499', 'tblTempVendorCDR_20' ) start [2025-03-15 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688499', 'tblTempVendorCDR_20' ) end [2025-03-15 20:11:19] Production.INFO: ProcessCDR(1,14688499,1,1,2) [2025-03-15 20:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688499', 'tblTempUsageDetail_20' ) start [2025-03-15 20:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688499', 'tblTempUsageDetail_20' ) end [2025-03-15 20:11:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 20:11:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 20:11:22] Production.INFO: ==18881== Releasing lock... [2025-03-15 20:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 20:11:22] Production.INFO: 40.5 MB #Memory Used# [2025-03-15 20:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 17:12:05 [end_date_ymd] => 2025-03-15 20:12:05 [RateCDR] => 1 ) [2025-03-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-03-15 17:12:05' and `end` < '2025-03-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-03-15 20:12:18] Production.INFO: count ==1608 [2025-03-15 20:12:18] Production.ERROR: pbx CDR StartTime 2025-03-15 17:12:05 - End Time 2025-03-15 20:12:05 [2025-03-15 20:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688504', 'tblTempUsageDetail_20' ) start [2025-03-15 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688504', 'tblTempUsageDetail_20' ) end [2025-03-15 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688504', 'tblTempVendorCDR_20' ) start [2025-03-15 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688504', 'tblTempVendorCDR_20' ) end [2025-03-15 20:12:18] Production.INFO: ProcessCDR(1,14688504,1,1,2) [2025-03-15 20:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688504', 'tblTempUsageDetail_20' ) start [2025-03-15 20:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688504', 'tblTempUsageDetail_20' ) end [2025-03-15 20:12:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 20:12:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 20:12:23] Production.INFO: ==18955== Releasing lock... [2025-03-15 20:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 20:12:23] Production.INFO: 39.75 MB #Memory Used# [2025-03-15 20:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 17:13:05 [end_date_ymd] => 2025-03-15 20:13:05 [RateCDR] => 1 ) [2025-03-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-03-15 17:13:05' and `end` < '2025-03-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-03-15 20:13:18] Production.INFO: count ==1607 [2025-03-15 20:13:18] Production.ERROR: pbx CDR StartTime 2025-03-15 17:13:05 - End Time 2025-03-15 20:13:05 [2025-03-15 20:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688509', 'tblTempUsageDetail_20' ) start [2025-03-15 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688509', 'tblTempUsageDetail_20' ) end [2025-03-15 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688509', 'tblTempVendorCDR_20' ) start [2025-03-15 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688509', 'tblTempVendorCDR_20' ) end [2025-03-15 20:13:18] Production.INFO: ProcessCDR(1,14688509,1,1,2) [2025-03-15 20:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688509', 'tblTempUsageDetail_20' ) start [2025-03-15 20:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688509', 'tblTempUsageDetail_20' ) end [2025-03-15 20:13:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 20:13:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 20:13:23] Production.INFO: ==19029== Releasing lock... [2025-03-15 20:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 20:13:23] Production.INFO: 40.25 MB #Memory Used# [2025-03-15 20:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 17:14:05 [end_date_ymd] => 2025-03-15 20:14:05 [RateCDR] => 1 ) [2025-03-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-03-15 17:14:05' and `end` < '2025-03-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-03-15 20:14:17] Production.INFO: count ==1607 [2025-03-15 20:14:18] Production.ERROR: pbx CDR StartTime 2025-03-15 17:14:05 - End Time 2025-03-15 20:14:05 [2025-03-15 20:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688514', 'tblTempUsageDetail_20' ) start [2025-03-15 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688514', 'tblTempUsageDetail_20' ) end [2025-03-15 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688514', 'tblTempVendorCDR_20' ) start [2025-03-15 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688514', 'tblTempVendorCDR_20' ) end [2025-03-15 20:14:18] Production.INFO: ProcessCDR(1,14688514,1,1,2) [2025-03-15 20:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688514', 'tblTempUsageDetail_20' ) start [2025-03-15 20:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688514', 'tblTempUsageDetail_20' ) end [2025-03-15 20:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 20:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 20:14:21] Production.INFO: ==19109== Releasing lock... [2025-03-15 20:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 20:14:21] Production.INFO: 40 MB #Memory Used# [2025-03-15 20:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 17:15:05 [end_date_ymd] => 2025-03-15 20:15:05 [RateCDR] => 1 ) [2025-03-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-03-15 17:15:05' and `end` < '2025-03-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-03-15 20:15:18] Production.INFO: count ==1605 [2025-03-15 20:15:18] Production.ERROR: pbx CDR StartTime 2025-03-15 17:15:05 - End Time 2025-03-15 20:15:05 [2025-03-15 20:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688519', 'tblTempUsageDetail_20' ) start [2025-03-15 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688519', 'tblTempUsageDetail_20' ) end [2025-03-15 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688519', 'tblTempVendorCDR_20' ) start [2025-03-15 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688519', 'tblTempVendorCDR_20' ) end [2025-03-15 20:15:18] Production.INFO: ProcessCDR(1,14688519,1,1,2) [2025-03-15 20:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688519', 'tblTempUsageDetail_20' ) start [2025-03-15 20:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688519', 'tblTempUsageDetail_20' ) end [2025-03-15 20:15:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 20:15:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 20:15:23] Production.INFO: ==19184== Releasing lock... [2025-03-15 20:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 20:15:23] Production.INFO: 40 MB #Memory Used# [2025-03-15 20:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 17:16:05 [end_date_ymd] => 2025-03-15 20:16:05 [RateCDR] => 1 ) [2025-03-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-03-15 17:16:05' and `end` < '2025-03-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-03-15 20:16:17] Production.INFO: count ==1606 [2025-03-15 20:16:18] Production.ERROR: pbx CDR StartTime 2025-03-15 17:16:05 - End Time 2025-03-15 20:16:05 [2025-03-15 20:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688524', 'tblTempUsageDetail_20' ) start [2025-03-15 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688524', 'tblTempUsageDetail_20' ) end [2025-03-15 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688524', 'tblTempVendorCDR_20' ) start [2025-03-15 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688524', 'tblTempVendorCDR_20' ) end [2025-03-15 20:16:18] Production.INFO: ProcessCDR(1,14688524,1,1,2) [2025-03-15 20:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688524', 'tblTempUsageDetail_20' ) start [2025-03-15 20:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688524', 'tblTempUsageDetail_20' ) end [2025-03-15 20:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 20:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 20:16:21] Production.INFO: ==19262== Releasing lock... [2025-03-15 20:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 20:16:21] Production.INFO: 40 MB #Memory Used# [2025-03-15 20:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 17:17:06 [end_date_ymd] => 2025-03-15 20:17:06 [RateCDR] => 1 ) [2025-03-15 20:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 17:17:06' and `end` < '2025-03-15 20:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 20:17:18] Production.INFO: count ==1611 [2025-03-15 20:17:18] Production.ERROR: pbx CDR StartTime 2025-03-15 17:17:06 - End Time 2025-03-15 20:17:06 [2025-03-15 20:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688529', 'tblTempUsageDetail_20' ) start [2025-03-15 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688529', 'tblTempUsageDetail_20' ) end [2025-03-15 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688529', 'tblTempVendorCDR_20' ) start [2025-03-15 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688529', 'tblTempVendorCDR_20' ) end [2025-03-15 20:17:19] Production.INFO: ProcessCDR(1,14688529,1,1,2) [2025-03-15 20:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688529', 'tblTempUsageDetail_20' ) start [2025-03-15 20:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688529', 'tblTempUsageDetail_20' ) end [2025-03-15 20:17:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 20:17:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 20:17:23] Production.INFO: ==19338== Releasing lock... [2025-03-15 20:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 20:17:23] Production.INFO: 40.25 MB #Memory Used# [2025-03-15 20:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 17:18:05 [end_date_ymd] => 2025-03-15 20:18:05 [RateCDR] => 1 ) [2025-03-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-03-15 17:18:05' and `end` < '2025-03-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-03-15 20:18:17] Production.INFO: count ==1614 [2025-03-15 20:18:17] Production.ERROR: pbx CDR StartTime 2025-03-15 17:18:05 - End Time 2025-03-15 20:18:05 [2025-03-15 20:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 20:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688534', 'tblTempUsageDetail_20' ) start [2025-03-15 20:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688534', 'tblTempUsageDetail_20' ) end [2025-03-15 20:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688534', 'tblTempVendorCDR_20' ) start [2025-03-15 20:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688534', 'tblTempVendorCDR_20' ) end [2025-03-15 20:18:17] Production.INFO: ProcessCDR(1,14688534,1,1,2) [2025-03-15 20:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688534', 'tblTempUsageDetail_20' ) start [2025-03-15 20:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688534', 'tblTempUsageDetail_20' ) end [2025-03-15 20:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 20:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 20:18:21] Production.INFO: ==19415== Releasing lock... [2025-03-15 20:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 20:18:21] Production.INFO: 40.25 MB #Memory Used# [2025-03-15 20:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 17:19:06 [end_date_ymd] => 2025-03-15 20:19:06 [RateCDR] => 1 ) [2025-03-15 20:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 17:19:06' and `end` < '2025-03-15 20:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 20:19:18] Production.INFO: count ==1614 [2025-03-15 20:19:18] Production.ERROR: pbx CDR StartTime 2025-03-15 17:19:06 - End Time 2025-03-15 20:19:06 [2025-03-15 20:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688539', 'tblTempUsageDetail_20' ) start [2025-03-15 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688539', 'tblTempUsageDetail_20' ) end [2025-03-15 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688539', 'tblTempVendorCDR_20' ) start [2025-03-15 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688539', 'tblTempVendorCDR_20' ) end [2025-03-15 20:19:18] Production.INFO: ProcessCDR(1,14688539,1,1,2) [2025-03-15 20:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688539', 'tblTempUsageDetail_20' ) start [2025-03-15 20:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688539', 'tblTempUsageDetail_20' ) end [2025-03-15 20:19:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 20:19:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 20:19:22] Production.INFO: ==19490== Releasing lock... [2025-03-15 20:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 20:19:22] Production.INFO: 40.5 MB #Memory Used# [2025-03-15 20:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 17:20:06 [end_date_ymd] => 2025-03-15 20:20:06 [RateCDR] => 1 ) [2025-03-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-03-15 17:20:06' and `end` < '2025-03-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-03-15 20:20:18] Production.INFO: count ==1611 [2025-03-15 20:20:18] Production.ERROR: pbx CDR StartTime 2025-03-15 17:20:06 - End Time 2025-03-15 20:20:06 [2025-03-15 20:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 20:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688545', 'tblTempUsageDetail_20' ) start [2025-03-15 20:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688545', 'tblTempUsageDetail_20' ) end [2025-03-15 20:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688545', 'tblTempVendorCDR_20' ) start [2025-03-15 20:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688545', 'tblTempVendorCDR_20' ) end [2025-03-15 20:20:18] Production.INFO: ProcessCDR(1,14688545,1,1,2) [2025-03-15 20:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688545', 'tblTempUsageDetail_20' ) start [2025-03-15 20:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688545', 'tblTempUsageDetail_20' ) end [2025-03-15 20:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 20:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 20:20:22] Production.INFO: ==19569== Releasing lock... [2025-03-15 20:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 20:20:22] Production.INFO: 40.5 MB #Memory Used# [2025-03-15 20:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 17:21:05 [end_date_ymd] => 2025-03-15 20:21:05 [RateCDR] => 1 ) [2025-03-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-03-15 17:21:05' and `end` < '2025-03-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-03-15 20:21:18] Production.INFO: count ==1582 [2025-03-15 20:21:18] Production.ERROR: pbx CDR StartTime 2025-03-15 17:21:05 - End Time 2025-03-15 20:21:05 [2025-03-15 20:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688550', 'tblTempUsageDetail_20' ) start [2025-03-15 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688550', 'tblTempUsageDetail_20' ) end [2025-03-15 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688550', 'tblTempVendorCDR_20' ) start [2025-03-15 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688550', 'tblTempVendorCDR_20' ) end [2025-03-15 20:21:18] Production.INFO: ProcessCDR(1,14688550,1,1,2) [2025-03-15 20:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688550', 'tblTempUsageDetail_20' ) start [2025-03-15 20:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688550', 'tblTempUsageDetail_20' ) end [2025-03-15 20:21:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 20:21:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 20:21:22] Production.INFO: ==19651== Releasing lock... [2025-03-15 20:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 20:21:22] Production.INFO: 40.25 MB #Memory Used# [2025-03-15 20:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 17:22:05 [end_date_ymd] => 2025-03-15 20:22:05 [RateCDR] => 1 ) [2025-03-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-03-15 17:22:05' and `end` < '2025-03-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-03-15 20:22:17] Production.INFO: count ==1577 [2025-03-15 20:22:18] Production.ERROR: pbx CDR StartTime 2025-03-15 17:22:05 - End Time 2025-03-15 20:22:05 [2025-03-15 20:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688555', 'tblTempUsageDetail_20' ) start [2025-03-15 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688555', 'tblTempUsageDetail_20' ) end [2025-03-15 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688555', 'tblTempVendorCDR_20' ) start [2025-03-15 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688555', 'tblTempVendorCDR_20' ) end [2025-03-15 20:22:18] Production.INFO: ProcessCDR(1,14688555,1,1,2) [2025-03-15 20:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688555', 'tblTempUsageDetail_20' ) start [2025-03-15 20:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688555', 'tblTempUsageDetail_20' ) end [2025-03-15 20:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 20:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 20:22:21] Production.INFO: ==19729== Releasing lock... [2025-03-15 20:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 20:22:21] Production.INFO: 40 MB #Memory Used# [2025-03-15 20:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 17:23:05 [end_date_ymd] => 2025-03-15 20:23:05 [RateCDR] => 1 ) [2025-03-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-03-15 17:23:05' and `end` < '2025-03-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-03-15 20:23:17] Production.INFO: count ==1681 [2025-03-15 20:23:18] Production.ERROR: pbx CDR StartTime 2025-03-15 17:23:05 - End Time 2025-03-15 20:23:05 [2025-03-15 20:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688560', 'tblTempUsageDetail_20' ) start [2025-03-15 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688560', 'tblTempUsageDetail_20' ) end [2025-03-15 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688560', 'tblTempVendorCDR_20' ) start [2025-03-15 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688560', 'tblTempVendorCDR_20' ) end [2025-03-15 20:23:18] Production.INFO: ProcessCDR(1,14688560,1,1,2) [2025-03-15 20:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688560', 'tblTempUsageDetail_20' ) start [2025-03-15 20:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688560', 'tblTempUsageDetail_20' ) end [2025-03-15 20:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 20:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 20:23:21] Production.INFO: ==19803== Releasing lock... [2025-03-15 20:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 20:23:21] Production.INFO: 41.5 MB #Memory Used# [2025-03-15 20:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 17:24:05 [end_date_ymd] => 2025-03-15 20:24:05 [RateCDR] => 1 ) [2025-03-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-03-15 17:24:05' and `end` < '2025-03-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-03-15 20:24:17] Production.INFO: count ==1689 [2025-03-15 20:24:18] Production.ERROR: pbx CDR StartTime 2025-03-15 17:24:05 - End Time 2025-03-15 20:24:05 [2025-03-15 20:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688565', 'tblTempUsageDetail_20' ) start [2025-03-15 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688565', 'tblTempUsageDetail_20' ) end [2025-03-15 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688565', 'tblTempVendorCDR_20' ) start [2025-03-15 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688565', 'tblTempVendorCDR_20' ) end [2025-03-15 20:24:18] Production.INFO: ProcessCDR(1,14688565,1,1,2) [2025-03-15 20:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688565', 'tblTempUsageDetail_20' ) start [2025-03-15 20:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688565', 'tblTempUsageDetail_20' ) end [2025-03-15 20:24:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 20:24:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 20:24:22] Production.INFO: ==19877== Releasing lock... [2025-03-15 20:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 20:24:22] Production.INFO: 41 MB #Memory Used# [2025-03-15 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 17:25:05 [end_date_ymd] => 2025-03-15 20:25:05 [RateCDR] => 1 ) [2025-03-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-03-15 17:25:05' and `end` < '2025-03-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-03-15 20:25:17] Production.INFO: count ==1688 [2025-03-15 20:25:18] Production.ERROR: pbx CDR StartTime 2025-03-15 17:25:05 - End Time 2025-03-15 20:25:05 [2025-03-15 20:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688570', 'tblTempUsageDetail_20' ) start [2025-03-15 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688570', 'tblTempUsageDetail_20' ) end [2025-03-15 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688570', 'tblTempVendorCDR_20' ) start [2025-03-15 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688570', 'tblTempVendorCDR_20' ) end [2025-03-15 20:25:18] Production.INFO: ProcessCDR(1,14688570,1,1,2) [2025-03-15 20:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688570', 'tblTempUsageDetail_20' ) start [2025-03-15 20:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688570', 'tblTempUsageDetail_20' ) end [2025-03-15 20:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 20:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 20:25:21] Production.INFO: ==19949== Releasing lock... [2025-03-15 20:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 20:25:21] Production.INFO: 41 MB #Memory Used# [2025-03-15 20:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 17:26:06 [end_date_ymd] => 2025-03-15 20:26:06 [RateCDR] => 1 ) [2025-03-15 20:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 17:26:06' and `end` < '2025-03-15 20:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 20:26:18] Production.INFO: count ==1689 [2025-03-15 20:26:19] Production.ERROR: pbx CDR StartTime 2025-03-15 17:26:06 - End Time 2025-03-15 20:26:06 [2025-03-15 20:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688575', 'tblTempUsageDetail_20' ) start [2025-03-15 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688575', 'tblTempUsageDetail_20' ) end [2025-03-15 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688575', 'tblTempVendorCDR_20' ) start [2025-03-15 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688575', 'tblTempVendorCDR_20' ) end [2025-03-15 20:26:19] Production.INFO: ProcessCDR(1,14688575,1,1,2) [2025-03-15 20:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688575', 'tblTempUsageDetail_20' ) start [2025-03-15 20:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688575', 'tblTempUsageDetail_20' ) end [2025-03-15 20:26:24] Production.ERROR: pbx prc_insertCDR start [2025-03-15 20:26:24] Production.ERROR: pbx prc_insertCDR end [2025-03-15 20:26:24] Production.INFO: ==20065== Releasing lock... [2025-03-15 20:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 20:26:24] Production.INFO: 40.5 MB #Memory Used# [2025-03-15 20:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 17:27:05 [end_date_ymd] => 2025-03-15 20:27:05 [RateCDR] => 1 ) [2025-03-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-03-15 17:27:05' and `end` < '2025-03-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-03-15 20:27:18] Production.INFO: count ==1684 [2025-03-15 20:27:18] Production.ERROR: pbx CDR StartTime 2025-03-15 17:27:05 - End Time 2025-03-15 20:27:05 [2025-03-15 20:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688580', 'tblTempUsageDetail_20' ) start [2025-03-15 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688580', 'tblTempUsageDetail_20' ) end [2025-03-15 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688580', 'tblTempVendorCDR_20' ) start [2025-03-15 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688580', 'tblTempVendorCDR_20' ) end [2025-03-15 20:27:18] Production.INFO: ProcessCDR(1,14688580,1,1,2) [2025-03-15 20:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688580', 'tblTempUsageDetail_20' ) start [2025-03-15 20:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688580', 'tblTempUsageDetail_20' ) end [2025-03-15 20:27:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 20:27:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 20:27:22] Production.INFO: ==20135== Releasing lock... [2025-03-15 20:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 20:27:22] Production.INFO: 40.75 MB #Memory Used# [2025-03-15 20:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 17:28:06 [end_date_ymd] => 2025-03-15 20:28:06 [RateCDR] => 1 ) [2025-03-15 20:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 17:28:06' and `end` < '2025-03-15 20:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 20:28:18] Production.INFO: count ==1687 [2025-03-15 20:28:19] Production.ERROR: pbx CDR StartTime 2025-03-15 17:28:06 - End Time 2025-03-15 20:28:06 [2025-03-15 20:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688585', 'tblTempUsageDetail_20' ) start [2025-03-15 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688585', 'tblTempUsageDetail_20' ) end [2025-03-15 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688585', 'tblTempVendorCDR_20' ) start [2025-03-15 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688585', 'tblTempVendorCDR_20' ) end [2025-03-15 20:28:19] Production.INFO: ProcessCDR(1,14688585,1,1,2) [2025-03-15 20:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688585', 'tblTempUsageDetail_20' ) start [2025-03-15 20:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688585', 'tblTempUsageDetail_20' ) end [2025-03-15 20:28:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 20:28:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 20:28:22] Production.INFO: ==20213== Releasing lock... [2025-03-15 20:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 20:28:22] Production.INFO: 40.75 MB #Memory Used# [2025-03-15 20:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 17:29:05 [end_date_ymd] => 2025-03-15 20:29:05 [RateCDR] => 1 ) [2025-03-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-03-15 17:29:05' and `end` < '2025-03-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-03-15 20:29:18] Production.INFO: count ==1691 [2025-03-15 20:29:18] Production.ERROR: pbx CDR StartTime 2025-03-15 17:29:05 - End Time 2025-03-15 20:29:05 [2025-03-15 20:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688590', 'tblTempUsageDetail_20' ) start [2025-03-15 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688590', 'tblTempUsageDetail_20' ) end [2025-03-15 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688590', 'tblTempVendorCDR_20' ) start [2025-03-15 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688590', 'tblTempVendorCDR_20' ) end [2025-03-15 20:29:18] Production.INFO: ProcessCDR(1,14688590,1,1,2) [2025-03-15 20:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688590', 'tblTempUsageDetail_20' ) start [2025-03-15 20:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688590', 'tblTempUsageDetail_20' ) end [2025-03-15 20:29:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 20:29:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 20:29:23] Production.INFO: ==20285== Releasing lock... [2025-03-15 20:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 20:29:23] Production.INFO: 41.25 MB #Memory Used# [2025-03-15 20:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 17:30:06 [end_date_ymd] => 2025-03-15 20:30:06 [RateCDR] => 1 ) [2025-03-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-03-15 17:30:06' and `end` < '2025-03-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-03-15 20:30:19] Production.INFO: count ==1687 [2025-03-15 20:30:19] Production.ERROR: pbx CDR StartTime 2025-03-15 17:30:06 - End Time 2025-03-15 20:30:06 [2025-03-15 20:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688596', 'tblTempUsageDetail_20' ) start [2025-03-15 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688596', 'tblTempUsageDetail_20' ) end [2025-03-15 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688596', 'tblTempVendorCDR_20' ) start [2025-03-15 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688596', 'tblTempVendorCDR_20' ) end [2025-03-15 20:30:19] Production.INFO: ProcessCDR(1,14688596,1,1,2) [2025-03-15 20:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688596', 'tblTempUsageDetail_20' ) start [2025-03-15 20:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688596', 'tblTempUsageDetail_20' ) end [2025-03-15 20:30:24] Production.ERROR: pbx prc_insertCDR start [2025-03-15 20:30:24] Production.ERROR: pbx prc_insertCDR end [2025-03-15 20:30:24] Production.INFO: ==20364== Releasing lock... [2025-03-15 20:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 20:30:24] Production.INFO: 40.75 MB #Memory Used# [2025-03-15 20:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 17:31:05 [end_date_ymd] => 2025-03-15 20:31:05 [RateCDR] => 1 ) [2025-03-15 20:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 17:31:05' and `end` < '2025-03-15 20:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 20:31:18] Production.INFO: count ==1671 [2025-03-15 20:31:18] Production.ERROR: pbx CDR StartTime 2025-03-15 17:31:05 - End Time 2025-03-15 20:31:05 [2025-03-15 20:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688601', 'tblTempUsageDetail_20' ) start [2025-03-15 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688601', 'tblTempUsageDetail_20' ) end [2025-03-15 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688601', 'tblTempVendorCDR_20' ) start [2025-03-15 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688601', 'tblTempVendorCDR_20' ) end [2025-03-15 20:31:18] Production.INFO: ProcessCDR(1,14688601,1,1,2) [2025-03-15 20:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688601', 'tblTempUsageDetail_20' ) start [2025-03-15 20:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688601', 'tblTempUsageDetail_20' ) end [2025-03-15 20:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 20:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 20:31:22] Production.INFO: ==20440== Releasing lock... [2025-03-15 20:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 20:31:22] Production.INFO: 40.5 MB #Memory Used# [2025-03-15 20:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 17:32:06 [end_date_ymd] => 2025-03-15 20:32:06 [RateCDR] => 1 ) [2025-03-15 20:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 17:32:06' and `end` < '2025-03-15 20:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 20:32:18] Production.INFO: count ==1670 [2025-03-15 20:32:19] Production.ERROR: pbx CDR StartTime 2025-03-15 17:32:06 - End Time 2025-03-15 20:32:06 [2025-03-15 20:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688606', 'tblTempUsageDetail_20' ) start [2025-03-15 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688606', 'tblTempUsageDetail_20' ) end [2025-03-15 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688606', 'tblTempVendorCDR_20' ) start [2025-03-15 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688606', 'tblTempVendorCDR_20' ) end [2025-03-15 20:32:19] Production.INFO: ProcessCDR(1,14688606,1,1,2) [2025-03-15 20:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688606', 'tblTempUsageDetail_20' ) start [2025-03-15 20:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688606', 'tblTempUsageDetail_20' ) end [2025-03-15 20:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 20:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 20:32:22] Production.INFO: ==20519== Releasing lock... [2025-03-15 20:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 20:32:22] Production.INFO: 40.5 MB #Memory Used# [2025-03-15 20:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 17:33:06 [end_date_ymd] => 2025-03-15 20:33:06 [RateCDR] => 1 ) [2025-03-15 20:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 17:33:06' and `end` < '2025-03-15 20:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 20:33:18] Production.INFO: count ==1659 [2025-03-15 20:33:18] Production.ERROR: pbx CDR StartTime 2025-03-15 17:33:06 - End Time 2025-03-15 20:33:06 [2025-03-15 20:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688611', 'tblTempUsageDetail_20' ) start [2025-03-15 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688611', 'tblTempUsageDetail_20' ) end [2025-03-15 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688611', 'tblTempVendorCDR_20' ) start [2025-03-15 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688611', 'tblTempVendorCDR_20' ) end [2025-03-15 20:33:18] Production.INFO: ProcessCDR(1,14688611,1,1,2) [2025-03-15 20:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688611', 'tblTempUsageDetail_20' ) start [2025-03-15 20:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688611', 'tblTempUsageDetail_20' ) end [2025-03-15 20:33:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 20:33:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 20:33:22] Production.INFO: ==20589== Releasing lock... [2025-03-15 20:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 20:33:22] Production.INFO: 40.5 MB #Memory Used# [2025-03-15 20:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 17:34:05 [end_date_ymd] => 2025-03-15 20:34:05 [RateCDR] => 1 ) [2025-03-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-03-15 17:34:05' and `end` < '2025-03-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-03-15 20:34:18] Production.INFO: count ==1672 [2025-03-15 20:34:18] Production.ERROR: pbx CDR StartTime 2025-03-15 17:34:05 - End Time 2025-03-15 20:34:05 [2025-03-15 20:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688616', 'tblTempUsageDetail_20' ) start [2025-03-15 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688616', 'tblTempUsageDetail_20' ) end [2025-03-15 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688616', 'tblTempVendorCDR_20' ) start [2025-03-15 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688616', 'tblTempVendorCDR_20' ) end [2025-03-15 20:34:18] Production.INFO: ProcessCDR(1,14688616,1,1,2) [2025-03-15 20:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688616', 'tblTempUsageDetail_20' ) start [2025-03-15 20:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688616', 'tblTempUsageDetail_20' ) end [2025-03-15 20:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 20:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 20:34:22] Production.INFO: ==20662== Releasing lock... [2025-03-15 20:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 20:34:22] Production.INFO: 40.5 MB #Memory Used# [2025-03-15 20:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 17:35:05 [end_date_ymd] => 2025-03-15 20:35:05 [RateCDR] => 1 ) [2025-03-15 20:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 17:35:05' and `end` < '2025-03-15 20:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 20:35:17] Production.INFO: count ==1679 [2025-03-15 20:35:18] Production.ERROR: pbx CDR StartTime 2025-03-15 17:35:05 - End Time 2025-03-15 20:35:05 [2025-03-15 20:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688621', 'tblTempUsageDetail_20' ) start [2025-03-15 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688621', 'tblTempUsageDetail_20' ) end [2025-03-15 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688621', 'tblTempVendorCDR_20' ) start [2025-03-15 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688621', 'tblTempVendorCDR_20' ) end [2025-03-15 20:35:18] Production.INFO: ProcessCDR(1,14688621,1,1,2) [2025-03-15 20:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688621', 'tblTempUsageDetail_20' ) start [2025-03-15 20:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688621', 'tblTempUsageDetail_20' ) end [2025-03-15 20:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 20:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 20:35:22] Production.INFO: ==20739== Releasing lock... [2025-03-15 20:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 20:35:22] Production.INFO: 41 MB #Memory Used# [2025-03-15 20:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 17:36:05 [end_date_ymd] => 2025-03-15 20:36:05 [RateCDR] => 1 ) [2025-03-15 20:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 17:36:05' and `end` < '2025-03-15 20:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 20:36:18] Production.INFO: count ==1676 [2025-03-15 20:36:18] Production.ERROR: pbx CDR StartTime 2025-03-15 17:36:05 - End Time 2025-03-15 20:36:05 [2025-03-15 20:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688626', 'tblTempUsageDetail_20' ) start [2025-03-15 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688626', 'tblTempUsageDetail_20' ) end [2025-03-15 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688626', 'tblTempVendorCDR_20' ) start [2025-03-15 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688626', 'tblTempVendorCDR_20' ) end [2025-03-15 20:36:18] Production.INFO: ProcessCDR(1,14688626,1,1,2) [2025-03-15 20:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688626', 'tblTempUsageDetail_20' ) start [2025-03-15 20:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688626', 'tblTempUsageDetail_20' ) end [2025-03-15 20:36:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 20:36:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 20:36:22] Production.INFO: ==20815== Releasing lock... [2025-03-15 20:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 20:36:22] Production.INFO: 40.5 MB #Memory Used# [2025-03-15 20:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 17:37:04 [end_date_ymd] => 2025-03-15 20:37:04 [RateCDR] => 1 ) [2025-03-15 20:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 17:37:04' and `end` < '2025-03-15 20:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 20:37:17] Production.INFO: count ==1672 [2025-03-15 20:37:17] Production.ERROR: pbx CDR StartTime 2025-03-15 17:37:04 - End Time 2025-03-15 20:37:04 [2025-03-15 20:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 20:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688631', 'tblTempUsageDetail_20' ) start [2025-03-15 20:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688631', 'tblTempUsageDetail_20' ) end [2025-03-15 20:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688631', 'tblTempVendorCDR_20' ) start [2025-03-15 20:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688631', 'tblTempVendorCDR_20' ) end [2025-03-15 20:37:17] Production.INFO: ProcessCDR(1,14688631,1,1,2) [2025-03-15 20:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688631', 'tblTempUsageDetail_20' ) start [2025-03-15 20:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688631', 'tblTempUsageDetail_20' ) end [2025-03-15 20:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 20:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 20:37:21] Production.INFO: ==20889== Releasing lock... [2025-03-15 20:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 20:37:21] Production.INFO: 40.5 MB #Memory Used# [2025-03-15 20:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 17:38:05 [end_date_ymd] => 2025-03-15 20:38:05 [RateCDR] => 1 ) [2025-03-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-03-15 17:38:05' and `end` < '2025-03-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-03-15 20:38:18] Production.INFO: count ==1671 [2025-03-15 20:38:18] Production.ERROR: pbx CDR StartTime 2025-03-15 17:38:05 - End Time 2025-03-15 20:38:05 [2025-03-15 20:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688636', 'tblTempUsageDetail_20' ) start [2025-03-15 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688636', 'tblTempUsageDetail_20' ) end [2025-03-15 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688636', 'tblTempVendorCDR_20' ) start [2025-03-15 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688636', 'tblTempVendorCDR_20' ) end [2025-03-15 20:38:18] Production.INFO: ProcessCDR(1,14688636,1,1,2) [2025-03-15 20:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688636', 'tblTempUsageDetail_20' ) start [2025-03-15 20:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688636', 'tblTempUsageDetail_20' ) end [2025-03-15 20:38:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 20:38:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 20:38:23] Production.INFO: ==20962== Releasing lock... [2025-03-15 20:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 20:38:23] Production.INFO: 40.5 MB #Memory Used# [2025-03-15 20:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 17:39:05 [end_date_ymd] => 2025-03-15 20:39:05 [RateCDR] => 1 ) [2025-03-15 20:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 17:39:05' and `end` < '2025-03-15 20:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 20:39:17] Production.INFO: count ==1668 [2025-03-15 20:39:18] Production.ERROR: pbx CDR StartTime 2025-03-15 17:39:05 - End Time 2025-03-15 20:39:05 [2025-03-15 20:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688641', 'tblTempUsageDetail_20' ) start [2025-03-15 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688641', 'tblTempUsageDetail_20' ) end [2025-03-15 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688641', 'tblTempVendorCDR_20' ) start [2025-03-15 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688641', 'tblTempVendorCDR_20' ) end [2025-03-15 20:39:18] Production.INFO: ProcessCDR(1,14688641,1,1,2) [2025-03-15 20:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688641', 'tblTempUsageDetail_20' ) start [2025-03-15 20:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688641', 'tblTempUsageDetail_20' ) end [2025-03-15 20:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 20:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 20:39:21] Production.INFO: ==21037== Releasing lock... [2025-03-15 20:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 20:39:21] Production.INFO: 40.75 MB #Memory Used# [2025-03-15 20:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 17:40:06 [end_date_ymd] => 2025-03-15 20:40:06 [RateCDR] => 1 ) [2025-03-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-03-15 17:40:06' and `end` < '2025-03-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-03-15 20:40:18] Production.INFO: count ==1657 [2025-03-15 20:40:19] Production.ERROR: pbx CDR StartTime 2025-03-15 17:40:06 - End Time 2025-03-15 20:40:06 [2025-03-15 20:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688647', 'tblTempUsageDetail_20' ) start [2025-03-15 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688647', 'tblTempUsageDetail_20' ) end [2025-03-15 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688647', 'tblTempVendorCDR_20' ) start [2025-03-15 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688647', 'tblTempVendorCDR_20' ) end [2025-03-15 20:40:19] Production.INFO: ProcessCDR(1,14688647,1,1,2) [2025-03-15 20:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688647', 'tblTempUsageDetail_20' ) start [2025-03-15 20:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688647', 'tblTempUsageDetail_20' ) end [2025-03-15 20:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 20:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 20:40:22] Production.INFO: ==21116== Releasing lock... [2025-03-15 20:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 20:40:22] Production.INFO: 40.5 MB #Memory Used# [2025-03-15 20:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 17:41:05 [end_date_ymd] => 2025-03-15 20:41:05 [RateCDR] => 1 ) [2025-03-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-03-15 17:41:05' and `end` < '2025-03-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-03-15 20:41:17] Production.INFO: count ==1629 [2025-03-15 20:41:18] Production.ERROR: pbx CDR StartTime 2025-03-15 17:41:05 - End Time 2025-03-15 20:41:05 [2025-03-15 20:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688652', 'tblTempUsageDetail_20' ) start [2025-03-15 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688652', 'tblTempUsageDetail_20' ) end [2025-03-15 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688652', 'tblTempVendorCDR_20' ) start [2025-03-15 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688652', 'tblTempVendorCDR_20' ) end [2025-03-15 20:41:18] Production.INFO: ProcessCDR(1,14688652,1,1,2) [2025-03-15 20:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688652', 'tblTempUsageDetail_20' ) start [2025-03-15 20:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688652', 'tblTempUsageDetail_20' ) end [2025-03-15 20:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 20:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 20:41:21] Production.INFO: ==21194== Releasing lock... [2025-03-15 20:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 20:41:21] Production.INFO: 40 MB #Memory Used# [2025-03-15 20:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 17:42:05 [end_date_ymd] => 2025-03-15 20:42:05 [RateCDR] => 1 ) [2025-03-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-03-15 17:42:05' and `end` < '2025-03-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-03-15 20:42:17] Production.INFO: count ==1626 [2025-03-15 20:42:18] Production.ERROR: pbx CDR StartTime 2025-03-15 17:42:05 - End Time 2025-03-15 20:42:05 [2025-03-15 20:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688657', 'tblTempUsageDetail_20' ) start [2025-03-15 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688657', 'tblTempUsageDetail_20' ) end [2025-03-15 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688657', 'tblTempVendorCDR_20' ) start [2025-03-15 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688657', 'tblTempVendorCDR_20' ) end [2025-03-15 20:42:18] Production.INFO: ProcessCDR(1,14688657,1,1,2) [2025-03-15 20:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688657', 'tblTempUsageDetail_20' ) start [2025-03-15 20:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688657', 'tblTempUsageDetail_20' ) end [2025-03-15 20:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 20:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 20:42:21] Production.INFO: ==21312== Releasing lock... [2025-03-15 20:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 20:42:21] Production.INFO: 40.25 MB #Memory Used# [2025-03-15 20:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 17:43:05 [end_date_ymd] => 2025-03-15 20:43:05 [RateCDR] => 1 ) [2025-03-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-03-15 17:43:05' and `end` < '2025-03-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-03-15 20:43:17] Production.INFO: count ==1622 [2025-03-15 20:43:18] Production.ERROR: pbx CDR StartTime 2025-03-15 17:43:05 - End Time 2025-03-15 20:43:05 [2025-03-15 20:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688662', 'tblTempUsageDetail_20' ) start [2025-03-15 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688662', 'tblTempUsageDetail_20' ) end [2025-03-15 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688662', 'tblTempVendorCDR_20' ) start [2025-03-15 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688662', 'tblTempVendorCDR_20' ) end [2025-03-15 20:43:18] Production.INFO: ProcessCDR(1,14688662,1,1,2) [2025-03-15 20:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688662', 'tblTempUsageDetail_20' ) start [2025-03-15 20:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688662', 'tblTempUsageDetail_20' ) end [2025-03-15 20:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 20:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 20:43:21] Production.INFO: ==21391== Releasing lock... [2025-03-15 20:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 20:43:21] Production.INFO: 40.25 MB #Memory Used# [2025-03-15 20:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 17:44:05 [end_date_ymd] => 2025-03-15 20:44:05 [RateCDR] => 1 ) [2025-03-15 20:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 17:44:05' and `end` < '2025-03-15 20:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 20:44:18] Production.INFO: count ==1622 [2025-03-15 20:44:18] Production.ERROR: pbx CDR StartTime 2025-03-15 17:44:05 - End Time 2025-03-15 20:44:05 [2025-03-15 20:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688667', 'tblTempUsageDetail_20' ) start [2025-03-15 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688667', 'tblTempUsageDetail_20' ) end [2025-03-15 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688667', 'tblTempVendorCDR_20' ) start [2025-03-15 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688667', 'tblTempVendorCDR_20' ) end [2025-03-15 20:44:18] Production.INFO: ProcessCDR(1,14688667,1,1,2) [2025-03-15 20:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688667', 'tblTempUsageDetail_20' ) start [2025-03-15 20:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688667', 'tblTempUsageDetail_20' ) end [2025-03-15 20:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 20:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 20:44:21] Production.INFO: ==21469== Releasing lock... [2025-03-15 20:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 20:44:21] Production.INFO: 40.25 MB #Memory Used# [2025-03-15 20:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 17:45:05 [end_date_ymd] => 2025-03-15 20:45:05 [RateCDR] => 1 ) [2025-03-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-03-15 17:45:05' and `end` < '2025-03-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-03-15 20:45:18] Production.INFO: count ==1606 [2025-03-15 20:45:18] Production.ERROR: pbx CDR StartTime 2025-03-15 17:45:05 - End Time 2025-03-15 20:45:05 [2025-03-15 20:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688672', 'tblTempUsageDetail_20' ) start [2025-03-15 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688672', 'tblTempUsageDetail_20' ) end [2025-03-15 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688672', 'tblTempVendorCDR_20' ) start [2025-03-15 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688672', 'tblTempVendorCDR_20' ) end [2025-03-15 20:45:18] Production.INFO: ProcessCDR(1,14688672,1,1,2) [2025-03-15 20:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688672', 'tblTempUsageDetail_20' ) start [2025-03-15 20:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688672', 'tblTempUsageDetail_20' ) end [2025-03-15 20:45:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 20:45:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 20:45:23] Production.INFO: ==21550== Releasing lock... [2025-03-15 20:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 20:45:23] Production.INFO: 40 MB #Memory Used# [2025-03-15 20:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 17:46:05 [end_date_ymd] => 2025-03-15 20:46:05 [RateCDR] => 1 ) [2025-03-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-03-15 17:46:05' and `end` < '2025-03-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-03-15 20:46:18] Production.INFO: count ==1607 [2025-03-15 20:46:18] Production.ERROR: pbx CDR StartTime 2025-03-15 17:46:05 - End Time 2025-03-15 20:46:05 [2025-03-15 20:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688677', 'tblTempUsageDetail_20' ) start [2025-03-15 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688677', 'tblTempUsageDetail_20' ) end [2025-03-15 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688677', 'tblTempVendorCDR_20' ) start [2025-03-15 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688677', 'tblTempVendorCDR_20' ) end [2025-03-15 20:46:18] Production.INFO: ProcessCDR(1,14688677,1,1,2) [2025-03-15 20:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688677', 'tblTempUsageDetail_20' ) start [2025-03-15 20:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688677', 'tblTempUsageDetail_20' ) end [2025-03-15 20:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 20:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 20:46:22] Production.INFO: ==21626== Releasing lock... [2025-03-15 20:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 20:46:22] Production.INFO: 40 MB #Memory Used# [2025-03-15 20:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 17:47:06 [end_date_ymd] => 2025-03-15 20:47:06 [RateCDR] => 1 ) [2025-03-15 20:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 17:47:06' and `end` < '2025-03-15 20:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 20:47:18] Production.INFO: count ==1601 [2025-03-15 20:47:19] Production.ERROR: pbx CDR StartTime 2025-03-15 17:47:06 - End Time 2025-03-15 20:47:06 [2025-03-15 20:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688682', 'tblTempUsageDetail_20' ) start [2025-03-15 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688682', 'tblTempUsageDetail_20' ) end [2025-03-15 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688682', 'tblTempVendorCDR_20' ) start [2025-03-15 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688682', 'tblTempVendorCDR_20' ) end [2025-03-15 20:47:19] Production.INFO: ProcessCDR(1,14688682,1,1,2) [2025-03-15 20:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688682', 'tblTempUsageDetail_20' ) start [2025-03-15 20:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688682', 'tblTempUsageDetail_20' ) end [2025-03-15 20:47:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 20:47:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 20:47:24] Production.INFO: ==21704== Releasing lock... [2025-03-15 20:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 20:47:24] Production.INFO: 40 MB #Memory Used# [2025-03-15 20:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 17:48:05 [end_date_ymd] => 2025-03-15 20:48:05 [RateCDR] => 1 ) [2025-03-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-03-15 17:48:05' and `end` < '2025-03-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-03-15 20:48:18] Production.INFO: count ==1605 [2025-03-15 20:48:18] Production.ERROR: pbx CDR StartTime 2025-03-15 17:48:05 - End Time 2025-03-15 20:48:05 [2025-03-15 20:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688687', 'tblTempUsageDetail_20' ) start [2025-03-15 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688687', 'tblTempUsageDetail_20' ) end [2025-03-15 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688687', 'tblTempVendorCDR_20' ) start [2025-03-15 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688687', 'tblTempVendorCDR_20' ) end [2025-03-15 20:48:18] Production.INFO: ProcessCDR(1,14688687,1,1,2) [2025-03-15 20:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688687', 'tblTempUsageDetail_20' ) start [2025-03-15 20:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688687', 'tblTempUsageDetail_20' ) end [2025-03-15 20:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 20:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 20:48:22] Production.INFO: ==21785== Releasing lock... [2025-03-15 20:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 20:48:22] Production.INFO: 40.25 MB #Memory Used# [2025-03-15 20:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 17:49:05 [end_date_ymd] => 2025-03-15 20:49:05 [RateCDR] => 1 ) [2025-03-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-03-15 17:49:05' and `end` < '2025-03-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-03-15 20:49:18] Production.INFO: count ==1599 [2025-03-15 20:49:18] Production.ERROR: pbx CDR StartTime 2025-03-15 17:49:05 - End Time 2025-03-15 20:49:05 [2025-03-15 20:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688692', 'tblTempUsageDetail_20' ) start [2025-03-15 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688692', 'tblTempUsageDetail_20' ) end [2025-03-15 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688692', 'tblTempVendorCDR_20' ) start [2025-03-15 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688692', 'tblTempVendorCDR_20' ) end [2025-03-15 20:49:18] Production.INFO: ProcessCDR(1,14688692,1,1,2) [2025-03-15 20:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688692', 'tblTempUsageDetail_20' ) start [2025-03-15 20:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688692', 'tblTempUsageDetail_20' ) end [2025-03-15 20:49:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 20:49:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 20:49:23] Production.INFO: ==21867== Releasing lock... [2025-03-15 20:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 20:49:23] Production.INFO: 40.25 MB #Memory Used# [2025-03-15 20:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 17:50:05 [end_date_ymd] => 2025-03-15 20:50:05 [RateCDR] => 1 ) [2025-03-15 20: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-03-15 17:50:05' and `end` < '2025-03-15 20: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-03-15 20:50:18] Production.INFO: count ==1600 [2025-03-15 20:50:18] Production.ERROR: pbx CDR StartTime 2025-03-15 17:50:05 - End Time 2025-03-15 20:50:05 [2025-03-15 20:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 20:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688698', 'tblTempUsageDetail_20' ) start [2025-03-15 20:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688698', 'tblTempUsageDetail_20' ) end [2025-03-15 20:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688698', 'tblTempVendorCDR_20' ) start [2025-03-15 20:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688698', 'tblTempVendorCDR_20' ) end [2025-03-15 20:50:18] Production.INFO: ProcessCDR(1,14688698,1,1,2) [2025-03-15 20:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688698', 'tblTempUsageDetail_20' ) start [2025-03-15 20:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688698', 'tblTempUsageDetail_20' ) end [2025-03-15 20:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 20:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 20:50:22] Production.INFO: ==21950== Releasing lock... [2025-03-15 20:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 20:50:22] Production.INFO: 40 MB #Memory Used# [2025-03-15 20:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 17:51:05 [end_date_ymd] => 2025-03-15 20:51:05 [RateCDR] => 1 ) [2025-03-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-03-15 17:51:05' and `end` < '2025-03-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-03-15 20:51:17] Production.INFO: count ==1606 [2025-03-15 20:51:18] Production.ERROR: pbx CDR StartTime 2025-03-15 17:51:05 - End Time 2025-03-15 20:51:05 [2025-03-15 20:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688703', 'tblTempUsageDetail_20' ) start [2025-03-15 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688703', 'tblTempUsageDetail_20' ) end [2025-03-15 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688703', 'tblTempVendorCDR_20' ) start [2025-03-15 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688703', 'tblTempVendorCDR_20' ) end [2025-03-15 20:51:18] Production.INFO: ProcessCDR(1,14688703,1,1,2) [2025-03-15 20:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688703', 'tblTempUsageDetail_20' ) start [2025-03-15 20:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688703', 'tblTempUsageDetail_20' ) end [2025-03-15 20:51:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 20:51:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 20:51:23] Production.INFO: ==22032== Releasing lock... [2025-03-15 20:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 20:51:23] Production.INFO: 40 MB #Memory Used# [2025-03-15 20:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 17:52:05 [end_date_ymd] => 2025-03-15 20:52:05 [RateCDR] => 1 ) [2025-03-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-03-15 17:52:05' and `end` < '2025-03-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-03-15 20:52:18] Production.INFO: count ==1608 [2025-03-15 20:52:18] Production.ERROR: pbx CDR StartTime 2025-03-15 17:52:05 - End Time 2025-03-15 20:52:05 [2025-03-15 20:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688708', 'tblTempUsageDetail_20' ) start [2025-03-15 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688708', 'tblTempUsageDetail_20' ) end [2025-03-15 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688708', 'tblTempVendorCDR_20' ) start [2025-03-15 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688708', 'tblTempVendorCDR_20' ) end [2025-03-15 20:52:18] Production.INFO: ProcessCDR(1,14688708,1,1,2) [2025-03-15 20:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688708', 'tblTempUsageDetail_20' ) start [2025-03-15 20:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688708', 'tblTempUsageDetail_20' ) end [2025-03-15 20:52:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 20:52:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 20:52:23] Production.INFO: ==22106== Releasing lock... [2025-03-15 20:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 20:52:23] Production.INFO: 40.25 MB #Memory Used# [2025-03-15 20:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 17:53:06 [end_date_ymd] => 2025-03-15 20:53:06 [RateCDR] => 1 ) [2025-03-15 20:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 17:53:06' and `end` < '2025-03-15 20:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 20:53:18] Production.INFO: count ==1607 [2025-03-15 20:53:18] Production.ERROR: pbx CDR StartTime 2025-03-15 17:53:06 - End Time 2025-03-15 20:53:06 [2025-03-15 20:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688713', 'tblTempUsageDetail_20' ) start [2025-03-15 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688713', 'tblTempUsageDetail_20' ) end [2025-03-15 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688713', 'tblTempVendorCDR_20' ) start [2025-03-15 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688713', 'tblTempVendorCDR_20' ) end [2025-03-15 20:53:18] Production.INFO: ProcessCDR(1,14688713,1,1,2) [2025-03-15 20:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688713', 'tblTempUsageDetail_20' ) start [2025-03-15 20:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688713', 'tblTempUsageDetail_20' ) end [2025-03-15 20:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 20:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 20:53:22] Production.INFO: ==22197== Releasing lock... [2025-03-15 20:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 20:53:22] Production.INFO: 40.25 MB #Memory Used# [2025-03-15 20:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 17:54:05 [end_date_ymd] => 2025-03-15 20:54:05 [RateCDR] => 1 ) [2025-03-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-03-15 17:54:05' and `end` < '2025-03-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-03-15 20:54:18] Production.INFO: count ==1604 [2025-03-15 20:54:18] Production.ERROR: pbx CDR StartTime 2025-03-15 17:54:05 - End Time 2025-03-15 20:54:05 [2025-03-15 20:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688718', 'tblTempUsageDetail_20' ) start [2025-03-15 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688718', 'tblTempUsageDetail_20' ) end [2025-03-15 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688718', 'tblTempVendorCDR_20' ) start [2025-03-15 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688718', 'tblTempVendorCDR_20' ) end [2025-03-15 20:54:18] Production.INFO: ProcessCDR(1,14688718,1,1,2) [2025-03-15 20:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688718', 'tblTempUsageDetail_20' ) start [2025-03-15 20:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688718', 'tblTempUsageDetail_20' ) end [2025-03-15 20:54:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 20:54:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 20:54:23] Production.INFO: ==22281== Releasing lock... [2025-03-15 20:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 20:54:23] Production.INFO: 40 MB #Memory Used# [2025-03-15 20:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 17:55:06 [end_date_ymd] => 2025-03-15 20:55:06 [RateCDR] => 1 ) [2025-03-15 20:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 17:55:06' and `end` < '2025-03-15 20:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 20:55:18] Production.INFO: count ==1608 [2025-03-15 20:55:18] Production.ERROR: pbx CDR StartTime 2025-03-15 17:55:06 - End Time 2025-03-15 20:55:06 [2025-03-15 20:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688723', 'tblTempUsageDetail_20' ) start [2025-03-15 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688723', 'tblTempUsageDetail_20' ) end [2025-03-15 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688723', 'tblTempVendorCDR_20' ) start [2025-03-15 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688723', 'tblTempVendorCDR_20' ) end [2025-03-15 20:55:18] Production.INFO: ProcessCDR(1,14688723,1,1,2) [2025-03-15 20:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688723', 'tblTempUsageDetail_20' ) start [2025-03-15 20:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688723', 'tblTempUsageDetail_20' ) end [2025-03-15 20:55:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 20:55:24] Production.ERROR: pbx prc_insertCDR end [2025-03-15 20:55:24] Production.INFO: ==22361== Releasing lock... [2025-03-15 20:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 20:55:24] Production.INFO: 40 MB #Memory Used# [2025-03-15 20:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 17:56:05 [end_date_ymd] => 2025-03-15 20:56:05 [RateCDR] => 1 ) [2025-03-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-03-15 17:56:05' and `end` < '2025-03-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-03-15 20:56:17] Production.INFO: count ==1596 [2025-03-15 20:56:18] Production.ERROR: pbx CDR StartTime 2025-03-15 17:56:05 - End Time 2025-03-15 20:56:05 [2025-03-15 20:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688728', 'tblTempUsageDetail_20' ) start [2025-03-15 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688728', 'tblTempUsageDetail_20' ) end [2025-03-15 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688728', 'tblTempVendorCDR_20' ) start [2025-03-15 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688728', 'tblTempVendorCDR_20' ) end [2025-03-15 20:56:18] Production.INFO: ProcessCDR(1,14688728,1,1,2) [2025-03-15 20:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688728', 'tblTempUsageDetail_20' ) start [2025-03-15 20:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688728', 'tblTempUsageDetail_20' ) end [2025-03-15 20:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 20:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 20:56:21] Production.INFO: ==22440== Releasing lock... [2025-03-15 20:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 20:56:21] Production.INFO: 40 MB #Memory Used# [2025-03-15 20:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 17:57:05 [end_date_ymd] => 2025-03-15 20:57:05 [RateCDR] => 1 ) [2025-03-15 20:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 17:57:05' and `end` < '2025-03-15 20:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 20:57:17] Production.INFO: count ==1594 [2025-03-15 20:57:18] Production.ERROR: pbx CDR StartTime 2025-03-15 17:57:05 - End Time 2025-03-15 20:57:05 [2025-03-15 20:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688733', 'tblTempUsageDetail_20' ) start [2025-03-15 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688733', 'tblTempUsageDetail_20' ) end [2025-03-15 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688733', 'tblTempVendorCDR_20' ) start [2025-03-15 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688733', 'tblTempVendorCDR_20' ) end [2025-03-15 20:57:18] Production.INFO: ProcessCDR(1,14688733,1,1,2) [2025-03-15 20:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688733', 'tblTempUsageDetail_20' ) start [2025-03-15 20:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688733', 'tblTempUsageDetail_20' ) end [2025-03-15 20:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 20:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 20:57:21] Production.INFO: ==22562== Releasing lock... [2025-03-15 20:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 20:57:21] Production.INFO: 40 MB #Memory Used# [2025-03-15 20:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 17:58:05 [end_date_ymd] => 2025-03-15 20:58:05 [RateCDR] => 1 ) [2025-03-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-03-15 17:58:05' and `end` < '2025-03-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-03-15 20:58:17] Production.INFO: count ==1592 [2025-03-15 20:58:17] Production.ERROR: pbx CDR StartTime 2025-03-15 17:58:05 - End Time 2025-03-15 20:58:05 [2025-03-15 20:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 20:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688738', 'tblTempUsageDetail_20' ) start [2025-03-15 20:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688738', 'tblTempUsageDetail_20' ) end [2025-03-15 20:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688738', 'tblTempVendorCDR_20' ) start [2025-03-15 20:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688738', 'tblTempVendorCDR_20' ) end [2025-03-15 20:58:17] Production.INFO: ProcessCDR(1,14688738,1,1,2) [2025-03-15 20:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688738', 'tblTempUsageDetail_20' ) start [2025-03-15 20:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688738', 'tblTempUsageDetail_20' ) end [2025-03-15 20:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 20:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 20:58:21] Production.INFO: ==22640== Releasing lock... [2025-03-15 20:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 20:58:21] Production.INFO: 40 MB #Memory Used# [2025-03-15 20:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 17:59:05 [end_date_ymd] => 2025-03-15 20:59:05 [RateCDR] => 1 ) [2025-03-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-03-15 17:59:05' and `end` < '2025-03-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-03-15 20:59:17] Production.INFO: count ==1593 [2025-03-15 20:59:18] Production.ERROR: pbx CDR StartTime 2025-03-15 17:59:05 - End Time 2025-03-15 20:59:05 [2025-03-15 20:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688743', 'tblTempUsageDetail_20' ) start [2025-03-15 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688743', 'tblTempUsageDetail_20' ) end [2025-03-15 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688743', 'tblTempVendorCDR_20' ) start [2025-03-15 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688743', 'tblTempVendorCDR_20' ) end [2025-03-15 20:59:18] Production.INFO: ProcessCDR(1,14688743,1,1,2) [2025-03-15 20:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 20:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 20:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688743', 'tblTempUsageDetail_20' ) start [2025-03-15 20:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688743', 'tblTempUsageDetail_20' ) end [2025-03-15 20:59:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 20:59:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 20:59:22] Production.INFO: ==22727== Releasing lock... [2025-03-15 20:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 20:59:22] Production.INFO: 40 MB #Memory Used# [2025-03-15 21:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 18:00:06 [end_date_ymd] => 2025-03-15 21:00:06 [RateCDR] => 1 ) [2025-03-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-03-15 18:00:06' and `end` < '2025-03-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-03-15 21:00:18] Production.INFO: count ==1594 [2025-03-15 21:00:19] Production.ERROR: pbx CDR StartTime 2025-03-15 18:00:06 - End Time 2025-03-15 21:00:06 [2025-03-15 21:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688748', 'tblTempUsageDetail_20' ) start [2025-03-15 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688748', 'tblTempUsageDetail_20' ) end [2025-03-15 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688748', 'tblTempVendorCDR_20' ) start [2025-03-15 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688748', 'tblTempVendorCDR_20' ) end [2025-03-15 21:00:19] Production.INFO: ProcessCDR(1,14688748,1,1,2) [2025-03-15 21:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688748', 'tblTempUsageDetail_20' ) start [2025-03-15 21:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688748', 'tblTempUsageDetail_20' ) end [2025-03-15 21:00:24] Production.ERROR: pbx prc_insertCDR start [2025-03-15 21:00:24] Production.ERROR: pbx prc_insertCDR end [2025-03-15 21:00:24] Production.INFO: ==22820== Releasing lock... [2025-03-15 21:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 21:00:24] Production.INFO: 40 MB #Memory Used# [2025-03-15 21:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 18:01:05 [end_date_ymd] => 2025-03-15 21:01:05 [RateCDR] => 1 ) [2025-03-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-03-15 18:01:05' and `end` < '2025-03-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-03-15 21:01:18] Production.INFO: count ==1602 [2025-03-15 21:01:18] Production.ERROR: pbx CDR StartTime 2025-03-15 18:01:05 - End Time 2025-03-15 21:01:05 [2025-03-15 21:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688754', 'tblTempUsageDetail_20' ) start [2025-03-15 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688754', 'tblTempUsageDetail_20' ) end [2025-03-15 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688754', 'tblTempVendorCDR_20' ) start [2025-03-15 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688754', 'tblTempVendorCDR_20' ) end [2025-03-15 21:01:18] Production.INFO: ProcessCDR(1,14688754,1,1,2) [2025-03-15 21:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688754', 'tblTempUsageDetail_20' ) start [2025-03-15 21:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688754', 'tblTempUsageDetail_20' ) end [2025-03-15 21:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 21:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 21:01:21] Production.INFO: ==22932== Releasing lock... [2025-03-15 21:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 21:01:21] Production.INFO: 40.25 MB #Memory Used# [2025-03-15 21:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 18:02:05 [end_date_ymd] => 2025-03-15 21:02:05 [RateCDR] => 1 ) [2025-03-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-03-15 18:02:05' and `end` < '2025-03-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-03-15 21:02:17] Production.INFO: count ==1608 [2025-03-15 21:02:17] Production.ERROR: pbx CDR StartTime 2025-03-15 18:02:05 - End Time 2025-03-15 21:02:05 [2025-03-15 21:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 21:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688759', 'tblTempUsageDetail_20' ) start [2025-03-15 21:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688759', 'tblTempUsageDetail_20' ) end [2025-03-15 21:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688759', 'tblTempVendorCDR_20' ) start [2025-03-15 21:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688759', 'tblTempVendorCDR_20' ) end [2025-03-15 21:02:17] Production.INFO: ProcessCDR(1,14688759,1,1,2) [2025-03-15 21:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688759', 'tblTempUsageDetail_20' ) start [2025-03-15 21:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688759', 'tblTempUsageDetail_20' ) end [2025-03-15 21:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 21:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 21:02:21] Production.INFO: ==23014== Releasing lock... [2025-03-15 21:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 21:02:21] Production.INFO: 40.25 MB #Memory Used# [2025-03-15 21:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 18:03:06 [end_date_ymd] => 2025-03-15 21:03:06 [RateCDR] => 1 ) [2025-03-15 21:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 18:03:06' and `end` < '2025-03-15 21:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 21:03:18] Production.INFO: count ==1604 [2025-03-15 21:03:18] Production.ERROR: pbx CDR StartTime 2025-03-15 18:03:06 - End Time 2025-03-15 21:03:06 [2025-03-15 21:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688764', 'tblTempUsageDetail_20' ) start [2025-03-15 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688764', 'tblTempUsageDetail_20' ) end [2025-03-15 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688764', 'tblTempVendorCDR_20' ) start [2025-03-15 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688764', 'tblTempVendorCDR_20' ) end [2025-03-15 21:03:18] Production.INFO: ProcessCDR(1,14688764,1,1,2) [2025-03-15 21:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688764', 'tblTempUsageDetail_20' ) start [2025-03-15 21:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688764', 'tblTempUsageDetail_20' ) end [2025-03-15 21:03:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 21:03:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 21:03:23] Production.INFO: ==23107== Releasing lock... [2025-03-15 21:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 21:03:23] Production.INFO: 40.5 MB #Memory Used# [2025-03-15 21:04:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 18:04:04 [end_date_ymd] => 2025-03-15 21:04:04 [RateCDR] => 1 ) [2025-03-15 21: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-03-15 18:04:04' and `end` < '2025-03-15 21: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-03-15 21:04:17] Production.INFO: count ==1609 [2025-03-15 21:04:17] Production.ERROR: pbx CDR StartTime 2025-03-15 18:04:04 - End Time 2025-03-15 21:04:04 [2025-03-15 21:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 21:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688769', 'tblTempUsageDetail_20' ) start [2025-03-15 21:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688769', 'tblTempUsageDetail_20' ) end [2025-03-15 21:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688769', 'tblTempVendorCDR_20' ) start [2025-03-15 21:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688769', 'tblTempVendorCDR_20' ) end [2025-03-15 21:04:17] Production.INFO: ProcessCDR(1,14688769,1,1,2) [2025-03-15 21:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688769', 'tblTempUsageDetail_20' ) start [2025-03-15 21:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688769', 'tblTempUsageDetail_20' ) end [2025-03-15 21:04:20] Production.ERROR: pbx prc_insertCDR start [2025-03-15 21:04:20] Production.ERROR: pbx prc_insertCDR end [2025-03-15 21:04:20] Production.INFO: ==23200== Releasing lock... [2025-03-15 21:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 21:04:20] Production.INFO: 40 MB #Memory Used# [2025-03-15 21:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 18:05:05 [end_date_ymd] => 2025-03-15 21:05:05 [RateCDR] => 1 ) [2025-03-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-03-15 18:05:05' and `end` < '2025-03-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-03-15 21:05:17] Production.INFO: count ==1606 [2025-03-15 21:05:18] Production.ERROR: pbx CDR StartTime 2025-03-15 18:05:05 - End Time 2025-03-15 21:05:05 [2025-03-15 21:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688774', 'tblTempUsageDetail_20' ) start [2025-03-15 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688774', 'tblTempUsageDetail_20' ) end [2025-03-15 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688774', 'tblTempVendorCDR_20' ) start [2025-03-15 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688774', 'tblTempVendorCDR_20' ) end [2025-03-15 21:05:18] Production.INFO: ProcessCDR(1,14688774,1,1,2) [2025-03-15 21:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688774', 'tblTempUsageDetail_20' ) start [2025-03-15 21:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688774', 'tblTempUsageDetail_20' ) end [2025-03-15 21:05:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 21:05:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 21:05:23] Production.INFO: ==23301== Releasing lock... [2025-03-15 21:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 21:05:23] Production.INFO: 40 MB #Memory Used# [2025-03-15 21:06:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 18:06:04 [end_date_ymd] => 2025-03-15 21:06:04 [RateCDR] => 1 ) [2025-03-15 21:06:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 18:06:04' and `end` < '2025-03-15 21:06:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 21:06:17] Production.INFO: count ==1604 [2025-03-15 21:06:17] Production.ERROR: pbx CDR StartTime 2025-03-15 18:06:04 - End Time 2025-03-15 21:06:04 [2025-03-15 21:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 21:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688779', 'tblTempUsageDetail_20' ) start [2025-03-15 21:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688779', 'tblTempUsageDetail_20' ) end [2025-03-15 21:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688779', 'tblTempVendorCDR_20' ) start [2025-03-15 21:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688779', 'tblTempVendorCDR_20' ) end [2025-03-15 21:06:17] Production.INFO: ProcessCDR(1,14688779,1,1,2) [2025-03-15 21:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688779', 'tblTempUsageDetail_20' ) start [2025-03-15 21:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688779', 'tblTempUsageDetail_20' ) end [2025-03-15 21:06:20] Production.ERROR: pbx prc_insertCDR start [2025-03-15 21:06:20] Production.ERROR: pbx prc_insertCDR end [2025-03-15 21:06:20] Production.INFO: ==23395== Releasing lock... [2025-03-15 21:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 21:06:20] Production.INFO: 40 MB #Memory Used# [2025-03-15 21:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 18:07:05 [end_date_ymd] => 2025-03-15 21:07:05 [RateCDR] => 1 ) [2025-03-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-03-15 18:07:05' and `end` < '2025-03-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-03-15 21:07:17] Production.INFO: count ==1592 [2025-03-15 21:07:18] Production.ERROR: pbx CDR StartTime 2025-03-15 18:07:05 - End Time 2025-03-15 21:07:05 [2025-03-15 21:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688784', 'tblTempUsageDetail_20' ) start [2025-03-15 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688784', 'tblTempUsageDetail_20' ) end [2025-03-15 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688784', 'tblTempVendorCDR_20' ) start [2025-03-15 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688784', 'tblTempVendorCDR_20' ) end [2025-03-15 21:07:18] Production.INFO: ProcessCDR(1,14688784,1,1,2) [2025-03-15 21:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688784', 'tblTempUsageDetail_20' ) start [2025-03-15 21:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688784', 'tblTempUsageDetail_20' ) end [2025-03-15 21:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 21:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 21:07:21] Production.INFO: ==23495== Releasing lock... [2025-03-15 21:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 21:07:21] Production.INFO: 40 MB #Memory Used# [2025-03-15 21:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 18:08:05 [end_date_ymd] => 2025-03-15 21:08:05 [RateCDR] => 1 ) [2025-03-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-03-15 18:08:05' and `end` < '2025-03-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-03-15 21:08:17] Production.INFO: count ==1592 [2025-03-15 21:08:18] Production.ERROR: pbx CDR StartTime 2025-03-15 18:08:05 - End Time 2025-03-15 21:08:05 [2025-03-15 21:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688789', 'tblTempUsageDetail_20' ) start [2025-03-15 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688789', 'tblTempUsageDetail_20' ) end [2025-03-15 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688789', 'tblTempVendorCDR_20' ) start [2025-03-15 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688789', 'tblTempVendorCDR_20' ) end [2025-03-15 21:08:18] Production.INFO: ProcessCDR(1,14688789,1,1,2) [2025-03-15 21:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688789', 'tblTempUsageDetail_20' ) start [2025-03-15 21:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688789', 'tblTempUsageDetail_20' ) end [2025-03-15 21:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 21:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 21:08:21] Production.INFO: ==23598== Releasing lock... [2025-03-15 21:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 21:08:21] Production.INFO: 40.25 MB #Memory Used# [2025-03-15 21:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 18:09:05 [end_date_ymd] => 2025-03-15 21:09:05 [RateCDR] => 1 ) [2025-03-15 21:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 18:09:05' and `end` < '2025-03-15 21:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 21:09:18] Production.INFO: count ==1591 [2025-03-15 21:09:18] Production.ERROR: pbx CDR StartTime 2025-03-15 18:09:05 - End Time 2025-03-15 21:09:05 [2025-03-15 21:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688794', 'tblTempUsageDetail_20' ) start [2025-03-15 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688794', 'tblTempUsageDetail_20' ) end [2025-03-15 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688794', 'tblTempVendorCDR_20' ) start [2025-03-15 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688794', 'tblTempVendorCDR_20' ) end [2025-03-15 21:09:18] Production.INFO: ProcessCDR(1,14688794,1,1,2) [2025-03-15 21:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688794', 'tblTempUsageDetail_20' ) start [2025-03-15 21:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688794', 'tblTempUsageDetail_20' ) end [2025-03-15 21:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 21:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 21:09:21] Production.INFO: ==23712== Releasing lock... [2025-03-15 21:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 21:09:21] Production.INFO: 40 MB #Memory Used# [2025-03-15 21:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 18:10:06 [end_date_ymd] => 2025-03-15 21:10:06 [RateCDR] => 1 ) [2025-03-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-03-15 18:10:06' and `end` < '2025-03-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-03-15 21:10:18] Production.INFO: count ==1585 [2025-03-15 21:10:18] Production.ERROR: pbx CDR StartTime 2025-03-15 18:10:06 - End Time 2025-03-15 21:10:06 [2025-03-15 21:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 21:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688799', 'tblTempUsageDetail_20' ) start [2025-03-15 21:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688799', 'tblTempUsageDetail_20' ) end [2025-03-15 21:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688799', 'tblTempVendorCDR_20' ) start [2025-03-15 21:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688799', 'tblTempVendorCDR_20' ) end [2025-03-15 21:10:18] Production.INFO: ProcessCDR(1,14688799,1,1,2) [2025-03-15 21:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688799', 'tblTempUsageDetail_20' ) start [2025-03-15 21:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688799', 'tblTempUsageDetail_20' ) end [2025-03-15 21:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 21:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 21:10:22] Production.INFO: ==23811== Releasing lock... [2025-03-15 21:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 21:10:22] Production.INFO: 40 MB #Memory Used# [2025-03-15 21:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 18:11:05 [end_date_ymd] => 2025-03-15 21:11:05 [RateCDR] => 1 ) [2025-03-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-03-15 18:11:05' and `end` < '2025-03-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-03-15 21:11:18] Production.INFO: count ==1605 [2025-03-15 21:11:18] Production.ERROR: pbx CDR StartTime 2025-03-15 18:11:05 - End Time 2025-03-15 21:11:05 [2025-03-15 21:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688805', 'tblTempUsageDetail_20' ) start [2025-03-15 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688805', 'tblTempUsageDetail_20' ) end [2025-03-15 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688805', 'tblTempVendorCDR_20' ) start [2025-03-15 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688805', 'tblTempVendorCDR_20' ) end [2025-03-15 21:11:18] Production.INFO: ProcessCDR(1,14688805,1,1,2) [2025-03-15 21:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688805', 'tblTempUsageDetail_20' ) start [2025-03-15 21:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688805', 'tblTempUsageDetail_20' ) end [2025-03-15 21:11:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 21:11:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 21:11:23] Production.INFO: ==23916== Releasing lock... [2025-03-15 21:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 21:11:23] Production.INFO: 40 MB #Memory Used# [2025-03-15 21:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 18:12:04 [end_date_ymd] => 2025-03-15 21:12:04 [RateCDR] => 1 ) [2025-03-15 21: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-03-15 18:12:04' and `end` < '2025-03-15 21: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-03-15 21:12:17] Production.INFO: count ==1605 [2025-03-15 21:12:17] Production.ERROR: pbx CDR StartTime 2025-03-15 18:12:04 - End Time 2025-03-15 21:12:04 [2025-03-15 21:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 21:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688810', 'tblTempUsageDetail_20' ) start [2025-03-15 21:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688810', 'tblTempUsageDetail_20' ) end [2025-03-15 21:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688810', 'tblTempVendorCDR_20' ) start [2025-03-15 21:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688810', 'tblTempVendorCDR_20' ) end [2025-03-15 21:12:17] Production.INFO: ProcessCDR(1,14688810,1,1,2) [2025-03-15 21:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688810', 'tblTempUsageDetail_20' ) start [2025-03-15 21:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688810', 'tblTempUsageDetail_20' ) end [2025-03-15 21:12:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 21:12:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 21:12:22] Production.INFO: ==24018== Releasing lock... [2025-03-15 21:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 21:12:22] Production.INFO: 39.75 MB #Memory Used# [2025-03-15 21:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 18:13:05 [end_date_ymd] => 2025-03-15 21:13:05 [RateCDR] => 1 ) [2025-03-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-03-15 18:13:05' and `end` < '2025-03-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-03-15 21:13:18] Production.INFO: count ==1606 [2025-03-15 21:13:18] Production.ERROR: pbx CDR StartTime 2025-03-15 18:13:05 - End Time 2025-03-15 21:13:05 [2025-03-15 21:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688815', 'tblTempUsageDetail_20' ) start [2025-03-15 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688815', 'tblTempUsageDetail_20' ) end [2025-03-15 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688815', 'tblTempVendorCDR_20' ) start [2025-03-15 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688815', 'tblTempVendorCDR_20' ) end [2025-03-15 21:13:18] Production.INFO: ProcessCDR(1,14688815,1,1,2) [2025-03-15 21:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688815', 'tblTempUsageDetail_20' ) start [2025-03-15 21:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688815', 'tblTempUsageDetail_20' ) end [2025-03-15 21:13:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 21:13:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 21:13:23] Production.INFO: ==24168== Releasing lock... [2025-03-15 21:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 21:13:23] Production.INFO: 40.25 MB #Memory Used# [2025-03-15 21:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 18:14:04 [end_date_ymd] => 2025-03-15 21:14:04 [RateCDR] => 1 ) [2025-03-15 21:14:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 18:14:04' and `end` < '2025-03-15 21:14:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 21:14:17] Production.INFO: count ==1614 [2025-03-15 21:14:17] Production.ERROR: pbx CDR StartTime 2025-03-15 18:14:04 - End Time 2025-03-15 21:14:04 [2025-03-15 21:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 21:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688820', 'tblTempUsageDetail_20' ) start [2025-03-15 21:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688820', 'tblTempUsageDetail_20' ) end [2025-03-15 21:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688820', 'tblTempVendorCDR_20' ) start [2025-03-15 21:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688820', 'tblTempVendorCDR_20' ) end [2025-03-15 21:14:17] Production.INFO: ProcessCDR(1,14688820,1,1,2) [2025-03-15 21:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688820', 'tblTempUsageDetail_20' ) start [2025-03-15 21:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688820', 'tblTempUsageDetail_20' ) end [2025-03-15 21:14:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 21:14:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 21:14:22] Production.INFO: ==24280== Releasing lock... [2025-03-15 21:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 21:14:22] Production.INFO: 40.5 MB #Memory Used# [2025-03-15 21:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 18:15:05 [end_date_ymd] => 2025-03-15 21:15:05 [RateCDR] => 1 ) [2025-03-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-03-15 18:15:05' and `end` < '2025-03-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-03-15 21:15:18] Production.INFO: count ==1620 [2025-03-15 21:15:18] Production.ERROR: pbx CDR StartTime 2025-03-15 18:15:05 - End Time 2025-03-15 21:15:05 [2025-03-15 21:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688825', 'tblTempUsageDetail_20' ) start [2025-03-15 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688825', 'tblTempUsageDetail_20' ) end [2025-03-15 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688825', 'tblTempVendorCDR_20' ) start [2025-03-15 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688825', 'tblTempVendorCDR_20' ) end [2025-03-15 21:15:18] Production.INFO: ProcessCDR(1,14688825,1,1,2) [2025-03-15 21:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688825', 'tblTempUsageDetail_20' ) start [2025-03-15 21:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688825', 'tblTempUsageDetail_20' ) end [2025-03-15 21:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 21:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 21:15:21] Production.INFO: ==24383== Releasing lock... [2025-03-15 21:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 21:15:21] Production.INFO: 40.75 MB #Memory Used# [2025-03-15 21:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 18:16:05 [end_date_ymd] => 2025-03-15 21:16:05 [RateCDR] => 1 ) [2025-03-15 21:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 18:16:05' and `end` < '2025-03-15 21:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 21:16:17] Production.INFO: count ==1620 [2025-03-15 21:16:18] Production.ERROR: pbx CDR StartTime 2025-03-15 18:16:05 - End Time 2025-03-15 21:16:05 [2025-03-15 21:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688830', 'tblTempUsageDetail_20' ) start [2025-03-15 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688830', 'tblTempUsageDetail_20' ) end [2025-03-15 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688830', 'tblTempVendorCDR_20' ) start [2025-03-15 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688830', 'tblTempVendorCDR_20' ) end [2025-03-15 21:16:18] Production.INFO: ProcessCDR(1,14688830,1,1,2) [2025-03-15 21:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688830', 'tblTempUsageDetail_20' ) start [2025-03-15 21:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688830', 'tblTempUsageDetail_20' ) end [2025-03-15 21:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 21:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 21:16:21] Production.INFO: ==24479== Releasing lock... [2025-03-15 21:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 21:16:21] Production.INFO: 40.75 MB #Memory Used# [2025-03-15 21:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 18:17:05 [end_date_ymd] => 2025-03-15 21:17:05 [RateCDR] => 1 ) [2025-03-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-03-15 18:17:05' and `end` < '2025-03-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-03-15 21:17:17] Production.INFO: count ==1619 [2025-03-15 21:17:18] Production.ERROR: pbx CDR StartTime 2025-03-15 18:17:05 - End Time 2025-03-15 21:17:05 [2025-03-15 21:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688835', 'tblTempUsageDetail_20' ) start [2025-03-15 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688835', 'tblTempUsageDetail_20' ) end [2025-03-15 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688835', 'tblTempVendorCDR_20' ) start [2025-03-15 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688835', 'tblTempVendorCDR_20' ) end [2025-03-15 21:17:18] Production.INFO: ProcessCDR(1,14688835,1,1,2) [2025-03-15 21:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688835', 'tblTempUsageDetail_20' ) start [2025-03-15 21:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688835', 'tblTempUsageDetail_20' ) end [2025-03-15 21:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 21:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 21:17:21] Production.INFO: ==24568== Releasing lock... [2025-03-15 21:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 21:17:21] Production.INFO: 40.5 MB #Memory Used# [2025-03-15 21:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 18:18:05 [end_date_ymd] => 2025-03-15 21:18:05 [RateCDR] => 1 ) [2025-03-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-03-15 18:18:05' and `end` < '2025-03-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-03-15 21:18:17] Production.INFO: count ==1619 [2025-03-15 21:18:18] Production.ERROR: pbx CDR StartTime 2025-03-15 18:18:05 - End Time 2025-03-15 21:18:05 [2025-03-15 21:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688840', 'tblTempUsageDetail_20' ) start [2025-03-15 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688840', 'tblTempUsageDetail_20' ) end [2025-03-15 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688840', 'tblTempVendorCDR_20' ) start [2025-03-15 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688840', 'tblTempVendorCDR_20' ) end [2025-03-15 21:18:18] Production.INFO: ProcessCDR(1,14688840,1,1,2) [2025-03-15 21:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688840', 'tblTempUsageDetail_20' ) start [2025-03-15 21:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688840', 'tblTempUsageDetail_20' ) end [2025-03-15 21:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 21:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 21:18:21] Production.INFO: ==24674== Releasing lock... [2025-03-15 21:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 21:18:21] Production.INFO: 40.25 MB #Memory Used# [2025-03-15 21:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 18:19:05 [end_date_ymd] => 2025-03-15 21:19:05 [RateCDR] => 1 ) [2025-03-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-03-15 18:19:05' and `end` < '2025-03-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-03-15 21:19:17] Production.INFO: count ==1618 [2025-03-15 21:19:18] Production.ERROR: pbx CDR StartTime 2025-03-15 18:19:05 - End Time 2025-03-15 21:19:05 [2025-03-15 21:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688845', 'tblTempUsageDetail_20' ) start [2025-03-15 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688845', 'tblTempUsageDetail_20' ) end [2025-03-15 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688845', 'tblTempVendorCDR_20' ) start [2025-03-15 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688845', 'tblTempVendorCDR_20' ) end [2025-03-15 21:19:18] Production.INFO: ProcessCDR(1,14688845,1,1,2) [2025-03-15 21:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688845', 'tblTempUsageDetail_20' ) start [2025-03-15 21:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688845', 'tblTempUsageDetail_20' ) end [2025-03-15 21:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 21:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 21:19:21] Production.INFO: ==24771== Releasing lock... [2025-03-15 21:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 21:19:21] Production.INFO: 40.25 MB #Memory Used# [2025-03-15 21:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 18:20:06 [end_date_ymd] => 2025-03-15 21:20:06 [RateCDR] => 1 ) [2025-03-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-03-15 18:20:06' and `end` < '2025-03-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-03-15 21:20:18] Production.INFO: count ==1618 [2025-03-15 21:20:19] Production.ERROR: pbx CDR StartTime 2025-03-15 18:20:06 - End Time 2025-03-15 21:20:06 [2025-03-15 21:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688851', 'tblTempUsageDetail_20' ) start [2025-03-15 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688851', 'tblTempUsageDetail_20' ) end [2025-03-15 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688851', 'tblTempVendorCDR_20' ) start [2025-03-15 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688851', 'tblTempVendorCDR_20' ) end [2025-03-15 21:20:19] Production.INFO: ProcessCDR(1,14688851,1,1,2) [2025-03-15 21:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688851', 'tblTempUsageDetail_20' ) start [2025-03-15 21:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688851', 'tblTempUsageDetail_20' ) end [2025-03-15 21:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 21:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 21:20:22] Production.INFO: ==24879== Releasing lock... [2025-03-15 21:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 21:20:22] Production.INFO: 40.25 MB #Memory Used# [2025-03-15 21:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 18:21:05 [end_date_ymd] => 2025-03-15 21:21:05 [RateCDR] => 1 ) [2025-03-15 21:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 18:21:05' and `end` < '2025-03-15 21:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 21:21:17] Production.INFO: count ==1601 [2025-03-15 21:21:17] Production.ERROR: pbx CDR StartTime 2025-03-15 18:21:05 - End Time 2025-03-15 21:21:05 [2025-03-15 21:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 21:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688856', 'tblTempUsageDetail_20' ) start [2025-03-15 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688856', 'tblTempUsageDetail_20' ) end [2025-03-15 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688856', 'tblTempVendorCDR_20' ) start [2025-03-15 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688856', 'tblTempVendorCDR_20' ) end [2025-03-15 21:21:18] Production.INFO: ProcessCDR(1,14688856,1,1,2) [2025-03-15 21:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688856', 'tblTempUsageDetail_20' ) start [2025-03-15 21:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688856', 'tblTempUsageDetail_20' ) end [2025-03-15 21:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 21:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 21:21:21] Production.INFO: ==24972== Releasing lock... [2025-03-15 21:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 21:21:21] Production.INFO: 40 MB #Memory Used# [2025-03-15 21:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 18:22:06 [end_date_ymd] => 2025-03-15 21:22:06 [RateCDR] => 1 ) [2025-03-15 21:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 18:22:06' and `end` < '2025-03-15 21:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 21:22:18] Production.INFO: count ==1598 [2025-03-15 21:22:19] Production.ERROR: pbx CDR StartTime 2025-03-15 18:22:06 - End Time 2025-03-15 21:22:06 [2025-03-15 21:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688861', 'tblTempUsageDetail_20' ) start [2025-03-15 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688861', 'tblTempUsageDetail_20' ) end [2025-03-15 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688861', 'tblTempVendorCDR_20' ) start [2025-03-15 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688861', 'tblTempVendorCDR_20' ) end [2025-03-15 21:22:19] Production.INFO: ProcessCDR(1,14688861,1,1,2) [2025-03-15 21:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688861', 'tblTempUsageDetail_20' ) start [2025-03-15 21:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688861', 'tblTempUsageDetail_20' ) end [2025-03-15 21:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 21:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 21:22:22] Production.INFO: ==25053== Releasing lock... [2025-03-15 21:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 21:22:22] Production.INFO: 39.75 MB #Memory Used# [2025-03-15 21:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 18:23:04 [end_date_ymd] => 2025-03-15 21:23:04 [RateCDR] => 1 ) [2025-03-15 21:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 18:23:04' and `end` < '2025-03-15 21:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 21:23:17] Production.INFO: count ==1598 [2025-03-15 21:23:17] Production.ERROR: pbx CDR StartTime 2025-03-15 18:23:04 - End Time 2025-03-15 21:23:04 [2025-03-15 21:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 21:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688866', 'tblTempUsageDetail_20' ) start [2025-03-15 21:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688866', 'tblTempUsageDetail_20' ) end [2025-03-15 21:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688866', 'tblTempVendorCDR_20' ) start [2025-03-15 21:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688866', 'tblTempVendorCDR_20' ) end [2025-03-15 21:23:17] Production.INFO: ProcessCDR(1,14688866,1,1,2) [2025-03-15 21:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688866', 'tblTempUsageDetail_20' ) start [2025-03-15 21:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688866', 'tblTempUsageDetail_20' ) end [2025-03-15 21:23:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 21:23:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 21:23:22] Production.INFO: ==25133== Releasing lock... [2025-03-15 21:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 21:23:22] Production.INFO: 40.25 MB #Memory Used# [2025-03-15 21:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 18:24:06 [end_date_ymd] => 2025-03-15 21:24:06 [RateCDR] => 1 ) [2025-03-15 21:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 18:24:06' and `end` < '2025-03-15 21:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 21:24:18] Production.INFO: count ==1591 [2025-03-15 21:24:18] Production.ERROR: pbx CDR StartTime 2025-03-15 18:24:06 - End Time 2025-03-15 21:24:06 [2025-03-15 21:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688871', 'tblTempUsageDetail_20' ) start [2025-03-15 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688871', 'tblTempUsageDetail_20' ) end [2025-03-15 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688871', 'tblTempVendorCDR_20' ) start [2025-03-15 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688871', 'tblTempVendorCDR_20' ) end [2025-03-15 21:24:18] Production.INFO: ProcessCDR(1,14688871,1,1,2) [2025-03-15 21:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688871', 'tblTempUsageDetail_20' ) start [2025-03-15 21:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688871', 'tblTempUsageDetail_20' ) end [2025-03-15 21:24:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 21:24:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 21:24:22] Production.INFO: ==25205== Releasing lock... [2025-03-15 21:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 21:24:22] Production.INFO: 40.25 MB #Memory Used# [2025-03-15 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 18:25:05 [end_date_ymd] => 2025-03-15 21:25:05 [RateCDR] => 1 ) [2025-03-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-03-15 18:25:05' and `end` < '2025-03-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-03-15 21:25:17] Production.INFO: count ==1601 [2025-03-15 21:25:17] Production.ERROR: pbx CDR StartTime 2025-03-15 18:25:05 - End Time 2025-03-15 21:25:05 [2025-03-15 21:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 21:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688876', 'tblTempUsageDetail_20' ) start [2025-03-15 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688876', 'tblTempUsageDetail_20' ) end [2025-03-15 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688876', 'tblTempVendorCDR_20' ) start [2025-03-15 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688876', 'tblTempVendorCDR_20' ) end [2025-03-15 21:25:18] Production.INFO: ProcessCDR(1,14688876,1,1,2) [2025-03-15 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688876', 'tblTempUsageDetail_20' ) start [2025-03-15 21:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688876', 'tblTempUsageDetail_20' ) end [2025-03-15 21:25:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 21:25:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 21:25:22] Production.INFO: ==25284== Releasing lock... [2025-03-15 21:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 21:25:22] Production.INFO: 40 MB #Memory Used# [2025-03-15 21:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 18:26:05 [end_date_ymd] => 2025-03-15 21:26:05 [RateCDR] => 1 ) [2025-03-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-03-15 18:26:05' and `end` < '2025-03-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-03-15 21:26:18] Production.INFO: count ==1598 [2025-03-15 21:26:18] Production.ERROR: pbx CDR StartTime 2025-03-15 18:26:05 - End Time 2025-03-15 21:26:05 [2025-03-15 21:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688881', 'tblTempUsageDetail_20' ) start [2025-03-15 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688881', 'tblTempUsageDetail_20' ) end [2025-03-15 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688881', 'tblTempVendorCDR_20' ) start [2025-03-15 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688881', 'tblTempVendorCDR_20' ) end [2025-03-15 21:26:18] Production.INFO: ProcessCDR(1,14688881,1,1,2) [2025-03-15 21:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688881', 'tblTempUsageDetail_20' ) start [2025-03-15 21:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688881', 'tblTempUsageDetail_20' ) end [2025-03-15 21:26:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 21:26:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 21:26:22] Production.INFO: ==25363== Releasing lock... [2025-03-15 21:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 21:26:22] Production.INFO: 40.25 MB #Memory Used# [2025-03-15 21:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 18:27:05 [end_date_ymd] => 2025-03-15 21:27:05 [RateCDR] => 1 ) [2025-03-15 21:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 18:27:05' and `end` < '2025-03-15 21:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 21:27:17] Production.INFO: count ==1600 [2025-03-15 21:27:17] Production.ERROR: pbx CDR StartTime 2025-03-15 18:27:05 - End Time 2025-03-15 21:27:05 [2025-03-15 21:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 21:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688886', 'tblTempUsageDetail_20' ) start [2025-03-15 21:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688886', 'tblTempUsageDetail_20' ) end [2025-03-15 21:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688886', 'tblTempVendorCDR_20' ) start [2025-03-15 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688886', 'tblTempVendorCDR_20' ) end [2025-03-15 21:27:18] Production.INFO: ProcessCDR(1,14688886,1,1,2) [2025-03-15 21:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688886', 'tblTempUsageDetail_20' ) start [2025-03-15 21:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688886', 'tblTempUsageDetail_20' ) end [2025-03-15 21:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 21:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 21:27:21] Production.INFO: ==25434== Releasing lock... [2025-03-15 21:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 21:27:21] Production.INFO: 40 MB #Memory Used# [2025-03-15 21:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 18:28:05 [end_date_ymd] => 2025-03-15 21:28:05 [RateCDR] => 1 ) [2025-03-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-03-15 18:28:05' and `end` < '2025-03-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-03-15 21:28:18] Production.INFO: count ==1598 [2025-03-15 21:28:18] Production.ERROR: pbx CDR StartTime 2025-03-15 18:28:05 - End Time 2025-03-15 21:28:05 [2025-03-15 21:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688891', 'tblTempUsageDetail_20' ) start [2025-03-15 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688891', 'tblTempUsageDetail_20' ) end [2025-03-15 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688891', 'tblTempVendorCDR_20' ) start [2025-03-15 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688891', 'tblTempVendorCDR_20' ) end [2025-03-15 21:28:18] Production.INFO: ProcessCDR(1,14688891,1,1,2) [2025-03-15 21:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688891', 'tblTempUsageDetail_20' ) start [2025-03-15 21:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688891', 'tblTempUsageDetail_20' ) end [2025-03-15 21:28:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 21:28:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 21:28:23] Production.INFO: ==25559== Releasing lock... [2025-03-15 21:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 21:28:23] Production.INFO: 40.25 MB #Memory Used# [2025-03-15 21:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 18:29:05 [end_date_ymd] => 2025-03-15 21:29:05 [RateCDR] => 1 ) [2025-03-15 21:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 18:29:05' and `end` < '2025-03-15 21:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 21:29:17] Production.INFO: count ==1595 [2025-03-15 21:29:17] Production.ERROR: pbx CDR StartTime 2025-03-15 18:29:05 - End Time 2025-03-15 21:29:05 [2025-03-15 21:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 21:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688896', 'tblTempUsageDetail_20' ) start [2025-03-15 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688896', 'tblTempUsageDetail_20' ) end [2025-03-15 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688896', 'tblTempVendorCDR_20' ) start [2025-03-15 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688896', 'tblTempVendorCDR_20' ) end [2025-03-15 21:29:18] Production.INFO: ProcessCDR(1,14688896,1,1,2) [2025-03-15 21:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688896', 'tblTempUsageDetail_20' ) start [2025-03-15 21:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688896', 'tblTempUsageDetail_20' ) end [2025-03-15 21:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 21:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 21:29:21] Production.INFO: ==25635== Releasing lock... [2025-03-15 21:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 21:29:21] Production.INFO: 40 MB #Memory Used# [2025-03-15 21:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 18:30:06 [end_date_ymd] => 2025-03-15 21:30:06 [RateCDR] => 1 ) [2025-03-15 21:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 18:30:06' and `end` < '2025-03-15 21:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 21:30:18] Production.INFO: count ==1596 [2025-03-15 21:30:19] Production.ERROR: pbx CDR StartTime 2025-03-15 18:30:06 - End Time 2025-03-15 21:30:06 [2025-03-15 21:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688902', 'tblTempUsageDetail_20' ) start [2025-03-15 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688902', 'tblTempUsageDetail_20' ) end [2025-03-15 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688902', 'tblTempVendorCDR_20' ) start [2025-03-15 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688902', 'tblTempVendorCDR_20' ) end [2025-03-15 21:30:19] Production.INFO: ProcessCDR(1,14688902,1,1,2) [2025-03-15 21:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688902', 'tblTempUsageDetail_20' ) start [2025-03-15 21:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688902', 'tblTempUsageDetail_20' ) end [2025-03-15 21:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 21:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 21:30:22] Production.INFO: ==25714== Releasing lock... [2025-03-15 21:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 21:30:22] Production.INFO: 40 MB #Memory Used# [2025-03-15 21:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 18:31:04 [end_date_ymd] => 2025-03-15 21:31:04 [RateCDR] => 1 ) [2025-03-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-03-15 18:31:04' and `end` < '2025-03-15 21:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 21:31:17] Production.INFO: count ==1567 [2025-03-15 21:31:17] Production.ERROR: pbx CDR StartTime 2025-03-15 18:31:04 - End Time 2025-03-15 21:31:04 [2025-03-15 21:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 21:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688907', 'tblTempUsageDetail_20' ) start [2025-03-15 21:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688907', 'tblTempUsageDetail_20' ) end [2025-03-15 21:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688907', 'tblTempVendorCDR_20' ) start [2025-03-15 21:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688907', 'tblTempVendorCDR_20' ) end [2025-03-15 21:31:17] Production.INFO: ProcessCDR(1,14688907,1,1,2) [2025-03-15 21:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688907', 'tblTempUsageDetail_20' ) start [2025-03-15 21:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688907', 'tblTempUsageDetail_20' ) end [2025-03-15 21:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 21:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 21:31:22] Production.INFO: ==25791== Releasing lock... [2025-03-15 21:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 21:31:22] Production.INFO: 39.75 MB #Memory Used# [2025-03-15 21:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 18:32:05 [end_date_ymd] => 2025-03-15 21:32:05 [RateCDR] => 1 ) [2025-03-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-03-15 18:32:05' and `end` < '2025-03-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-03-15 21:32:18] Production.INFO: count ==1565 [2025-03-15 21:32:18] Production.ERROR: pbx CDR StartTime 2025-03-15 18:32:05 - End Time 2025-03-15 21:32:05 [2025-03-15 21:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688912', 'tblTempUsageDetail_20' ) start [2025-03-15 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688912', 'tblTempUsageDetail_20' ) end [2025-03-15 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688912', 'tblTempVendorCDR_20' ) start [2025-03-15 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688912', 'tblTempVendorCDR_20' ) end [2025-03-15 21:32:18] Production.INFO: ProcessCDR(1,14688912,1,1,2) [2025-03-15 21:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688912', 'tblTempUsageDetail_20' ) start [2025-03-15 21:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688912', 'tblTempUsageDetail_20' ) end [2025-03-15 21:32:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 21:32:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 21:32:23] Production.INFO: ==25870== Releasing lock... [2025-03-15 21:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 21:32:23] Production.INFO: 39.75 MB #Memory Used# [2025-03-15 21:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 18:33:05 [end_date_ymd] => 2025-03-15 21:33:05 [RateCDR] => 1 ) [2025-03-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-03-15 18:33:05' and `end` < '2025-03-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-03-15 21:33:17] Production.INFO: count ==1565 [2025-03-15 21:33:18] Production.ERROR: pbx CDR StartTime 2025-03-15 18:33:05 - End Time 2025-03-15 21:33:05 [2025-03-15 21:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688917', 'tblTempUsageDetail_20' ) start [2025-03-15 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688917', 'tblTempUsageDetail_20' ) end [2025-03-15 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688917', 'tblTempVendorCDR_20' ) start [2025-03-15 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688917', 'tblTempVendorCDR_20' ) end [2025-03-15 21:33:18] Production.INFO: ProcessCDR(1,14688917,1,1,2) [2025-03-15 21:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688917', 'tblTempUsageDetail_20' ) start [2025-03-15 21:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688917', 'tblTempUsageDetail_20' ) end [2025-03-15 21:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 21:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 21:33:21] Production.INFO: ==25941== Releasing lock... [2025-03-15 21:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 21:33:21] Production.INFO: 39.75 MB #Memory Used# [2025-03-15 21:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 18:34:05 [end_date_ymd] => 2025-03-15 21:34:05 [RateCDR] => 1 ) [2025-03-15 21:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 18:34:05' and `end` < '2025-03-15 21:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 21:34:17] Production.INFO: count ==1567 [2025-03-15 21:34:17] Production.ERROR: pbx CDR StartTime 2025-03-15 18:34:05 - End Time 2025-03-15 21:34:05 [2025-03-15 21:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 21:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688922', 'tblTempUsageDetail_20' ) start [2025-03-15 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688922', 'tblTempUsageDetail_20' ) end [2025-03-15 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688922', 'tblTempVendorCDR_20' ) start [2025-03-15 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688922', 'tblTempVendorCDR_20' ) end [2025-03-15 21:34:18] Production.INFO: ProcessCDR(1,14688922,1,1,2) [2025-03-15 21:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688922', 'tblTempUsageDetail_20' ) start [2025-03-15 21:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688922', 'tblTempUsageDetail_20' ) end [2025-03-15 21:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 21:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 21:34:22] Production.INFO: ==26020== Releasing lock... [2025-03-15 21:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 21:34:22] Production.INFO: 39.75 MB #Memory Used# [2025-03-15 21:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 18:35:05 [end_date_ymd] => 2025-03-15 21:35:05 [RateCDR] => 1 ) [2025-03-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-03-15 18:35:05' and `end` < '2025-03-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-03-15 21:35:18] Production.INFO: count ==1561 [2025-03-15 21:35:18] Production.ERROR: pbx CDR StartTime 2025-03-15 18:35:05 - End Time 2025-03-15 21:35:05 [2025-03-15 21:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688927', 'tblTempUsageDetail_20' ) start [2025-03-15 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688927', 'tblTempUsageDetail_20' ) end [2025-03-15 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688927', 'tblTempVendorCDR_20' ) start [2025-03-15 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688927', 'tblTempVendorCDR_20' ) end [2025-03-15 21:35:18] Production.INFO: ProcessCDR(1,14688927,1,1,2) [2025-03-15 21:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688927', 'tblTempUsageDetail_20' ) start [2025-03-15 21:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688927', 'tblTempUsageDetail_20' ) end [2025-03-15 21:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 21:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 21:35:21] Production.INFO: ==26098== Releasing lock... [2025-03-15 21:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 21:35:21] Production.INFO: 40 MB #Memory Used# [2025-03-15 21:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 18:36:05 [end_date_ymd] => 2025-03-15 21:36:05 [RateCDR] => 1 ) [2025-03-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-03-15 18:36:05' and `end` < '2025-03-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-03-15 21:36:18] Production.INFO: count ==1561 [2025-03-15 21:36:18] Production.ERROR: pbx CDR StartTime 2025-03-15 18:36:05 - End Time 2025-03-15 21:36:05 [2025-03-15 21:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688932', 'tblTempUsageDetail_20' ) start [2025-03-15 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688932', 'tblTempUsageDetail_20' ) end [2025-03-15 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688932', 'tblTempVendorCDR_20' ) start [2025-03-15 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688932', 'tblTempVendorCDR_20' ) end [2025-03-15 21:36:18] Production.INFO: ProcessCDR(1,14688932,1,1,2) [2025-03-15 21:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688932', 'tblTempUsageDetail_20' ) start [2025-03-15 21:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688932', 'tblTempUsageDetail_20' ) end [2025-03-15 21:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 21:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 21:36:21] Production.INFO: ==26170== Releasing lock... [2025-03-15 21:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 21:36:21] Production.INFO: 40 MB #Memory Used# [2025-03-15 21:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 18:37:05 [end_date_ymd] => 2025-03-15 21:37:05 [RateCDR] => 1 ) [2025-03-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-03-15 18:37:05' and `end` < '2025-03-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-03-15 21:37:17] Production.INFO: count ==1560 [2025-03-15 21:37:17] Production.ERROR: pbx CDR StartTime 2025-03-15 18:37:05 - End Time 2025-03-15 21:37:05 [2025-03-15 21:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 21:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688937', 'tblTempUsageDetail_20' ) start [2025-03-15 21:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688937', 'tblTempUsageDetail_20' ) end [2025-03-15 21:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688937', 'tblTempVendorCDR_20' ) start [2025-03-15 21:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688937', 'tblTempVendorCDR_20' ) end [2025-03-15 21:37:17] Production.INFO: ProcessCDR(1,14688937,1,1,2) [2025-03-15 21:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688937', 'tblTempUsageDetail_20' ) start [2025-03-15 21:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688937', 'tblTempUsageDetail_20' ) end [2025-03-15 21:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 21:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 21:37:21] Production.INFO: ==26246== Releasing lock... [2025-03-15 21:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 21:37:21] Production.INFO: 39.75 MB #Memory Used# [2025-03-15 21:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 18:38:06 [end_date_ymd] => 2025-03-15 21:38:06 [RateCDR] => 1 ) [2025-03-15 21:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 18:38:06' and `end` < '2025-03-15 21:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 21:38:18] Production.INFO: count ==1560 [2025-03-15 21:38:18] Production.ERROR: pbx CDR StartTime 2025-03-15 18:38:06 - End Time 2025-03-15 21:38:06 [2025-03-15 21:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688942', 'tblTempUsageDetail_20' ) start [2025-03-15 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688942', 'tblTempUsageDetail_20' ) end [2025-03-15 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688942', 'tblTempVendorCDR_20' ) start [2025-03-15 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688942', 'tblTempVendorCDR_20' ) end [2025-03-15 21:38:18] Production.INFO: ProcessCDR(1,14688942,1,1,2) [2025-03-15 21:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688942', 'tblTempUsageDetail_20' ) start [2025-03-15 21:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688942', 'tblTempUsageDetail_20' ) end [2025-03-15 21:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 21:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 21:38:22] Production.INFO: ==26320== Releasing lock... [2025-03-15 21:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 21:38:22] Production.INFO: 39.5 MB #Memory Used# [2025-03-15 21:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 18:39:05 [end_date_ymd] => 2025-03-15 21:39:05 [RateCDR] => 1 ) [2025-03-15 21:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 18:39:05' and `end` < '2025-03-15 21:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 21:39:18] Production.INFO: count ==1569 [2025-03-15 21:39:18] Production.ERROR: pbx CDR StartTime 2025-03-15 18:39:05 - End Time 2025-03-15 21:39:05 [2025-03-15 21:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688947', 'tblTempUsageDetail_20' ) start [2025-03-15 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688947', 'tblTempUsageDetail_20' ) end [2025-03-15 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688947', 'tblTempVendorCDR_20' ) start [2025-03-15 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688947', 'tblTempVendorCDR_20' ) end [2025-03-15 21:39:18] Production.INFO: ProcessCDR(1,14688947,1,1,2) [2025-03-15 21:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688947', 'tblTempUsageDetail_20' ) start [2025-03-15 21:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688947', 'tblTempUsageDetail_20' ) end [2025-03-15 21:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 21:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 21:39:21] Production.INFO: ==26400== Releasing lock... [2025-03-15 21:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 21:39:21] Production.INFO: 39.75 MB #Memory Used# [2025-03-15 21:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 18:40:06 [end_date_ymd] => 2025-03-15 21:40:06 [RateCDR] => 1 ) [2025-03-15 21:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 18:40:06' and `end` < '2025-03-15 21:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 21:40:18] Production.INFO: count ==1575 [2025-03-15 21:40:18] Production.ERROR: pbx CDR StartTime 2025-03-15 18:40:06 - End Time 2025-03-15 21:40:06 [2025-03-15 21:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 21:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688952', 'tblTempUsageDetail_20' ) start [2025-03-15 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688952', 'tblTempUsageDetail_20' ) end [2025-03-15 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688952', 'tblTempVendorCDR_20' ) start [2025-03-15 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688952', 'tblTempVendorCDR_20' ) end [2025-03-15 21:40:19] Production.INFO: ProcessCDR(1,14688952,1,1,2) [2025-03-15 21:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688952', 'tblTempUsageDetail_20' ) start [2025-03-15 21:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688952', 'tblTempUsageDetail_20' ) end [2025-03-15 21:40:24] Production.ERROR: pbx prc_insertCDR start [2025-03-15 21:40:24] Production.ERROR: pbx prc_insertCDR end [2025-03-15 21:40:24] Production.INFO: ==26477== Releasing lock... [2025-03-15 21:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 21:40:24] Production.INFO: 39.75 MB #Memory Used# [2025-03-15 21:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 18:41:05 [end_date_ymd] => 2025-03-15 21:41:05 [RateCDR] => 1 ) [2025-03-15 21:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 18:41:05' and `end` < '2025-03-15 21:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 21:41:18] Production.INFO: count ==1563 [2025-03-15 21:41:18] Production.ERROR: pbx CDR StartTime 2025-03-15 18:41:05 - End Time 2025-03-15 21:41:05 [2025-03-15 21:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688958', 'tblTempUsageDetail_20' ) start [2025-03-15 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688958', 'tblTempUsageDetail_20' ) end [2025-03-15 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688958', 'tblTempVendorCDR_20' ) start [2025-03-15 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688958', 'tblTempVendorCDR_20' ) end [2025-03-15 21:41:18] Production.INFO: ProcessCDR(1,14688958,1,1,2) [2025-03-15 21:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688958', 'tblTempUsageDetail_20' ) start [2025-03-15 21:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688958', 'tblTempUsageDetail_20' ) end [2025-03-15 21:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 21:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 21:41:21] Production.INFO: ==26553== Releasing lock... [2025-03-15 21:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 21:41:21] Production.INFO: 40.25 MB #Memory Used# [2025-03-15 21:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 18:42:05 [end_date_ymd] => 2025-03-15 21:42:05 [RateCDR] => 1 ) [2025-03-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-03-15 18:42:05' and `end` < '2025-03-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-03-15 21:42:18] Production.INFO: count ==1566 [2025-03-15 21:42:18] Production.ERROR: pbx CDR StartTime 2025-03-15 18:42:05 - End Time 2025-03-15 21:42:05 [2025-03-15 21:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688963', 'tblTempUsageDetail_20' ) start [2025-03-15 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688963', 'tblTempUsageDetail_20' ) end [2025-03-15 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688963', 'tblTempVendorCDR_20' ) start [2025-03-15 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688963', 'tblTempVendorCDR_20' ) end [2025-03-15 21:42:18] Production.INFO: ProcessCDR(1,14688963,1,1,2) [2025-03-15 21:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688963', 'tblTempUsageDetail_20' ) start [2025-03-15 21:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688963', 'tblTempUsageDetail_20' ) end [2025-03-15 21:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 21:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 21:42:22] Production.INFO: ==26624== Releasing lock... [2025-03-15 21:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 21:42:22] Production.INFO: 39.75 MB #Memory Used# [2025-03-15 21:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 18:43:06 [end_date_ymd] => 2025-03-15 21:43:06 [RateCDR] => 1 ) [2025-03-15 21:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 18:43:06' and `end` < '2025-03-15 21:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 21:43:18] Production.INFO: count ==1555 [2025-03-15 21:43:18] Production.ERROR: pbx CDR StartTime 2025-03-15 18:43:06 - End Time 2025-03-15 21:43:06 [2025-03-15 21:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688968', 'tblTempUsageDetail_20' ) start [2025-03-15 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688968', 'tblTempUsageDetail_20' ) end [2025-03-15 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688968', 'tblTempVendorCDR_20' ) start [2025-03-15 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688968', 'tblTempVendorCDR_20' ) end [2025-03-15 21:43:19] Production.INFO: ProcessCDR(1,14688968,1,1,2) [2025-03-15 21:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688968', 'tblTempUsageDetail_20' ) start [2025-03-15 21:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688968', 'tblTempUsageDetail_20' ) end [2025-03-15 21:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 21:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 21:43:22] Production.INFO: ==26702== Releasing lock... [2025-03-15 21:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 21:43:22] Production.INFO: 39.75 MB #Memory Used# [2025-03-15 21:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 18:44:05 [end_date_ymd] => 2025-03-15 21:44:05 [RateCDR] => 1 ) [2025-03-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-03-15 18:44:05' and `end` < '2025-03-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-03-15 21:44:17] Production.INFO: count ==1549 [2025-03-15 21:44:18] Production.ERROR: pbx CDR StartTime 2025-03-15 18:44:05 - End Time 2025-03-15 21:44:05 [2025-03-15 21:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688973', 'tblTempUsageDetail_20' ) start [2025-03-15 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688973', 'tblTempUsageDetail_20' ) end [2025-03-15 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688973', 'tblTempVendorCDR_20' ) start [2025-03-15 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688973', 'tblTempVendorCDR_20' ) end [2025-03-15 21:44:18] Production.INFO: ProcessCDR(1,14688973,1,1,2) [2025-03-15 21:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688973', 'tblTempUsageDetail_20' ) start [2025-03-15 21:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688973', 'tblTempUsageDetail_20' ) end [2025-03-15 21:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 21:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 21:44:22] Production.INFO: ==26813== Releasing lock... [2025-03-15 21:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 21:44:22] Production.INFO: 39.75 MB #Memory Used# [2025-03-15 21:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 18:45:05 [end_date_ymd] => 2025-03-15 21:45:05 [RateCDR] => 1 ) [2025-03-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-03-15 18:45:05' and `end` < '2025-03-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-03-15 21:45:17] Production.INFO: count ==1554 [2025-03-15 21:45:18] Production.ERROR: pbx CDR StartTime 2025-03-15 18:45:05 - End Time 2025-03-15 21:45:05 [2025-03-15 21:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688978', 'tblTempUsageDetail_20' ) start [2025-03-15 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688978', 'tblTempUsageDetail_20' ) end [2025-03-15 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688978', 'tblTempVendorCDR_20' ) start [2025-03-15 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688978', 'tblTempVendorCDR_20' ) end [2025-03-15 21:45:18] Production.INFO: ProcessCDR(1,14688978,1,1,2) [2025-03-15 21:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688978', 'tblTempUsageDetail_20' ) start [2025-03-15 21:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688978', 'tblTempUsageDetail_20' ) end [2025-03-15 21:45:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 21:45:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 21:45:22] Production.INFO: ==26894== Releasing lock... [2025-03-15 21:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 21:45:22] Production.INFO: 40.25 MB #Memory Used# [2025-03-15 21:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 18:46:05 [end_date_ymd] => 2025-03-15 21:46:05 [RateCDR] => 1 ) [2025-03-15 21:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 18:46:05' and `end` < '2025-03-15 21:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 21:46:17] Production.INFO: count ==1547 [2025-03-15 21:46:17] Production.ERROR: pbx CDR StartTime 2025-03-15 18:46:05 - End Time 2025-03-15 21:46:05 [2025-03-15 21:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 21:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688983', 'tblTempUsageDetail_20' ) start [2025-03-15 21:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688983', 'tblTempUsageDetail_20' ) end [2025-03-15 21:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688983', 'tblTempVendorCDR_20' ) start [2025-03-15 21:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688983', 'tblTempVendorCDR_20' ) end [2025-03-15 21:46:17] Production.INFO: ProcessCDR(1,14688983,1,1,2) [2025-03-15 21:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688983', 'tblTempUsageDetail_20' ) start [2025-03-15 21:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688983', 'tblTempUsageDetail_20' ) end [2025-03-15 21:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 21:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 21:46:21] Production.INFO: ==26970== Releasing lock... [2025-03-15 21:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 21:46:21] Production.INFO: 39.75 MB #Memory Used# [2025-03-15 21:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 18:47:05 [end_date_ymd] => 2025-03-15 21:47:05 [RateCDR] => 1 ) [2025-03-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-03-15 18:47:05' and `end` < '2025-03-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-03-15 21:47:18] Production.INFO: count ==1544 [2025-03-15 21:47:18] Production.ERROR: pbx CDR StartTime 2025-03-15 18:47:05 - End Time 2025-03-15 21:47:05 [2025-03-15 21:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688988', 'tblTempUsageDetail_20' ) start [2025-03-15 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688988', 'tblTempUsageDetail_20' ) end [2025-03-15 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688988', 'tblTempVendorCDR_20' ) start [2025-03-15 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688988', 'tblTempVendorCDR_20' ) end [2025-03-15 21:47:18] Production.INFO: ProcessCDR(1,14688988,1,1,2) [2025-03-15 21:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688988', 'tblTempUsageDetail_20' ) start [2025-03-15 21:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688988', 'tblTempUsageDetail_20' ) end [2025-03-15 21:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 21:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 21:47:21] Production.INFO: ==27039== Releasing lock... [2025-03-15 21:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 21:47:21] Production.INFO: 39.75 MB #Memory Used# [2025-03-15 21:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 18:48:05 [end_date_ymd] => 2025-03-15 21:48:05 [RateCDR] => 1 ) [2025-03-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-03-15 18:48:05' and `end` < '2025-03-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-03-15 21:48:17] Production.INFO: count ==1542 [2025-03-15 21:48:18] Production.ERROR: pbx CDR StartTime 2025-03-15 18:48:05 - End Time 2025-03-15 21:48:05 [2025-03-15 21:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688993', 'tblTempUsageDetail_20' ) start [2025-03-15 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688993', 'tblTempUsageDetail_20' ) end [2025-03-15 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688993', 'tblTempVendorCDR_20' ) start [2025-03-15 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688993', 'tblTempVendorCDR_20' ) end [2025-03-15 21:48:18] Production.INFO: ProcessCDR(1,14688993,1,1,2) [2025-03-15 21:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688993', 'tblTempUsageDetail_20' ) start [2025-03-15 21:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688993', 'tblTempUsageDetail_20' ) end [2025-03-15 21:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 21:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 21:48:21] Production.INFO: ==27112== Releasing lock... [2025-03-15 21:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 21:48:21] Production.INFO: 39.5 MB #Memory Used# [2025-03-15 21:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 18:49:05 [end_date_ymd] => 2025-03-15 21:49:05 [RateCDR] => 1 ) [2025-03-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-03-15 18:49:05' and `end` < '2025-03-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-03-15 21:49:17] Production.INFO: count ==1539 [2025-03-15 21:49:18] Production.ERROR: pbx CDR StartTime 2025-03-15 18:49:05 - End Time 2025-03-15 21:49:05 [2025-03-15 21:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688998', 'tblTempUsageDetail_20' ) start [2025-03-15 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14688998', 'tblTempUsageDetail_20' ) end [2025-03-15 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688998', 'tblTempVendorCDR_20' ) start [2025-03-15 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14688998', 'tblTempVendorCDR_20' ) end [2025-03-15 21:49:18] Production.INFO: ProcessCDR(1,14688998,1,1,2) [2025-03-15 21:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14688998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14688998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14688998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14688998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688998', 'tblTempUsageDetail_20' ) start [2025-03-15 21:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14688998', 'tblTempUsageDetail_20' ) end [2025-03-15 21:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 21:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 21:49:21] Production.INFO: ==27187== Releasing lock... [2025-03-15 21:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 21:49:21] Production.INFO: 39.75 MB #Memory Used# [2025-03-15 21:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 18:50:06 [end_date_ymd] => 2025-03-15 21:50:06 [RateCDR] => 1 ) [2025-03-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-03-15 18:50:06' and `end` < '2025-03-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-03-15 21:50:18] Production.INFO: count ==1538 [2025-03-15 21:50:19] Production.ERROR: pbx CDR StartTime 2025-03-15 18:50:06 - End Time 2025-03-15 21:50:06 [2025-03-15 21:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689004', 'tblTempUsageDetail_20' ) start [2025-03-15 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689004', 'tblTempUsageDetail_20' ) end [2025-03-15 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689004', 'tblTempVendorCDR_20' ) start [2025-03-15 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689004', 'tblTempVendorCDR_20' ) end [2025-03-15 21:50:19] Production.INFO: ProcessCDR(1,14689004,1,1,2) [2025-03-15 21:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689004', 'tblTempUsageDetail_20' ) start [2025-03-15 21:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689004', 'tblTempUsageDetail_20' ) end [2025-03-15 21:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 21:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 21:50:22] Production.INFO: ==27267== Releasing lock... [2025-03-15 21:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 21:50:22] Production.INFO: 39.75 MB #Memory Used# [2025-03-15 21:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 18:51:05 [end_date_ymd] => 2025-03-15 21:51:05 [RateCDR] => 1 ) [2025-03-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-03-15 18:51:05' and `end` < '2025-03-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-03-15 21:51:18] Production.INFO: count ==1496 [2025-03-15 21:51:18] Production.ERROR: pbx CDR StartTime 2025-03-15 18:51:05 - End Time 2025-03-15 21:51:05 [2025-03-15 21:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689009', 'tblTempUsageDetail_20' ) start [2025-03-15 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689009', 'tblTempUsageDetail_20' ) end [2025-03-15 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689009', 'tblTempVendorCDR_20' ) start [2025-03-15 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689009', 'tblTempVendorCDR_20' ) end [2025-03-15 21:51:18] Production.INFO: ProcessCDR(1,14689009,1,1,2) [2025-03-15 21:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689009', 'tblTempUsageDetail_20' ) start [2025-03-15 21:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689009', 'tblTempUsageDetail_20' ) end [2025-03-15 21:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 21:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 21:51:22] Production.INFO: ==27342== Releasing lock... [2025-03-15 21:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 21:51:22] Production.INFO: 39.25 MB #Memory Used# [2025-03-15 21:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 18:52:06 [end_date_ymd] => 2025-03-15 21:52:06 [RateCDR] => 1 ) [2025-03-15 21:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 18:52:06' and `end` < '2025-03-15 21:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 21:52:18] Production.INFO: count ==1494 [2025-03-15 21:52:18] Production.ERROR: pbx CDR StartTime 2025-03-15 18:52:06 - End Time 2025-03-15 21:52:06 [2025-03-15 21:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689014', 'tblTempUsageDetail_20' ) start [2025-03-15 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689014', 'tblTempUsageDetail_20' ) end [2025-03-15 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689014', 'tblTempVendorCDR_20' ) start [2025-03-15 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689014', 'tblTempVendorCDR_20' ) end [2025-03-15 21:52:18] Production.INFO: ProcessCDR(1,14689014,1,1,2) [2025-03-15 21:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689014', 'tblTempUsageDetail_20' ) start [2025-03-15 21:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689014', 'tblTempUsageDetail_20' ) end [2025-03-15 21:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 21:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 21:52:22] Production.INFO: ==27413== Releasing lock... [2025-03-15 21:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 21:52:22] Production.INFO: 39.25 MB #Memory Used# [2025-03-15 21:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 18:53:04 [end_date_ymd] => 2025-03-15 21:53:04 [RateCDR] => 1 ) [2025-03-15 21: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-03-15 18:53:04' and `end` < '2025-03-15 21: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-03-15 21:53:17] Production.INFO: count ==1489 [2025-03-15 21:53:17] Production.ERROR: pbx CDR StartTime 2025-03-15 18:53:04 - End Time 2025-03-15 21:53:04 [2025-03-15 21:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 21:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689019', 'tblTempUsageDetail_20' ) start [2025-03-15 21:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689019', 'tblTempUsageDetail_20' ) end [2025-03-15 21:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689019', 'tblTempVendorCDR_20' ) start [2025-03-15 21:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689019', 'tblTempVendorCDR_20' ) end [2025-03-15 21:53:17] Production.INFO: ProcessCDR(1,14689019,1,1,2) [2025-03-15 21:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689019', 'tblTempUsageDetail_20' ) start [2025-03-15 21:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689019', 'tblTempUsageDetail_20' ) end [2025-03-15 21:53:20] Production.ERROR: pbx prc_insertCDR start [2025-03-15 21:53:20] Production.ERROR: pbx prc_insertCDR end [2025-03-15 21:53:20] Production.INFO: ==27484== Releasing lock... [2025-03-15 21:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 21:53:20] Production.INFO: 39.5 MB #Memory Used# [2025-03-15 21:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 18:54:06 [end_date_ymd] => 2025-03-15 21:54:06 [RateCDR] => 1 ) [2025-03-15 21:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 18:54:06' and `end` < '2025-03-15 21:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 21:54:18] Production.INFO: count ==1492 [2025-03-15 21:54:18] Production.ERROR: pbx CDR StartTime 2025-03-15 18:54:06 - End Time 2025-03-15 21:54:06 [2025-03-15 21:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689024', 'tblTempUsageDetail_20' ) start [2025-03-15 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689024', 'tblTempUsageDetail_20' ) end [2025-03-15 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689024', 'tblTempVendorCDR_20' ) start [2025-03-15 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689024', 'tblTempVendorCDR_20' ) end [2025-03-15 21:54:18] Production.INFO: ProcessCDR(1,14689024,1,1,2) [2025-03-15 21:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689024', 'tblTempUsageDetail_20' ) start [2025-03-15 21:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689024', 'tblTempUsageDetail_20' ) end [2025-03-15 21:54:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 21:54:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 21:54:23] Production.INFO: ==27559== Releasing lock... [2025-03-15 21:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 21:54:23] Production.INFO: 39.5 MB #Memory Used# [2025-03-15 21:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 18:55:05 [end_date_ymd] => 2025-03-15 21:55:05 [RateCDR] => 1 ) [2025-03-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-03-15 18:55:05' and `end` < '2025-03-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-03-15 21:55:17] Production.INFO: count ==1492 [2025-03-15 21:55:18] Production.ERROR: pbx CDR StartTime 2025-03-15 18:55:05 - End Time 2025-03-15 21:55:05 [2025-03-15 21:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689029', 'tblTempUsageDetail_20' ) start [2025-03-15 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689029', 'tblTempUsageDetail_20' ) end [2025-03-15 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689029', 'tblTempVendorCDR_20' ) start [2025-03-15 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689029', 'tblTempVendorCDR_20' ) end [2025-03-15 21:55:18] Production.INFO: ProcessCDR(1,14689029,1,1,2) [2025-03-15 21:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689029', 'tblTempUsageDetail_20' ) start [2025-03-15 21:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689029', 'tblTempUsageDetail_20' ) end [2025-03-15 21:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 21:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 21:55:21] Production.INFO: ==27630== Releasing lock... [2025-03-15 21:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 21:55:21] Production.INFO: 39.5 MB #Memory Used# [2025-03-15 21:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 18:56:06 [end_date_ymd] => 2025-03-15 21:56:06 [RateCDR] => 1 ) [2025-03-15 21:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 18:56:06' and `end` < '2025-03-15 21:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 21:56:18] Production.INFO: count ==1481 [2025-03-15 21:56:18] Production.ERROR: pbx CDR StartTime 2025-03-15 18:56:06 - End Time 2025-03-15 21:56:06 [2025-03-15 21:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689034', 'tblTempUsageDetail_20' ) start [2025-03-15 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689034', 'tblTempUsageDetail_20' ) end [2025-03-15 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689034', 'tblTempVendorCDR_20' ) start [2025-03-15 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689034', 'tblTempVendorCDR_20' ) end [2025-03-15 21:56:18] Production.INFO: ProcessCDR(1,14689034,1,1,2) [2025-03-15 21:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689034', 'tblTempUsageDetail_20' ) start [2025-03-15 21:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689034', 'tblTempUsageDetail_20' ) end [2025-03-15 21:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 21:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 21:56:22] Production.INFO: ==27703== Releasing lock... [2025-03-15 21:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 21:56:22] Production.INFO: 39.25 MB #Memory Used# [2025-03-15 21:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 18:57:05 [end_date_ymd] => 2025-03-15 21:57:05 [RateCDR] => 1 ) [2025-03-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-03-15 18:57:05' and `end` < '2025-03-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-03-15 21:57:17] Production.INFO: count ==1478 [2025-03-15 21:57:18] Production.ERROR: pbx CDR StartTime 2025-03-15 18:57:05 - End Time 2025-03-15 21:57:05 [2025-03-15 21:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689039', 'tblTempUsageDetail_20' ) start [2025-03-15 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689039', 'tblTempUsageDetail_20' ) end [2025-03-15 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689039', 'tblTempVendorCDR_20' ) start [2025-03-15 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689039', 'tblTempVendorCDR_20' ) end [2025-03-15 21:57:18] Production.INFO: ProcessCDR(1,14689039,1,1,2) [2025-03-15 21:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689039', 'tblTempUsageDetail_20' ) start [2025-03-15 21:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689039', 'tblTempUsageDetail_20' ) end [2025-03-15 21:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 21:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 21:57:21] Production.INFO: ==27778== Releasing lock... [2025-03-15 21:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 21:57:21] Production.INFO: 39.25 MB #Memory Used# [2025-03-15 21:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 18:58:06 [end_date_ymd] => 2025-03-15 21:58:06 [RateCDR] => 1 ) [2025-03-15 21:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 18:58:06' and `end` < '2025-03-15 21:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 21:58:18] Production.INFO: count ==1487 [2025-03-15 21:58:18] Production.ERROR: pbx CDR StartTime 2025-03-15 18:58:06 - End Time 2025-03-15 21:58:06 [2025-03-15 21:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689044', 'tblTempUsageDetail_20' ) start [2025-03-15 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689044', 'tblTempUsageDetail_20' ) end [2025-03-15 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689044', 'tblTempVendorCDR_20' ) start [2025-03-15 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689044', 'tblTempVendorCDR_20' ) end [2025-03-15 21:58:18] Production.INFO: ProcessCDR(1,14689044,1,1,2) [2025-03-15 21:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689044', 'tblTempUsageDetail_20' ) start [2025-03-15 21:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689044', 'tblTempUsageDetail_20' ) end [2025-03-15 21:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 21:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 21:58:21] Production.INFO: ==27853== Releasing lock... [2025-03-15 21:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 21:58:21] Production.INFO: 39.25 MB #Memory Used# [2025-03-15 21:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 18:59:05 [end_date_ymd] => 2025-03-15 21:59:05 [RateCDR] => 1 ) [2025-03-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-03-15 18:59:05' and `end` < '2025-03-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-03-15 21:59:17] Production.INFO: count ==1485 [2025-03-15 21:59:18] Production.ERROR: pbx CDR StartTime 2025-03-15 18:59:05 - End Time 2025-03-15 21:59:05 [2025-03-15 21:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689049', 'tblTempUsageDetail_20' ) start [2025-03-15 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689049', 'tblTempUsageDetail_20' ) end [2025-03-15 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689049', 'tblTempVendorCDR_20' ) start [2025-03-15 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689049', 'tblTempVendorCDR_20' ) end [2025-03-15 21:59:18] Production.INFO: ProcessCDR(1,14689049,1,1,2) [2025-03-15 21:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 21:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 21:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689049', 'tblTempUsageDetail_20' ) start [2025-03-15 21:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689049', 'tblTempUsageDetail_20' ) end [2025-03-15 21:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 21:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 21:59:21] Production.INFO: ==27970== Releasing lock... [2025-03-15 21:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 21:59:21] Production.INFO: 39 MB #Memory Used# [2025-03-15 22:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 19:00:06 [end_date_ymd] => 2025-03-15 22:00:06 [RateCDR] => 1 ) [2025-03-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-03-15 19:00:06' and `end` < '2025-03-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-03-15 22:00:19] Production.INFO: count ==1479 [2025-03-15 22:00:19] Production.ERROR: pbx CDR StartTime 2025-03-15 19:00:06 - End Time 2025-03-15 22:00:06 [2025-03-15 22:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689055', 'tblTempUsageDetail_20' ) start [2025-03-15 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689055', 'tblTempUsageDetail_20' ) end [2025-03-15 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689055', 'tblTempVendorCDR_20' ) start [2025-03-15 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689055', 'tblTempVendorCDR_20' ) end [2025-03-15 22:00:19] Production.INFO: ProcessCDR(1,14689055,1,1,2) [2025-03-15 22:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689055', 'tblTempUsageDetail_20' ) start [2025-03-15 22:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689055', 'tblTempUsageDetail_20' ) end [2025-03-15 22:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 22:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 22:00:23] Production.INFO: ==28046== Releasing lock... [2025-03-15 22:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 22:00:23] Production.INFO: 39.25 MB #Memory Used# [2025-03-15 22:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 19:01:05 [end_date_ymd] => 2025-03-15 22:01:05 [RateCDR] => 1 ) [2025-03-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-03-15 19:01:05' and `end` < '2025-03-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-03-15 22:01:17] Production.INFO: count ==1507 [2025-03-15 22:01:17] Production.ERROR: pbx CDR StartTime 2025-03-15 19:01:05 - End Time 2025-03-15 22:01:05 [2025-03-15 22:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 22:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689060', 'tblTempUsageDetail_20' ) start [2025-03-15 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689060', 'tblTempUsageDetail_20' ) end [2025-03-15 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689060', 'tblTempVendorCDR_20' ) start [2025-03-15 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689060', 'tblTempVendorCDR_20' ) end [2025-03-15 22:01:18] Production.INFO: ProcessCDR(1,14689060,1,1,2) [2025-03-15 22:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689060', 'tblTempUsageDetail_20' ) start [2025-03-15 22:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689060', 'tblTempUsageDetail_20' ) end [2025-03-15 22:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 22:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 22:01:21] Production.INFO: ==28131== Releasing lock... [2025-03-15 22:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 22:01:21] Production.INFO: 39.25 MB #Memory Used# [2025-03-15 22:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 19:02:05 [end_date_ymd] => 2025-03-15 22:02:05 [RateCDR] => 1 ) [2025-03-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-03-15 19:02:05' and `end` < '2025-03-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-03-15 22:02:18] Production.INFO: count ==1506 [2025-03-15 22:02:18] Production.ERROR: pbx CDR StartTime 2025-03-15 19:02:05 - End Time 2025-03-15 22:02:05 [2025-03-15 22:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689065', 'tblTempUsageDetail_20' ) start [2025-03-15 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689065', 'tblTempUsageDetail_20' ) end [2025-03-15 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689065', 'tblTempVendorCDR_20' ) start [2025-03-15 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689065', 'tblTempVendorCDR_20' ) end [2025-03-15 22:02:18] Production.INFO: ProcessCDR(1,14689065,1,1,2) [2025-03-15 22:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689065', 'tblTempUsageDetail_20' ) start [2025-03-15 22:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689065', 'tblTempUsageDetail_20' ) end [2025-03-15 22:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 22:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 22:02:22] Production.INFO: ==28204== Releasing lock... [2025-03-15 22:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 22:02:22] Production.INFO: 39.25 MB #Memory Used# [2025-03-15 22:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 19:03:05 [end_date_ymd] => 2025-03-15 22:03:05 [RateCDR] => 1 ) [2025-03-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-03-15 19:03:05' and `end` < '2025-03-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-03-15 22:03:17] Production.INFO: count ==1493 [2025-03-15 22:03:18] Production.ERROR: pbx CDR StartTime 2025-03-15 19:03:05 - End Time 2025-03-15 22:03:05 [2025-03-15 22:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689070', 'tblTempUsageDetail_20' ) start [2025-03-15 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689070', 'tblTempUsageDetail_20' ) end [2025-03-15 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689070', 'tblTempVendorCDR_20' ) start [2025-03-15 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689070', 'tblTempVendorCDR_20' ) end [2025-03-15 22:03:18] Production.INFO: ProcessCDR(1,14689070,1,1,2) [2025-03-15 22:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689070', 'tblTempUsageDetail_20' ) start [2025-03-15 22:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689070', 'tblTempUsageDetail_20' ) end [2025-03-15 22:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 22:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 22:03:21] Production.INFO: ==28275== Releasing lock... [2025-03-15 22:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 22:03:21] Production.INFO: 39.25 MB #Memory Used# [2025-03-15 22:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 19:04:06 [end_date_ymd] => 2025-03-15 22:04:06 [RateCDR] => 1 ) [2025-03-15 22:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 19:04:06' and `end` < '2025-03-15 22:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 22:04:18] Production.INFO: count ==1490 [2025-03-15 22:04:18] Production.ERROR: pbx CDR StartTime 2025-03-15 19:04:06 - End Time 2025-03-15 22:04:06 [2025-03-15 22:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689075', 'tblTempUsageDetail_20' ) start [2025-03-15 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689075', 'tblTempUsageDetail_20' ) end [2025-03-15 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689075', 'tblTempVendorCDR_20' ) start [2025-03-15 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689075', 'tblTempVendorCDR_20' ) end [2025-03-15 22:04:18] Production.INFO: ProcessCDR(1,14689075,1,1,2) [2025-03-15 22:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689075', 'tblTempUsageDetail_20' ) start [2025-03-15 22:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689075', 'tblTempUsageDetail_20' ) end [2025-03-15 22:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 22:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 22:04:22] Production.INFO: ==28351== Releasing lock... [2025-03-15 22:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 22:04:22] Production.INFO: 39.5 MB #Memory Used# [2025-03-15 22:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 19:05:04 [end_date_ymd] => 2025-03-15 22:05:04 [RateCDR] => 1 ) [2025-03-15 22:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 19:05:04' and `end` < '2025-03-15 22:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 22:05:17] Production.INFO: count ==1487 [2025-03-15 22:05:17] Production.ERROR: pbx CDR StartTime 2025-03-15 19:05:04 - End Time 2025-03-15 22:05:04 [2025-03-15 22:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 22:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689080', 'tblTempUsageDetail_20' ) start [2025-03-15 22:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689080', 'tblTempUsageDetail_20' ) end [2025-03-15 22:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689080', 'tblTempVendorCDR_20' ) start [2025-03-15 22:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689080', 'tblTempVendorCDR_20' ) end [2025-03-15 22:05:17] Production.INFO: ProcessCDR(1,14689080,1,1,2) [2025-03-15 22:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689080', 'tblTempUsageDetail_20' ) start [2025-03-15 22:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689080', 'tblTempUsageDetail_20' ) end [2025-03-15 22:05:20] Production.ERROR: pbx prc_insertCDR start [2025-03-15 22:05:20] Production.ERROR: pbx prc_insertCDR end [2025-03-15 22:05:20] Production.INFO: ==28426== Releasing lock... [2025-03-15 22:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 22:05:20] Production.INFO: 39.25 MB #Memory Used# [2025-03-15 22:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 19:06:05 [end_date_ymd] => 2025-03-15 22:06:05 [RateCDR] => 1 ) [2025-03-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-03-15 19:06:05' and `end` < '2025-03-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-03-15 22:06:18] Production.INFO: count ==1490 [2025-03-15 22:06:18] Production.ERROR: pbx CDR StartTime 2025-03-15 19:06:05 - End Time 2025-03-15 22:06:05 [2025-03-15 22:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689085', 'tblTempUsageDetail_20' ) start [2025-03-15 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689085', 'tblTempUsageDetail_20' ) end [2025-03-15 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689085', 'tblTempVendorCDR_20' ) start [2025-03-15 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689085', 'tblTempVendorCDR_20' ) end [2025-03-15 22:06:18] Production.INFO: ProcessCDR(1,14689085,1,1,2) [2025-03-15 22:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689085', 'tblTempUsageDetail_20' ) start [2025-03-15 22:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689085', 'tblTempUsageDetail_20' ) end [2025-03-15 22:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 22:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 22:06:22] Production.INFO: ==28499== Releasing lock... [2025-03-15 22:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 22:06:22] Production.INFO: 39.5 MB #Memory Used# [2025-03-15 22:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 19:07:05 [end_date_ymd] => 2025-03-15 22:07:05 [RateCDR] => 1 ) [2025-03-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-03-15 19:07:05' and `end` < '2025-03-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-03-15 22:07:17] Production.INFO: count ==1488 [2025-03-15 22:07:18] Production.ERROR: pbx CDR StartTime 2025-03-15 19:07:05 - End Time 2025-03-15 22:07:05 [2025-03-15 22:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689090', 'tblTempUsageDetail_20' ) start [2025-03-15 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689090', 'tblTempUsageDetail_20' ) end [2025-03-15 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689090', 'tblTempVendorCDR_20' ) start [2025-03-15 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689090', 'tblTempVendorCDR_20' ) end [2025-03-15 22:07:18] Production.INFO: ProcessCDR(1,14689090,1,1,2) [2025-03-15 22:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689090', 'tblTempUsageDetail_20' ) start [2025-03-15 22:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689090', 'tblTempUsageDetail_20' ) end [2025-03-15 22:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 22:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 22:07:21] Production.INFO: ==28571== Releasing lock... [2025-03-15 22:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 22:07:21] Production.INFO: 39.25 MB #Memory Used# [2025-03-15 22:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 19:08:06 [end_date_ymd] => 2025-03-15 22:08:06 [RateCDR] => 1 ) [2025-03-15 22:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 19:08:06' and `end` < '2025-03-15 22:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 22:08:18] Production.INFO: count ==1485 [2025-03-15 22:08:18] Production.ERROR: pbx CDR StartTime 2025-03-15 19:08:06 - End Time 2025-03-15 22:08:06 [2025-03-15 22:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689095', 'tblTempUsageDetail_20' ) start [2025-03-15 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689095', 'tblTempUsageDetail_20' ) end [2025-03-15 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689095', 'tblTempVendorCDR_20' ) start [2025-03-15 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689095', 'tblTempVendorCDR_20' ) end [2025-03-15 22:08:18] Production.INFO: ProcessCDR(1,14689095,1,1,2) [2025-03-15 22:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689095', 'tblTempUsageDetail_20' ) start [2025-03-15 22:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689095', 'tblTempUsageDetail_20' ) end [2025-03-15 22:08:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 22:08:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 22:08:22] Production.INFO: ==28645== Releasing lock... [2025-03-15 22:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 22:08:22] Production.INFO: 39.25 MB #Memory Used# [2025-03-15 22:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 19:09:04 [end_date_ymd] => 2025-03-15 22:09:04 [RateCDR] => 1 ) [2025-03-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-03-15 19:09:04' and `end` < '2025-03-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-03-15 22:09:17] Production.INFO: count ==1484 [2025-03-15 22:09:17] Production.ERROR: pbx CDR StartTime 2025-03-15 19:09:04 - End Time 2025-03-15 22:09:04 [2025-03-15 22:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689100', 'tblTempUsageDetail_20' ) start [2025-03-15 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689100', 'tblTempUsageDetail_20' ) end [2025-03-15 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689100', 'tblTempVendorCDR_20' ) start [2025-03-15 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689100', 'tblTempVendorCDR_20' ) end [2025-03-15 22:09:17] Production.INFO: ProcessCDR(1,14689100,1,1,2) [2025-03-15 22:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689100', 'tblTempUsageDetail_20' ) start [2025-03-15 22:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689100', 'tblTempUsageDetail_20' ) end [2025-03-15 22:09:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 22:09:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 22:09:22] Production.INFO: ==28718== Releasing lock... [2025-03-15 22:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 22:09:22] Production.INFO: 39.5 MB #Memory Used# [2025-03-15 22:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 19:10:05 [end_date_ymd] => 2025-03-15 22:10:05 [RateCDR] => 1 ) [2025-03-15 22:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 19:10:05' and `end` < '2025-03-15 22:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 22:10:17] Production.INFO: count ==1478 [2025-03-15 22:10:18] Production.ERROR: pbx CDR StartTime 2025-03-15 19:10:05 - End Time 2025-03-15 22:10:05 [2025-03-15 22:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689105', 'tblTempUsageDetail_20' ) start [2025-03-15 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689105', 'tblTempUsageDetail_20' ) end [2025-03-15 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689105', 'tblTempVendorCDR_20' ) start [2025-03-15 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689105', 'tblTempVendorCDR_20' ) end [2025-03-15 22:10:18] Production.INFO: ProcessCDR(1,14689105,1,1,2) [2025-03-15 22:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689105', 'tblTempUsageDetail_20' ) start [2025-03-15 22:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689105', 'tblTempUsageDetail_20' ) end [2025-03-15 22:10:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 22:10:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 22:10:21] Production.INFO: ==28795== Releasing lock... [2025-03-15 22:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 22:10:21] Production.INFO: 39 MB #Memory Used# [2025-03-15 22:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 19:11:05 [end_date_ymd] => 2025-03-15 22:11:05 [RateCDR] => 1 ) [2025-03-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-03-15 19:11:05' and `end` < '2025-03-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-03-15 22:11:17] Production.INFO: count ==1464 [2025-03-15 22:11:17] Production.ERROR: pbx CDR StartTime 2025-03-15 19:11:05 - End Time 2025-03-15 22:11:05 [2025-03-15 22:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 22:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689111', 'tblTempUsageDetail_20' ) start [2025-03-15 22:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689111', 'tblTempUsageDetail_20' ) end [2025-03-15 22:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689111', 'tblTempVendorCDR_20' ) start [2025-03-15 22:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689111', 'tblTempVendorCDR_20' ) end [2025-03-15 22:11:17] Production.INFO: ProcessCDR(1,14689111,1,1,2) [2025-03-15 22:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689111', 'tblTempUsageDetail_20' ) start [2025-03-15 22:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689111', 'tblTempUsageDetail_20' ) end [2025-03-15 22:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 22:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 22:11:21] Production.INFO: ==28874== Releasing lock... [2025-03-15 22:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 22:11:21] Production.INFO: 39.5 MB #Memory Used# [2025-03-15 22:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 19:12:06 [end_date_ymd] => 2025-03-15 22:12:06 [RateCDR] => 1 ) [2025-03-15 22:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 19:12:06' and `end` < '2025-03-15 22:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 22:12:18] Production.INFO: count ==1450 [2025-03-15 22:12:18] Production.ERROR: pbx CDR StartTime 2025-03-15 19:12:06 - End Time 2025-03-15 22:12:06 [2025-03-15 22:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689116', 'tblTempUsageDetail_20' ) start [2025-03-15 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689116', 'tblTempUsageDetail_20' ) end [2025-03-15 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689116', 'tblTempVendorCDR_20' ) start [2025-03-15 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689116', 'tblTempVendorCDR_20' ) end [2025-03-15 22:12:18] Production.INFO: ProcessCDR(1,14689116,1,1,2) [2025-03-15 22:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689116', 'tblTempUsageDetail_20' ) start [2025-03-15 22:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689116', 'tblTempUsageDetail_20' ) end [2025-03-15 22:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 22:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 22:12:21] Production.INFO: ==28947== Releasing lock... [2025-03-15 22:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 22:12:21] Production.INFO: 39.25 MB #Memory Used# [2025-03-15 22:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 19:13:04 [end_date_ymd] => 2025-03-15 22:13:04 [RateCDR] => 1 ) [2025-03-15 22:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 19:13:04' and `end` < '2025-03-15 22:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 22:13:17] Production.INFO: count ==1452 [2025-03-15 22:13:17] Production.ERROR: pbx CDR StartTime 2025-03-15 19:13:04 - End Time 2025-03-15 22:13:04 [2025-03-15 22:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 22:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689121', 'tblTempUsageDetail_20' ) start [2025-03-15 22:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689121', 'tblTempUsageDetail_20' ) end [2025-03-15 22:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689121', 'tblTempVendorCDR_20' ) start [2025-03-15 22:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689121', 'tblTempVendorCDR_20' ) end [2025-03-15 22:13:17] Production.INFO: ProcessCDR(1,14689121,1,1,2) [2025-03-15 22:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689121', 'tblTempUsageDetail_20' ) start [2025-03-15 22:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689121', 'tblTempUsageDetail_20' ) end [2025-03-15 22:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 22:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 22:13:21] Production.INFO: ==29021== Releasing lock... [2025-03-15 22:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 22:13:21] Production.INFO: 39 MB #Memory Used# [2025-03-15 22:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 19:14:05 [end_date_ymd] => 2025-03-15 22:14:05 [RateCDR] => 1 ) [2025-03-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-03-15 19:14:05' and `end` < '2025-03-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-03-15 22:14:18] Production.INFO: count ==1455 [2025-03-15 22:14:18] Production.ERROR: pbx CDR StartTime 2025-03-15 19:14:05 - End Time 2025-03-15 22:14:05 [2025-03-15 22:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689126', 'tblTempUsageDetail_20' ) start [2025-03-15 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689126', 'tblTempUsageDetail_20' ) end [2025-03-15 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689126', 'tblTempVendorCDR_20' ) start [2025-03-15 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689126', 'tblTempVendorCDR_20' ) end [2025-03-15 22:14:18] Production.INFO: ProcessCDR(1,14689126,1,1,2) [2025-03-15 22:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689126', 'tblTempUsageDetail_20' ) start [2025-03-15 22:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689126', 'tblTempUsageDetail_20' ) end [2025-03-15 22:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 22:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 22:14:21] Production.INFO: ==29096== Releasing lock... [2025-03-15 22:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 22:14:21] Production.INFO: 39 MB #Memory Used# [2025-03-15 22:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 19:15:05 [end_date_ymd] => 2025-03-15 22:15:05 [RateCDR] => 1 ) [2025-03-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-03-15 19:15:05' and `end` < '2025-03-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-03-15 22:15:17] Production.INFO: count ==1452 [2025-03-15 22:15:18] Production.ERROR: pbx CDR StartTime 2025-03-15 19:15:05 - End Time 2025-03-15 22:15:05 [2025-03-15 22:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689131', 'tblTempUsageDetail_20' ) start [2025-03-15 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689131', 'tblTempUsageDetail_20' ) end [2025-03-15 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689131', 'tblTempVendorCDR_20' ) start [2025-03-15 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689131', 'tblTempVendorCDR_20' ) end [2025-03-15 22:15:18] Production.INFO: ProcessCDR(1,14689131,1,1,2) [2025-03-15 22:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689131', 'tblTempUsageDetail_20' ) start [2025-03-15 22:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689131', 'tblTempUsageDetail_20' ) end [2025-03-15 22:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 22:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 22:15:21] Production.INFO: ==29207== Releasing lock... [2025-03-15 22:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 22:15:21] Production.INFO: 39 MB #Memory Used# [2025-03-15 22:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 19:16:05 [end_date_ymd] => 2025-03-15 22:16:05 [RateCDR] => 1 ) [2025-03-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-03-15 19:16:05' and `end` < '2025-03-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-03-15 22:16:17] Production.INFO: count ==1450 [2025-03-15 22:16:18] Production.ERROR: pbx CDR StartTime 2025-03-15 19:16:05 - End Time 2025-03-15 22:16:05 [2025-03-15 22:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689136', 'tblTempUsageDetail_20' ) start [2025-03-15 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689136', 'tblTempUsageDetail_20' ) end [2025-03-15 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689136', 'tblTempVendorCDR_20' ) start [2025-03-15 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689136', 'tblTempVendorCDR_20' ) end [2025-03-15 22:16:18] Production.INFO: ProcessCDR(1,14689136,1,1,2) [2025-03-15 22:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689136', 'tblTempUsageDetail_20' ) start [2025-03-15 22:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689136', 'tblTempUsageDetail_20' ) end [2025-03-15 22:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 22:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 22:16:21] Production.INFO: ==29280== Releasing lock... [2025-03-15 22:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 22:16:21] Production.INFO: 39 MB #Memory Used# [2025-03-15 22:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 19:17:05 [end_date_ymd] => 2025-03-15 22:17:05 [RateCDR] => 1 ) [2025-03-15 22:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 19:17:05' and `end` < '2025-03-15 22:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 22:17:18] Production.INFO: count ==1452 [2025-03-15 22:17:18] Production.ERROR: pbx CDR StartTime 2025-03-15 19:17:05 - End Time 2025-03-15 22:17:05 [2025-03-15 22:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689141', 'tblTempUsageDetail_20' ) start [2025-03-15 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689141', 'tblTempUsageDetail_20' ) end [2025-03-15 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689141', 'tblTempVendorCDR_20' ) start [2025-03-15 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689141', 'tblTempVendorCDR_20' ) end [2025-03-15 22:17:18] Production.INFO: ProcessCDR(1,14689141,1,1,2) [2025-03-15 22:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689141', 'tblTempUsageDetail_20' ) start [2025-03-15 22:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689141', 'tblTempUsageDetail_20' ) end [2025-03-15 22:17:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 22:17:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 22:17:23] Production.INFO: ==29354== Releasing lock... [2025-03-15 22:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 22:17:23] Production.INFO: 39 MB #Memory Used# [2025-03-15 22:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 19:18:05 [end_date_ymd] => 2025-03-15 22:18:05 [RateCDR] => 1 ) [2025-03-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-03-15 19:18:05' and `end` < '2025-03-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-03-15 22:18:17] Production.INFO: count ==1445 [2025-03-15 22:18:17] Production.ERROR: pbx CDR StartTime 2025-03-15 19:18:05 - End Time 2025-03-15 22:18:05 [2025-03-15 22:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 22:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689146', 'tblTempUsageDetail_20' ) start [2025-03-15 22:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689146', 'tblTempUsageDetail_20' ) end [2025-03-15 22:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689146', 'tblTempVendorCDR_20' ) start [2025-03-15 22:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689146', 'tblTempVendorCDR_20' ) end [2025-03-15 22:18:17] Production.INFO: ProcessCDR(1,14689146,1,1,2) [2025-03-15 22:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689146', 'tblTempUsageDetail_20' ) start [2025-03-15 22:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689146', 'tblTempUsageDetail_20' ) end [2025-03-15 22:18:20] Production.ERROR: pbx prc_insertCDR start [2025-03-15 22:18:20] Production.ERROR: pbx prc_insertCDR end [2025-03-15 22:18:21] Production.INFO: ==29431== Releasing lock... [2025-03-15 22:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 22:18:21] Production.INFO: 39 MB #Memory Used# [2025-03-15 22:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 19:19:05 [end_date_ymd] => 2025-03-15 22:19:05 [RateCDR] => 1 ) [2025-03-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-03-15 19:19:05' and `end` < '2025-03-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-03-15 22:19:18] Production.INFO: count ==1443 [2025-03-15 22:19:18] Production.ERROR: pbx CDR StartTime 2025-03-15 19:19:05 - End Time 2025-03-15 22:19:05 [2025-03-15 22:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689151', 'tblTempUsageDetail_20' ) start [2025-03-15 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689151', 'tblTempUsageDetail_20' ) end [2025-03-15 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689151', 'tblTempVendorCDR_20' ) start [2025-03-15 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689151', 'tblTempVendorCDR_20' ) end [2025-03-15 22:19:18] Production.INFO: ProcessCDR(1,14689151,1,1,2) [2025-03-15 22:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689151', 'tblTempUsageDetail_20' ) start [2025-03-15 22:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689151', 'tblTempUsageDetail_20' ) end [2025-03-15 22:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 22:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 22:19:21] Production.INFO: ==29503== Releasing lock... [2025-03-15 22:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 22:19:21] Production.INFO: 39.25 MB #Memory Used# [2025-03-15 22:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 19:20:05 [end_date_ymd] => 2025-03-15 22:20:05 [RateCDR] => 1 ) [2025-03-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-03-15 19:20:05' and `end` < '2025-03-15 22:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 22:20:18] Production.INFO: count ==1445 [2025-03-15 22:20:18] Production.ERROR: pbx CDR StartTime 2025-03-15 19:20:05 - End Time 2025-03-15 22:20:05 [2025-03-15 22:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689156', 'tblTempUsageDetail_20' ) start [2025-03-15 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689156', 'tblTempUsageDetail_20' ) end [2025-03-15 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689156', 'tblTempVendorCDR_20' ) start [2025-03-15 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689156', 'tblTempVendorCDR_20' ) end [2025-03-15 22:20:18] Production.INFO: ProcessCDR(1,14689156,1,1,2) [2025-03-15 22:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689156', 'tblTempUsageDetail_20' ) start [2025-03-15 22:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689156', 'tblTempUsageDetail_20' ) end [2025-03-15 22:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 22:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 22:20:22] Production.INFO: ==29579== Releasing lock... [2025-03-15 22:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 22:20:22] Production.INFO: 39 MB #Memory Used# [2025-03-15 22:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 19:21:05 [end_date_ymd] => 2025-03-15 22:21:05 [RateCDR] => 1 ) [2025-03-15 22:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 19:21:05' and `end` < '2025-03-15 22:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 22:21:18] Production.INFO: count ==1446 [2025-03-15 22:21:18] Production.ERROR: pbx CDR StartTime 2025-03-15 19:21:05 - End Time 2025-03-15 22:21:05 [2025-03-15 22:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689162', 'tblTempUsageDetail_20' ) start [2025-03-15 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689162', 'tblTempUsageDetail_20' ) end [2025-03-15 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689162', 'tblTempVendorCDR_20' ) start [2025-03-15 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689162', 'tblTempVendorCDR_20' ) end [2025-03-15 22:21:18] Production.INFO: ProcessCDR(1,14689162,1,1,2) [2025-03-15 22:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689162', 'tblTempUsageDetail_20' ) start [2025-03-15 22:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689162', 'tblTempUsageDetail_20' ) end [2025-03-15 22:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 22:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 22:21:21] Production.INFO: ==29655== Releasing lock... [2025-03-15 22:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 22:21:21] Production.INFO: 39 MB #Memory Used# [2025-03-15 22:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 19:22:05 [end_date_ymd] => 2025-03-15 22:22:05 [RateCDR] => 1 ) [2025-03-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-03-15 19:22:05' and `end` < '2025-03-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-03-15 22:22:17] Production.INFO: count ==1439 [2025-03-15 22:22:18] Production.ERROR: pbx CDR StartTime 2025-03-15 19:22:05 - End Time 2025-03-15 22:22:05 [2025-03-15 22:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689167', 'tblTempUsageDetail_20' ) start [2025-03-15 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689167', 'tblTempUsageDetail_20' ) end [2025-03-15 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689167', 'tblTempVendorCDR_20' ) start [2025-03-15 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689167', 'tblTempVendorCDR_20' ) end [2025-03-15 22:22:18] Production.INFO: ProcessCDR(1,14689167,1,1,2) [2025-03-15 22:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689167', 'tblTempUsageDetail_20' ) start [2025-03-15 22:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689167', 'tblTempUsageDetail_20' ) end [2025-03-15 22:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 22:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 22:22:21] Production.INFO: ==29727== Releasing lock... [2025-03-15 22:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 22:22:21] Production.INFO: 38.75 MB #Memory Used# [2025-03-15 22:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 19:23:05 [end_date_ymd] => 2025-03-15 22:23:05 [RateCDR] => 1 ) [2025-03-15 22:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 19:23:05' and `end` < '2025-03-15 22:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 22:23:18] Production.INFO: count ==1432 [2025-03-15 22:23:18] Production.ERROR: pbx CDR StartTime 2025-03-15 19:23:05 - End Time 2025-03-15 22:23:05 [2025-03-15 22:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689172', 'tblTempUsageDetail_20' ) start [2025-03-15 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689172', 'tblTempUsageDetail_20' ) end [2025-03-15 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689172', 'tblTempVendorCDR_20' ) start [2025-03-15 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689172', 'tblTempVendorCDR_20' ) end [2025-03-15 22:23:18] Production.INFO: ProcessCDR(1,14689172,1,1,2) [2025-03-15 22:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689172', 'tblTempUsageDetail_20' ) start [2025-03-15 22:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689172', 'tblTempUsageDetail_20' ) end [2025-03-15 22:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 22:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 22:23:21] Production.INFO: ==29802== Releasing lock... [2025-03-15 22:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 22:23:21] Production.INFO: 38.75 MB #Memory Used# [2025-03-15 22:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 19:24:05 [end_date_ymd] => 2025-03-15 22:24:05 [RateCDR] => 1 ) [2025-03-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-03-15 19:24:05' and `end` < '2025-03-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-03-15 22:24:17] Production.INFO: count ==1434 [2025-03-15 22:24:17] Production.ERROR: pbx CDR StartTime 2025-03-15 19:24:05 - End Time 2025-03-15 22:24:05 [2025-03-15 22:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 22:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689177', 'tblTempUsageDetail_20' ) start [2025-03-15 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689177', 'tblTempUsageDetail_20' ) end [2025-03-15 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689177', 'tblTempVendorCDR_20' ) start [2025-03-15 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689177', 'tblTempVendorCDR_20' ) end [2025-03-15 22:24:18] Production.INFO: ProcessCDR(1,14689177,1,1,2) [2025-03-15 22:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689177', 'tblTempUsageDetail_20' ) start [2025-03-15 22:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689177', 'tblTempUsageDetail_20' ) end [2025-03-15 22:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 22:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 22:24:21] Production.INFO: ==29878== Releasing lock... [2025-03-15 22:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 22:24:21] Production.INFO: 38.75 MB #Memory Used# [2025-03-15 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 19:25:05 [end_date_ymd] => 2025-03-15 22:25:05 [RateCDR] => 1 ) [2025-03-15 22:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 19:25:05' and `end` < '2025-03-15 22:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 22:25:18] Production.INFO: count ==1438 [2025-03-15 22:25:18] Production.ERROR: pbx CDR StartTime 2025-03-15 19:25:05 - End Time 2025-03-15 22:25:05 [2025-03-15 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689182', 'tblTempUsageDetail_20' ) start [2025-03-15 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689182', 'tblTempUsageDetail_20' ) end [2025-03-15 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689182', 'tblTempVendorCDR_20' ) start [2025-03-15 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689182', 'tblTempVendorCDR_20' ) end [2025-03-15 22:25:18] Production.INFO: ProcessCDR(1,14689182,1,1,2) [2025-03-15 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689182', 'tblTempUsageDetail_20' ) start [2025-03-15 22:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689182', 'tblTempUsageDetail_20' ) end [2025-03-15 22:25:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 22:25:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 22:25:23] Production.INFO: ==29952== Releasing lock... [2025-03-15 22:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 22:25:23] Production.INFO: 39 MB #Memory Used# [2025-03-15 22:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 19:26:05 [end_date_ymd] => 2025-03-15 22:26:05 [RateCDR] => 1 ) [2025-03-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-03-15 19:26:05' and `end` < '2025-03-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-03-15 22:26:17] Production.INFO: count ==1428 [2025-03-15 22:26:17] Production.ERROR: pbx CDR StartTime 2025-03-15 19:26:05 - End Time 2025-03-15 22:26:05 [2025-03-15 22:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 22:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689187', 'tblTempUsageDetail_20' ) start [2025-03-15 22:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689187', 'tblTempUsageDetail_20' ) end [2025-03-15 22:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689187', 'tblTempVendorCDR_20' ) start [2025-03-15 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689187', 'tblTempVendorCDR_20' ) end [2025-03-15 22:26:18] Production.INFO: ProcessCDR(1,14689187,1,1,2) [2025-03-15 22:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689187', 'tblTempUsageDetail_20' ) start [2025-03-15 22:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689187', 'tblTempUsageDetail_20' ) end [2025-03-15 22:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 22:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 22:26:21] Production.INFO: ==30027== Releasing lock... [2025-03-15 22:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 22:26:21] Production.INFO: 39 MB #Memory Used# [2025-03-15 22:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 19:27:05 [end_date_ymd] => 2025-03-15 22:27:05 [RateCDR] => 1 ) [2025-03-15 22:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 19:27:05' and `end` < '2025-03-15 22:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 22:27:18] Production.INFO: count ==1431 [2025-03-15 22:27:18] Production.ERROR: pbx CDR StartTime 2025-03-15 19:27:05 - End Time 2025-03-15 22:27:05 [2025-03-15 22:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689192', 'tblTempUsageDetail_20' ) start [2025-03-15 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689192', 'tblTempUsageDetail_20' ) end [2025-03-15 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689192', 'tblTempVendorCDR_20' ) start [2025-03-15 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689192', 'tblTempVendorCDR_20' ) end [2025-03-15 22:27:18] Production.INFO: ProcessCDR(1,14689192,1,1,2) [2025-03-15 22:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689192', 'tblTempUsageDetail_20' ) start [2025-03-15 22:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689192', 'tblTempUsageDetail_20' ) end [2025-03-15 22:27:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 22:27:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 22:27:23] Production.INFO: ==30100== Releasing lock... [2025-03-15 22:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 22:27:23] Production.INFO: 38.75 MB #Memory Used# [2025-03-15 22:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 19:28:05 [end_date_ymd] => 2025-03-15 22:28:05 [RateCDR] => 1 ) [2025-03-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-03-15 19:28:05' and `end` < '2025-03-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-03-15 22:28:17] Production.INFO: count ==1428 [2025-03-15 22:28:17] Production.ERROR: pbx CDR StartTime 2025-03-15 19:28:05 - End Time 2025-03-15 22:28:05 [2025-03-15 22:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 22:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689197', 'tblTempUsageDetail_20' ) start [2025-03-15 22:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689197', 'tblTempUsageDetail_20' ) end [2025-03-15 22:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689197', 'tblTempVendorCDR_20' ) start [2025-03-15 22:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689197', 'tblTempVendorCDR_20' ) end [2025-03-15 22:28:17] Production.INFO: ProcessCDR(1,14689197,1,1,2) [2025-03-15 22:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689197', 'tblTempUsageDetail_20' ) start [2025-03-15 22:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689197', 'tblTempUsageDetail_20' ) end [2025-03-15 22:28:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 22:28:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 22:28:22] Production.INFO: ==30175== Releasing lock... [2025-03-15 22:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 22:28:22] Production.INFO: 38.75 MB #Memory Used# [2025-03-15 22:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 19:29:05 [end_date_ymd] => 2025-03-15 22:29:05 [RateCDR] => 1 ) [2025-03-15 22:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 19:29:05' and `end` < '2025-03-15 22:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 22:29:17] Production.INFO: count ==1428 [2025-03-15 22:29:18] Production.ERROR: pbx CDR StartTime 2025-03-15 19:29:05 - End Time 2025-03-15 22:29:05 [2025-03-15 22:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689202', 'tblTempUsageDetail_20' ) start [2025-03-15 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689202', 'tblTempUsageDetail_20' ) end [2025-03-15 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689202', 'tblTempVendorCDR_20' ) start [2025-03-15 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689202', 'tblTempVendorCDR_20' ) end [2025-03-15 22:29:18] Production.INFO: ProcessCDR(1,14689202,1,1,2) [2025-03-15 22:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689202', 'tblTempUsageDetail_20' ) start [2025-03-15 22:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689202', 'tblTempUsageDetail_20' ) end [2025-03-15 22:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 22:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 22:29:21] Production.INFO: ==30247== Releasing lock... [2025-03-15 22:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 22:29:21] Production.INFO: 38.75 MB #Memory Used# [2025-03-15 22:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 19:30:05 [end_date_ymd] => 2025-03-15 22:30:05 [RateCDR] => 1 ) [2025-03-15 22:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 19:30:05' and `end` < '2025-03-15 22:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 22:30:18] Production.INFO: count ==1429 [2025-03-15 22:30:18] Production.ERROR: pbx CDR StartTime 2025-03-15 19:30:05 - End Time 2025-03-15 22:30:05 [2025-03-15 22:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689208', 'tblTempUsageDetail_20' ) start [2025-03-15 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689208', 'tblTempUsageDetail_20' ) end [2025-03-15 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689208', 'tblTempVendorCDR_20' ) start [2025-03-15 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689208', 'tblTempVendorCDR_20' ) end [2025-03-15 22:30:18] Production.INFO: ProcessCDR(1,14689208,1,1,2) [2025-03-15 22:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689208', 'tblTempUsageDetail_20' ) start [2025-03-15 22:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689208', 'tblTempUsageDetail_20' ) end [2025-03-15 22:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 22:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 22:30:22] Production.INFO: ==30362== Releasing lock... [2025-03-15 22:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 22:30:22] Production.INFO: 39 MB #Memory Used# [2025-03-15 22:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 19:31:05 [end_date_ymd] => 2025-03-15 22:31:05 [RateCDR] => 1 ) [2025-03-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-03-15 19:31:05' and `end` < '2025-03-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-03-15 22:31:17] Production.INFO: count ==1431 [2025-03-15 22:31:18] Production.ERROR: pbx CDR StartTime 2025-03-15 19:31:05 - End Time 2025-03-15 22:31:05 [2025-03-15 22:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689213', 'tblTempUsageDetail_20' ) start [2025-03-15 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689213', 'tblTempUsageDetail_20' ) end [2025-03-15 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689213', 'tblTempVendorCDR_20' ) start [2025-03-15 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689213', 'tblTempVendorCDR_20' ) end [2025-03-15 22:31:18] Production.INFO: ProcessCDR(1,14689213,1,1,2) [2025-03-15 22:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689213', 'tblTempUsageDetail_20' ) start [2025-03-15 22:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689213', 'tblTempUsageDetail_20' ) end [2025-03-15 22:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 22:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 22:31:21] Production.INFO: ==30442== Releasing lock... [2025-03-15 22:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 22:31:21] Production.INFO: 39 MB #Memory Used# [2025-03-15 22:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 19:32:06 [end_date_ymd] => 2025-03-15 22:32:06 [RateCDR] => 1 ) [2025-03-15 22:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 19:32:06' and `end` < '2025-03-15 22:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 22:32:18] Production.INFO: count ==1421 [2025-03-15 22:32:18] Production.ERROR: pbx CDR StartTime 2025-03-15 19:32:06 - End Time 2025-03-15 22:32:06 [2025-03-15 22:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689218', 'tblTempUsageDetail_20' ) start [2025-03-15 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689218', 'tblTempUsageDetail_20' ) end [2025-03-15 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689218', 'tblTempVendorCDR_20' ) start [2025-03-15 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689218', 'tblTempVendorCDR_20' ) end [2025-03-15 22:32:18] Production.INFO: ProcessCDR(1,14689218,1,1,2) [2025-03-15 22:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689218', 'tblTempUsageDetail_20' ) start [2025-03-15 22:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689218', 'tblTempUsageDetail_20' ) end [2025-03-15 22:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 22:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 22:32:22] Production.INFO: ==30517== Releasing lock... [2025-03-15 22:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 22:32:22] Production.INFO: 39 MB #Memory Used# [2025-03-15 22:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 19:33:05 [end_date_ymd] => 2025-03-15 22:33:05 [RateCDR] => 1 ) [2025-03-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-03-15 19:33:05' and `end` < '2025-03-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-03-15 22:33:17] Production.INFO: count ==1419 [2025-03-15 22:33:18] Production.ERROR: pbx CDR StartTime 2025-03-15 19:33:05 - End Time 2025-03-15 22:33:05 [2025-03-15 22:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689223', 'tblTempUsageDetail_20' ) start [2025-03-15 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689223', 'tblTempUsageDetail_20' ) end [2025-03-15 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689223', 'tblTempVendorCDR_20' ) start [2025-03-15 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689223', 'tblTempVendorCDR_20' ) end [2025-03-15 22:33:18] Production.INFO: ProcessCDR(1,14689223,1,1,2) [2025-03-15 22:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689223', 'tblTempUsageDetail_20' ) start [2025-03-15 22:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689223', 'tblTempUsageDetail_20' ) end [2025-03-15 22:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 22:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 22:33:21] Production.INFO: ==30585== Releasing lock... [2025-03-15 22:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 22:33:21] Production.INFO: 38.75 MB #Memory Used# [2025-03-15 22:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 19:34:05 [end_date_ymd] => 2025-03-15 22:34:05 [RateCDR] => 1 ) [2025-03-15 22:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 19:34:05' and `end` < '2025-03-15 22:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 22:34:17] Production.INFO: count ==1421 [2025-03-15 22:34:18] Production.ERROR: pbx CDR StartTime 2025-03-15 19:34:05 - End Time 2025-03-15 22:34:05 [2025-03-15 22:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689228', 'tblTempUsageDetail_20' ) start [2025-03-15 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689228', 'tblTempUsageDetail_20' ) end [2025-03-15 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689228', 'tblTempVendorCDR_20' ) start [2025-03-15 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689228', 'tblTempVendorCDR_20' ) end [2025-03-15 22:34:18] Production.INFO: ProcessCDR(1,14689228,1,1,2) [2025-03-15 22:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689228', 'tblTempUsageDetail_20' ) start [2025-03-15 22:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689228', 'tblTempUsageDetail_20' ) end [2025-03-15 22:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 22:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 22:34:21] Production.INFO: ==30659== Releasing lock... [2025-03-15 22:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 22:34:21] Production.INFO: 39.25 MB #Memory Used# [2025-03-15 22:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 19:35:05 [end_date_ymd] => 2025-03-15 22:35:05 [RateCDR] => 1 ) [2025-03-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-03-15 19:35:05' and `end` < '2025-03-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-03-15 22:35:17] Production.INFO: count ==1421 [2025-03-15 22:35:18] Production.ERROR: pbx CDR StartTime 2025-03-15 19:35:05 - End Time 2025-03-15 22:35:05 [2025-03-15 22:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689233', 'tblTempUsageDetail_20' ) start [2025-03-15 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689233', 'tblTempUsageDetail_20' ) end [2025-03-15 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689233', 'tblTempVendorCDR_20' ) start [2025-03-15 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689233', 'tblTempVendorCDR_20' ) end [2025-03-15 22:35:18] Production.INFO: ProcessCDR(1,14689233,1,1,2) [2025-03-15 22:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689233', 'tblTempUsageDetail_20' ) start [2025-03-15 22:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689233', 'tblTempUsageDetail_20' ) end [2025-03-15 22:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 22:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 22:35:21] Production.INFO: ==30733== Releasing lock... [2025-03-15 22:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 22:35:21] Production.INFO: 39.25 MB #Memory Used# [2025-03-15 22:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 19:36:05 [end_date_ymd] => 2025-03-15 22:36:05 [RateCDR] => 1 ) [2025-03-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-03-15 19:36:05' and `end` < '2025-03-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-03-15 22:36:18] Production.INFO: count ==1422 [2025-03-15 22:36:18] Production.ERROR: pbx CDR StartTime 2025-03-15 19:36:05 - End Time 2025-03-15 22:36:05 [2025-03-15 22:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689238', 'tblTempUsageDetail_20' ) start [2025-03-15 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689238', 'tblTempUsageDetail_20' ) end [2025-03-15 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689238', 'tblTempVendorCDR_20' ) start [2025-03-15 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689238', 'tblTempVendorCDR_20' ) end [2025-03-15 22:36:18] Production.INFO: ProcessCDR(1,14689238,1,1,2) [2025-03-15 22:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689238', 'tblTempUsageDetail_20' ) start [2025-03-15 22:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689238', 'tblTempUsageDetail_20' ) end [2025-03-15 22:36:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 22:36:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 22:36:23] Production.INFO: ==30806== Releasing lock... [2025-03-15 22:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 22:36:23] Production.INFO: 38.75 MB #Memory Used# [2025-03-15 22:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 19:37:05 [end_date_ymd] => 2025-03-15 22:37:05 [RateCDR] => 1 ) [2025-03-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-03-15 19:37:05' and `end` < '2025-03-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-03-15 22:37:17] Production.INFO: count ==1427 [2025-03-15 22:37:17] Production.ERROR: pbx CDR StartTime 2025-03-15 19:37:05 - End Time 2025-03-15 22:37:05 [2025-03-15 22:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 22:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689243', 'tblTempUsageDetail_20' ) start [2025-03-15 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689243', 'tblTempUsageDetail_20' ) end [2025-03-15 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689243', 'tblTempVendorCDR_20' ) start [2025-03-15 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689243', 'tblTempVendorCDR_20' ) end [2025-03-15 22:37:18] Production.INFO: ProcessCDR(1,14689243,1,1,2) [2025-03-15 22:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689243', 'tblTempUsageDetail_20' ) start [2025-03-15 22:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689243', 'tblTempUsageDetail_20' ) end [2025-03-15 22:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 22:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 22:37:21] Production.INFO: ==30891== Releasing lock... [2025-03-15 22:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 22:37:21] Production.INFO: 38.75 MB #Memory Used# [2025-03-15 22:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 19:38:05 [end_date_ymd] => 2025-03-15 22:38:05 [RateCDR] => 1 ) [2025-03-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-03-15 19:38:05' and `end` < '2025-03-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-03-15 22:38:17] Production.INFO: count ==1422 [2025-03-15 22:38:18] Production.ERROR: pbx CDR StartTime 2025-03-15 19:38:05 - End Time 2025-03-15 22:38:05 [2025-03-15 22:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689248', 'tblTempUsageDetail_20' ) start [2025-03-15 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689248', 'tblTempUsageDetail_20' ) end [2025-03-15 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689248', 'tblTempVendorCDR_20' ) start [2025-03-15 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689248', 'tblTempVendorCDR_20' ) end [2025-03-15 22:38:18] Production.INFO: ProcessCDR(1,14689248,1,1,2) [2025-03-15 22:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689248', 'tblTempUsageDetail_20' ) start [2025-03-15 22:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689248', 'tblTempUsageDetail_20' ) end [2025-03-15 22:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 22:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 22:38:21] Production.INFO: ==30972== Releasing lock... [2025-03-15 22:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 22:38:21] Production.INFO: 38.75 MB #Memory Used# [2025-03-15 22:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 19:39:05 [end_date_ymd] => 2025-03-15 22:39:05 [RateCDR] => 1 ) [2025-03-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-03-15 19:39:05' and `end` < '2025-03-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-03-15 22:39:17] Production.INFO: count ==1423 [2025-03-15 22:39:17] Production.ERROR: pbx CDR StartTime 2025-03-15 19:39:05 - End Time 2025-03-15 22:39:05 [2025-03-15 22:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 22:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689253', 'tblTempUsageDetail_20' ) start [2025-03-15 22:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689253', 'tblTempUsageDetail_20' ) end [2025-03-15 22:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689253', 'tblTempVendorCDR_20' ) start [2025-03-15 22:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689253', 'tblTempVendorCDR_20' ) end [2025-03-15 22:39:17] Production.INFO: ProcessCDR(1,14689253,1,1,2) [2025-03-15 22:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689253', 'tblTempUsageDetail_20' ) start [2025-03-15 22:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689253', 'tblTempUsageDetail_20' ) end [2025-03-15 22:39:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 22:39:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 22:39:22] Production.INFO: ==31048== Releasing lock... [2025-03-15 22:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 22:39:22] Production.INFO: 38.75 MB #Memory Used# [2025-03-15 22:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 19:40:06 [end_date_ymd] => 2025-03-15 22:40:06 [RateCDR] => 1 ) [2025-03-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-03-15 19:40:06' and `end` < '2025-03-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-03-15 22:40:18] Production.INFO: count ==1420 [2025-03-15 22:40:19] Production.ERROR: pbx CDR StartTime 2025-03-15 19:40:06 - End Time 2025-03-15 22:40:06 [2025-03-15 22:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689259', 'tblTempUsageDetail_20' ) start [2025-03-15 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689259', 'tblTempUsageDetail_20' ) end [2025-03-15 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689259', 'tblTempVendorCDR_20' ) start [2025-03-15 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689259', 'tblTempVendorCDR_20' ) end [2025-03-15 22:40:19] Production.INFO: ProcessCDR(1,14689259,1,1,2) [2025-03-15 22:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689259', 'tblTempUsageDetail_20' ) start [2025-03-15 22:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689259', 'tblTempUsageDetail_20' ) end [2025-03-15 22:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 22:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 22:40:22] Production.INFO: ==31121== Releasing lock... [2025-03-15 22:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 22:40:22] Production.INFO: 38.75 MB #Memory Used# [2025-03-15 22:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 19:41:05 [end_date_ymd] => 2025-03-15 22:41:05 [RateCDR] => 1 ) [2025-03-15 22:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 19:41:05' and `end` < '2025-03-15 22:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 22:41:18] Production.INFO: count ==1422 [2025-03-15 22:41:18] Production.ERROR: pbx CDR StartTime 2025-03-15 19:41:05 - End Time 2025-03-15 22:41:05 [2025-03-15 22:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689264', 'tblTempUsageDetail_20' ) start [2025-03-15 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689264', 'tblTempUsageDetail_20' ) end [2025-03-15 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689264', 'tblTempVendorCDR_20' ) start [2025-03-15 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689264', 'tblTempVendorCDR_20' ) end [2025-03-15 22:41:18] Production.INFO: ProcessCDR(1,14689264,1,1,2) [2025-03-15 22:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689264', 'tblTempUsageDetail_20' ) start [2025-03-15 22:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689264', 'tblTempUsageDetail_20' ) end [2025-03-15 22:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 22:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 22:41:21] Production.INFO: ==31199== Releasing lock... [2025-03-15 22:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 22:41:21] Production.INFO: 39 MB #Memory Used# [2025-03-15 22:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 19:42:05 [end_date_ymd] => 2025-03-15 22:42:05 [RateCDR] => 1 ) [2025-03-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-03-15 19:42:05' and `end` < '2025-03-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-03-15 22:42:17] Production.INFO: count ==1421 [2025-03-15 22:42:18] Production.ERROR: pbx CDR StartTime 2025-03-15 19:42:05 - End Time 2025-03-15 22:42:05 [2025-03-15 22:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689269', 'tblTempUsageDetail_20' ) start [2025-03-15 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689269', 'tblTempUsageDetail_20' ) end [2025-03-15 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689269', 'tblTempVendorCDR_20' ) start [2025-03-15 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689269', 'tblTempVendorCDR_20' ) end [2025-03-15 22:42:18] Production.INFO: ProcessCDR(1,14689269,1,1,2) [2025-03-15 22:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689269', 'tblTempUsageDetail_20' ) start [2025-03-15 22:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689269', 'tblTempUsageDetail_20' ) end [2025-03-15 22:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 22:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 22:42:21] Production.INFO: ==31269== Releasing lock... [2025-03-15 22:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 22:42:21] Production.INFO: 39 MB #Memory Used# [2025-03-15 22:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 19:43:05 [end_date_ymd] => 2025-03-15 22:43:05 [RateCDR] => 1 ) [2025-03-15 22:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 19:43:05' and `end` < '2025-03-15 22:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 22:43:18] Production.INFO: count ==1429 [2025-03-15 22:43:18] Production.ERROR: pbx CDR StartTime 2025-03-15 19:43:05 - End Time 2025-03-15 22:43:05 [2025-03-15 22:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689274', 'tblTempUsageDetail_20' ) start [2025-03-15 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689274', 'tblTempUsageDetail_20' ) end [2025-03-15 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689274', 'tblTempVendorCDR_20' ) start [2025-03-15 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689274', 'tblTempVendorCDR_20' ) end [2025-03-15 22:43:18] Production.INFO: ProcessCDR(1,14689274,1,1,2) [2025-03-15 22:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689274', 'tblTempUsageDetail_20' ) start [2025-03-15 22:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689274', 'tblTempUsageDetail_20' ) end [2025-03-15 22:43:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 22:43:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 22:43:23] Production.INFO: ==31343== Releasing lock... [2025-03-15 22:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 22:43:23] Production.INFO: 38.75 MB #Memory Used# [2025-03-15 22:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 19:44:05 [end_date_ymd] => 2025-03-15 22:44:05 [RateCDR] => 1 ) [2025-03-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-03-15 19:44:05' and `end` < '2025-03-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-03-15 22:44:17] Production.INFO: count ==1426 [2025-03-15 22:44:18] Production.ERROR: pbx CDR StartTime 2025-03-15 19:44:05 - End Time 2025-03-15 22:44:05 [2025-03-15 22:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689279', 'tblTempUsageDetail_20' ) start [2025-03-15 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689279', 'tblTempUsageDetail_20' ) end [2025-03-15 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689279', 'tblTempVendorCDR_20' ) start [2025-03-15 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689279', 'tblTempVendorCDR_20' ) end [2025-03-15 22:44:18] Production.INFO: ProcessCDR(1,14689279,1,1,2) [2025-03-15 22:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689279', 'tblTempUsageDetail_20' ) start [2025-03-15 22:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689279', 'tblTempUsageDetail_20' ) end [2025-03-15 22:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 22:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 22:44:21] Production.INFO: ==31417== Releasing lock... [2025-03-15 22:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 22:44:21] Production.INFO: 38.75 MB #Memory Used# [2025-03-15 22:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 19:45:05 [end_date_ymd] => 2025-03-15 22:45:05 [RateCDR] => 1 ) [2025-03-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-03-15 19:45:05' and `end` < '2025-03-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-03-15 22:45:17] Production.INFO: count ==1422 [2025-03-15 22:45:18] Production.ERROR: pbx CDR StartTime 2025-03-15 19:45:05 - End Time 2025-03-15 22:45:05 [2025-03-15 22:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689284', 'tblTempUsageDetail_20' ) start [2025-03-15 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689284', 'tblTempUsageDetail_20' ) end [2025-03-15 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689284', 'tblTempVendorCDR_20' ) start [2025-03-15 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689284', 'tblTempVendorCDR_20' ) end [2025-03-15 22:45:18] Production.INFO: ProcessCDR(1,14689284,1,1,2) [2025-03-15 22:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689284', 'tblTempUsageDetail_20' ) start [2025-03-15 22:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689284', 'tblTempUsageDetail_20' ) end [2025-03-15 22:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 22:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 22:45:21] Production.INFO: ==31492== Releasing lock... [2025-03-15 22:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 22:45:21] Production.INFO: 39.25 MB #Memory Used# [2025-03-15 22:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 19:46:05 [end_date_ymd] => 2025-03-15 22:46:05 [RateCDR] => 1 ) [2025-03-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-03-15 19:46:05' and `end` < '2025-03-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-03-15 22:46:17] Production.INFO: count ==1414 [2025-03-15 22:46:17] Production.ERROR: pbx CDR StartTime 2025-03-15 19:46:05 - End Time 2025-03-15 22:46:05 [2025-03-15 22:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 22:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689289', 'tblTempUsageDetail_20' ) start [2025-03-15 22:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689289', 'tblTempUsageDetail_20' ) end [2025-03-15 22:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689289', 'tblTempVendorCDR_20' ) start [2025-03-15 22:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689289', 'tblTempVendorCDR_20' ) end [2025-03-15 22:46:17] Production.INFO: ProcessCDR(1,14689289,1,1,2) [2025-03-15 22:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689289', 'tblTempUsageDetail_20' ) start [2025-03-15 22:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689289', 'tblTempUsageDetail_20' ) end [2025-03-15 22:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 22:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 22:46:21] Production.INFO: ==31604== Releasing lock... [2025-03-15 22:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 22:46:21] Production.INFO: 38.75 MB #Memory Used# [2025-03-15 22:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 19:47:05 [end_date_ymd] => 2025-03-15 22:47:05 [RateCDR] => 1 ) [2025-03-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-03-15 19:47:05' and `end` < '2025-03-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-03-15 22:47:17] Production.INFO: count ==1414 [2025-03-15 22:47:18] Production.ERROR: pbx CDR StartTime 2025-03-15 19:47:05 - End Time 2025-03-15 22:47:05 [2025-03-15 22:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689294', 'tblTempUsageDetail_20' ) start [2025-03-15 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689294', 'tblTempUsageDetail_20' ) end [2025-03-15 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689294', 'tblTempVendorCDR_20' ) start [2025-03-15 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689294', 'tblTempVendorCDR_20' ) end [2025-03-15 22:47:18] Production.INFO: ProcessCDR(1,14689294,1,1,2) [2025-03-15 22:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689294', 'tblTempUsageDetail_20' ) start [2025-03-15 22:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689294', 'tblTempUsageDetail_20' ) end [2025-03-15 22:47:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 22:47:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 22:47:23] Production.INFO: ==31675== Releasing lock... [2025-03-15 22:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 22:47:23] Production.INFO: 38.75 MB #Memory Used# [2025-03-15 22:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 19:48:05 [end_date_ymd] => 2025-03-15 22:48:05 [RateCDR] => 1 ) [2025-03-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-03-15 19:48:05' and `end` < '2025-03-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-03-15 22:48:17] Production.INFO: count ==1407 [2025-03-15 22:48:17] Production.ERROR: pbx CDR StartTime 2025-03-15 19:48:05 - End Time 2025-03-15 22:48:05 [2025-03-15 22:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 22:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689299', 'tblTempUsageDetail_20' ) start [2025-03-15 22:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689299', 'tblTempUsageDetail_20' ) end [2025-03-15 22:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689299', 'tblTempVendorCDR_20' ) start [2025-03-15 22:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689299', 'tblTempVendorCDR_20' ) end [2025-03-15 22:48:17] Production.INFO: ProcessCDR(1,14689299,1,1,2) [2025-03-15 22:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689299', 'tblTempUsageDetail_20' ) start [2025-03-15 22:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689299', 'tblTempUsageDetail_20' ) end [2025-03-15 22:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 22:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 22:48:21] Production.INFO: ==31749== Releasing lock... [2025-03-15 22:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 22:48:21] Production.INFO: 38.75 MB #Memory Used# [2025-03-15 22:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 19:49:05 [end_date_ymd] => 2025-03-15 22:49:05 [RateCDR] => 1 ) [2025-03-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-03-15 19:49:05' and `end` < '2025-03-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-03-15 22:49:17] Production.INFO: count ==1399 [2025-03-15 22:49:17] Production.ERROR: pbx CDR StartTime 2025-03-15 19:49:05 - End Time 2025-03-15 22:49:05 [2025-03-15 22:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689304', 'tblTempUsageDetail_20' ) start [2025-03-15 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689304', 'tblTempUsageDetail_20' ) end [2025-03-15 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689304', 'tblTempVendorCDR_20' ) start [2025-03-15 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689304', 'tblTempVendorCDR_20' ) end [2025-03-15 22:49:17] Production.INFO: ProcessCDR(1,14689304,1,1,2) [2025-03-15 22:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689304', 'tblTempUsageDetail_20' ) start [2025-03-15 22:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689304', 'tblTempUsageDetail_20' ) end [2025-03-15 22:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 22:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 22:49:21] Production.INFO: ==31823== Releasing lock... [2025-03-15 22:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 22:49:21] Production.INFO: 38.75 MB #Memory Used# [2025-03-15 22:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 19:50:07 [end_date_ymd] => 2025-03-15 22:50:07 [RateCDR] => 1 ) [2025-03-15 22:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 19:50:07' and `end` < '2025-03-15 22:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 22:50:19] Production.INFO: count ==1394 [2025-03-15 22:50:19] Production.ERROR: pbx CDR StartTime 2025-03-15 19:50:07 - End Time 2025-03-15 22:50:07 [2025-03-15 22:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689310', 'tblTempUsageDetail_20' ) start [2025-03-15 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689310', 'tblTempUsageDetail_20' ) end [2025-03-15 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689310', 'tblTempVendorCDR_20' ) start [2025-03-15 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689310', 'tblTempVendorCDR_20' ) end [2025-03-15 22:50:19] Production.INFO: ProcessCDR(1,14689310,1,1,2) [2025-03-15 22:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689310', 'tblTempUsageDetail_20' ) start [2025-03-15 22:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689310', 'tblTempUsageDetail_20' ) end [2025-03-15 22:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 22:50:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 22:50:23] Production.INFO: ==31899== Releasing lock... [2025-03-15 22:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 22:50:23] Production.INFO: 38.5 MB #Memory Used# [2025-03-15 22:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 19:51:05 [end_date_ymd] => 2025-03-15 22:51:05 [RateCDR] => 1 ) [2025-03-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-03-15 19:51:05' and `end` < '2025-03-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-03-15 22:51:17] Production.INFO: count ==1350 [2025-03-15 22:51:17] Production.ERROR: pbx CDR StartTime 2025-03-15 19:51:05 - End Time 2025-03-15 22:51:05 [2025-03-15 22:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 22:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689315', 'tblTempUsageDetail_20' ) start [2025-03-15 22:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689315', 'tblTempUsageDetail_20' ) end [2025-03-15 22:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689315', 'tblTempVendorCDR_20' ) start [2025-03-15 22:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689315', 'tblTempVendorCDR_20' ) end [2025-03-15 22:51:17] Production.INFO: ProcessCDR(1,14689315,1,1,2) [2025-03-15 22:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689315', 'tblTempUsageDetail_20' ) start [2025-03-15 22:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689315', 'tblTempUsageDetail_20' ) end [2025-03-15 22:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 22:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 22:51:22] Production.INFO: ==31975== Releasing lock... [2025-03-15 22:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 22:51:22] Production.INFO: 38.5 MB #Memory Used# [2025-03-15 22:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 19:52:06 [end_date_ymd] => 2025-03-15 22:52:06 [RateCDR] => 1 ) [2025-03-15 22:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 19:52:06' and `end` < '2025-03-15 22:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 22:52:18] Production.INFO: count ==1334 [2025-03-15 22:52:18] Production.ERROR: pbx CDR StartTime 2025-03-15 19:52:06 - End Time 2025-03-15 22:52:06 [2025-03-15 22:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689320', 'tblTempUsageDetail_20' ) start [2025-03-15 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689320', 'tblTempUsageDetail_20' ) end [2025-03-15 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689320', 'tblTempVendorCDR_20' ) start [2025-03-15 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689320', 'tblTempVendorCDR_20' ) end [2025-03-15 22:52:18] Production.INFO: ProcessCDR(1,14689320,1,1,2) [2025-03-15 22:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689320', 'tblTempUsageDetail_20' ) start [2025-03-15 22:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689320', 'tblTempUsageDetail_20' ) end [2025-03-15 22:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 22:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 22:52:22] Production.INFO: ==32051== Releasing lock... [2025-03-15 22:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 22:52:22] Production.INFO: 38 MB #Memory Used# [2025-03-15 22:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 19:53:05 [end_date_ymd] => 2025-03-15 22:53:05 [RateCDR] => 1 ) [2025-03-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-03-15 19:53:05' and `end` < '2025-03-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-03-15 22:53:17] Production.INFO: count ==1328 [2025-03-15 22:53:18] Production.ERROR: pbx CDR StartTime 2025-03-15 19:53:05 - End Time 2025-03-15 22:53:05 [2025-03-15 22:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689325', 'tblTempUsageDetail_20' ) start [2025-03-15 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689325', 'tblTempUsageDetail_20' ) end [2025-03-15 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689325', 'tblTempVendorCDR_20' ) start [2025-03-15 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689325', 'tblTempVendorCDR_20' ) end [2025-03-15 22:53:18] Production.INFO: ProcessCDR(1,14689325,1,1,2) [2025-03-15 22:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689325', 'tblTempUsageDetail_20' ) start [2025-03-15 22:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689325', 'tblTempUsageDetail_20' ) end [2025-03-15 22:53:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 22:53:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 22:53:23] Production.INFO: ==32126== Releasing lock... [2025-03-15 22:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 22:53:23] Production.INFO: 37.75 MB #Memory Used# [2025-03-15 22:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 19:54:05 [end_date_ymd] => 2025-03-15 22:54:05 [RateCDR] => 1 ) [2025-03-15 22:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 19:54:05' and `end` < '2025-03-15 22:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 22:54:17] Production.INFO: count ==1316 [2025-03-15 22:54:17] Production.ERROR: pbx CDR StartTime 2025-03-15 19:54:05 - End Time 2025-03-15 22:54:05 [2025-03-15 22:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 22:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689330', 'tblTempUsageDetail_20' ) start [2025-03-15 22:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689330', 'tblTempUsageDetail_20' ) end [2025-03-15 22:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689330', 'tblTempVendorCDR_20' ) start [2025-03-15 22:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689330', 'tblTempVendorCDR_20' ) end [2025-03-15 22:54:17] Production.INFO: ProcessCDR(1,14689330,1,1,2) [2025-03-15 22:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689330', 'tblTempUsageDetail_20' ) start [2025-03-15 22:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689330', 'tblTempUsageDetail_20' ) end [2025-03-15 22:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 22:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 22:54:21] Production.INFO: ==32197== Releasing lock... [2025-03-15 22:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 22:54:21] Production.INFO: 38 MB #Memory Used# [2025-03-15 22:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 19:55:06 [end_date_ymd] => 2025-03-15 22:55:06 [RateCDR] => 1 ) [2025-03-15 22:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 19:55:06' and `end` < '2025-03-15 22:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 22:55:18] Production.INFO: count ==1314 [2025-03-15 22:55:18] Production.ERROR: pbx CDR StartTime 2025-03-15 19:55:06 - End Time 2025-03-15 22:55:06 [2025-03-15 22:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689335', 'tblTempUsageDetail_20' ) start [2025-03-15 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689335', 'tblTempUsageDetail_20' ) end [2025-03-15 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689335', 'tblTempVendorCDR_20' ) start [2025-03-15 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689335', 'tblTempVendorCDR_20' ) end [2025-03-15 22:55:18] Production.INFO: ProcessCDR(1,14689335,1,1,2) [2025-03-15 22:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689335', 'tblTempUsageDetail_20' ) start [2025-03-15 22:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689335', 'tblTempUsageDetail_20' ) end [2025-03-15 22:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 22:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 22:55:22] Production.INFO: ==32272== Releasing lock... [2025-03-15 22:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 22:55:22] Production.INFO: 37.75 MB #Memory Used# [2025-03-15 22:56:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 19:56:04 [end_date_ymd] => 2025-03-15 22:56:04 [RateCDR] => 1 ) [2025-03-15 22: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-03-15 19:56:04' and `end` < '2025-03-15 22: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-03-15 22:56:17] Production.INFO: count ==1317 [2025-03-15 22:56:17] Production.ERROR: pbx CDR StartTime 2025-03-15 19:56:04 - End Time 2025-03-15 22:56:04 [2025-03-15 22:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 22:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689340', 'tblTempUsageDetail_20' ) start [2025-03-15 22:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689340', 'tblTempUsageDetail_20' ) end [2025-03-15 22:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689340', 'tblTempVendorCDR_20' ) start [2025-03-15 22:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689340', 'tblTempVendorCDR_20' ) end [2025-03-15 22:56:17] Production.INFO: ProcessCDR(1,14689340,1,1,2) [2025-03-15 22:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689340', 'tblTempUsageDetail_20' ) start [2025-03-15 22:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689340', 'tblTempUsageDetail_20' ) end [2025-03-15 22:56:20] Production.ERROR: pbx prc_insertCDR start [2025-03-15 22:56:20] Production.ERROR: pbx prc_insertCDR end [2025-03-15 22:56:20] Production.INFO: ==32343== Releasing lock... [2025-03-15 22:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 22:56:20] Production.INFO: 38 MB #Memory Used# [2025-03-15 22:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 19:57:05 [end_date_ymd] => 2025-03-15 22:57:05 [RateCDR] => 1 ) [2025-03-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-03-15 19:57:05' and `end` < '2025-03-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-03-15 22:57:17] Production.INFO: count ==1319 [2025-03-15 22:57:18] Production.ERROR: pbx CDR StartTime 2025-03-15 19:57:05 - End Time 2025-03-15 22:57:05 [2025-03-15 22:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689345', 'tblTempUsageDetail_20' ) start [2025-03-15 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689345', 'tblTempUsageDetail_20' ) end [2025-03-15 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689345', 'tblTempVendorCDR_20' ) start [2025-03-15 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689345', 'tblTempVendorCDR_20' ) end [2025-03-15 22:57:18] Production.INFO: ProcessCDR(1,14689345,1,1,2) [2025-03-15 22:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689345', 'tblTempUsageDetail_20' ) start [2025-03-15 22:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689345', 'tblTempUsageDetail_20' ) end [2025-03-15 22:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 22:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 22:57:21] Production.INFO: ==32420== Releasing lock... [2025-03-15 22:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 22:57:21] Production.INFO: 38 MB #Memory Used# [2025-03-15 22:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 19:58:05 [end_date_ymd] => 2025-03-15 22:58:05 [RateCDR] => 1 ) [2025-03-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-03-15 19:58:05' and `end` < '2025-03-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-03-15 22:58:17] Production.INFO: count ==1320 [2025-03-15 22:58:18] Production.ERROR: pbx CDR StartTime 2025-03-15 19:58:05 - End Time 2025-03-15 22:58:05 [2025-03-15 22:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689347', 'tblTempUsageDetail_20' ) start [2025-03-15 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689347', 'tblTempUsageDetail_20' ) end [2025-03-15 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689347', 'tblTempVendorCDR_20' ) start [2025-03-15 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689347', 'tblTempVendorCDR_20' ) end [2025-03-15 22:58:18] Production.INFO: ProcessCDR(1,14689347,1,1,2) [2025-03-15 22:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689347', 'tblTempUsageDetail_20' ) start [2025-03-15 22:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689347', 'tblTempUsageDetail_20' ) end [2025-03-15 22:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 22:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 22:58:21] Production.INFO: ==32496== Releasing lock... [2025-03-15 22:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 22:58:21] Production.INFO: 38.25 MB #Memory Used# [2025-03-15 22:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 19:59:06 [end_date_ymd] => 2025-03-15 22:59:06 [RateCDR] => 1 ) [2025-03-15 22:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 19:59:06' and `end` < '2025-03-15 22:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 22:59:18] Production.INFO: count ==1323 [2025-03-15 22:59:18] Production.ERROR: pbx CDR StartTime 2025-03-15 19:59:06 - End Time 2025-03-15 22:59:06 [2025-03-15 22:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689355', 'tblTempUsageDetail_20' ) start [2025-03-15 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689355', 'tblTempUsageDetail_20' ) end [2025-03-15 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689355', 'tblTempVendorCDR_20' ) start [2025-03-15 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689355', 'tblTempVendorCDR_20' ) end [2025-03-15 22:59:18] Production.INFO: ProcessCDR(1,14689355,1,1,2) [2025-03-15 22:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 22:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 22:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689355', 'tblTempUsageDetail_20' ) start [2025-03-15 22:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689355', 'tblTempUsageDetail_20' ) end [2025-03-15 22:59:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 22:59:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 22:59:22] Production.INFO: ==32568== Releasing lock... [2025-03-15 22:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 22:59:22] Production.INFO: 38.75 MB #Memory Used# [2025-03-15 23:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 20:00:07 [end_date_ymd] => 2025-03-15 23:00:07 [RateCDR] => 1 ) [2025-03-15 23:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 20:00:07' and `end` < '2025-03-15 23:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 23:00:19] Production.INFO: count ==1321 [2025-03-15 23:00:19] Production.ERROR: pbx CDR StartTime 2025-03-15 20:00:07 - End Time 2025-03-15 23:00:07 [2025-03-15 23:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689361', 'tblTempUsageDetail_20' ) start [2025-03-15 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689361', 'tblTempUsageDetail_20' ) end [2025-03-15 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689361', 'tblTempVendorCDR_20' ) start [2025-03-15 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689361', 'tblTempVendorCDR_20' ) end [2025-03-15 23:00:19] Production.INFO: ProcessCDR(1,14689361,1,1,2) [2025-03-15 23:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689361', 'tblTempUsageDetail_20' ) start [2025-03-15 23:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689361', 'tblTempUsageDetail_20' ) end [2025-03-15 23:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 23:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 23:00:23] Production.INFO: ==32644== Releasing lock... [2025-03-15 23:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 23:00:23] Production.INFO: 38.5 MB #Memory Used# [2025-03-15 23:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 20:01:05 [end_date_ymd] => 2025-03-15 23:01:05 [RateCDR] => 1 ) [2025-03-15 23:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 20:01:05' and `end` < '2025-03-15 23:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 23:01:17] Production.INFO: count ==1314 [2025-03-15 23:01:18] Production.ERROR: pbx CDR StartTime 2025-03-15 20:01:05 - End Time 2025-03-15 23:01:05 [2025-03-15 23:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689366', 'tblTempUsageDetail_20' ) start [2025-03-15 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689366', 'tblTempUsageDetail_20' ) end [2025-03-15 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689366', 'tblTempVendorCDR_20' ) start [2025-03-15 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689366', 'tblTempVendorCDR_20' ) end [2025-03-15 23:01:18] Production.INFO: ProcessCDR(1,14689366,1,1,2) [2025-03-15 23:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689366', 'tblTempUsageDetail_20' ) start [2025-03-15 23:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689366', 'tblTempUsageDetail_20' ) end [2025-03-15 23:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 23:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 23:01:21] Production.INFO: ==303== Releasing lock... [2025-03-15 23:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 23:01:21] Production.INFO: 38.25 MB #Memory Used# [2025-03-15 23:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 20:02:06 [end_date_ymd] => 2025-03-15 23:02:06 [RateCDR] => 1 ) [2025-03-15 23:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 20:02:06' and `end` < '2025-03-15 23:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 23:02:18] Production.INFO: count ==1310 [2025-03-15 23:02:18] Production.ERROR: pbx CDR StartTime 2025-03-15 20:02:06 - End Time 2025-03-15 23:02:06 [2025-03-15 23:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689371', 'tblTempUsageDetail_20' ) start [2025-03-15 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689371', 'tblTempUsageDetail_20' ) end [2025-03-15 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689371', 'tblTempVendorCDR_20' ) start [2025-03-15 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689371', 'tblTempVendorCDR_20' ) end [2025-03-15 23:02:18] Production.INFO: ProcessCDR(1,14689371,1,1,2) [2025-03-15 23:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689371', 'tblTempUsageDetail_20' ) start [2025-03-15 23:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689371', 'tblTempUsageDetail_20' ) end [2025-03-15 23:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 23:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 23:02:21] Production.INFO: ==475== Releasing lock... [2025-03-15 23:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 23:02:21] Production.INFO: 38 MB #Memory Used# [2025-03-15 23:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 20:03:05 [end_date_ymd] => 2025-03-15 23:03:05 [RateCDR] => 1 ) [2025-03-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-03-15 20:03:05' and `end` < '2025-03-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-03-15 23:03:17] Production.INFO: count ==1314 [2025-03-15 23:03:17] Production.ERROR: pbx CDR StartTime 2025-03-15 20:03:05 - End Time 2025-03-15 23:03:05 [2025-03-15 23:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 23:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689376', 'tblTempUsageDetail_20' ) start [2025-03-15 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689376', 'tblTempUsageDetail_20' ) end [2025-03-15 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689376', 'tblTempVendorCDR_20' ) start [2025-03-15 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689376', 'tblTempVendorCDR_20' ) end [2025-03-15 23:03:18] Production.INFO: ProcessCDR(1,14689376,1,1,2) [2025-03-15 23:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689376', 'tblTempUsageDetail_20' ) start [2025-03-15 23:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689376', 'tblTempUsageDetail_20' ) end [2025-03-15 23:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 23:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 23:03:21] Production.INFO: ==549== Releasing lock... [2025-03-15 23:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 23:03:21] Production.INFO: 38.25 MB #Memory Used# [2025-03-15 23:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 20:04:05 [end_date_ymd] => 2025-03-15 23:04:05 [RateCDR] => 1 ) [2025-03-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-03-15 20:04:05' and `end` < '2025-03-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-03-15 23:04:18] Production.INFO: count ==1312 [2025-03-15 23:04:18] Production.ERROR: pbx CDR StartTime 2025-03-15 20:04:05 - End Time 2025-03-15 23:04:05 [2025-03-15 23:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689381', 'tblTempUsageDetail_20' ) start [2025-03-15 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689381', 'tblTempUsageDetail_20' ) end [2025-03-15 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689381', 'tblTempVendorCDR_20' ) start [2025-03-15 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689381', 'tblTempVendorCDR_20' ) end [2025-03-15 23:04:18] Production.INFO: ProcessCDR(1,14689381,1,1,2) [2025-03-15 23:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689381', 'tblTempUsageDetail_20' ) start [2025-03-15 23:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689381', 'tblTempUsageDetail_20' ) end [2025-03-15 23:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 23:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 23:04:22] Production.INFO: ==635== Releasing lock... [2025-03-15 23:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 23:04:22] Production.INFO: 38 MB #Memory Used# [2025-03-15 23:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 20:05:05 [end_date_ymd] => 2025-03-15 23:05:05 [RateCDR] => 1 ) [2025-03-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-03-15 20:05:05' and `end` < '2025-03-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-03-15 23:05:17] Production.INFO: count ==1312 [2025-03-15 23:05:18] Production.ERROR: pbx CDR StartTime 2025-03-15 20:05:05 - End Time 2025-03-15 23:05:05 [2025-03-15 23:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689386', 'tblTempUsageDetail_20' ) start [2025-03-15 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689386', 'tblTempUsageDetail_20' ) end [2025-03-15 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689386', 'tblTempVendorCDR_20' ) start [2025-03-15 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689386', 'tblTempVendorCDR_20' ) end [2025-03-15 23:05:18] Production.INFO: ProcessCDR(1,14689386,1,1,2) [2025-03-15 23:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689386', 'tblTempUsageDetail_20' ) start [2025-03-15 23:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689386', 'tblTempUsageDetail_20' ) end [2025-03-15 23:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 23:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 23:05:21] Production.INFO: ==810== Releasing lock... [2025-03-15 23:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 23:05:21] Production.INFO: 38 MB #Memory Used# [2025-03-15 23:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 20:06:05 [end_date_ymd] => 2025-03-15 23:06:05 [RateCDR] => 1 ) [2025-03-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-03-15 20:06:05' and `end` < '2025-03-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-03-15 23:06:18] Production.INFO: count ==1306 [2025-03-15 23:06:18] Production.ERROR: pbx CDR StartTime 2025-03-15 20:06:05 - End Time 2025-03-15 23:06:05 [2025-03-15 23:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689391', 'tblTempUsageDetail_20' ) start [2025-03-15 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689391', 'tblTempUsageDetail_20' ) end [2025-03-15 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689391', 'tblTempVendorCDR_20' ) start [2025-03-15 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689391', 'tblTempVendorCDR_20' ) end [2025-03-15 23:06:18] Production.INFO: ProcessCDR(1,14689391,1,1,2) [2025-03-15 23:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689391', 'tblTempUsageDetail_20' ) start [2025-03-15 23:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689391', 'tblTempUsageDetail_20' ) end [2025-03-15 23:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 23:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 23:06:21] Production.INFO: ==887== Releasing lock... [2025-03-15 23:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 23:06:21] Production.INFO: 38.25 MB #Memory Used# [2025-03-15 23:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 20:07:05 [end_date_ymd] => 2025-03-15 23:07:05 [RateCDR] => 1 ) [2025-03-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-03-15 20:07:05' and `end` < '2025-03-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-03-15 23:07:17] Production.INFO: count ==1305 [2025-03-15 23:07:18] Production.ERROR: pbx CDR StartTime 2025-03-15 20:07:05 - End Time 2025-03-15 23:07:05 [2025-03-15 23:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689396', 'tblTempUsageDetail_20' ) start [2025-03-15 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689396', 'tblTempUsageDetail_20' ) end [2025-03-15 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689396', 'tblTempVendorCDR_20' ) start [2025-03-15 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689396', 'tblTempVendorCDR_20' ) end [2025-03-15 23:07:18] Production.INFO: ProcessCDR(1,14689396,1,1,2) [2025-03-15 23:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689396', 'tblTempUsageDetail_20' ) start [2025-03-15 23:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689396', 'tblTempUsageDetail_20' ) end [2025-03-15 23:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 23:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 23:07:21] Production.INFO: ==962== Releasing lock... [2025-03-15 23:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 23:07:21] Production.INFO: 38 MB #Memory Used# [2025-03-15 23:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 20:08:05 [end_date_ymd] => 2025-03-15 23:08:05 [RateCDR] => 1 ) [2025-03-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-03-15 20:08:05' and `end` < '2025-03-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-03-15 23:08:17] Production.INFO: count ==1303 [2025-03-15 23:08:18] Production.ERROR: pbx CDR StartTime 2025-03-15 20:08:05 - End Time 2025-03-15 23:08:05 [2025-03-15 23:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689401', 'tblTempUsageDetail_20' ) start [2025-03-15 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689401', 'tblTempUsageDetail_20' ) end [2025-03-15 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689401', 'tblTempVendorCDR_20' ) start [2025-03-15 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689401', 'tblTempVendorCDR_20' ) end [2025-03-15 23:08:18] Production.INFO: ProcessCDR(1,14689401,1,1,2) [2025-03-15 23:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689401', 'tblTempUsageDetail_20' ) start [2025-03-15 23:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689401', 'tblTempUsageDetail_20' ) end [2025-03-15 23:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 23:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 23:08:21] Production.INFO: ==1078== Releasing lock... [2025-03-15 23:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 23:08:21] Production.INFO: 37.75 MB #Memory Used# [2025-03-15 23:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 20:09:05 [end_date_ymd] => 2025-03-15 23:09:05 [RateCDR] => 1 ) [2025-03-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-03-15 20:09:05' and `end` < '2025-03-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-03-15 23:09:17] Production.INFO: count ==1302 [2025-03-15 23:09:17] Production.ERROR: pbx CDR StartTime 2025-03-15 20:09:05 - End Time 2025-03-15 23:09:05 [2025-03-15 23:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 23:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689406', 'tblTempUsageDetail_20' ) start [2025-03-15 23:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689406', 'tblTempUsageDetail_20' ) end [2025-03-15 23:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689406', 'tblTempVendorCDR_20' ) start [2025-03-15 23:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689406', 'tblTempVendorCDR_20' ) end [2025-03-15 23:09:17] Production.INFO: ProcessCDR(1,14689406,1,1,2) [2025-03-15 23:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689406', 'tblTempUsageDetail_20' ) start [2025-03-15 23:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689406', 'tblTempUsageDetail_20' ) end [2025-03-15 23:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 23:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 23:09:21] Production.INFO: ==1194== Releasing lock... [2025-03-15 23:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 23:09:21] Production.INFO: 38 MB #Memory Used# [2025-03-15 23:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 20:10:05 [end_date_ymd] => 2025-03-15 23:10:05 [RateCDR] => 1 ) [2025-03-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-03-15 20:10:05' and `end` < '2025-03-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-03-15 23:10:18] Production.INFO: count ==1296 [2025-03-15 23:10:18] Production.ERROR: pbx CDR StartTime 2025-03-15 20:10:05 - End Time 2025-03-15 23:10:05 [2025-03-15 23:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689411', 'tblTempUsageDetail_20' ) start [2025-03-15 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689411', 'tblTempUsageDetail_20' ) end [2025-03-15 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689411', 'tblTempVendorCDR_20' ) start [2025-03-15 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689411', 'tblTempVendorCDR_20' ) end [2025-03-15 23:10:18] Production.INFO: ProcessCDR(1,14689411,1,1,2) [2025-03-15 23:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689411', 'tblTempUsageDetail_20' ) start [2025-03-15 23:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689411', 'tblTempUsageDetail_20' ) end [2025-03-15 23:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 23:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 23:10:22] Production.INFO: ==1281== Releasing lock... [2025-03-15 23:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 23:10:22] Production.INFO: 38 MB #Memory Used# [2025-03-15 23:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 20:11:05 [end_date_ymd] => 2025-03-15 23:11:05 [RateCDR] => 1 ) [2025-03-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-03-15 20:11:05' and `end` < '2025-03-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-03-15 23:11:17] Production.INFO: count ==1301 [2025-03-15 23:11:17] Production.ERROR: pbx CDR StartTime 2025-03-15 20:11:05 - End Time 2025-03-15 23:11:05 [2025-03-15 23:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 23:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689417', 'tblTempUsageDetail_20' ) start [2025-03-15 23:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689417', 'tblTempUsageDetail_20' ) end [2025-03-15 23:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689417', 'tblTempVendorCDR_20' ) start [2025-03-15 23:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689417', 'tblTempVendorCDR_20' ) end [2025-03-15 23:11:17] Production.INFO: ProcessCDR(1,14689417,1,1,2) [2025-03-15 23:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689417', 'tblTempUsageDetail_20' ) start [2025-03-15 23:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689417', 'tblTempUsageDetail_20' ) end [2025-03-15 23:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 23:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 23:11:21] Production.INFO: ==1355== Releasing lock... [2025-03-15 23:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 23:11:21] Production.INFO: 38 MB #Memory Used# [2025-03-15 23:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 20:12:06 [end_date_ymd] => 2025-03-15 23:12:06 [RateCDR] => 1 ) [2025-03-15 23:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 20:12:06' and `end` < '2025-03-15 23:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 23:12:18] Production.INFO: count ==1303 [2025-03-15 23:12:19] Production.ERROR: pbx CDR StartTime 2025-03-15 20:12:06 - End Time 2025-03-15 23:12:06 [2025-03-15 23:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689422', 'tblTempUsageDetail_20' ) start [2025-03-15 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689422', 'tblTempUsageDetail_20' ) end [2025-03-15 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689422', 'tblTempVendorCDR_20' ) start [2025-03-15 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689422', 'tblTempVendorCDR_20' ) end [2025-03-15 23:12:19] Production.INFO: ProcessCDR(1,14689422,1,1,2) [2025-03-15 23:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689422', 'tblTempUsageDetail_20' ) start [2025-03-15 23:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689422', 'tblTempUsageDetail_20' ) end [2025-03-15 23:12:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 23:12:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 23:12:22] Production.INFO: ==1539== Releasing lock... [2025-03-15 23:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 23:12:22] Production.INFO: 38 MB #Memory Used# [2025-03-15 23:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 20:13:04 [end_date_ymd] => 2025-03-15 23:13:04 [RateCDR] => 1 ) [2025-03-15 23:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 20:13:04' and `end` < '2025-03-15 23:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 23:13:17] Production.INFO: count ==1294 [2025-03-15 23:13:17] Production.ERROR: pbx CDR StartTime 2025-03-15 20:13:04 - End Time 2025-03-15 23:13:04 [2025-03-15 23:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 23:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689427', 'tblTempUsageDetail_20' ) start [2025-03-15 23:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689427', 'tblTempUsageDetail_20' ) end [2025-03-15 23:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689427', 'tblTempVendorCDR_20' ) start [2025-03-15 23:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689427', 'tblTempVendorCDR_20' ) end [2025-03-15 23:13:17] Production.INFO: ProcessCDR(1,14689427,1,1,2) [2025-03-15 23:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689427', 'tblTempUsageDetail_20' ) start [2025-03-15 23:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689427', 'tblTempUsageDetail_20' ) end [2025-03-15 23:13:20] Production.ERROR: pbx prc_insertCDR start [2025-03-15 23:13:20] Production.ERROR: pbx prc_insertCDR end [2025-03-15 23:13:20] Production.INFO: ==1618== Releasing lock... [2025-03-15 23:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 23:13:20] Production.INFO: 37.75 MB #Memory Used# [2025-03-15 23:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 20:14:05 [end_date_ymd] => 2025-03-15 23:14:05 [RateCDR] => 1 ) [2025-03-15 23:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 20:14:05' and `end` < '2025-03-15 23:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 23:14:18] Production.INFO: count ==1279 [2025-03-15 23:14:18] Production.ERROR: pbx CDR StartTime 2025-03-15 20:14:05 - End Time 2025-03-15 23:14:05 [2025-03-15 23:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689432', 'tblTempUsageDetail_20' ) start [2025-03-15 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689432', 'tblTempUsageDetail_20' ) end [2025-03-15 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689432', 'tblTempVendorCDR_20' ) start [2025-03-15 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689432', 'tblTempVendorCDR_20' ) end [2025-03-15 23:14:18] Production.INFO: ProcessCDR(1,14689432,1,1,2) [2025-03-15 23:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689432', 'tblTempUsageDetail_20' ) start [2025-03-15 23:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689432', 'tblTempUsageDetail_20' ) end [2025-03-15 23:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 23:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 23:14:21] Production.INFO: ==1690== Releasing lock... [2025-03-15 23:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 23:14:21] Production.INFO: 38.25 MB #Memory Used# [2025-03-15 23:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 20:15:05 [end_date_ymd] => 2025-03-15 23:15:05 [RateCDR] => 1 ) [2025-03-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-03-15 20:15:05' and `end` < '2025-03-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-03-15 23:15:17] Production.INFO: count ==1271 [2025-03-15 23:15:17] Production.ERROR: pbx CDR StartTime 2025-03-15 20:15:05 - End Time 2025-03-15 23:15:05 [2025-03-15 23:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 23:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689437', 'tblTempUsageDetail_20' ) start [2025-03-15 23:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689437', 'tblTempUsageDetail_20' ) end [2025-03-15 23:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689437', 'tblTempVendorCDR_20' ) start [2025-03-15 23:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689437', 'tblTempVendorCDR_20' ) end [2025-03-15 23:15:17] Production.INFO: ProcessCDR(1,14689437,1,1,2) [2025-03-15 23:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689437', 'tblTempUsageDetail_20' ) start [2025-03-15 23:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689437', 'tblTempUsageDetail_20' ) end [2025-03-15 23:15:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 23:15:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 23:15:22] Production.INFO: ==1834== Releasing lock... [2025-03-15 23:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 23:15:22] Production.INFO: 37.75 MB #Memory Used# [2025-03-15 23:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 20:16:06 [end_date_ymd] => 2025-03-15 23:16:06 [RateCDR] => 1 ) [2025-03-15 23:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 20:16:06' and `end` < '2025-03-15 23:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 23:16:18] Production.INFO: count ==1258 [2025-03-15 23:16:18] Production.ERROR: pbx CDR StartTime 2025-03-15 20:16:06 - End Time 2025-03-15 23:16:06 [2025-03-15 23:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689442', 'tblTempUsageDetail_20' ) start [2025-03-15 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689442', 'tblTempUsageDetail_20' ) end [2025-03-15 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689442', 'tblTempVendorCDR_20' ) start [2025-03-15 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689442', 'tblTempVendorCDR_20' ) end [2025-03-15 23:16:18] Production.INFO: ProcessCDR(1,14689442,1,1,2) [2025-03-15 23:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689442', 'tblTempUsageDetail_20' ) start [2025-03-15 23:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689442', 'tblTempUsageDetail_20' ) end [2025-03-15 23:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 23:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 23:16:21] Production.INFO: ==1927== Releasing lock... [2025-03-15 23:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 23:16:21] Production.INFO: 38 MB #Memory Used# [2025-03-15 23:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 20:17:05 [end_date_ymd] => 2025-03-15 23:17:05 [RateCDR] => 1 ) [2025-03-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-03-15 20:17:05' and `end` < '2025-03-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-03-15 23:17:17] Production.INFO: count ==1248 [2025-03-15 23:17:18] Production.ERROR: pbx CDR StartTime 2025-03-15 20:17:05 - End Time 2025-03-15 23:17:05 [2025-03-15 23:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689447', 'tblTempUsageDetail_20' ) start [2025-03-15 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689447', 'tblTempUsageDetail_20' ) end [2025-03-15 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689447', 'tblTempVendorCDR_20' ) start [2025-03-15 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689447', 'tblTempVendorCDR_20' ) end [2025-03-15 23:17:18] Production.INFO: ProcessCDR(1,14689447,1,1,2) [2025-03-15 23:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689447', 'tblTempUsageDetail_20' ) start [2025-03-15 23:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689447', 'tblTempUsageDetail_20' ) end [2025-03-15 23:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 23:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 23:17:21] Production.INFO: ==2041== Releasing lock... [2025-03-15 23:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 23:17:21] Production.INFO: 37.5 MB #Memory Used# [2025-03-15 23:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 20:18:05 [end_date_ymd] => 2025-03-15 23:18:05 [RateCDR] => 1 ) [2025-03-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-03-15 20:18:05' and `end` < '2025-03-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-03-15 23:18:17] Production.INFO: count ==1237 [2025-03-15 23:18:18] Production.ERROR: pbx CDR StartTime 2025-03-15 20:18:05 - End Time 2025-03-15 23:18:05 [2025-03-15 23:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689452', 'tblTempUsageDetail_20' ) start [2025-03-15 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689452', 'tblTempUsageDetail_20' ) end [2025-03-15 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689452', 'tblTempVendorCDR_20' ) start [2025-03-15 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689452', 'tblTempVendorCDR_20' ) end [2025-03-15 23:18:18] Production.INFO: ProcessCDR(1,14689452,1,1,2) [2025-03-15 23:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689452', 'tblTempUsageDetail_20' ) start [2025-03-15 23:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689452', 'tblTempUsageDetail_20' ) end [2025-03-15 23:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 23:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 23:18:21] Production.INFO: ==2116== Releasing lock... [2025-03-15 23:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 23:18:21] Production.INFO: 37.25 MB #Memory Used# [2025-03-15 23:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 20:19:06 [end_date_ymd] => 2025-03-15 23:19:06 [RateCDR] => 1 ) [2025-03-15 23:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 20:19:06' and `end` < '2025-03-15 23:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 23:19:18] Production.INFO: count ==1230 [2025-03-15 23:19:18] Production.ERROR: pbx CDR StartTime 2025-03-15 20:19:06 - End Time 2025-03-15 23:19:06 [2025-03-15 23:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689457', 'tblTempUsageDetail_20' ) start [2025-03-15 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689457', 'tblTempUsageDetail_20' ) end [2025-03-15 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689457', 'tblTempVendorCDR_20' ) start [2025-03-15 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689457', 'tblTempVendorCDR_20' ) end [2025-03-15 23:19:18] Production.INFO: ProcessCDR(1,14689457,1,1,2) [2025-03-15 23:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689457', 'tblTempUsageDetail_20' ) start [2025-03-15 23:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689457', 'tblTempUsageDetail_20' ) end [2025-03-15 23:19:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 23:19:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 23:19:23] Production.INFO: ==2188== Releasing lock... [2025-03-15 23:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 23:19:23] Production.INFO: 37.25 MB #Memory Used# [2025-03-15 23:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 20:20:05 [end_date_ymd] => 2025-03-15 23:20:05 [RateCDR] => 1 ) [2025-03-15 23:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 20:20:05' and `end` < '2025-03-15 23:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 23:20:18] Production.INFO: count ==1224 [2025-03-15 23:20:18] Production.ERROR: pbx CDR StartTime 2025-03-15 20:20:05 - End Time 2025-03-15 23:20:05 [2025-03-15 23:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689463', 'tblTempUsageDetail_20' ) start [2025-03-15 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689463', 'tblTempUsageDetail_20' ) end [2025-03-15 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689463', 'tblTempVendorCDR_20' ) start [2025-03-15 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689463', 'tblTempVendorCDR_20' ) end [2025-03-15 23:20:18] Production.INFO: ProcessCDR(1,14689463,1,1,2) [2025-03-15 23:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689463', 'tblTempUsageDetail_20' ) start [2025-03-15 23:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689463', 'tblTempUsageDetail_20' ) end [2025-03-15 23:20:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 23:20:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 23:20:21] Production.INFO: ==2264== Releasing lock... [2025-03-15 23:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 23:20:21] Production.INFO: 37.25 MB #Memory Used# [2025-03-15 23:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 20:21:05 [end_date_ymd] => 2025-03-15 23:21:05 [RateCDR] => 1 ) [2025-03-15 23:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 20:21:05' and `end` < '2025-03-15 23:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 23:21:18] Production.INFO: count ==1196 [2025-03-15 23:21:18] Production.ERROR: pbx CDR StartTime 2025-03-15 20:21:05 - End Time 2025-03-15 23:21:05 [2025-03-15 23:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689468', 'tblTempUsageDetail_20' ) start [2025-03-15 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689468', 'tblTempUsageDetail_20' ) end [2025-03-15 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689468', 'tblTempVendorCDR_20' ) start [2025-03-15 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689468', 'tblTempVendorCDR_20' ) end [2025-03-15 23:21:18] Production.INFO: ProcessCDR(1,14689468,1,1,2) [2025-03-15 23:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689468', 'tblTempUsageDetail_20' ) start [2025-03-15 23:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689468', 'tblTempUsageDetail_20' ) end [2025-03-15 23:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 23:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 23:21:21] Production.INFO: ==2343== Releasing lock... [2025-03-15 23:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 23:21:21] Production.INFO: 37 MB #Memory Used# [2025-03-15 23:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 20:22:05 [end_date_ymd] => 2025-03-15 23:22:05 [RateCDR] => 1 ) [2025-03-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-03-15 20:22:05' and `end` < '2025-03-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-03-15 23:22:17] Production.INFO: count ==1186 [2025-03-15 23:22:17] Production.ERROR: pbx CDR StartTime 2025-03-15 20:22:05 - End Time 2025-03-15 23:22:05 [2025-03-15 23:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 23:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689473', 'tblTempUsageDetail_20' ) start [2025-03-15 23:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689473', 'tblTempUsageDetail_20' ) end [2025-03-15 23:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689473', 'tblTempVendorCDR_20' ) start [2025-03-15 23:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689473', 'tblTempVendorCDR_20' ) end [2025-03-15 23:22:17] Production.INFO: ProcessCDR(1,14689473,1,1,2) [2025-03-15 23:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689473', 'tblTempUsageDetail_20' ) start [2025-03-15 23:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689473', 'tblTempUsageDetail_20' ) end [2025-03-15 23:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 23:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 23:22:21] Production.INFO: ==2415== Releasing lock... [2025-03-15 23:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 23:22:21] Production.INFO: 36.75 MB #Memory Used# [2025-03-15 23:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 20:23:05 [end_date_ymd] => 2025-03-15 23:23:05 [RateCDR] => 1 ) [2025-03-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-03-15 20:23:05' and `end` < '2025-03-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-03-15 23:23:18] Production.INFO: count ==1179 [2025-03-15 23:23:18] Production.ERROR: pbx CDR StartTime 2025-03-15 20:23:05 - End Time 2025-03-15 23:23:05 [2025-03-15 23:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689478', 'tblTempUsageDetail_20' ) start [2025-03-15 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689478', 'tblTempUsageDetail_20' ) end [2025-03-15 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689478', 'tblTempVendorCDR_20' ) start [2025-03-15 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689478', 'tblTempVendorCDR_20' ) end [2025-03-15 23:23:18] Production.INFO: ProcessCDR(1,14689478,1,1,2) [2025-03-15 23:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689478', 'tblTempUsageDetail_20' ) start [2025-03-15 23:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689478', 'tblTempUsageDetail_20' ) end [2025-03-15 23:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 23:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 23:23:21] Production.INFO: ==2487== Releasing lock... [2025-03-15 23:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 23:23:21] Production.INFO: 37 MB #Memory Used# [2025-03-15 23:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 20:24:05 [end_date_ymd] => 2025-03-15 23:24:05 [RateCDR] => 1 ) [2025-03-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-03-15 20:24:05' and `end` < '2025-03-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-03-15 23:24:17] Production.INFO: count ==1183 [2025-03-15 23:24:18] Production.ERROR: pbx CDR StartTime 2025-03-15 20:24:05 - End Time 2025-03-15 23:24:05 [2025-03-15 23:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689483', 'tblTempUsageDetail_20' ) start [2025-03-15 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689483', 'tblTempUsageDetail_20' ) end [2025-03-15 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689483', 'tblTempVendorCDR_20' ) start [2025-03-15 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689483', 'tblTempVendorCDR_20' ) end [2025-03-15 23:24:18] Production.INFO: ProcessCDR(1,14689483,1,1,2) [2025-03-15 23:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689483', 'tblTempUsageDetail_20' ) start [2025-03-15 23:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689483', 'tblTempUsageDetail_20' ) end [2025-03-15 23:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 23:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 23:24:21] Production.INFO: ==2559== Releasing lock... [2025-03-15 23:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 23:24:21] Production.INFO: 36.75 MB #Memory Used# [2025-03-15 23:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 20:25:04 [end_date_ymd] => 2025-03-15 23:25:04 [RateCDR] => 1 ) [2025-03-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-03-15 20:25:04' and `end` < '2025-03-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-03-15 23:25:16] Production.INFO: count ==1183 [2025-03-15 23:25:17] Production.ERROR: pbx CDR StartTime 2025-03-15 20:25:04 - End Time 2025-03-15 23:25:04 [2025-03-15 23:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689488', 'tblTempUsageDetail_20' ) start [2025-03-15 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689488', 'tblTempUsageDetail_20' ) end [2025-03-15 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689488', 'tblTempVendorCDR_20' ) start [2025-03-15 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689488', 'tblTempVendorCDR_20' ) end [2025-03-15 23:25:17] Production.INFO: ProcessCDR(1,14689488,1,1,2) [2025-03-15 23:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689488', 'tblTempUsageDetail_20' ) start [2025-03-15 23:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689488', 'tblTempUsageDetail_20' ) end [2025-03-15 23:25:20] Production.ERROR: pbx prc_insertCDR start [2025-03-15 23:25:20] Production.ERROR: pbx prc_insertCDR end [2025-03-15 23:25:20] Production.INFO: ==2633== Releasing lock... [2025-03-15 23:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 23:25:20] Production.INFO: 36.75 MB #Memory Used# [2025-03-15 23:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 20:26:05 [end_date_ymd] => 2025-03-15 23:26:05 [RateCDR] => 1 ) [2025-03-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-03-15 20:26:05' and `end` < '2025-03-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-03-15 23:26:17] Production.INFO: count ==1177 [2025-03-15 23:26:18] Production.ERROR: pbx CDR StartTime 2025-03-15 20:26:05 - End Time 2025-03-15 23:26:05 [2025-03-15 23:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689493', 'tblTempUsageDetail_20' ) start [2025-03-15 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689493', 'tblTempUsageDetail_20' ) end [2025-03-15 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689493', 'tblTempVendorCDR_20' ) start [2025-03-15 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689493', 'tblTempVendorCDR_20' ) end [2025-03-15 23:26:18] Production.INFO: ProcessCDR(1,14689493,1,1,2) [2025-03-15 23:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689493', 'tblTempUsageDetail_20' ) start [2025-03-15 23:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689493', 'tblTempUsageDetail_20' ) end [2025-03-15 23:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 23:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 23:26:21] Production.INFO: ==2707== Releasing lock... [2025-03-15 23:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 23:26:21] Production.INFO: 37 MB #Memory Used# [2025-03-15 23:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 20:27:05 [end_date_ymd] => 2025-03-15 23:27:05 [RateCDR] => 1 ) [2025-03-15 23:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 20:27:05' and `end` < '2025-03-15 23:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 23:27:17] Production.INFO: count ==1174 [2025-03-15 23:27:17] Production.ERROR: pbx CDR StartTime 2025-03-15 20:27:05 - End Time 2025-03-15 23:27:05 [2025-03-15 23:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 23:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689498', 'tblTempUsageDetail_20' ) start [2025-03-15 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689498', 'tblTempUsageDetail_20' ) end [2025-03-15 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689498', 'tblTempVendorCDR_20' ) start [2025-03-15 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689498', 'tblTempVendorCDR_20' ) end [2025-03-15 23:27:18] Production.INFO: ProcessCDR(1,14689498,1,1,2) [2025-03-15 23:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689498', 'tblTempUsageDetail_20' ) start [2025-03-15 23:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689498', 'tblTempUsageDetail_20' ) end [2025-03-15 23:27:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 23:27:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 23:27:22] Production.INFO: ==2778== Releasing lock... [2025-03-15 23:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 23:27:22] Production.INFO: 36.75 MB #Memory Used# [2025-03-15 23:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 20:28:05 [end_date_ymd] => 2025-03-15 23:28:05 [RateCDR] => 1 ) [2025-03-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-03-15 20:28:05' and `end` < '2025-03-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-03-15 23:28:17] Production.INFO: count ==1173 [2025-03-15 23:28:17] Production.ERROR: pbx CDR StartTime 2025-03-15 20:28:05 - End Time 2025-03-15 23:28:05 [2025-03-15 23:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 23:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689503', 'tblTempUsageDetail_20' ) start [2025-03-15 23:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689503', 'tblTempUsageDetail_20' ) end [2025-03-15 23:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689503', 'tblTempVendorCDR_20' ) start [2025-03-15 23:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689503', 'tblTempVendorCDR_20' ) end [2025-03-15 23:28:17] Production.INFO: ProcessCDR(1,14689503,1,1,2) [2025-03-15 23:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689503', 'tblTempUsageDetail_20' ) start [2025-03-15 23:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689503', 'tblTempUsageDetail_20' ) end [2025-03-15 23:28:20] Production.ERROR: pbx prc_insertCDR start [2025-03-15 23:28:20] Production.ERROR: pbx prc_insertCDR end [2025-03-15 23:28:20] Production.INFO: ==2859== Releasing lock... [2025-03-15 23:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 23:28:20] Production.INFO: 36.75 MB #Memory Used# [2025-03-15 23:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 20:29:06 [end_date_ymd] => 2025-03-15 23:29:06 [RateCDR] => 1 ) [2025-03-15 23:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 20:29:06' and `end` < '2025-03-15 23:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 23:29:18] Production.INFO: count ==1177 [2025-03-15 23:29:18] Production.ERROR: pbx CDR StartTime 2025-03-15 20:29:06 - End Time 2025-03-15 23:29:06 [2025-03-15 23:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689508', 'tblTempUsageDetail_20' ) start [2025-03-15 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689508', 'tblTempUsageDetail_20' ) end [2025-03-15 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689508', 'tblTempVendorCDR_20' ) start [2025-03-15 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689508', 'tblTempVendorCDR_20' ) end [2025-03-15 23:29:18] Production.INFO: ProcessCDR(1,14689508,1,1,2) [2025-03-15 23:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689508', 'tblTempUsageDetail_20' ) start [2025-03-15 23:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689508', 'tblTempUsageDetail_20' ) end [2025-03-15 23:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 23:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 23:29:21] Production.INFO: ==2937== Releasing lock... [2025-03-15 23:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 23:29:21] Production.INFO: 37 MB #Memory Used# [2025-03-15 23:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 20:30:06 [end_date_ymd] => 2025-03-15 23:30:06 [RateCDR] => 1 ) [2025-03-15 23:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 20:30:06' and `end` < '2025-03-15 23:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 23:30:18] Production.INFO: count ==1185 [2025-03-15 23:30:19] Production.ERROR: pbx CDR StartTime 2025-03-15 20:30:06 - End Time 2025-03-15 23:30:06 [2025-03-15 23:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689514', 'tblTempUsageDetail_20' ) start [2025-03-15 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689514', 'tblTempUsageDetail_20' ) end [2025-03-15 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689514', 'tblTempVendorCDR_20' ) start [2025-03-15 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689514', 'tblTempVendorCDR_20' ) end [2025-03-15 23:30:19] Production.INFO: ProcessCDR(1,14689514,1,1,2) [2025-03-15 23:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689514', 'tblTempUsageDetail_20' ) start [2025-03-15 23:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689514', 'tblTempUsageDetail_20' ) end [2025-03-15 23:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 23:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 23:30:22] Production.INFO: ==3011== Releasing lock... [2025-03-15 23:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 23:30:22] Production.INFO: 36.75 MB #Memory Used# [2025-03-15 23:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 20:31:05 [end_date_ymd] => 2025-03-15 23:31:05 [RateCDR] => 1 ) [2025-03-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-03-15 20:31:05' and `end` < '2025-03-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-03-15 23:31:17] Production.INFO: count ==1181 [2025-03-15 23:31:18] Production.ERROR: pbx CDR StartTime 2025-03-15 20:31:05 - End Time 2025-03-15 23:31:05 [2025-03-15 23:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689519', 'tblTempUsageDetail_20' ) start [2025-03-15 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689519', 'tblTempUsageDetail_20' ) end [2025-03-15 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689519', 'tblTempVendorCDR_20' ) start [2025-03-15 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689519', 'tblTempVendorCDR_20' ) end [2025-03-15 23:31:18] Production.INFO: ProcessCDR(1,14689519,1,1,2) [2025-03-15 23:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689519', 'tblTempUsageDetail_20' ) start [2025-03-15 23:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689519', 'tblTempUsageDetail_20' ) end [2025-03-15 23:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 23:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 23:31:21] Production.INFO: ==3089== Releasing lock... [2025-03-15 23:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 23:31:21] Production.INFO: 36.75 MB #Memory Used# [2025-03-15 23:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 20:32:05 [end_date_ymd] => 2025-03-15 23:32:05 [RateCDR] => 1 ) [2025-03-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-03-15 20:32:05' and `end` < '2025-03-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-03-15 23:32:17] Production.INFO: count ==1187 [2025-03-15 23:32:17] Production.ERROR: pbx CDR StartTime 2025-03-15 20:32:05 - End Time 2025-03-15 23:32:05 [2025-03-15 23:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 23:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689524', 'tblTempUsageDetail_20' ) start [2025-03-15 23:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689524', 'tblTempUsageDetail_20' ) end [2025-03-15 23:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689524', 'tblTempVendorCDR_20' ) start [2025-03-15 23:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689524', 'tblTempVendorCDR_20' ) end [2025-03-15 23:32:17] Production.INFO: ProcessCDR(1,14689524,1,1,2) [2025-03-15 23:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689524', 'tblTempUsageDetail_20' ) start [2025-03-15 23:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689524', 'tblTempUsageDetail_20' ) end [2025-03-15 23:32:20] Production.ERROR: pbx prc_insertCDR start [2025-03-15 23:32:20] Production.ERROR: pbx prc_insertCDR end [2025-03-15 23:32:20] Production.INFO: ==3201== Releasing lock... [2025-03-15 23:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 23:32:20] Production.INFO: 37 MB #Memory Used# [2025-03-15 23:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 20:33:05 [end_date_ymd] => 2025-03-15 23:33:05 [RateCDR] => 1 ) [2025-03-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-03-15 20:33:05' and `end` < '2025-03-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-03-15 23:33:17] Production.INFO: count ==1188 [2025-03-15 23:33:18] Production.ERROR: pbx CDR StartTime 2025-03-15 20:33:05 - End Time 2025-03-15 23:33:05 [2025-03-15 23:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689529', 'tblTempUsageDetail_20' ) start [2025-03-15 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689529', 'tblTempUsageDetail_20' ) end [2025-03-15 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689529', 'tblTempVendorCDR_20' ) start [2025-03-15 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689529', 'tblTempVendorCDR_20' ) end [2025-03-15 23:33:18] Production.INFO: ProcessCDR(1,14689529,1,1,2) [2025-03-15 23:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689529', 'tblTempUsageDetail_20' ) start [2025-03-15 23:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689529', 'tblTempUsageDetail_20' ) end [2025-03-15 23:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 23:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 23:33:21] Production.INFO: ==3276== Releasing lock... [2025-03-15 23:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 23:33:21] Production.INFO: 37 MB #Memory Used# [2025-03-15 23:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 20:34:04 [end_date_ymd] => 2025-03-15 23:34:04 [RateCDR] => 1 ) [2025-03-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-03-15 20:34:04' and `end` < '2025-03-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-03-15 23:34:17] Production.INFO: count ==1174 [2025-03-15 23:34:17] Production.ERROR: pbx CDR StartTime 2025-03-15 20:34:04 - End Time 2025-03-15 23:34:04 [2025-03-15 23:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 23:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689534', 'tblTempUsageDetail_20' ) start [2025-03-15 23:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689534', 'tblTempUsageDetail_20' ) end [2025-03-15 23:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689534', 'tblTempVendorCDR_20' ) start [2025-03-15 23:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689534', 'tblTempVendorCDR_20' ) end [2025-03-15 23:34:17] Production.INFO: ProcessCDR(1,14689534,1,1,2) [2025-03-15 23:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689534', 'tblTempUsageDetail_20' ) start [2025-03-15 23:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689534', 'tblTempUsageDetail_20' ) end [2025-03-15 23:34:20] Production.ERROR: pbx prc_insertCDR start [2025-03-15 23:34:20] Production.ERROR: pbx prc_insertCDR end [2025-03-15 23:34:20] Production.INFO: ==3352== Releasing lock... [2025-03-15 23:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 23:34:20] Production.INFO: 36.75 MB #Memory Used# [2025-03-15 23:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 20:35:05 [end_date_ymd] => 2025-03-15 23:35:05 [RateCDR] => 1 ) [2025-03-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-03-15 20:35:05' and `end` < '2025-03-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-03-15 23:35:17] Production.INFO: count ==1161 [2025-03-15 23:35:17] Production.ERROR: pbx CDR StartTime 2025-03-15 20:35:05 - End Time 2025-03-15 23:35:05 [2025-03-15 23:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 23:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689539', 'tblTempUsageDetail_20' ) start [2025-03-15 23:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689539', 'tblTempUsageDetail_20' ) end [2025-03-15 23:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689539', 'tblTempVendorCDR_20' ) start [2025-03-15 23:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689539', 'tblTempVendorCDR_20' ) end [2025-03-15 23:35:17] Production.INFO: ProcessCDR(1,14689539,1,1,2) [2025-03-15 23:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689539', 'tblTempUsageDetail_20' ) start [2025-03-15 23:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689539', 'tblTempUsageDetail_20' ) end [2025-03-15 23:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 23:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 23:35:21] Production.INFO: ==3431== Releasing lock... [2025-03-15 23:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 23:35:21] Production.INFO: 36.5 MB #Memory Used# [2025-03-15 23:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 20:36:05 [end_date_ymd] => 2025-03-15 23:36:05 [RateCDR] => 1 ) [2025-03-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-03-15 20:36:05' and `end` < '2025-03-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-03-15 23:36:17] Production.INFO: count ==1160 [2025-03-15 23:36:17] Production.ERROR: pbx CDR StartTime 2025-03-15 20:36:05 - End Time 2025-03-15 23:36:05 [2025-03-15 23:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 23:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689544', 'tblTempUsageDetail_20' ) start [2025-03-15 23:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689544', 'tblTempUsageDetail_20' ) end [2025-03-15 23:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689544', 'tblTempVendorCDR_20' ) start [2025-03-15 23:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689544', 'tblTempVendorCDR_20' ) end [2025-03-15 23:36:17] Production.INFO: ProcessCDR(1,14689544,1,1,2) [2025-03-15 23:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689544', 'tblTempUsageDetail_20' ) start [2025-03-15 23:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689544', 'tblTempUsageDetail_20' ) end [2025-03-15 23:36:20] Production.ERROR: pbx prc_insertCDR start [2025-03-15 23:36:20] Production.ERROR: pbx prc_insertCDR end [2025-03-15 23:36:20] Production.INFO: ==3511== Releasing lock... [2025-03-15 23:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 23:36:20] Production.INFO: 36.75 MB #Memory Used# [2025-03-15 23:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 20:37:05 [end_date_ymd] => 2025-03-15 23:37:05 [RateCDR] => 1 ) [2025-03-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-03-15 20:37:05' and `end` < '2025-03-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-03-15 23:37:17] Production.INFO: count ==1159 [2025-03-15 23:37:17] Production.ERROR: pbx CDR StartTime 2025-03-15 20:37:05 - End Time 2025-03-15 23:37:05 [2025-03-15 23:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 23:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689549', 'tblTempUsageDetail_20' ) start [2025-03-15 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689549', 'tblTempUsageDetail_20' ) end [2025-03-15 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689549', 'tblTempVendorCDR_20' ) start [2025-03-15 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689549', 'tblTempVendorCDR_20' ) end [2025-03-15 23:37:18] Production.INFO: ProcessCDR(1,14689549,1,1,2) [2025-03-15 23:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689549', 'tblTempUsageDetail_20' ) start [2025-03-15 23:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689549', 'tblTempUsageDetail_20' ) end [2025-03-15 23:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 23:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 23:37:21] Production.INFO: ==3580== Releasing lock... [2025-03-15 23:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 23:37:21] Production.INFO: 36.75 MB #Memory Used# [2025-03-15 23:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 20:38:06 [end_date_ymd] => 2025-03-15 23:38:06 [RateCDR] => 1 ) [2025-03-15 23:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 20:38:06' and `end` < '2025-03-15 23:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 23:38:18] Production.INFO: count ==1159 [2025-03-15 23:38:18] Production.ERROR: pbx CDR StartTime 2025-03-15 20:38:06 - End Time 2025-03-15 23:38:06 [2025-03-15 23:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689554', 'tblTempUsageDetail_20' ) start [2025-03-15 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689554', 'tblTempUsageDetail_20' ) end [2025-03-15 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689554', 'tblTempVendorCDR_20' ) start [2025-03-15 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689554', 'tblTempVendorCDR_20' ) end [2025-03-15 23:38:18] Production.INFO: ProcessCDR(1,14689554,1,1,2) [2025-03-15 23:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689554', 'tblTempUsageDetail_20' ) start [2025-03-15 23:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689554', 'tblTempUsageDetail_20' ) end [2025-03-15 23:38:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 23:38:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 23:38:23] Production.INFO: ==3657== Releasing lock... [2025-03-15 23:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 23:38:23] Production.INFO: 36.75 MB #Memory Used# [2025-03-15 23:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 20:39:05 [end_date_ymd] => 2025-03-15 23:39:05 [RateCDR] => 1 ) [2025-03-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-03-15 20:39:05' and `end` < '2025-03-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-03-15 23:39:17] Production.INFO: count ==1159 [2025-03-15 23:39:17] Production.ERROR: pbx CDR StartTime 2025-03-15 20:39:05 - End Time 2025-03-15 23:39:05 [2025-03-15 23:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689559', 'tblTempUsageDetail_20' ) start [2025-03-15 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689559', 'tblTempUsageDetail_20' ) end [2025-03-15 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689559', 'tblTempVendorCDR_20' ) start [2025-03-15 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689559', 'tblTempVendorCDR_20' ) end [2025-03-15 23:39:17] Production.INFO: ProcessCDR(1,14689559,1,1,2) [2025-03-15 23:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689559', 'tblTempUsageDetail_20' ) start [2025-03-15 23:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689559', 'tblTempUsageDetail_20' ) end [2025-03-15 23:39:20] Production.ERROR: pbx prc_insertCDR start [2025-03-15 23:39:20] Production.ERROR: pbx prc_insertCDR end [2025-03-15 23:39:20] Production.INFO: ==3731== Releasing lock... [2025-03-15 23:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 23:39:20] Production.INFO: 36.75 MB #Memory Used# [2025-03-15 23:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 20:40:07 [end_date_ymd] => 2025-03-15 23:40:07 [RateCDR] => 1 ) [2025-03-15 23:40:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 20:40:07' and `end` < '2025-03-15 23:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 23:40:19] Production.INFO: count ==1159 [2025-03-15 23:40:19] Production.ERROR: pbx CDR StartTime 2025-03-15 20:40:07 - End Time 2025-03-15 23:40:07 [2025-03-15 23:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689565', 'tblTempUsageDetail_20' ) start [2025-03-15 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689565', 'tblTempUsageDetail_20' ) end [2025-03-15 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689565', 'tblTempVendorCDR_20' ) start [2025-03-15 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689565', 'tblTempVendorCDR_20' ) end [2025-03-15 23:40:19] Production.INFO: ProcessCDR(1,14689565,1,1,2) [2025-03-15 23:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689565', 'tblTempUsageDetail_20' ) start [2025-03-15 23:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689565', 'tblTempUsageDetail_20' ) end [2025-03-15 23:40:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 23:40:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 23:40:23] Production.INFO: ==3807== Releasing lock... [2025-03-15 23:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 23:40:23] Production.INFO: 36.75 MB #Memory Used# [2025-03-15 23:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 20:41:05 [end_date_ymd] => 2025-03-15 23:41:05 [RateCDR] => 1 ) [2025-03-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-03-15 20:41:05' and `end` < '2025-03-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-03-15 23:41:17] Production.INFO: count ==1148 [2025-03-15 23:41:17] Production.ERROR: pbx CDR StartTime 2025-03-15 20:41:05 - End Time 2025-03-15 23:41:05 [2025-03-15 23:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 23:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689570', 'tblTempUsageDetail_20' ) start [2025-03-15 23:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689570', 'tblTempUsageDetail_20' ) end [2025-03-15 23:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689570', 'tblTempVendorCDR_20' ) start [2025-03-15 23:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689570', 'tblTempVendorCDR_20' ) end [2025-03-15 23:41:17] Production.INFO: ProcessCDR(1,14689570,1,1,2) [2025-03-15 23:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689570', 'tblTempUsageDetail_20' ) start [2025-03-15 23:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689570', 'tblTempUsageDetail_20' ) end [2025-03-15 23:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 23:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 23:41:21] Production.INFO: ==3881== Releasing lock... [2025-03-15 23:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 23:41:21] Production.INFO: 36.75 MB #Memory Used# [2025-03-15 23:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 20:42:05 [end_date_ymd] => 2025-03-15 23:42:05 [RateCDR] => 1 ) [2025-03-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-03-15 20:42:05' and `end` < '2025-03-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-03-15 23:42:17] Production.INFO: count ==1142 [2025-03-15 23:42:18] Production.ERROR: pbx CDR StartTime 2025-03-15 20:42:05 - End Time 2025-03-15 23:42:05 [2025-03-15 23:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689575', 'tblTempUsageDetail_20' ) start [2025-03-15 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689575', 'tblTempUsageDetail_20' ) end [2025-03-15 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689575', 'tblTempVendorCDR_20' ) start [2025-03-15 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689575', 'tblTempVendorCDR_20' ) end [2025-03-15 23:42:18] Production.INFO: ProcessCDR(1,14689575,1,1,2) [2025-03-15 23:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689575', 'tblTempUsageDetail_20' ) start [2025-03-15 23:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689575', 'tblTempUsageDetail_20' ) end [2025-03-15 23:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 23:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 23:42:21] Production.INFO: ==3953== Releasing lock... [2025-03-15 23:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 23:42:21] Production.INFO: 36.25 MB #Memory Used# [2025-03-15 23:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 20:43:05 [end_date_ymd] => 2025-03-15 23:43:05 [RateCDR] => 1 ) [2025-03-15 23:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 20:43:05' and `end` < '2025-03-15 23:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 23:43:17] Production.INFO: count ==1142 [2025-03-15 23:43:17] Production.ERROR: pbx CDR StartTime 2025-03-15 20:43:05 - End Time 2025-03-15 23:43:05 [2025-03-15 23:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 23:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689580', 'tblTempUsageDetail_20' ) start [2025-03-15 23:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689580', 'tblTempUsageDetail_20' ) end [2025-03-15 23:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689580', 'tblTempVendorCDR_20' ) start [2025-03-15 23:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689580', 'tblTempVendorCDR_20' ) end [2025-03-15 23:43:17] Production.INFO: ProcessCDR(1,14689580,1,1,2) [2025-03-15 23:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689580', 'tblTempUsageDetail_20' ) start [2025-03-15 23:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689580', 'tblTempUsageDetail_20' ) end [2025-03-15 23:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 23:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 23:43:21] Production.INFO: ==4029== Releasing lock... [2025-03-15 23:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 23:43:21] Production.INFO: 36.25 MB #Memory Used# [2025-03-15 23:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 20:44:05 [end_date_ymd] => 2025-03-15 23:44:05 [RateCDR] => 1 ) [2025-03-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-03-15 20:44:05' and `end` < '2025-03-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-03-15 23:44:18] Production.INFO: count ==1134 [2025-03-15 23:44:18] Production.ERROR: pbx CDR StartTime 2025-03-15 20:44:05 - End Time 2025-03-15 23:44:05 [2025-03-15 23:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689585', 'tblTempUsageDetail_20' ) start [2025-03-15 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689585', 'tblTempUsageDetail_20' ) end [2025-03-15 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689585', 'tblTempVendorCDR_20' ) start [2025-03-15 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689585', 'tblTempVendorCDR_20' ) end [2025-03-15 23:44:18] Production.INFO: ProcessCDR(1,14689585,1,1,2) [2025-03-15 23:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689585', 'tblTempUsageDetail_20' ) start [2025-03-15 23:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689585', 'tblTempUsageDetail_20' ) end [2025-03-15 23:44:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 23:44:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 23:44:23] Production.INFO: ==4102== Releasing lock... [2025-03-15 23:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 23:44:23] Production.INFO: 36.5 MB #Memory Used# [2025-03-15 23:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 20:45:05 [end_date_ymd] => 2025-03-15 23:45:05 [RateCDR] => 1 ) [2025-03-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-03-15 20:45:05' and `end` < '2025-03-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-03-15 23:45:17] Production.INFO: count ==1136 [2025-03-15 23:45:17] Production.ERROR: pbx CDR StartTime 2025-03-15 20:45:05 - End Time 2025-03-15 23:45:05 [2025-03-15 23:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689590', 'tblTempUsageDetail_20' ) start [2025-03-15 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689590', 'tblTempUsageDetail_20' ) end [2025-03-15 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689590', 'tblTempVendorCDR_20' ) start [2025-03-15 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689590', 'tblTempVendorCDR_20' ) end [2025-03-15 23:45:17] Production.INFO: ProcessCDR(1,14689590,1,1,2) [2025-03-15 23:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689590', 'tblTempUsageDetail_20' ) start [2025-03-15 23:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689590', 'tblTempUsageDetail_20' ) end [2025-03-15 23:45:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 23:45:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 23:45:22] Production.INFO: ==4177== Releasing lock... [2025-03-15 23:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 23:45:22] Production.INFO: 36.25 MB #Memory Used# [2025-03-15 23:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 20:46:05 [end_date_ymd] => 2025-03-15 23:46:05 [RateCDR] => 1 ) [2025-03-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-03-15 20:46:05' and `end` < '2025-03-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-03-15 23:46:17] Production.INFO: count ==1132 [2025-03-15 23:46:17] Production.ERROR: pbx CDR StartTime 2025-03-15 20:46:05 - End Time 2025-03-15 23:46:05 [2025-03-15 23:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 23:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689595', 'tblTempUsageDetail_20' ) start [2025-03-15 23:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689595', 'tblTempUsageDetail_20' ) end [2025-03-15 23:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689595', 'tblTempVendorCDR_20' ) start [2025-03-15 23:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689595', 'tblTempVendorCDR_20' ) end [2025-03-15 23:46:17] Production.INFO: ProcessCDR(1,14689595,1,1,2) [2025-03-15 23:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689595', 'tblTempUsageDetail_20' ) start [2025-03-15 23:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689595', 'tblTempUsageDetail_20' ) end [2025-03-15 23:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 23:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 23:46:21] Production.INFO: ==4254== Releasing lock... [2025-03-15 23:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 23:46:21] Production.INFO: 36.5 MB #Memory Used# [2025-03-15 23:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 20:47:04 [end_date_ymd] => 2025-03-15 23:47:04 [RateCDR] => 1 ) [2025-03-15 23:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 20:47:04' and `end` < '2025-03-15 23:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 23:47:17] Production.INFO: count ==1129 [2025-03-15 23:47:17] Production.ERROR: pbx CDR StartTime 2025-03-15 20:47:04 - End Time 2025-03-15 23:47:04 [2025-03-15 23:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 23:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689600', 'tblTempUsageDetail_20' ) start [2025-03-15 23:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689600', 'tblTempUsageDetail_20' ) end [2025-03-15 23:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689600', 'tblTempVendorCDR_20' ) start [2025-03-15 23:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689600', 'tblTempVendorCDR_20' ) end [2025-03-15 23:47:17] Production.INFO: ProcessCDR(1,14689600,1,1,2) [2025-03-15 23:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689600', 'tblTempUsageDetail_20' ) start [2025-03-15 23:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689600', 'tblTempUsageDetail_20' ) end [2025-03-15 23:47:20] Production.ERROR: pbx prc_insertCDR start [2025-03-15 23:47:20] Production.ERROR: pbx prc_insertCDR end [2025-03-15 23:47:20] Production.INFO: ==4368== Releasing lock... [2025-03-15 23:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 23:47:20] Production.INFO: 36.5 MB #Memory Used# [2025-03-15 23:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 20:48:05 [end_date_ymd] => 2025-03-15 23:48:05 [RateCDR] => 1 ) [2025-03-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-03-15 20:48:05' and `end` < '2025-03-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-03-15 23:48:18] Production.INFO: count ==1126 [2025-03-15 23:48:18] Production.ERROR: pbx CDR StartTime 2025-03-15 20:48:05 - End Time 2025-03-15 23:48:05 [2025-03-15 23:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689605', 'tblTempUsageDetail_20' ) start [2025-03-15 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689605', 'tblTempUsageDetail_20' ) end [2025-03-15 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689605', 'tblTempVendorCDR_20' ) start [2025-03-15 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689605', 'tblTempVendorCDR_20' ) end [2025-03-15 23:48:18] Production.INFO: ProcessCDR(1,14689605,1,1,2) [2025-03-15 23:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689605', 'tblTempUsageDetail_20' ) start [2025-03-15 23:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689605', 'tblTempUsageDetail_20' ) end [2025-03-15 23:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 23:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 23:48:21] Production.INFO: ==4457== Releasing lock... [2025-03-15 23:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 23:48:21] Production.INFO: 36.25 MB #Memory Used# [2025-03-15 23:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 20:49:05 [end_date_ymd] => 2025-03-15 23:49:05 [RateCDR] => 1 ) [2025-03-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-03-15 20:49:05' and `end` < '2025-03-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-03-15 23:49:17] Production.INFO: count ==1121 [2025-03-15 23:49:17] Production.ERROR: pbx CDR StartTime 2025-03-15 20:49:05 - End Time 2025-03-15 23:49:05 [2025-03-15 23:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 23:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689610', 'tblTempUsageDetail_20' ) start [2025-03-15 23:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689610', 'tblTempUsageDetail_20' ) end [2025-03-15 23:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689610', 'tblTempVendorCDR_20' ) start [2025-03-15 23:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689610', 'tblTempVendorCDR_20' ) end [2025-03-15 23:49:17] Production.INFO: ProcessCDR(1,14689610,1,1,2) [2025-03-15 23:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689610', 'tblTempUsageDetail_20' ) start [2025-03-15 23:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689610', 'tblTempUsageDetail_20' ) end [2025-03-15 23:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 23:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 23:49:21] Production.INFO: ==4589== Releasing lock... [2025-03-15 23:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 23:49:21] Production.INFO: 36.25 MB #Memory Used# [2025-03-15 23:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 20:50:07 [end_date_ymd] => 2025-03-15 23:50:07 [RateCDR] => 1 ) [2025-03-15 23:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 20:50:07' and `end` < '2025-03-15 23:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 23:50:19] Production.INFO: count ==1119 [2025-03-15 23:50:19] Production.ERROR: pbx CDR StartTime 2025-03-15 20:50:07 - End Time 2025-03-15 23:50:07 [2025-03-15 23:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689616', 'tblTempUsageDetail_20' ) start [2025-03-15 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689616', 'tblTempUsageDetail_20' ) end [2025-03-15 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689616', 'tblTempVendorCDR_20' ) start [2025-03-15 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689616', 'tblTempVendorCDR_20' ) end [2025-03-15 23:50:19] Production.INFO: ProcessCDR(1,14689616,1,1,2) [2025-03-15 23:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689616', 'tblTempUsageDetail_20' ) start [2025-03-15 23:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689616', 'tblTempUsageDetail_20' ) end [2025-03-15 23:50:23] Production.ERROR: pbx prc_insertCDR start [2025-03-15 23:50:23] Production.ERROR: pbx prc_insertCDR end [2025-03-15 23:50:23] Production.INFO: ==4724== Releasing lock... [2025-03-15 23:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 23:50:23] Production.INFO: 36.5 MB #Memory Used# [2025-03-15 23:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 20:51:05 [end_date_ymd] => 2025-03-15 23:51:05 [RateCDR] => 1 ) [2025-03-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-03-15 20:51:05' and `end` < '2025-03-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-03-15 23:51:17] Production.INFO: count ==1081 [2025-03-15 23:51:17] Production.ERROR: pbx CDR StartTime 2025-03-15 20:51:05 - End Time 2025-03-15 23:51:05 [2025-03-15 23:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 23:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689621', 'tblTempUsageDetail_20' ) start [2025-03-15 23:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689621', 'tblTempUsageDetail_20' ) end [2025-03-15 23:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689621', 'tblTempVendorCDR_20' ) start [2025-03-15 23:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689621', 'tblTempVendorCDR_20' ) end [2025-03-15 23:51:17] Production.INFO: ProcessCDR(1,14689621,1,1,2) [2025-03-15 23:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689621', 'tblTempUsageDetail_20' ) start [2025-03-15 23:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689621', 'tblTempUsageDetail_20' ) end [2025-03-15 23:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 23:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 23:51:21] Production.INFO: ==4849== Releasing lock... [2025-03-15 23:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 23:51:21] Production.INFO: 36 MB #Memory Used# [2025-03-15 23:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 20:52:05 [end_date_ymd] => 2025-03-15 23:52:05 [RateCDR] => 1 ) [2025-03-15 23:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 20:52:05' and `end` < '2025-03-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-03-15 23:52:18] Production.INFO: count ==1083 [2025-03-15 23:52:18] Production.ERROR: pbx CDR StartTime 2025-03-15 20:52:05 - End Time 2025-03-15 23:52:05 [2025-03-15 23:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689626', 'tblTempUsageDetail_20' ) start [2025-03-15 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689626', 'tblTempUsageDetail_20' ) end [2025-03-15 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689626', 'tblTempVendorCDR_20' ) start [2025-03-15 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689626', 'tblTempVendorCDR_20' ) end [2025-03-15 23:52:18] Production.INFO: ProcessCDR(1,14689626,1,1,2) [2025-03-15 23:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689626', 'tblTempUsageDetail_20' ) start [2025-03-15 23:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689626', 'tblTempUsageDetail_20' ) end [2025-03-15 23:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 23:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 23:52:22] Production.INFO: ==4975== Releasing lock... [2025-03-15 23:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 23:52:22] Production.INFO: 36 MB #Memory Used# [2025-03-15 23:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 20:53:06 [end_date_ymd] => 2025-03-15 23:53:06 [RateCDR] => 1 ) [2025-03-15 23:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 20:53:06' and `end` < '2025-03-15 23:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 23:53:18] Production.INFO: count ==1079 [2025-03-15 23:53:18] Production.ERROR: pbx CDR StartTime 2025-03-15 20:53:06 - End Time 2025-03-15 23:53:06 [2025-03-15 23:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689631', 'tblTempUsageDetail_20' ) start [2025-03-15 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689631', 'tblTempUsageDetail_20' ) end [2025-03-15 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689631', 'tblTempVendorCDR_20' ) start [2025-03-15 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689631', 'tblTempVendorCDR_20' ) end [2025-03-15 23:53:18] Production.INFO: ProcessCDR(1,14689631,1,1,2) [2025-03-15 23:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689631', 'tblTempUsageDetail_20' ) start [2025-03-15 23:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689631', 'tblTempUsageDetail_20' ) end [2025-03-15 23:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 23:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 23:53:22] Production.INFO: ==5102== Releasing lock... [2025-03-15 23:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 23:53:22] Production.INFO: 36 MB #Memory Used# [2025-03-15 23:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 20:54:05 [end_date_ymd] => 2025-03-15 23:54:05 [RateCDR] => 1 ) [2025-03-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-03-15 20:54:05' and `end` < '2025-03-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-03-15 23:54:18] Production.INFO: count ==1081 [2025-03-15 23:54:18] Production.ERROR: pbx CDR StartTime 2025-03-15 20:54:05 - End Time 2025-03-15 23:54:05 [2025-03-15 23:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689636', 'tblTempUsageDetail_20' ) start [2025-03-15 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689636', 'tblTempUsageDetail_20' ) end [2025-03-15 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689636', 'tblTempVendorCDR_20' ) start [2025-03-15 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689636', 'tblTempVendorCDR_20' ) end [2025-03-15 23:54:18] Production.INFO: ProcessCDR(1,14689636,1,1,2) [2025-03-15 23:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689636', 'tblTempUsageDetail_20' ) start [2025-03-15 23:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689636', 'tblTempUsageDetail_20' ) end [2025-03-15 23:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 23:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 23:54:21] Production.INFO: ==5231== Releasing lock... [2025-03-15 23:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 23:54:21] Production.INFO: 36 MB #Memory Used# [2025-03-15 23:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 20:55:05 [end_date_ymd] => 2025-03-15 23:55:05 [RateCDR] => 1 ) [2025-03-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-03-15 20:55:05' and `end` < '2025-03-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-03-15 23:55:18] Production.INFO: count ==1083 [2025-03-15 23:55:18] Production.ERROR: pbx CDR StartTime 2025-03-15 20:55:05 - End Time 2025-03-15 23:55:05 [2025-03-15 23:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689641', 'tblTempUsageDetail_20' ) start [2025-03-15 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689641', 'tblTempUsageDetail_20' ) end [2025-03-15 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689641', 'tblTempVendorCDR_20' ) start [2025-03-15 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689641', 'tblTempVendorCDR_20' ) end [2025-03-15 23:55:18] Production.INFO: ProcessCDR(1,14689641,1,1,2) [2025-03-15 23:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689641', 'tblTempUsageDetail_20' ) start [2025-03-15 23:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689641', 'tblTempUsageDetail_20' ) end [2025-03-15 23:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 23:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 23:55:21] Production.INFO: ==5361== Releasing lock... [2025-03-15 23:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 23:55:21] Production.INFO: 36 MB #Memory Used# [2025-03-15 23:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 20:56:05 [end_date_ymd] => 2025-03-15 23:56:05 [RateCDR] => 1 ) [2025-03-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-03-15 20:56:05' and `end` < '2025-03-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-03-15 23:56:17] Production.INFO: count ==1082 [2025-03-15 23:56:17] Production.ERROR: pbx CDR StartTime 2025-03-15 20:56:05 - End Time 2025-03-15 23:56:05 [2025-03-15 23:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 23:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689646', 'tblTempUsageDetail_20' ) start [2025-03-15 23:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689646', 'tblTempUsageDetail_20' ) end [2025-03-15 23:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689646', 'tblTempVendorCDR_20' ) start [2025-03-15 23:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689646', 'tblTempVendorCDR_20' ) end [2025-03-15 23:56:17] Production.INFO: ProcessCDR(1,14689646,1,1,2) [2025-03-15 23:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689646', 'tblTempUsageDetail_20' ) start [2025-03-15 23:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689646', 'tblTempUsageDetail_20' ) end [2025-03-15 23:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-15 23:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-15 23:56:22] Production.INFO: ==5490== Releasing lock... [2025-03-15 23:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 23:56:22] Production.INFO: 36 MB #Memory Used# [2025-03-15 23:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 20:57:05 [end_date_ymd] => 2025-03-15 23:57:05 [RateCDR] => 1 ) [2025-03-15 23:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 20:57:05' and `end` < '2025-03-15 23:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 23:57:18] Production.INFO: count ==1081 [2025-03-15 23:57:18] Production.ERROR: pbx CDR StartTime 2025-03-15 20:57:05 - End Time 2025-03-15 23:57:05 [2025-03-15 23:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689651', 'tblTempUsageDetail_20' ) start [2025-03-15 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689651', 'tblTempUsageDetail_20' ) end [2025-03-15 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689651', 'tblTempVendorCDR_20' ) start [2025-03-15 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689651', 'tblTempVendorCDR_20' ) end [2025-03-15 23:57:18] Production.INFO: ProcessCDR(1,14689651,1,1,2) [2025-03-15 23:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689651', 'tblTempUsageDetail_20' ) start [2025-03-15 23:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689651', 'tblTempUsageDetail_20' ) end [2025-03-15 23:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 23:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 23:57:21] Production.INFO: ==5617== Releasing lock... [2025-03-15 23:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 23:57:21] Production.INFO: 36 MB #Memory Used# [2025-03-15 23:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 20:58:05 [end_date_ymd] => 2025-03-15 23:58:05 [RateCDR] => 1 ) [2025-03-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-03-15 20:58:05' and `end` < '2025-03-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-03-15 23:58:17] Production.INFO: count ==1085 [2025-03-15 23:58:18] Production.ERROR: pbx CDR StartTime 2025-03-15 20:58:05 - End Time 2025-03-15 23:58:05 [2025-03-15 23:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689656', 'tblTempUsageDetail_20' ) start [2025-03-15 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689656', 'tblTempUsageDetail_20' ) end [2025-03-15 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689656', 'tblTempVendorCDR_20' ) start [2025-03-15 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689656', 'tblTempVendorCDR_20' ) end [2025-03-15 23:58:18] Production.INFO: ProcessCDR(1,14689656,1,1,2) [2025-03-15 23:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689656', 'tblTempUsageDetail_20' ) start [2025-03-15 23:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689656', 'tblTempUsageDetail_20' ) end [2025-03-15 23:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 23:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 23:58:21] Production.INFO: ==5721== Releasing lock... [2025-03-15 23:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 23:58:21] Production.INFO: 36.25 MB #Memory Used# [2025-03-15 23:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-15 20:59:05 [end_date_ymd] => 2025-03-15 23:59:05 [RateCDR] => 1 ) [2025-03-15 23:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-15 20:59:05' and `end` < '2025-03-15 23:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-15 23:59:18] Production.INFO: count ==1084 [2025-03-15 23:59:18] Production.ERROR: pbx CDR StartTime 2025-03-15 20:59:05 - End Time 2025-03-15 23:59:05 [2025-03-15 23:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-15 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689661', 'tblTempUsageDetail_20' ) start [2025-03-15 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14689661', 'tblTempUsageDetail_20' ) end [2025-03-15 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689661', 'tblTempVendorCDR_20' ) start [2025-03-15 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14689661', 'tblTempVendorCDR_20' ) end [2025-03-15 23:59:18] Production.INFO: ProcessCDR(1,14689661,1,1,2) [2025-03-15 23:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14689661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14689661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-15 23:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14689661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14689661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-15 23:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689661', 'tblTempUsageDetail_20' ) start [2025-03-15 23:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14689661', 'tblTempUsageDetail_20' ) end [2025-03-15 23:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-15 23:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-15 23:59:21] Production.INFO: ==5796== Releasing lock... [2025-03-15 23:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-15 23:59:21] Production.INFO: 36.25 MB #Memory Used#