[2025-03-29 00:00:05] Production.INFO: next invoice date [2025-03-29 00:00:05] Production.INFO: 2025-04-29 [2025-03-29 00:00:05] Production.INFO: getdaysdiff [2025-03-29 00:00:05] Production.INFO: +31 [2025-03-29 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (1,11,1,31,31,'RMScheduler',2025-03-29 00:00:05,1,0,,,0) [2025-03-29 00:00:06] Production.INFO: next invoice date [2025-03-29 00:00:06] Production.INFO: 2025-04-29 [2025-03-29 00:00:06] Production.INFO: getdaysdiff [2025-03-29 00:00:06] Production.INFO: +31 [2025-03-29 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (1,13,2,31,31,'RMScheduler',2025-03-29 00:00:05,1,0,,,0) [2025-03-29 00:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 21:00:07 [end_date_ymd] => 2025-03-29 00:00:07 [RateCDR] => 1 ) [2025-03-29 00:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 21:00:07' and `end` < '2025-03-29 00:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 00:00:20] Production.INFO: count ==1521 [2025-03-29 00:00:20] Production.ERROR: pbx CDR StartTime 2025-03-28 21:00:07 - End Time 2025-03-29 00:00:07 [2025-03-29 00:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785027', 'tblTempUsageDetail_20' ) start [2025-03-29 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785027', 'tblTempUsageDetail_20' ) end [2025-03-29 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785027', 'tblTempVendorCDR_20' ) start [2025-03-29 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785027', 'tblTempVendorCDR_20' ) end [2025-03-29 00:00:20] Production.INFO: ProcessCDR(1,14785027,1,1,2) [2025-03-29 00:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785027', 'tblTempUsageDetail_20' ) start [2025-03-29 00:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785027', 'tblTempUsageDetail_20' ) end [2025-03-29 00:00:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 00:00:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 00:00:25] Production.INFO: ==29065== Releasing lock... [2025-03-29 00:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 00:00:25] Production.INFO: 41.5 MB #Memory Used# [2025-03-29 00:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 21:01:06 [end_date_ymd] => 2025-03-29 00:01:06 [RateCDR] => 1 ) [2025-03-29 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-28 21:01:06' and `end` < '2025-03-29 00: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-29 00:01:19] Production.INFO: count ==873 [2025-03-29 00:01:20] Production.ERROR: pbx CDR StartTime 2025-03-28 21:01:06 - End Time 2025-03-29 00:01:06 [2025-03-29 00:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 00:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785032', 'tblTempUsageDetail_20' ) start [2025-03-29 00:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785032', 'tblTempUsageDetail_20' ) end [2025-03-29 00:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785032', 'tblTempVendorCDR_20' ) start [2025-03-29 00:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785032', 'tblTempVendorCDR_20' ) end [2025-03-29 00:01:21] Production.INFO: ProcessCDR(1,14785032,1,1,2) [2025-03-29 00:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785032', 'tblTempUsageDetail_20' ) start [2025-03-29 00:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785032', 'tblTempUsageDetail_20' ) end [2025-03-29 00:01:26] Production.ERROR: pbx prc_insertCDR start [2025-03-29 00:01:26] Production.ERROR: pbx prc_insertCDR end [2025-03-29 00:01:26] Production.INFO: ==29164== Releasing lock... [2025-03-29 00:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 00:01:26] Production.INFO: 35.75 MB #Memory Used# [2025-03-29 00:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 21:02:05 [end_date_ymd] => 2025-03-29 00:02:05 [RateCDR] => 1 ) [2025-03-29 00:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 21:02:05' and `end` < '2025-03-29 00:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 00:02:25] Production.INFO: count ==873 [2025-03-29 00:02:26] Production.ERROR: pbx CDR StartTime 2025-03-28 21:02:05 - End Time 2025-03-29 00:02:05 [2025-03-29 00:02:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 00:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785037', 'tblTempUsageDetail_20' ) start [2025-03-29 00:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785037', 'tblTempUsageDetail_20' ) end [2025-03-29 00:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785037', 'tblTempVendorCDR_20' ) start [2025-03-29 00:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785037', 'tblTempVendorCDR_20' ) end [2025-03-29 00:02:26] Production.INFO: ProcessCDR(1,14785037,1,1,2) [2025-03-29 00:02:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:02:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:02:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:02:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:02:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785037', 'tblTempUsageDetail_20' ) start [2025-03-29 00:02:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785037', 'tblTempUsageDetail_20' ) end [2025-03-29 00:02:29] Production.ERROR: pbx prc_insertCDR start [2025-03-29 00:02:29] Production.ERROR: pbx prc_insertCDR end [2025-03-29 00:02:29] Production.INFO: ==29246== Releasing lock... [2025-03-29 00:02:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 00:02:29] Production.INFO: 35.75 MB #Memory Used# [2025-03-29 00:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 21:03:06 [end_date_ymd] => 2025-03-29 00:03:06 [RateCDR] => 1 ) [2025-03-29 00: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-28 21:03:06' and `end` < '2025-03-29 00: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-29 00:03:21] Production.INFO: count ==869 [2025-03-29 00:03:22] Production.ERROR: pbx CDR StartTime 2025-03-28 21:03:06 - End Time 2025-03-29 00:03:06 [2025-03-29 00:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 00:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785042', 'tblTempUsageDetail_20' ) start [2025-03-29 00:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785042', 'tblTempUsageDetail_20' ) end [2025-03-29 00:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785042', 'tblTempVendorCDR_20' ) start [2025-03-29 00:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785042', 'tblTempVendorCDR_20' ) end [2025-03-29 00:03:22] Production.INFO: ProcessCDR(1,14785042,1,1,2) [2025-03-29 00:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785042', 'tblTempUsageDetail_20' ) start [2025-03-29 00:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785042', 'tblTempUsageDetail_20' ) end [2025-03-29 00:03:26] Production.ERROR: pbx prc_insertCDR start [2025-03-29 00:03:26] Production.ERROR: pbx prc_insertCDR end [2025-03-29 00:03:26] Production.INFO: ==29323== Releasing lock... [2025-03-29 00:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 00:03:26] Production.INFO: 35.25 MB #Memory Used# [2025-03-29 00:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 21:04:06 [end_date_ymd] => 2025-03-29 00:04:06 [RateCDR] => 1 ) [2025-03-29 00:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 21:04:06' and `end` < '2025-03-29 00:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 00:04:18] Production.INFO: count ==852 [2025-03-29 00:04:19] Production.ERROR: pbx CDR StartTime 2025-03-28 21:04:06 - End Time 2025-03-29 00:04:06 [2025-03-29 00:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 00:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785047', 'tblTempUsageDetail_20' ) start [2025-03-29 00:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785047', 'tblTempUsageDetail_20' ) end [2025-03-29 00:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785047', 'tblTempVendorCDR_20' ) start [2025-03-29 00:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785047', 'tblTempVendorCDR_20' ) end [2025-03-29 00:04:19] Production.INFO: ProcessCDR(1,14785047,1,1,2) [2025-03-29 00:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785047', 'tblTempUsageDetail_20' ) start [2025-03-29 00:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785047', 'tblTempUsageDetail_20' ) end [2025-03-29 00:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 00:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 00:04:22] Production.INFO: ==29398== Releasing lock... [2025-03-29 00:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 00:04:22] Production.INFO: 35.5 MB #Memory Used# [2025-03-29 00:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 21:05:05 [end_date_ymd] => 2025-03-29 00:05:05 [RateCDR] => 1 ) [2025-03-29 00:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 21:05:05' and `end` < '2025-03-29 00:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 00:05:33] Production.INFO: count ==847 [2025-03-29 00:05:34] Production.ERROR: pbx CDR StartTime 2025-03-28 21:05:05 - End Time 2025-03-29 00:05:05 [2025-03-29 00:05:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 00:05:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785052', 'tblTempUsageDetail_20' ) start [2025-03-29 00:05:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785052', 'tblTempUsageDetail_20' ) end [2025-03-29 00:05:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785052', 'tblTempVendorCDR_20' ) start [2025-03-29 00:05:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785052', 'tblTempVendorCDR_20' ) end [2025-03-29 00:05:34] Production.INFO: ProcessCDR(1,14785052,1,1,2) [2025-03-29 00:05:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:05:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:05:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:05:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:05:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785052', 'tblTempUsageDetail_20' ) start [2025-03-29 00:05:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785052', 'tblTempUsageDetail_20' ) end [2025-03-29 00:05:37] Production.ERROR: pbx prc_insertCDR start [2025-03-29 00:05:37] Production.ERROR: pbx prc_insertCDR end [2025-03-29 00:05:37] Production.INFO: ==29479== Releasing lock... [2025-03-29 00:05:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 00:05:37] Production.INFO: 35.25 MB #Memory Used# [2025-03-29 00:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 21:06:05 [end_date_ymd] => 2025-03-29 00:06:05 [RateCDR] => 1 ) [2025-03-29 00:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 21:06:05' and `end` < '2025-03-29 00:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 00:06:26] Production.INFO: count ==839 [2025-03-29 00:06:27] Production.ERROR: pbx CDR StartTime 2025-03-28 21:06:05 - End Time 2025-03-29 00:06:05 [2025-03-29 00:06:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 00:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785057', 'tblTempUsageDetail_20' ) start [2025-03-29 00:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785057', 'tblTempUsageDetail_20' ) end [2025-03-29 00:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785057', 'tblTempVendorCDR_20' ) start [2025-03-29 00:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785057', 'tblTempVendorCDR_20' ) end [2025-03-29 00:06:27] Production.INFO: ProcessCDR(1,14785057,1,1,2) [2025-03-29 00:06:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:06:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:06:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:06:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:06:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785057', 'tblTempUsageDetail_20' ) start [2025-03-29 00:06:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785057', 'tblTempUsageDetail_20' ) end [2025-03-29 00:06:30] Production.ERROR: pbx prc_insertCDR start [2025-03-29 00:06:30] Production.ERROR: pbx prc_insertCDR end [2025-03-29 00:06:30] Production.INFO: ==29555== Releasing lock... [2025-03-29 00:06:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 00:06:30] Production.INFO: 35.25 MB #Memory Used# [2025-03-29 00:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 21:07:05 [end_date_ymd] => 2025-03-29 00:07:05 [RateCDR] => 1 ) [2025-03-29 00:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 21:07:05' and `end` < '2025-03-29 00:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 00:07:30] Production.INFO: count ==837 [2025-03-29 00:07:30] Production.ERROR: pbx CDR StartTime 2025-03-28 21:07:05 - End Time 2025-03-29 00:07:05 [2025-03-29 00:07:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 00:07:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785062', 'tblTempUsageDetail_20' ) start [2025-03-29 00:07:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785062', 'tblTempUsageDetail_20' ) end [2025-03-29 00:07:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785062', 'tblTempVendorCDR_20' ) start [2025-03-29 00:07:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785062', 'tblTempVendorCDR_20' ) end [2025-03-29 00:07:31] Production.INFO: ProcessCDR(1,14785062,1,1,2) [2025-03-29 00:07:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:07:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:07:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:07:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:07:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785062', 'tblTempUsageDetail_20' ) start [2025-03-29 00:07:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785062', 'tblTempUsageDetail_20' ) end [2025-03-29 00:07:35] Production.ERROR: pbx prc_insertCDR start [2025-03-29 00:07:35] Production.ERROR: pbx prc_insertCDR end [2025-03-29 00:07:35] Production.INFO: ==29630== Releasing lock... [2025-03-29 00:07:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 00:07:35] Production.INFO: 35.5 MB #Memory Used# [2025-03-29 00:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 21:08:05 [end_date_ymd] => 2025-03-29 00:08:05 [RateCDR] => 1 ) [2025-03-29 00:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 21:08:05' and `end` < '2025-03-29 00:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 00:08:26] Production.INFO: count ==835 [2025-03-29 00:08:26] Production.ERROR: pbx CDR StartTime 2025-03-28 21:08:05 - End Time 2025-03-29 00:08:05 [2025-03-29 00:08:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 00:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785067', 'tblTempUsageDetail_20' ) start [2025-03-29 00:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785067', 'tblTempUsageDetail_20' ) end [2025-03-29 00:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785067', 'tblTempVendorCDR_20' ) start [2025-03-29 00:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785067', 'tblTempVendorCDR_20' ) end [2025-03-29 00:08:26] Production.INFO: ProcessCDR(1,14785067,1,1,2) [2025-03-29 00:08:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:08:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:08:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:08:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:08:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785067', 'tblTempUsageDetail_20' ) start [2025-03-29 00:08:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785067', 'tblTempUsageDetail_20' ) end [2025-03-29 00:08:30] Production.ERROR: pbx prc_insertCDR start [2025-03-29 00:08:30] Production.ERROR: pbx prc_insertCDR end [2025-03-29 00:08:30] Production.INFO: ==29703== Releasing lock... [2025-03-29 00:08:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 00:08:30] Production.INFO: 34.75 MB #Memory Used# [2025-03-29 00:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 21:09:06 [end_date_ymd] => 2025-03-29 00:09:06 [RateCDR] => 1 ) [2025-03-29 00: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-28 21:09:06' and `end` < '2025-03-29 00: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-29 00:09:28] Production.INFO: count ==827 [2025-03-29 00:09:28] Production.ERROR: pbx CDR StartTime 2025-03-28 21:09:06 - End Time 2025-03-29 00:09:06 [2025-03-29 00:09:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 00:09:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785072', 'tblTempUsageDetail_20' ) start [2025-03-29 00:09:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785072', 'tblTempUsageDetail_20' ) end [2025-03-29 00:09:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785072', 'tblTempVendorCDR_20' ) start [2025-03-29 00:09:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785072', 'tblTempVendorCDR_20' ) end [2025-03-29 00:09:28] Production.INFO: ProcessCDR(1,14785072,1,1,2) [2025-03-29 00:09:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:09:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:09:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:09:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:09:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785072', 'tblTempUsageDetail_20' ) start [2025-03-29 00:09:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785072', 'tblTempUsageDetail_20' ) end [2025-03-29 00:09:31] Production.ERROR: pbx prc_insertCDR start [2025-03-29 00:09:31] Production.ERROR: pbx prc_insertCDR end [2025-03-29 00:09:31] Production.INFO: ==29814== Releasing lock... [2025-03-29 00:09:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 00:09:31] Production.INFO: 35.25 MB #Memory Used# [2025-03-29 00:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 21:10:05 [end_date_ymd] => 2025-03-29 00:10:05 [RateCDR] => 1 ) [2025-03-29 00:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 21:10:05' and `end` < '2025-03-29 00:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 00:10:19] Production.INFO: count ==834 [2025-03-29 00:10:19] Production.ERROR: pbx CDR StartTime 2025-03-28 21:10:05 - End Time 2025-03-29 00:10:05 [2025-03-29 00:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785077', 'tblTempUsageDetail_20' ) start [2025-03-29 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785077', 'tblTempUsageDetail_20' ) end [2025-03-29 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785077', 'tblTempVendorCDR_20' ) start [2025-03-29 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785077', 'tblTempVendorCDR_20' ) end [2025-03-29 00:10:19] Production.INFO: ProcessCDR(1,14785077,1,1,2) [2025-03-29 00:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785077', 'tblTempUsageDetail_20' ) start [2025-03-29 00:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785077', 'tblTempUsageDetail_20' ) end [2025-03-29 00:10:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 00:10:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 00:10:24] Production.INFO: ==29890== Releasing lock... [2025-03-29 00:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 00:10:24] Production.INFO: 35.25 MB #Memory Used# [2025-03-29 00:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 21:11:06 [end_date_ymd] => 2025-03-29 00:11:06 [RateCDR] => 1 ) [2025-03-29 00: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-28 21:11:06' and `end` < '2025-03-29 00: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-29 00:11:18] Production.INFO: count ==825 [2025-03-29 00:11:19] Production.ERROR: pbx CDR StartTime 2025-03-28 21:11:06 - End Time 2025-03-29 00:11:06 [2025-03-29 00:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 00:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785083', 'tblTempUsageDetail_20' ) start [2025-03-29 00:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785083', 'tblTempUsageDetail_20' ) end [2025-03-29 00:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785083', 'tblTempVendorCDR_20' ) start [2025-03-29 00:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785083', 'tblTempVendorCDR_20' ) end [2025-03-29 00:11:19] Production.INFO: ProcessCDR(1,14785083,1,1,2) [2025-03-29 00:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785083', 'tblTempUsageDetail_20' ) start [2025-03-29 00:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785083', 'tblTempUsageDetail_20' ) end [2025-03-29 00:11:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 00:11:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 00:11:22] Production.INFO: ==29967== Releasing lock... [2025-03-29 00:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 00:11:22] Production.INFO: 35.25 MB #Memory Used# [2025-03-29 00:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 21:12:05 [end_date_ymd] => 2025-03-29 00:12:05 [RateCDR] => 1 ) [2025-03-29 00:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 21:12:05' and `end` < '2025-03-29 00:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 00:12:17] Production.INFO: count ==824 [2025-03-29 00:12:18] Production.ERROR: pbx CDR StartTime 2025-03-28 21:12:05 - End Time 2025-03-29 00:12:05 [2025-03-29 00:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785088', 'tblTempUsageDetail_20' ) start [2025-03-29 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785088', 'tblTempUsageDetail_20' ) end [2025-03-29 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785088', 'tblTempVendorCDR_20' ) start [2025-03-29 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785088', 'tblTempVendorCDR_20' ) end [2025-03-29 00:12:18] Production.INFO: ProcessCDR(1,14785088,1,1,2) [2025-03-29 00:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785088', 'tblTempUsageDetail_20' ) start [2025-03-29 00:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785088', 'tblTempUsageDetail_20' ) end [2025-03-29 00:12:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 00:12:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 00:12:23] Production.INFO: ==30042== Releasing lock... [2025-03-29 00:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 00:12:23] Production.INFO: 35.5 MB #Memory Used# [2025-03-29 00:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 21:13:05 [end_date_ymd] => 2025-03-29 00:13:05 [RateCDR] => 1 ) [2025-03-29 00:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 21:13:05' and `end` < '2025-03-29 00:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 00:13:18] Production.INFO: count ==813 [2025-03-29 00:13:19] Production.ERROR: pbx CDR StartTime 2025-03-28 21:13:05 - End Time 2025-03-29 00:13:05 [2025-03-29 00:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 00:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785093', 'tblTempUsageDetail_20' ) start [2025-03-29 00:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785093', 'tblTempUsageDetail_20' ) end [2025-03-29 00:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785093', 'tblTempVendorCDR_20' ) start [2025-03-29 00:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785093', 'tblTempVendorCDR_20' ) end [2025-03-29 00:13:19] Production.INFO: ProcessCDR(1,14785093,1,1,2) [2025-03-29 00:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785093', 'tblTempUsageDetail_20' ) start [2025-03-29 00:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785093', 'tblTempUsageDetail_20' ) end [2025-03-29 00:13:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 00:13:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 00:13:22] Production.INFO: ==30116== Releasing lock... [2025-03-29 00:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 00:13:22] Production.INFO: 34.75 MB #Memory Used# [2025-03-29 00:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 21:14:05 [end_date_ymd] => 2025-03-29 00:14:05 [RateCDR] => 1 ) [2025-03-29 00:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 21:14:05' and `end` < '2025-03-29 00:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 00:14:18] Production.INFO: count ==809 [2025-03-29 00:14:18] Production.ERROR: pbx CDR StartTime 2025-03-28 21:14:05 - End Time 2025-03-29 00:14:05 [2025-03-29 00:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785098', 'tblTempUsageDetail_20' ) start [2025-03-29 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785098', 'tblTempUsageDetail_20' ) end [2025-03-29 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785098', 'tblTempVendorCDR_20' ) start [2025-03-29 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785098', 'tblTempVendorCDR_20' ) end [2025-03-29 00:14:18] Production.INFO: ProcessCDR(1,14785098,1,1,2) [2025-03-29 00:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785098', 'tblTempUsageDetail_20' ) start [2025-03-29 00:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785098', 'tblTempUsageDetail_20' ) end [2025-03-29 00:14:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 00:14:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 00:14:22] Production.INFO: ==30192== Releasing lock... [2025-03-29 00:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 00:14:22] Production.INFO: 34.75 MB #Memory Used# [2025-03-29 00:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 21:15:05 [end_date_ymd] => 2025-03-29 00:15:05 [RateCDR] => 1 ) [2025-03-29 00:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 21:15:05' and `end` < '2025-03-29 00:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 00:15:18] Production.INFO: count ==792 [2025-03-29 00:15:18] Production.ERROR: pbx CDR StartTime 2025-03-28 21:15:05 - End Time 2025-03-29 00:15:05 [2025-03-29 00:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785103', 'tblTempUsageDetail_20' ) start [2025-03-29 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785103', 'tblTempUsageDetail_20' ) end [2025-03-29 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785103', 'tblTempVendorCDR_20' ) start [2025-03-29 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785103', 'tblTempVendorCDR_20' ) end [2025-03-29 00:15:18] Production.INFO: ProcessCDR(1,14785103,1,1,2) [2025-03-29 00:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785103', 'tblTempUsageDetail_20' ) start [2025-03-29 00:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785103', 'tblTempUsageDetail_20' ) end [2025-03-29 00:15:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 00:15:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 00:15:22] Production.INFO: ==30269== Releasing lock... [2025-03-29 00:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 00:15:22] Production.INFO: 35 MB #Memory Used# [2025-03-29 00:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 21:16:06 [end_date_ymd] => 2025-03-29 00:16:06 [RateCDR] => 1 ) [2025-03-29 00: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-28 21:16:06' and `end` < '2025-03-29 00: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-29 00:16:19] Production.INFO: count ==795 [2025-03-29 00:16:19] Production.ERROR: pbx CDR StartTime 2025-03-28 21:16:06 - End Time 2025-03-29 00:16:06 [2025-03-29 00:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 00:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785108', 'tblTempUsageDetail_20' ) start [2025-03-29 00:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785108', 'tblTempUsageDetail_20' ) end [2025-03-29 00:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785108', 'tblTempVendorCDR_20' ) start [2025-03-29 00:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785108', 'tblTempVendorCDR_20' ) end [2025-03-29 00:16:19] Production.INFO: ProcessCDR(1,14785108,1,1,2) [2025-03-29 00:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785108', 'tblTempUsageDetail_20' ) start [2025-03-29 00:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785108', 'tblTempUsageDetail_20' ) end [2025-03-29 00:16:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 00:16:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 00:16:24] Production.INFO: ==30341== Releasing lock... [2025-03-29 00:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 00:16:24] Production.INFO: 35.25 MB #Memory Used# [2025-03-29 00:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 21:17:06 [end_date_ymd] => 2025-03-29 00:17:06 [RateCDR] => 1 ) [2025-03-29 00: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-28 21:17:06' and `end` < '2025-03-29 00: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-29 00:17:18] Production.INFO: count ==791 [2025-03-29 00:17:18] Production.ERROR: pbx CDR StartTime 2025-03-28 21:17:06 - End Time 2025-03-29 00:17:06 [2025-03-29 00:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785113', 'tblTempUsageDetail_20' ) start [2025-03-29 00:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785113', 'tblTempUsageDetail_20' ) end [2025-03-29 00:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785113', 'tblTempVendorCDR_20' ) start [2025-03-29 00:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785113', 'tblTempVendorCDR_20' ) end [2025-03-29 00:17:19] Production.INFO: ProcessCDR(1,14785113,1,1,2) [2025-03-29 00:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785113', 'tblTempUsageDetail_20' ) start [2025-03-29 00:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785113', 'tblTempUsageDetail_20' ) end [2025-03-29 00:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 00:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 00:17:22] Production.INFO: ==30420== Releasing lock... [2025-03-29 00:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 00:17:22] Production.INFO: 35 MB #Memory Used# [2025-03-29 00:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 21:18:06 [end_date_ymd] => 2025-03-29 00:18:06 [RateCDR] => 1 ) [2025-03-29 00:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 21:18:06' and `end` < '2025-03-29 00:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 00:18:18] Production.INFO: count ==790 [2025-03-29 00:18:19] Production.ERROR: pbx CDR StartTime 2025-03-28 21:18:06 - End Time 2025-03-29 00:18:06 [2025-03-29 00:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 00:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785118', 'tblTempUsageDetail_20' ) start [2025-03-29 00:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785118', 'tblTempUsageDetail_20' ) end [2025-03-29 00:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785118', 'tblTempVendorCDR_20' ) start [2025-03-29 00:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785118', 'tblTempVendorCDR_20' ) end [2025-03-29 00:18:19] Production.INFO: ProcessCDR(1,14785118,1,1,2) [2025-03-29 00:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785118', 'tblTempUsageDetail_20' ) start [2025-03-29 00:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785118', 'tblTempUsageDetail_20' ) end [2025-03-29 00:18:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 00:18:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 00:18:22] Production.INFO: ==30495== Releasing lock... [2025-03-29 00:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 00:18:22] Production.INFO: 34.5 MB #Memory Used# [2025-03-29 00:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 21:19:05 [end_date_ymd] => 2025-03-29 00:19:05 [RateCDR] => 1 ) [2025-03-29 00:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 21:19:05' and `end` < '2025-03-29 00:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 00:19:18] Production.INFO: count ==790 [2025-03-29 00:19:18] Production.ERROR: pbx CDR StartTime 2025-03-28 21:19:05 - End Time 2025-03-29 00:19:05 [2025-03-29 00:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785123', 'tblTempUsageDetail_20' ) start [2025-03-29 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785123', 'tblTempUsageDetail_20' ) end [2025-03-29 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785123', 'tblTempVendorCDR_20' ) start [2025-03-29 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785123', 'tblTempVendorCDR_20' ) end [2025-03-29 00:19:18] Production.INFO: ProcessCDR(1,14785123,1,1,2) [2025-03-29 00:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785123', 'tblTempUsageDetail_20' ) start [2025-03-29 00:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785123', 'tblTempUsageDetail_20' ) end [2025-03-29 00:19:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 00:19:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 00:19:22] Production.INFO: ==30569== Releasing lock... [2025-03-29 00:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 00:19:22] Production.INFO: 34.5 MB #Memory Used# [2025-03-29 00:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 21:20:06 [end_date_ymd] => 2025-03-29 00:20:06 [RateCDR] => 1 ) [2025-03-29 00:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 21:20:06' and `end` < '2025-03-29 00:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 00:20:18] Production.INFO: count ==793 [2025-03-29 00:20:19] Production.ERROR: pbx CDR StartTime 2025-03-28 21:20:06 - End Time 2025-03-29 00:20:06 [2025-03-29 00:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785128', 'tblTempUsageDetail_20' ) start [2025-03-29 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785128', 'tblTempUsageDetail_20' ) end [2025-03-29 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785128', 'tblTempVendorCDR_20' ) start [2025-03-29 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785128', 'tblTempVendorCDR_20' ) end [2025-03-29 00:20:19] Production.INFO: ProcessCDR(1,14785128,1,1,2) [2025-03-29 00:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785128', 'tblTempUsageDetail_20' ) start [2025-03-29 00:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785128', 'tblTempUsageDetail_20' ) end [2025-03-29 00:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 00:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 00:20:22] Production.INFO: ==30649== Releasing lock... [2025-03-29 00:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 00:20:22] Production.INFO: 34.75 MB #Memory Used# [2025-03-29 00:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 21:21:05 [end_date_ymd] => 2025-03-29 00:21:05 [RateCDR] => 1 ) [2025-03-29 00:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 21:21:05' and `end` < '2025-03-29 00:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 00:21:17] Production.INFO: count ==795 [2025-03-29 00:21:18] Production.ERROR: pbx CDR StartTime 2025-03-28 21:21:05 - End Time 2025-03-29 00:21:05 [2025-03-29 00:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785134', 'tblTempUsageDetail_20' ) start [2025-03-29 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785134', 'tblTempUsageDetail_20' ) end [2025-03-29 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785134', 'tblTempVendorCDR_20' ) start [2025-03-29 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785134', 'tblTempVendorCDR_20' ) end [2025-03-29 00:21:18] Production.INFO: ProcessCDR(1,14785134,1,1,2) [2025-03-29 00:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785134', 'tblTempUsageDetail_20' ) start [2025-03-29 00:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785134', 'tblTempUsageDetail_20' ) end [2025-03-29 00:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 00:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 00:21:21] Production.INFO: ==30727== Releasing lock... [2025-03-29 00:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 00:21:21] Production.INFO: 34.75 MB #Memory Used# [2025-03-29 00:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 21:22:06 [end_date_ymd] => 2025-03-29 00:22:06 [RateCDR] => 1 ) [2025-03-29 00: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-28 21:22:06' and `end` < '2025-03-29 00: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-29 00:22:18] Production.INFO: count ==790 [2025-03-29 00:22:18] Production.ERROR: pbx CDR StartTime 2025-03-28 21:22:06 - End Time 2025-03-29 00:22:06 [2025-03-29 00:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785139', 'tblTempUsageDetail_20' ) start [2025-03-29 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785139', 'tblTempUsageDetail_20' ) end [2025-03-29 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785139', 'tblTempVendorCDR_20' ) start [2025-03-29 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785139', 'tblTempVendorCDR_20' ) end [2025-03-29 00:22:18] Production.INFO: ProcessCDR(1,14785139,1,1,2) [2025-03-29 00:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785139', 'tblTempUsageDetail_20' ) start [2025-03-29 00:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785139', 'tblTempUsageDetail_20' ) end [2025-03-29 00:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 00:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 00:22:22] Production.INFO: ==30809== Releasing lock... [2025-03-29 00:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 00:22:22] Production.INFO: 34.75 MB #Memory Used# [2025-03-29 00:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 21:23:05 [end_date_ymd] => 2025-03-29 00:23:05 [RateCDR] => 1 ) [2025-03-29 00:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 21:23:05' and `end` < '2025-03-29 00:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 00:23:17] Production.INFO: count ==775 [2025-03-29 00:23:18] Production.ERROR: pbx CDR StartTime 2025-03-28 21:23:05 - End Time 2025-03-29 00:23:05 [2025-03-29 00:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785144', 'tblTempUsageDetail_20' ) start [2025-03-29 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785144', 'tblTempUsageDetail_20' ) end [2025-03-29 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785144', 'tblTempVendorCDR_20' ) start [2025-03-29 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785144', 'tblTempVendorCDR_20' ) end [2025-03-29 00:23:18] Production.INFO: ProcessCDR(1,14785144,1,1,2) [2025-03-29 00:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785144', 'tblTempUsageDetail_20' ) start [2025-03-29 00:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785144', 'tblTempUsageDetail_20' ) end [2025-03-29 00:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 00:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 00:23:21] Production.INFO: ==30882== Releasing lock... [2025-03-29 00:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 00:23:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-29 00:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 21:24:06 [end_date_ymd] => 2025-03-29 00:24:06 [RateCDR] => 1 ) [2025-03-29 00:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 21:24:06' and `end` < '2025-03-29 00:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 00:24:18] Production.INFO: count ==769 [2025-03-29 00:24:18] Production.ERROR: pbx CDR StartTime 2025-03-28 21:24:06 - End Time 2025-03-29 00:24:06 [2025-03-29 00:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785149', 'tblTempUsageDetail_20' ) start [2025-03-29 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785149', 'tblTempUsageDetail_20' ) end [2025-03-29 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785149', 'tblTempVendorCDR_20' ) start [2025-03-29 00:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785149', 'tblTempVendorCDR_20' ) end [2025-03-29 00:24:19] Production.INFO: ProcessCDR(1,14785149,1,1,2) [2025-03-29 00:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785149', 'tblTempUsageDetail_20' ) start [2025-03-29 00:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785149', 'tblTempUsageDetail_20' ) end [2025-03-29 00:24:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 00:24:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 00:24:22] Production.INFO: ==30993== Releasing lock... [2025-03-29 00:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 00:24:22] Production.INFO: 34.5 MB #Memory Used# [2025-03-29 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 21:25:05 [end_date_ymd] => 2025-03-29 00:25:05 [RateCDR] => 1 ) [2025-03-29 00:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 21:25:05' and `end` < '2025-03-29 00:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 00:25:17] Production.INFO: count ==766 [2025-03-29 00:25:18] Production.ERROR: pbx CDR StartTime 2025-03-28 21:25:05 - End Time 2025-03-29 00:25:05 [2025-03-29 00:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785154', 'tblTempUsageDetail_20' ) start [2025-03-29 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785154', 'tblTempUsageDetail_20' ) end [2025-03-29 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785154', 'tblTempVendorCDR_20' ) start [2025-03-29 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785154', 'tblTempVendorCDR_20' ) end [2025-03-29 00:25:18] Production.INFO: ProcessCDR(1,14785154,1,1,2) [2025-03-29 00:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785154', 'tblTempUsageDetail_20' ) start [2025-03-29 00:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785154', 'tblTempUsageDetail_20' ) end [2025-03-29 00:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 00:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 00:25:21] Production.INFO: ==31065== Releasing lock... [2025-03-29 00:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 00:25:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-29 00:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 21:26:05 [end_date_ymd] => 2025-03-29 00:26:05 [RateCDR] => 1 ) [2025-03-29 00:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 21:26:05' and `end` < '2025-03-29 00:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 00:26:18] Production.INFO: count ==766 [2025-03-29 00:26:18] Production.ERROR: pbx CDR StartTime 2025-03-28 21:26:05 - End Time 2025-03-29 00:26:05 [2025-03-29 00:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785159', 'tblTempUsageDetail_20' ) start [2025-03-29 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785159', 'tblTempUsageDetail_20' ) end [2025-03-29 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785159', 'tblTempVendorCDR_20' ) start [2025-03-29 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785159', 'tblTempVendorCDR_20' ) end [2025-03-29 00:26:18] Production.INFO: ProcessCDR(1,14785159,1,1,2) [2025-03-29 00:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785159', 'tblTempUsageDetail_20' ) start [2025-03-29 00:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785159', 'tblTempUsageDetail_20' ) end [2025-03-29 00:26:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 00:26:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 00:26:22] Production.INFO: ==31141== Releasing lock... [2025-03-29 00:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 00:26:22] Production.INFO: 34.75 MB #Memory Used# [2025-03-29 00:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 21:27:05 [end_date_ymd] => 2025-03-29 00:27:05 [RateCDR] => 1 ) [2025-03-29 00:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 21:27:05' and `end` < '2025-03-29 00:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 00:27:18] Production.INFO: count ==772 [2025-03-29 00:27:18] Production.ERROR: pbx CDR StartTime 2025-03-28 21:27:05 - End Time 2025-03-29 00:27:05 [2025-03-29 00:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785164', 'tblTempUsageDetail_20' ) start [2025-03-29 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785164', 'tblTempUsageDetail_20' ) end [2025-03-29 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785164', 'tblTempVendorCDR_20' ) start [2025-03-29 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785164', 'tblTempVendorCDR_20' ) end [2025-03-29 00:27:18] Production.INFO: ProcessCDR(1,14785164,1,1,2) [2025-03-29 00:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785164', 'tblTempUsageDetail_20' ) start [2025-03-29 00:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785164', 'tblTempUsageDetail_20' ) end [2025-03-29 00:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 00:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 00:27:21] Production.INFO: ==31218== Releasing lock... [2025-03-29 00:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 00:27:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-29 00:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 21:28:05 [end_date_ymd] => 2025-03-29 00:28:05 [RateCDR] => 1 ) [2025-03-29 00:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 21:28:05' and `end` < '2025-03-29 00:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 00:28:18] Production.INFO: count ==768 [2025-03-29 00:28:18] Production.ERROR: pbx CDR StartTime 2025-03-28 21:28:05 - End Time 2025-03-29 00:28:05 [2025-03-29 00:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785169', 'tblTempUsageDetail_20' ) start [2025-03-29 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785169', 'tblTempUsageDetail_20' ) end [2025-03-29 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785169', 'tblTempVendorCDR_20' ) start [2025-03-29 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785169', 'tblTempVendorCDR_20' ) end [2025-03-29 00:28:18] Production.INFO: ProcessCDR(1,14785169,1,1,2) [2025-03-29 00:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785169', 'tblTempUsageDetail_20' ) start [2025-03-29 00:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785169', 'tblTempUsageDetail_20' ) end [2025-03-29 00:28:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 00:28:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 00:28:22] Production.INFO: ==31301== Releasing lock... [2025-03-29 00:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 00:28:22] Production.INFO: 34.75 MB #Memory Used# [2025-03-29 00:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 21:29:05 [end_date_ymd] => 2025-03-29 00:29:05 [RateCDR] => 1 ) [2025-03-29 00:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 21:29:05' and `end` < '2025-03-29 00:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 00:29:17] Production.INFO: count ==762 [2025-03-29 00:29:18] Production.ERROR: pbx CDR StartTime 2025-03-28 21:29:05 - End Time 2025-03-29 00:29:05 [2025-03-29 00:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785174', 'tblTempUsageDetail_20' ) start [2025-03-29 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785174', 'tblTempUsageDetail_20' ) end [2025-03-29 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785174', 'tblTempVendorCDR_20' ) start [2025-03-29 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785174', 'tblTempVendorCDR_20' ) end [2025-03-29 00:29:18] Production.INFO: ProcessCDR(1,14785174,1,1,2) [2025-03-29 00:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785174', 'tblTempUsageDetail_20' ) start [2025-03-29 00:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785174', 'tblTempUsageDetail_20' ) end [2025-03-29 00:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 00:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 00:29:21] Production.INFO: ==31374== Releasing lock... [2025-03-29 00:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 00:29:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-29 00:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 21:30:07 [end_date_ymd] => 2025-03-29 00:30:07 [RateCDR] => 1 ) [2025-03-29 00: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-28 21:30:07' and `end` < '2025-03-29 00: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-29 00:30:19] Production.INFO: count ==773 [2025-03-29 00:30:20] Production.ERROR: pbx CDR StartTime 2025-03-28 21:30:07 - End Time 2025-03-29 00:30:07 [2025-03-29 00:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 00:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785180', 'tblTempUsageDetail_20' ) start [2025-03-29 00:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785180', 'tblTempUsageDetail_20' ) end [2025-03-29 00:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785180', 'tblTempVendorCDR_20' ) start [2025-03-29 00:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785180', 'tblTempVendorCDR_20' ) end [2025-03-29 00:30:20] Production.INFO: ProcessCDR(1,14785180,1,1,2) [2025-03-29 00:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785180', 'tblTempUsageDetail_20' ) start [2025-03-29 00:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785180', 'tblTempUsageDetail_20' ) end [2025-03-29 00:30:25] Production.ERROR: pbx prc_insertCDR start [2025-03-29 00:30:25] Production.ERROR: pbx prc_insertCDR end [2025-03-29 00:30:25] Production.INFO: ==31453== Releasing lock... [2025-03-29 00:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 00:30:25] Production.INFO: 35 MB #Memory Used# [2025-03-29 00:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 21:31:05 [end_date_ymd] => 2025-03-29 00:31:05 [RateCDR] => 1 ) [2025-03-29 00:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 21:31:05' and `end` < '2025-03-29 00:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 00:31:17] Production.INFO: count ==779 [2025-03-29 00:31:18] Production.ERROR: pbx CDR StartTime 2025-03-28 21:31:05 - End Time 2025-03-29 00:31:05 [2025-03-29 00:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785181', 'tblTempUsageDetail_20' ) start [2025-03-29 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785181', 'tblTempUsageDetail_20' ) end [2025-03-29 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785181', 'tblTempVendorCDR_20' ) start [2025-03-29 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785181', 'tblTempVendorCDR_20' ) end [2025-03-29 00:31:18] Production.INFO: ProcessCDR(1,14785181,1,1,2) [2025-03-29 00:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785181', 'tblTempUsageDetail_20' ) start [2025-03-29 00:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785181', 'tblTempUsageDetail_20' ) end [2025-03-29 00:31:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 00:31:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 00:31:23] Production.INFO: ==31534== Releasing lock... [2025-03-29 00:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 00:31:23] Production.INFO: 34.75 MB #Memory Used# [2025-03-29 00:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 21:32:05 [end_date_ymd] => 2025-03-29 00:32:05 [RateCDR] => 1 ) [2025-03-29 00:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 21:32:05' and `end` < '2025-03-29 00:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 00:32:18] Production.INFO: count ==789 [2025-03-29 00:32:18] Production.ERROR: pbx CDR StartTime 2025-03-28 21:32:05 - End Time 2025-03-29 00:32:05 [2025-03-29 00:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785190', 'tblTempUsageDetail_20' ) start [2025-03-29 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785190', 'tblTempUsageDetail_20' ) end [2025-03-29 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785190', 'tblTempVendorCDR_20' ) start [2025-03-29 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785190', 'tblTempVendorCDR_20' ) end [2025-03-29 00:32:18] Production.INFO: ProcessCDR(1,14785190,1,1,2) [2025-03-29 00:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785190', 'tblTempUsageDetail_20' ) start [2025-03-29 00:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785190', 'tblTempUsageDetail_20' ) end [2025-03-29 00:32:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 00:32:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 00:32:23] Production.INFO: ==31617== Releasing lock... [2025-03-29 00:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 00:32:23] Production.INFO: 35 MB #Memory Used# [2025-03-29 00:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 21:33:05 [end_date_ymd] => 2025-03-29 00:33:05 [RateCDR] => 1 ) [2025-03-29 00:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 21:33:05' and `end` < '2025-03-29 00:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 00:33:17] Production.INFO: count ==795 [2025-03-29 00:33:18] Production.ERROR: pbx CDR StartTime 2025-03-28 21:33:05 - End Time 2025-03-29 00:33:05 [2025-03-29 00:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785195', 'tblTempUsageDetail_20' ) start [2025-03-29 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785195', 'tblTempUsageDetail_20' ) end [2025-03-29 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785195', 'tblTempVendorCDR_20' ) start [2025-03-29 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785195', 'tblTempVendorCDR_20' ) end [2025-03-29 00:33:18] Production.INFO: ProcessCDR(1,14785195,1,1,2) [2025-03-29 00:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785195', 'tblTempUsageDetail_20' ) start [2025-03-29 00:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785195', 'tblTempUsageDetail_20' ) end [2025-03-29 00:33:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 00:33:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 00:33:22] Production.INFO: ==31703== Releasing lock... [2025-03-29 00:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 00:33:22] Production.INFO: 34.25 MB #Memory Used# [2025-03-29 00:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 21:34:06 [end_date_ymd] => 2025-03-29 00:34:06 [RateCDR] => 1 ) [2025-03-29 00:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 21:34:06' and `end` < '2025-03-29 00:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 00:34:18] Production.INFO: count ==798 [2025-03-29 00:34:19] Production.ERROR: pbx CDR StartTime 2025-03-28 21:34:06 - End Time 2025-03-29 00:34:06 [2025-03-29 00:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 00:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785200', 'tblTempUsageDetail_20' ) start [2025-03-29 00:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785200', 'tblTempUsageDetail_20' ) end [2025-03-29 00:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785200', 'tblTempVendorCDR_20' ) start [2025-03-29 00:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785200', 'tblTempVendorCDR_20' ) end [2025-03-29 00:34:19] Production.INFO: ProcessCDR(1,14785200,1,1,2) [2025-03-29 00:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785200', 'tblTempUsageDetail_20' ) start [2025-03-29 00:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785200', 'tblTempUsageDetail_20' ) end [2025-03-29 00:34:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 00:34:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 00:34:24] Production.INFO: ==31788== Releasing lock... [2025-03-29 00:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 00:34:24] Production.INFO: 34.75 MB #Memory Used# [2025-03-29 00:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 21:35:05 [end_date_ymd] => 2025-03-29 00:35:05 [RateCDR] => 1 ) [2025-03-29 00:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 21:35:05' and `end` < '2025-03-29 00:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 00:35:17] Production.INFO: count ==794 [2025-03-29 00:35:18] Production.ERROR: pbx CDR StartTime 2025-03-28 21:35:05 - End Time 2025-03-29 00:35:05 [2025-03-29 00:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785205', 'tblTempUsageDetail_20' ) start [2025-03-29 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785205', 'tblTempUsageDetail_20' ) end [2025-03-29 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785205', 'tblTempVendorCDR_20' ) start [2025-03-29 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785205', 'tblTempVendorCDR_20' ) end [2025-03-29 00:35:18] Production.INFO: ProcessCDR(1,14785205,1,1,2) [2025-03-29 00:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785205', 'tblTempUsageDetail_20' ) start [2025-03-29 00:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785205', 'tblTempUsageDetail_20' ) end [2025-03-29 00:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 00:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 00:35:21] Production.INFO: ==31870== Releasing lock... [2025-03-29 00:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 00:35:21] Production.INFO: 35 MB #Memory Used# [2025-03-29 00:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 21:36:05 [end_date_ymd] => 2025-03-29 00:36:05 [RateCDR] => 1 ) [2025-03-29 00:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 21:36:05' and `end` < '2025-03-29 00:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 00:36:18] Production.INFO: count ==790 [2025-03-29 00:36:18] Production.ERROR: pbx CDR StartTime 2025-03-28 21:36:05 - End Time 2025-03-29 00:36:05 [2025-03-29 00:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785210', 'tblTempUsageDetail_20' ) start [2025-03-29 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785210', 'tblTempUsageDetail_20' ) end [2025-03-29 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785210', 'tblTempVendorCDR_20' ) start [2025-03-29 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785210', 'tblTempVendorCDR_20' ) end [2025-03-29 00:36:18] Production.INFO: ProcessCDR(1,14785210,1,1,2) [2025-03-29 00:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785210', 'tblTempUsageDetail_20' ) start [2025-03-29 00:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785210', 'tblTempUsageDetail_20' ) end [2025-03-29 00:36:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 00:36:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 00:36:22] Production.INFO: ==31956== Releasing lock... [2025-03-29 00:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 00:36:22] Production.INFO: 34.75 MB #Memory Used# [2025-03-29 00:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 21:37:05 [end_date_ymd] => 2025-03-29 00:37:05 [RateCDR] => 1 ) [2025-03-29 00:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 21:37:05' and `end` < '2025-03-29 00:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 00:37:18] Production.INFO: count ==786 [2025-03-29 00:37:18] Production.ERROR: pbx CDR StartTime 2025-03-28 21:37:05 - End Time 2025-03-29 00:37:05 [2025-03-29 00:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785215', 'tblTempUsageDetail_20' ) start [2025-03-29 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785215', 'tblTempUsageDetail_20' ) end [2025-03-29 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785215', 'tblTempVendorCDR_20' ) start [2025-03-29 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785215', 'tblTempVendorCDR_20' ) end [2025-03-29 00:37:18] Production.INFO: ProcessCDR(1,14785215,1,1,2) [2025-03-29 00:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785215', 'tblTempUsageDetail_20' ) start [2025-03-29 00:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785215', 'tblTempUsageDetail_20' ) end [2025-03-29 00:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 00:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 00:37:21] Production.INFO: ==32042== Releasing lock... [2025-03-29 00:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 00:37:21] Production.INFO: 34.75 MB #Memory Used# [2025-03-29 00:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 21:38:05 [end_date_ymd] => 2025-03-29 00:38:05 [RateCDR] => 1 ) [2025-03-29 00:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 21:38:05' and `end` < '2025-03-29 00:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 00:38:18] Production.INFO: count ==784 [2025-03-29 00:38:18] Production.ERROR: pbx CDR StartTime 2025-03-28 21:38:05 - End Time 2025-03-29 00:38:05 [2025-03-29 00:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785220', 'tblTempUsageDetail_20' ) start [2025-03-29 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785220', 'tblTempUsageDetail_20' ) end [2025-03-29 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785220', 'tblTempVendorCDR_20' ) start [2025-03-29 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785220', 'tblTempVendorCDR_20' ) end [2025-03-29 00:38:18] Production.INFO: ProcessCDR(1,14785220,1,1,2) [2025-03-29 00:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785220', 'tblTempUsageDetail_20' ) start [2025-03-29 00:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785220', 'tblTempUsageDetail_20' ) end [2025-03-29 00:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 00:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 00:38:22] Production.INFO: ==32122== Releasing lock... [2025-03-29 00:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 00:38:22] Production.INFO: 34.5 MB #Memory Used# [2025-03-29 00:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 21:39:05 [end_date_ymd] => 2025-03-29 00:39:05 [RateCDR] => 1 ) [2025-03-29 00:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 21:39:05' and `end` < '2025-03-29 00:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 00:39:17] Production.INFO: count ==785 [2025-03-29 00:39:18] Production.ERROR: pbx CDR StartTime 2025-03-28 21:39:05 - End Time 2025-03-29 00:39:05 [2025-03-29 00:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785225', 'tblTempUsageDetail_20' ) start [2025-03-29 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785225', 'tblTempUsageDetail_20' ) end [2025-03-29 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785225', 'tblTempVendorCDR_20' ) start [2025-03-29 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785225', 'tblTempVendorCDR_20' ) end [2025-03-29 00:39:18] Production.INFO: ProcessCDR(1,14785225,1,1,2) [2025-03-29 00:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785225', 'tblTempUsageDetail_20' ) start [2025-03-29 00:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785225', 'tblTempUsageDetail_20' ) end [2025-03-29 00:39:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 00:39:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 00:39:23] Production.INFO: ==32207== Releasing lock... [2025-03-29 00:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 00:39:23] Production.INFO: 34.5 MB #Memory Used# [2025-03-29 00:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 21:40:06 [end_date_ymd] => 2025-03-29 00:40:06 [RateCDR] => 1 ) [2025-03-29 00:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 21:40:06' and `end` < '2025-03-29 00:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 00:40:19] Production.INFO: count ==805 [2025-03-29 00:40:19] Production.ERROR: pbx CDR StartTime 2025-03-28 21:40:06 - End Time 2025-03-29 00:40:06 [2025-03-29 00:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785231', 'tblTempUsageDetail_20' ) start [2025-03-29 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785231', 'tblTempUsageDetail_20' ) end [2025-03-29 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785231', 'tblTempVendorCDR_20' ) start [2025-03-29 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785231', 'tblTempVendorCDR_20' ) end [2025-03-29 00:40:19] Production.INFO: ProcessCDR(1,14785231,1,1,2) [2025-03-29 00:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785231', 'tblTempUsageDetail_20' ) start [2025-03-29 00:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785231', 'tblTempUsageDetail_20' ) end [2025-03-29 00:40:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 00:40:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 00:40:23] Production.INFO: ==32338== Releasing lock... [2025-03-29 00:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 00:40:23] Production.INFO: 35 MB #Memory Used# [2025-03-29 00:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 21:41:05 [end_date_ymd] => 2025-03-29 00:41:05 [RateCDR] => 1 ) [2025-03-29 00:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 21:41:05' and `end` < '2025-03-29 00:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 00:41:17] Production.INFO: count ==837 [2025-03-29 00:41:18] Production.ERROR: pbx CDR StartTime 2025-03-28 21:41:05 - End Time 2025-03-29 00:41:05 [2025-03-29 00:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785236', 'tblTempUsageDetail_20' ) start [2025-03-29 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785236', 'tblTempUsageDetail_20' ) end [2025-03-29 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785236', 'tblTempVendorCDR_20' ) start [2025-03-29 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785236', 'tblTempVendorCDR_20' ) end [2025-03-29 00:41:18] Production.INFO: ProcessCDR(1,14785236,1,1,2) [2025-03-29 00:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785236', 'tblTempUsageDetail_20' ) start [2025-03-29 00:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785236', 'tblTempUsageDetail_20' ) end [2025-03-29 00:41:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 00:41:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 00:41:23] Production.INFO: ==32428== Releasing lock... [2025-03-29 00:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 00:41:23] Production.INFO: 34.75 MB #Memory Used# [2025-03-29 00:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 21:42:05 [end_date_ymd] => 2025-03-29 00:42:05 [RateCDR] => 1 ) [2025-03-29 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-28 21:42:05' and `end` < '2025-03-29 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-29 00:42:18] Production.INFO: count ==838 [2025-03-29 00:42:18] Production.ERROR: pbx CDR StartTime 2025-03-28 21:42:05 - End Time 2025-03-29 00:42:05 [2025-03-29 00:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785241', 'tblTempUsageDetail_20' ) start [2025-03-29 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785241', 'tblTempUsageDetail_20' ) end [2025-03-29 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785241', 'tblTempVendorCDR_20' ) start [2025-03-29 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785241', 'tblTempVendorCDR_20' ) end [2025-03-29 00:42:18] Production.INFO: ProcessCDR(1,14785241,1,1,2) [2025-03-29 00:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785241', 'tblTempUsageDetail_20' ) start [2025-03-29 00:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785241', 'tblTempUsageDetail_20' ) end [2025-03-29 00:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 00:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 00:42:22] Production.INFO: ==32514== Releasing lock... [2025-03-29 00:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 00:42:22] Production.INFO: 34.75 MB #Memory Used# [2025-03-29 00:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 21:43:06 [end_date_ymd] => 2025-03-29 00:43:06 [RateCDR] => 1 ) [2025-03-29 00:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 21:43:06' and `end` < '2025-03-29 00:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 00:43:19] Production.INFO: count ==842 [2025-03-29 00:43:19] Production.ERROR: pbx CDR StartTime 2025-03-28 21:43:06 - End Time 2025-03-29 00:43:06 [2025-03-29 00:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 00:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785246', 'tblTempUsageDetail_20' ) start [2025-03-29 00:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785246', 'tblTempUsageDetail_20' ) end [2025-03-29 00:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785246', 'tblTempVendorCDR_20' ) start [2025-03-29 00:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785246', 'tblTempVendorCDR_20' ) end [2025-03-29 00:43:19] Production.INFO: ProcessCDR(1,14785246,1,1,2) [2025-03-29 00:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785246', 'tblTempUsageDetail_20' ) start [2025-03-29 00:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785246', 'tblTempUsageDetail_20' ) end [2025-03-29 00:43:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 00:43:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 00:43:23] Production.INFO: ==32595== Releasing lock... [2025-03-29 00:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 00:43:23] Production.INFO: 35 MB #Memory Used# [2025-03-29 00:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 21:44:05 [end_date_ymd] => 2025-03-29 00:44:05 [RateCDR] => 1 ) [2025-03-29 00:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 21:44:05' and `end` < '2025-03-29 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-29 00:44:18] Production.INFO: count ==850 [2025-03-29 00:44:18] Production.ERROR: pbx CDR StartTime 2025-03-28 21:44:05 - End Time 2025-03-29 00:44:05 [2025-03-29 00:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785251', 'tblTempUsageDetail_20' ) start [2025-03-29 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785251', 'tblTempUsageDetail_20' ) end [2025-03-29 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785251', 'tblTempVendorCDR_20' ) start [2025-03-29 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785251', 'tblTempVendorCDR_20' ) end [2025-03-29 00:44:18] Production.INFO: ProcessCDR(1,14785251,1,1,2) [2025-03-29 00:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785251', 'tblTempUsageDetail_20' ) start [2025-03-29 00:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785251', 'tblTempUsageDetail_20' ) end [2025-03-29 00:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 00:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 00:44:22] Production.INFO: ==32682== Releasing lock... [2025-03-29 00:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 00:44:22] Production.INFO: 34.5 MB #Memory Used# [2025-03-29 00:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 21:45:06 [end_date_ymd] => 2025-03-29 00:45:06 [RateCDR] => 1 ) [2025-03-29 00: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-28 21:45:06' and `end` < '2025-03-29 00: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-29 00:45:19] Production.INFO: count ==848 [2025-03-29 00:45:19] Production.ERROR: pbx CDR StartTime 2025-03-28 21:45:06 - End Time 2025-03-29 00:45:06 [2025-03-29 00:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 00:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785256', 'tblTempUsageDetail_20' ) start [2025-03-29 00:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785256', 'tblTempUsageDetail_20' ) end [2025-03-29 00:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785256', 'tblTempVendorCDR_20' ) start [2025-03-29 00:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785256', 'tblTempVendorCDR_20' ) end [2025-03-29 00:45:19] Production.INFO: ProcessCDR(1,14785256,1,1,2) [2025-03-29 00:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785256', 'tblTempUsageDetail_20' ) start [2025-03-29 00:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785256', 'tblTempUsageDetail_20' ) end [2025-03-29 00:45:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 00:45:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 00:45:23] Production.INFO: ==32767== Releasing lock... [2025-03-29 00:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 00:45:23] Production.INFO: 35.25 MB #Memory Used# [2025-03-29 00:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 21:46:05 [end_date_ymd] => 2025-03-29 00:46:05 [RateCDR] => 1 ) [2025-03-29 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-28 21:46:05' and `end` < '2025-03-29 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-29 00:46:17] Production.INFO: count ==849 [2025-03-29 00:46:18] Production.ERROR: pbx CDR StartTime 2025-03-28 21:46:05 - End Time 2025-03-29 00:46:05 [2025-03-29 00:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785261', 'tblTempUsageDetail_20' ) start [2025-03-29 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785261', 'tblTempUsageDetail_20' ) end [2025-03-29 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785261', 'tblTempVendorCDR_20' ) start [2025-03-29 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785261', 'tblTempVendorCDR_20' ) end [2025-03-29 00:46:18] Production.INFO: ProcessCDR(1,14785261,1,1,2) [2025-03-29 00:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785261', 'tblTempUsageDetail_20' ) start [2025-03-29 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785261', 'tblTempUsageDetail_20' ) end [2025-03-29 00:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 00:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 00:46:21] Production.INFO: ==400== Releasing lock... [2025-03-29 00:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 00:46:21] Production.INFO: 34.75 MB #Memory Used# [2025-03-29 00:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 21:47:05 [end_date_ymd] => 2025-03-29 00:47:05 [RateCDR] => 1 ) [2025-03-29 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-28 21:47:05' and `end` < '2025-03-29 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-29 00:47:17] Production.INFO: count ==846 [2025-03-29 00:47:18] Production.ERROR: pbx CDR StartTime 2025-03-28 21:47:05 - End Time 2025-03-29 00:47:05 [2025-03-29 00:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785266', 'tblTempUsageDetail_20' ) start [2025-03-29 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785266', 'tblTempUsageDetail_20' ) end [2025-03-29 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785266', 'tblTempVendorCDR_20' ) start [2025-03-29 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785266', 'tblTempVendorCDR_20' ) end [2025-03-29 00:47:18] Production.INFO: ProcessCDR(1,14785266,1,1,2) [2025-03-29 00:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785266', 'tblTempUsageDetail_20' ) start [2025-03-29 00:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785266', 'tblTempUsageDetail_20' ) end [2025-03-29 00:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 00:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 00:47:21] Production.INFO: ==484== Releasing lock... [2025-03-29 00:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 00:47:21] Production.INFO: 35.25 MB #Memory Used# [2025-03-29 00:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 21:48:05 [end_date_ymd] => 2025-03-29 00:48:05 [RateCDR] => 1 ) [2025-03-29 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-28 21:48:05' and `end` < '2025-03-29 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-29 00:48:18] Production.INFO: count ==845 [2025-03-29 00:48:18] Production.ERROR: pbx CDR StartTime 2025-03-28 21:48:05 - End Time 2025-03-29 00:48:05 [2025-03-29 00:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785271', 'tblTempUsageDetail_20' ) start [2025-03-29 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785271', 'tblTempUsageDetail_20' ) end [2025-03-29 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785271', 'tblTempVendorCDR_20' ) start [2025-03-29 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785271', 'tblTempVendorCDR_20' ) end [2025-03-29 00:48:18] Production.INFO: ProcessCDR(1,14785271,1,1,2) [2025-03-29 00:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785271', 'tblTempUsageDetail_20' ) start [2025-03-29 00:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785271', 'tblTempUsageDetail_20' ) end [2025-03-29 00:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 00:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 00:48:22] Production.INFO: ==565== Releasing lock... [2025-03-29 00:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 00:48:22] Production.INFO: 35 MB #Memory Used# [2025-03-29 00:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 21:49:05 [end_date_ymd] => 2025-03-29 00:49:05 [RateCDR] => 1 ) [2025-03-29 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-28 21:49:05' and `end` < '2025-03-29 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-29 00:49:18] Production.INFO: count ==846 [2025-03-29 00:49:18] Production.ERROR: pbx CDR StartTime 2025-03-28 21:49:05 - End Time 2025-03-29 00:49:05 [2025-03-29 00:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785276', 'tblTempUsageDetail_20' ) start [2025-03-29 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785276', 'tblTempUsageDetail_20' ) end [2025-03-29 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785276', 'tblTempVendorCDR_20' ) start [2025-03-29 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785276', 'tblTempVendorCDR_20' ) end [2025-03-29 00:49:18] Production.INFO: ProcessCDR(1,14785276,1,1,2) [2025-03-29 00:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785276', 'tblTempUsageDetail_20' ) start [2025-03-29 00:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785276', 'tblTempUsageDetail_20' ) end [2025-03-29 00:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 00:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 00:49:22] Production.INFO: ==664== Releasing lock... [2025-03-29 00:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 00:49:22] Production.INFO: 34.75 MB #Memory Used# [2025-03-29 00:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 21:50:06 [end_date_ymd] => 2025-03-29 00:50:06 [RateCDR] => 1 ) [2025-03-29 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-28 21:50:06' and `end` < '2025-03-29 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-29 00:50:19] Production.INFO: count ==850 [2025-03-29 00:50:19] Production.ERROR: pbx CDR StartTime 2025-03-28 21:50:06 - End Time 2025-03-29 00:50:06 [2025-03-29 00:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785281', 'tblTempUsageDetail_20' ) start [2025-03-29 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785281', 'tblTempUsageDetail_20' ) end [2025-03-29 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785281', 'tblTempVendorCDR_20' ) start [2025-03-29 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785281', 'tblTempVendorCDR_20' ) end [2025-03-29 00:50:19] Production.INFO: ProcessCDR(1,14785281,1,1,2) [2025-03-29 00:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785281', 'tblTempUsageDetail_20' ) start [2025-03-29 00:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785281', 'tblTempUsageDetail_20' ) end [2025-03-29 00:50:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 00:50:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 00:50:24] Production.INFO: ==772== Releasing lock... [2025-03-29 00:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 00:50:24] Production.INFO: 35.25 MB #Memory Used# [2025-03-29 00:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 21:51:05 [end_date_ymd] => 2025-03-29 00:51:05 [RateCDR] => 1 ) [2025-03-29 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-28 21:51:05' and `end` < '2025-03-29 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-29 00:51:18] Production.INFO: count ==859 [2025-03-29 00:51:18] Production.ERROR: pbx CDR StartTime 2025-03-28 21:51:05 - End Time 2025-03-29 00:51:05 [2025-03-29 00:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785287', 'tblTempUsageDetail_20' ) start [2025-03-29 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785287', 'tblTempUsageDetail_20' ) end [2025-03-29 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785287', 'tblTempVendorCDR_20' ) start [2025-03-29 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785287', 'tblTempVendorCDR_20' ) end [2025-03-29 00:51:18] Production.INFO: ProcessCDR(1,14785287,1,1,2) [2025-03-29 00:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785287', 'tblTempUsageDetail_20' ) start [2025-03-29 00:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785287', 'tblTempUsageDetail_20' ) end [2025-03-29 00:51:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 00:51:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 00:51:23] Production.INFO: ==852== Releasing lock... [2025-03-29 00:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 00:51:23] Production.INFO: 35.25 MB #Memory Used# [2025-03-29 00:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 21:52:05 [end_date_ymd] => 2025-03-29 00:52:05 [RateCDR] => 1 ) [2025-03-29 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-28 21:52:05' and `end` < '2025-03-29 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-29 00:52:18] Production.INFO: count ==845 [2025-03-29 00:52:18] Production.ERROR: pbx CDR StartTime 2025-03-28 21:52:05 - End Time 2025-03-29 00:52:05 [2025-03-29 00:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785292', 'tblTempUsageDetail_20' ) start [2025-03-29 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785292', 'tblTempUsageDetail_20' ) end [2025-03-29 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785292', 'tblTempVendorCDR_20' ) start [2025-03-29 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785292', 'tblTempVendorCDR_20' ) end [2025-03-29 00:52:18] Production.INFO: ProcessCDR(1,14785292,1,1,2) [2025-03-29 00:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785292', 'tblTempUsageDetail_20' ) start [2025-03-29 00:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785292', 'tblTempUsageDetail_20' ) end [2025-03-29 00:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 00:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 00:52:22] Production.INFO: ==936== Releasing lock... [2025-03-29 00:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 00:52:22] Production.INFO: 34.75 MB #Memory Used# [2025-03-29 00:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 21:53:05 [end_date_ymd] => 2025-03-29 00:53:05 [RateCDR] => 1 ) [2025-03-29 00:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 21:53:05' and `end` < '2025-03-29 00:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 00:53:17] Production.INFO: count ==854 [2025-03-29 00:53:18] Production.ERROR: pbx CDR StartTime 2025-03-28 21:53:05 - End Time 2025-03-29 00:53:05 [2025-03-29 00:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785297', 'tblTempUsageDetail_20' ) start [2025-03-29 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785297', 'tblTempUsageDetail_20' ) end [2025-03-29 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785297', 'tblTempVendorCDR_20' ) start [2025-03-29 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785297', 'tblTempVendorCDR_20' ) end [2025-03-29 00:53:18] Production.INFO: ProcessCDR(1,14785297,1,1,2) [2025-03-29 00:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785297', 'tblTempUsageDetail_20' ) start [2025-03-29 00:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785297', 'tblTempUsageDetail_20' ) end [2025-03-29 00:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 00:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 00:53:21] Production.INFO: ==1025== Releasing lock... [2025-03-29 00:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 00:53:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-29 00:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 21:54:05 [end_date_ymd] => 2025-03-29 00:54:05 [RateCDR] => 1 ) [2025-03-29 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-28 21:54:05' and `end` < '2025-03-29 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-29 00:54:18] Production.INFO: count ==849 [2025-03-29 00:54:18] Production.ERROR: pbx CDR StartTime 2025-03-28 21:54:05 - End Time 2025-03-29 00:54:05 [2025-03-29 00:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785302', 'tblTempUsageDetail_20' ) start [2025-03-29 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785302', 'tblTempUsageDetail_20' ) end [2025-03-29 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785302', 'tblTempVendorCDR_20' ) start [2025-03-29 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785302', 'tblTempVendorCDR_20' ) end [2025-03-29 00:54:18] Production.INFO: ProcessCDR(1,14785302,1,1,2) [2025-03-29 00:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785302', 'tblTempUsageDetail_20' ) start [2025-03-29 00:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785302', 'tblTempUsageDetail_20' ) end [2025-03-29 00:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 00:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 00:54:22] Production.INFO: ==1108== Releasing lock... [2025-03-29 00:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 00:54:22] Production.INFO: 34.75 MB #Memory Used# [2025-03-29 00:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 21:55:06 [end_date_ymd] => 2025-03-29 00:55:06 [RateCDR] => 1 ) [2025-03-29 00:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 21:55:06' and `end` < '2025-03-29 00:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 00:55:18] Production.INFO: count ==847 [2025-03-29 00:55:19] Production.ERROR: pbx CDR StartTime 2025-03-28 21:55:06 - End Time 2025-03-29 00:55:06 [2025-03-29 00:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 00:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785307', 'tblTempUsageDetail_20' ) start [2025-03-29 00:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785307', 'tblTempUsageDetail_20' ) end [2025-03-29 00:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785307', 'tblTempVendorCDR_20' ) start [2025-03-29 00:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785307', 'tblTempVendorCDR_20' ) end [2025-03-29 00:55:19] Production.INFO: ProcessCDR(1,14785307,1,1,2) [2025-03-29 00:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785307', 'tblTempUsageDetail_20' ) start [2025-03-29 00:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785307', 'tblTempUsageDetail_20' ) end [2025-03-29 00:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 00:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 00:55:22] Production.INFO: ==1236== Releasing lock... [2025-03-29 00:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 00:55:22] Production.INFO: 35 MB #Memory Used# [2025-03-29 00:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 21:56:05 [end_date_ymd] => 2025-03-29 00:56:05 [RateCDR] => 1 ) [2025-03-29 00:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 21:56:05' and `end` < '2025-03-29 00:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 00:56:17] Production.INFO: count ==834 [2025-03-29 00:56:18] Production.ERROR: pbx CDR StartTime 2025-03-28 21:56:05 - End Time 2025-03-29 00:56:05 [2025-03-29 00:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785312', 'tblTempUsageDetail_20' ) start [2025-03-29 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785312', 'tblTempUsageDetail_20' ) end [2025-03-29 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785312', 'tblTempVendorCDR_20' ) start [2025-03-29 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785312', 'tblTempVendorCDR_20' ) end [2025-03-29 00:56:18] Production.INFO: ProcessCDR(1,14785312,1,1,2) [2025-03-29 00:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785312', 'tblTempUsageDetail_20' ) start [2025-03-29 00:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785312', 'tblTempUsageDetail_20' ) end [2025-03-29 00:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 00:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 00:56:21] Production.INFO: ==1334== Releasing lock... [2025-03-29 00:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 00:56:21] Production.INFO: 35 MB #Memory Used# [2025-03-29 00:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 21:57:05 [end_date_ymd] => 2025-03-29 00:57:05 [RateCDR] => 1 ) [2025-03-29 00:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 21:57:05' and `end` < '2025-03-29 00:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 00:57:18] Production.INFO: count ==836 [2025-03-29 00:57:18] Production.ERROR: pbx CDR StartTime 2025-03-28 21:57:05 - End Time 2025-03-29 00:57:05 [2025-03-29 00:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785317', 'tblTempUsageDetail_20' ) start [2025-03-29 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785317', 'tblTempUsageDetail_20' ) end [2025-03-29 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785317', 'tblTempVendorCDR_20' ) start [2025-03-29 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785317', 'tblTempVendorCDR_20' ) end [2025-03-29 00:57:18] Production.INFO: ProcessCDR(1,14785317,1,1,2) [2025-03-29 00:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785317', 'tblTempUsageDetail_20' ) start [2025-03-29 00:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785317', 'tblTempUsageDetail_20' ) end [2025-03-29 00:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 00:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 00:57:22] Production.INFO: ==1416== Releasing lock... [2025-03-29 00:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 00:57:22] Production.INFO: 34.75 MB #Memory Used# [2025-03-29 00:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 21:58:05 [end_date_ymd] => 2025-03-29 00:58:05 [RateCDR] => 1 ) [2025-03-29 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-28 21:58:05' and `end` < '2025-03-29 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-29 00:58:18] Production.INFO: count ==840 [2025-03-29 00:58:18] Production.ERROR: pbx CDR StartTime 2025-03-28 21:58:05 - End Time 2025-03-29 00:58:05 [2025-03-29 00:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785322', 'tblTempUsageDetail_20' ) start [2025-03-29 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785322', 'tblTempUsageDetail_20' ) end [2025-03-29 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785322', 'tblTempVendorCDR_20' ) start [2025-03-29 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785322', 'tblTempVendorCDR_20' ) end [2025-03-29 00:58:18] Production.INFO: ProcessCDR(1,14785322,1,1,2) [2025-03-29 00:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785322', 'tblTempUsageDetail_20' ) start [2025-03-29 00:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785322', 'tblTempUsageDetail_20' ) end [2025-03-29 00:58:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 00:58:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 00:58:23] Production.INFO: ==1499== Releasing lock... [2025-03-29 00:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 00:58:24] Production.INFO: 34.75 MB #Memory Used# [2025-03-29 00:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 21:59:05 [end_date_ymd] => 2025-03-29 00:59:05 [RateCDR] => 1 ) [2025-03-29 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-28 21:59:05' and `end` < '2025-03-29 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-29 00:59:18] Production.INFO: count ==834 [2025-03-29 00:59:18] Production.ERROR: pbx CDR StartTime 2025-03-28 21:59:05 - End Time 2025-03-29 00:59:05 [2025-03-29 00:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785327', 'tblTempUsageDetail_20' ) start [2025-03-29 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785327', 'tblTempUsageDetail_20' ) end [2025-03-29 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785327', 'tblTempVendorCDR_20' ) start [2025-03-29 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785327', 'tblTempVendorCDR_20' ) end [2025-03-29 00:59:18] Production.INFO: ProcessCDR(1,14785327,1,1,2) [2025-03-29 00:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 00:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 00:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785327', 'tblTempUsageDetail_20' ) start [2025-03-29 00:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785327', 'tblTempUsageDetail_20' ) end [2025-03-29 00:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 00:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 00:59:22] Production.INFO: ==1624== Releasing lock... [2025-03-29 00:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 00:59:22] Production.INFO: 35.25 MB #Memory Used# [2025-03-29 01:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 22:00:06 [end_date_ymd] => 2025-03-29 01:00:06 [RateCDR] => 1 ) [2025-03-29 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-28 22:00:06' and `end` < '2025-03-29 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-29 01:00:18] Production.INFO: count ==837 [2025-03-29 01:00:19] Production.ERROR: pbx CDR StartTime 2025-03-28 22:00:06 - End Time 2025-03-29 01:00:06 [2025-03-29 01:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785333', 'tblTempUsageDetail_20' ) start [2025-03-29 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785333', 'tblTempUsageDetail_20' ) end [2025-03-29 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785333', 'tblTempVendorCDR_20' ) start [2025-03-29 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785333', 'tblTempVendorCDR_20' ) end [2025-03-29 01:00:19] Production.INFO: ProcessCDR(1,14785333,1,1,2) [2025-03-29 01:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785333', 'tblTempUsageDetail_20' ) start [2025-03-29 01:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785333', 'tblTempUsageDetail_20' ) end [2025-03-29 01:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 01:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 01:00:22] Production.INFO: ==1716== Releasing lock... [2025-03-29 01:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 01:00:22] Production.INFO: 35 MB #Memory Used# [2025-03-29 01:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 22:01:06 [end_date_ymd] => 2025-03-29 01:01:06 [RateCDR] => 1 ) [2025-03-29 01: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-28 22:01:06' and `end` < '2025-03-29 01: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-29 01:01:19] Production.INFO: count ==833 [2025-03-29 01:01:19] Production.ERROR: pbx CDR StartTime 2025-03-28 22:01:06 - End Time 2025-03-29 01:01:06 [2025-03-29 01:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 01:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785338', 'tblTempUsageDetail_20' ) start [2025-03-29 01:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785338', 'tblTempUsageDetail_20' ) end [2025-03-29 01:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785338', 'tblTempVendorCDR_20' ) start [2025-03-29 01:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785338', 'tblTempVendorCDR_20' ) end [2025-03-29 01:01:19] Production.INFO: ProcessCDR(1,14785338,1,1,2) [2025-03-29 01:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785338', 'tblTempUsageDetail_20' ) start [2025-03-29 01:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785338', 'tblTempUsageDetail_20' ) end [2025-03-29 01:01:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 01:01:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 01:01:22] Production.INFO: ==1818== Releasing lock... [2025-03-29 01:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 01:01:22] Production.INFO: 34.25 MB #Memory Used# [2025-03-29 01:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 22:02:05 [end_date_ymd] => 2025-03-29 01:02:05 [RateCDR] => 1 ) [2025-03-29 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-28 22:02:05' and `end` < '2025-03-29 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-29 01:02:17] Production.INFO: count ==828 [2025-03-29 01:02:18] Production.ERROR: pbx CDR StartTime 2025-03-28 22:02:05 - End Time 2025-03-29 01:02:05 [2025-03-29 01:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785343', 'tblTempUsageDetail_20' ) start [2025-03-29 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785343', 'tblTempUsageDetail_20' ) end [2025-03-29 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785343', 'tblTempVendorCDR_20' ) start [2025-03-29 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785343', 'tblTempVendorCDR_20' ) end [2025-03-29 01:02:18] Production.INFO: ProcessCDR(1,14785343,1,1,2) [2025-03-29 01:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785343', 'tblTempUsageDetail_20' ) start [2025-03-29 01:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785343', 'tblTempUsageDetail_20' ) end [2025-03-29 01:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 01:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 01:02:21] Production.INFO: ==1904== Releasing lock... [2025-03-29 01:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 01:02:21] Production.INFO: 34 MB #Memory Used# [2025-03-29 01:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 22:03:06 [end_date_ymd] => 2025-03-29 01:03:06 [RateCDR] => 1 ) [2025-03-29 01: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-28 22:03:06' and `end` < '2025-03-29 01: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-29 01:03:18] Production.INFO: count ==836 [2025-03-29 01:03:19] Production.ERROR: pbx CDR StartTime 2025-03-28 22:03:06 - End Time 2025-03-29 01:03:06 [2025-03-29 01:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 01:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785348', 'tblTempUsageDetail_20' ) start [2025-03-29 01:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785348', 'tblTempUsageDetail_20' ) end [2025-03-29 01:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785348', 'tblTempVendorCDR_20' ) start [2025-03-29 01:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785348', 'tblTempVendorCDR_20' ) end [2025-03-29 01:03:19] Production.INFO: ProcessCDR(1,14785348,1,1,2) [2025-03-29 01:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785348', 'tblTempUsageDetail_20' ) start [2025-03-29 01:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785348', 'tblTempUsageDetail_20' ) end [2025-03-29 01:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 01:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 01:03:22] Production.INFO: ==1997== Releasing lock... [2025-03-29 01:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 01:03:22] Production.INFO: 35.25 MB #Memory Used# [2025-03-29 01:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 22:04:05 [end_date_ymd] => 2025-03-29 01:04:05 [RateCDR] => 1 ) [2025-03-29 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-28 22:04:05' and `end` < '2025-03-29 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-29 01:04:18] Production.INFO: count ==842 [2025-03-29 01:04:18] Production.ERROR: pbx CDR StartTime 2025-03-28 22:04:05 - End Time 2025-03-29 01:04:05 [2025-03-29 01:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785353', 'tblTempUsageDetail_20' ) start [2025-03-29 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785353', 'tblTempUsageDetail_20' ) end [2025-03-29 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785353', 'tblTempVendorCDR_20' ) start [2025-03-29 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785353', 'tblTempVendorCDR_20' ) end [2025-03-29 01:04:18] Production.INFO: ProcessCDR(1,14785353,1,1,2) [2025-03-29 01:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785353', 'tblTempUsageDetail_20' ) start [2025-03-29 01:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785353', 'tblTempUsageDetail_20' ) end [2025-03-29 01:04:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 01:04:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 01:04:23] Production.INFO: ==2095== Releasing lock... [2025-03-29 01:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 01:04:23] Production.INFO: 35 MB #Memory Used# [2025-03-29 01:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 22:05:05 [end_date_ymd] => 2025-03-29 01:05:05 [RateCDR] => 1 ) [2025-03-29 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-28 22:05:05' and `end` < '2025-03-29 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-29 01:05:18] Production.INFO: count ==860 [2025-03-29 01:05:18] Production.ERROR: pbx CDR StartTime 2025-03-28 22:05:05 - End Time 2025-03-29 01:05:05 [2025-03-29 01:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785358', 'tblTempUsageDetail_20' ) start [2025-03-29 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785358', 'tblTempUsageDetail_20' ) end [2025-03-29 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785358', 'tblTempVendorCDR_20' ) start [2025-03-29 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785358', 'tblTempVendorCDR_20' ) end [2025-03-29 01:05:18] Production.INFO: ProcessCDR(1,14785358,1,1,2) [2025-03-29 01:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785358', 'tblTempUsageDetail_20' ) start [2025-03-29 01:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785358', 'tblTempUsageDetail_20' ) end [2025-03-29 01:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 01:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 01:05:22] Production.INFO: ==2194== Releasing lock... [2025-03-29 01:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 01:05:22] Production.INFO: 35.25 MB #Memory Used# [2025-03-29 01:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 22:06:05 [end_date_ymd] => 2025-03-29 01:06:05 [RateCDR] => 1 ) [2025-03-29 01:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 22:06:05' and `end` < '2025-03-29 01:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 01:06:17] Production.INFO: count ==860 [2025-03-29 01:06:18] Production.ERROR: pbx CDR StartTime 2025-03-28 22:06:05 - End Time 2025-03-29 01:06:05 [2025-03-29 01:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785363', 'tblTempUsageDetail_20' ) start [2025-03-29 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785363', 'tblTempUsageDetail_20' ) end [2025-03-29 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785363', 'tblTempVendorCDR_20' ) start [2025-03-29 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785363', 'tblTempVendorCDR_20' ) end [2025-03-29 01:06:18] Production.INFO: ProcessCDR(1,14785363,1,1,2) [2025-03-29 01:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785363', 'tblTempUsageDetail_20' ) start [2025-03-29 01:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785363', 'tblTempUsageDetail_20' ) end [2025-03-29 01:06:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 01:06:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 01:06:23] Production.INFO: ==2286== Releasing lock... [2025-03-29 01:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 01:06:23] Production.INFO: 34.75 MB #Memory Used# [2025-03-29 01:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 22:07:06 [end_date_ymd] => 2025-03-29 01:07:06 [RateCDR] => 1 ) [2025-03-29 01: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-28 22:07:06' and `end` < '2025-03-29 01: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-29 01:07:18] Production.INFO: count ==860 [2025-03-29 01:07:19] Production.ERROR: pbx CDR StartTime 2025-03-28 22:07:06 - End Time 2025-03-29 01:07:06 [2025-03-29 01:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 01:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785368', 'tblTempUsageDetail_20' ) start [2025-03-29 01:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785368', 'tblTempUsageDetail_20' ) end [2025-03-29 01:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785368', 'tblTempVendorCDR_20' ) start [2025-03-29 01:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785368', 'tblTempVendorCDR_20' ) end [2025-03-29 01:07:19] Production.INFO: ProcessCDR(1,14785368,1,1,2) [2025-03-29 01:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785368', 'tblTempUsageDetail_20' ) start [2025-03-29 01:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785368', 'tblTempUsageDetail_20' ) end [2025-03-29 01:07:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 01:07:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 01:07:22] Production.INFO: ==2384== Releasing lock... [2025-03-29 01:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 01:07:22] Production.INFO: 34.75 MB #Memory Used# [2025-03-29 01:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 22:08:04 [end_date_ymd] => 2025-03-29 01:08:04 [RateCDR] => 1 ) [2025-03-29 01:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 22:08:04' and `end` < '2025-03-29 01:08:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 01:08:17] Production.INFO: count ==862 [2025-03-29 01:08:17] Production.ERROR: pbx CDR StartTime 2025-03-28 22:08:04 - End Time 2025-03-29 01:08:04 [2025-03-29 01:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785373', 'tblTempUsageDetail_20' ) start [2025-03-29 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785373', 'tblTempUsageDetail_20' ) end [2025-03-29 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785373', 'tblTempVendorCDR_20' ) start [2025-03-29 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785373', 'tblTempVendorCDR_20' ) end [2025-03-29 01:08:17] Production.INFO: ProcessCDR(1,14785373,1,1,2) [2025-03-29 01:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785373', 'tblTempUsageDetail_20' ) start [2025-03-29 01:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785373', 'tblTempUsageDetail_20' ) end [2025-03-29 01:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 01:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 01:08:21] Production.INFO: ==2467== Releasing lock... [2025-03-29 01:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 01:08:21] Production.INFO: 35.25 MB #Memory Used# [2025-03-29 01:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 22:09:05 [end_date_ymd] => 2025-03-29 01:09:05 [RateCDR] => 1 ) [2025-03-29 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-28 22:09:05' and `end` < '2025-03-29 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-29 01:09:18] Production.INFO: count ==842 [2025-03-29 01:09:18] Production.ERROR: pbx CDR StartTime 2025-03-28 22:09:05 - End Time 2025-03-29 01:09:05 [2025-03-29 01:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785378', 'tblTempUsageDetail_20' ) start [2025-03-29 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785378', 'tblTempUsageDetail_20' ) end [2025-03-29 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785378', 'tblTempVendorCDR_20' ) start [2025-03-29 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785378', 'tblTempVendorCDR_20' ) end [2025-03-29 01:09:18] Production.INFO: ProcessCDR(1,14785378,1,1,2) [2025-03-29 01:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785378', 'tblTempUsageDetail_20' ) start [2025-03-29 01:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785378', 'tblTempUsageDetail_20' ) end [2025-03-29 01:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 01:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 01:09:21] Production.INFO: ==2544== Releasing lock... [2025-03-29 01:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 01:09:21] Production.INFO: 35 MB #Memory Used# [2025-03-29 01:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 22:10:07 [end_date_ymd] => 2025-03-29 01:10:07 [RateCDR] => 1 ) [2025-03-29 01: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-28 22:10:07' and `end` < '2025-03-29 01: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-29 01:10:19] Production.INFO: count ==853 [2025-03-29 01:10:20] Production.ERROR: pbx CDR StartTime 2025-03-28 22:10:07 - End Time 2025-03-29 01:10:07 [2025-03-29 01:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 01:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785384', 'tblTempUsageDetail_20' ) start [2025-03-29 01:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785384', 'tblTempUsageDetail_20' ) end [2025-03-29 01:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785384', 'tblTempVendorCDR_20' ) start [2025-03-29 01:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785384', 'tblTempVendorCDR_20' ) end [2025-03-29 01:10:20] Production.INFO: ProcessCDR(1,14785384,1,1,2) [2025-03-29 01:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785384', 'tblTempUsageDetail_20' ) start [2025-03-29 01:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785384', 'tblTempUsageDetail_20' ) end [2025-03-29 01:10:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 01:10:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 01:10:24] Production.INFO: ==2664== Releasing lock... [2025-03-29 01:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 01:10:24] Production.INFO: 35 MB #Memory Used# [2025-03-29 01:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 22:11:05 [end_date_ymd] => 2025-03-29 01:11:05 [RateCDR] => 1 ) [2025-03-29 01:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 22:11:05' and `end` < '2025-03-29 01:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 01:11:18] Production.INFO: count ==861 [2025-03-29 01:11:18] Production.ERROR: pbx CDR StartTime 2025-03-28 22:11:05 - End Time 2025-03-29 01:11:05 [2025-03-29 01:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785389', 'tblTempUsageDetail_20' ) start [2025-03-29 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785389', 'tblTempUsageDetail_20' ) end [2025-03-29 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785389', 'tblTempVendorCDR_20' ) start [2025-03-29 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785389', 'tblTempVendorCDR_20' ) end [2025-03-29 01:11:18] Production.INFO: ProcessCDR(1,14785389,1,1,2) [2025-03-29 01:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785389', 'tblTempUsageDetail_20' ) start [2025-03-29 01:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785389', 'tblTempUsageDetail_20' ) end [2025-03-29 01:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 01:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 01:11:21] Production.INFO: ==2746== Releasing lock... [2025-03-29 01:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 01:11:21] Production.INFO: 34.75 MB #Memory Used# [2025-03-29 01:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 22:12:06 [end_date_ymd] => 2025-03-29 01:12:06 [RateCDR] => 1 ) [2025-03-29 01:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 22:12:06' and `end` < '2025-03-29 01:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 01:12:18] Production.INFO: count ==856 [2025-03-29 01:12:19] Production.ERROR: pbx CDR StartTime 2025-03-28 22:12:06 - End Time 2025-03-29 01:12:06 [2025-03-29 01:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 01:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785394', 'tblTempUsageDetail_20' ) start [2025-03-29 01:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785394', 'tblTempUsageDetail_20' ) end [2025-03-29 01:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785394', 'tblTempVendorCDR_20' ) start [2025-03-29 01:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785394', 'tblTempVendorCDR_20' ) end [2025-03-29 01:12:19] Production.INFO: ProcessCDR(1,14785394,1,1,2) [2025-03-29 01:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785394', 'tblTempUsageDetail_20' ) start [2025-03-29 01:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785394', 'tblTempUsageDetail_20' ) end [2025-03-29 01:12:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 01:12:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 01:12:22] Production.INFO: ==2821== Releasing lock... [2025-03-29 01:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 01:12:22] Production.INFO: 34.75 MB #Memory Used# [2025-03-29 01:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 22:13:05 [end_date_ymd] => 2025-03-29 01:13:05 [RateCDR] => 1 ) [2025-03-29 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-28 22:13:05' and `end` < '2025-03-29 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-29 01:13:18] Production.INFO: count ==850 [2025-03-29 01:13:18] Production.ERROR: pbx CDR StartTime 2025-03-28 22:13:05 - End Time 2025-03-29 01:13:05 [2025-03-29 01:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785399', 'tblTempUsageDetail_20' ) start [2025-03-29 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785399', 'tblTempUsageDetail_20' ) end [2025-03-29 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785399', 'tblTempVendorCDR_20' ) start [2025-03-29 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785399', 'tblTempVendorCDR_20' ) end [2025-03-29 01:13:18] Production.INFO: ProcessCDR(1,14785399,1,1,2) [2025-03-29 01:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785399', 'tblTempUsageDetail_20' ) start [2025-03-29 01:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785399', 'tblTempUsageDetail_20' ) end [2025-03-29 01:13:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 01:13:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 01:13:23] Production.INFO: ==2891== Releasing lock... [2025-03-29 01:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 01:13:23] Production.INFO: 34.75 MB #Memory Used# [2025-03-29 01:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 22:14:06 [end_date_ymd] => 2025-03-29 01:14:06 [RateCDR] => 1 ) [2025-03-29 01: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-28 22:14:06' and `end` < '2025-03-29 01: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-29 01:14:18] Production.INFO: count ==844 [2025-03-29 01:14:18] Production.ERROR: pbx CDR StartTime 2025-03-28 22:14:06 - End Time 2025-03-29 01:14:06 [2025-03-29 01:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785404', 'tblTempUsageDetail_20' ) start [2025-03-29 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785404', 'tblTempUsageDetail_20' ) end [2025-03-29 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785404', 'tblTempVendorCDR_20' ) start [2025-03-29 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785404', 'tblTempVendorCDR_20' ) end [2025-03-29 01:14:18] Production.INFO: ProcessCDR(1,14785404,1,1,2) [2025-03-29 01:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785404', 'tblTempUsageDetail_20' ) start [2025-03-29 01:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785404', 'tblTempUsageDetail_20' ) end [2025-03-29 01:14:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 01:14:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 01:14:22] Production.INFO: ==2968== Releasing lock... [2025-03-29 01:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 01:14:22] Production.INFO: 34.5 MB #Memory Used# [2025-03-29 01:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 22:15:05 [end_date_ymd] => 2025-03-29 01:15:05 [RateCDR] => 1 ) [2025-03-29 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-28 22:15:05' and `end` < '2025-03-29 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-29 01:15:17] Production.INFO: count ==831 [2025-03-29 01:15:18] Production.ERROR: pbx CDR StartTime 2025-03-28 22:15:05 - End Time 2025-03-29 01:15:05 [2025-03-29 01:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785409', 'tblTempUsageDetail_20' ) start [2025-03-29 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785409', 'tblTempUsageDetail_20' ) end [2025-03-29 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785409', 'tblTempVendorCDR_20' ) start [2025-03-29 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785409', 'tblTempVendorCDR_20' ) end [2025-03-29 01:15:18] Production.INFO: ProcessCDR(1,14785409,1,1,2) [2025-03-29 01:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785409', 'tblTempUsageDetail_20' ) start [2025-03-29 01:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785409', 'tblTempUsageDetail_20' ) end [2025-03-29 01:15:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 01:15:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 01:15:23] Production.INFO: ==3047== Releasing lock... [2025-03-29 01:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 01:15:23] Production.INFO: 34.75 MB #Memory Used# [2025-03-29 01:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 22:16:06 [end_date_ymd] => 2025-03-29 01:16:06 [RateCDR] => 1 ) [2025-03-29 01:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 22:16:06' and `end` < '2025-03-29 01:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 01:16:18] Production.INFO: count ==842 [2025-03-29 01:16:18] Production.ERROR: pbx CDR StartTime 2025-03-28 22:16:06 - End Time 2025-03-29 01:16:06 [2025-03-29 01:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785414', 'tblTempUsageDetail_20' ) start [2025-03-29 01:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785414', 'tblTempUsageDetail_20' ) end [2025-03-29 01:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785414', 'tblTempVendorCDR_20' ) start [2025-03-29 01:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785414', 'tblTempVendorCDR_20' ) end [2025-03-29 01:16:19] Production.INFO: ProcessCDR(1,14785414,1,1,2) [2025-03-29 01:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785414', 'tblTempUsageDetail_20' ) start [2025-03-29 01:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785414', 'tblTempUsageDetail_20' ) end [2025-03-29 01:16:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 01:16:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 01:16:22] Production.INFO: ==3121== Releasing lock... [2025-03-29 01:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 01:16:22] Production.INFO: 34.5 MB #Memory Used# [2025-03-29 01:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 22:17:05 [end_date_ymd] => 2025-03-29 01:17:05 [RateCDR] => 1 ) [2025-03-29 01:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 22:17:05' and `end` < '2025-03-29 01:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 01:17:18] Production.INFO: count ==844 [2025-03-29 01:17:18] Production.ERROR: pbx CDR StartTime 2025-03-28 22:17:05 - End Time 2025-03-29 01:17:05 [2025-03-29 01:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785419', 'tblTempUsageDetail_20' ) start [2025-03-29 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785419', 'tblTempUsageDetail_20' ) end [2025-03-29 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785419', 'tblTempVendorCDR_20' ) start [2025-03-29 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785419', 'tblTempVendorCDR_20' ) end [2025-03-29 01:17:18] Production.INFO: ProcessCDR(1,14785419,1,1,2) [2025-03-29 01:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785419', 'tblTempUsageDetail_20' ) start [2025-03-29 01:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785419', 'tblTempUsageDetail_20' ) end [2025-03-29 01:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 01:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 01:17:22] Production.INFO: ==3196== Releasing lock... [2025-03-29 01:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 01:17:22] Production.INFO: 34.25 MB #Memory Used# [2025-03-29 01:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 22:18:06 [end_date_ymd] => 2025-03-29 01:18:06 [RateCDR] => 1 ) [2025-03-29 01: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-28 22:18:06' and `end` < '2025-03-29 01: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-29 01:18:18] Production.INFO: count ==861 [2025-03-29 01:18:19] Production.ERROR: pbx CDR StartTime 2025-03-28 22:18:06 - End Time 2025-03-29 01:18:06 [2025-03-29 01:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 01:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785424', 'tblTempUsageDetail_20' ) start [2025-03-29 01:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785424', 'tblTempUsageDetail_20' ) end [2025-03-29 01:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785424', 'tblTempVendorCDR_20' ) start [2025-03-29 01:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785424', 'tblTempVendorCDR_20' ) end [2025-03-29 01:18:19] Production.INFO: ProcessCDR(1,14785424,1,1,2) [2025-03-29 01:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785424', 'tblTempUsageDetail_20' ) start [2025-03-29 01:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785424', 'tblTempUsageDetail_20' ) end [2025-03-29 01:18:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 01:18:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 01:18:22] Production.INFO: ==3279== Releasing lock... [2025-03-29 01:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 01:18:22] Production.INFO: 35.25 MB #Memory Used# [2025-03-29 01:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 22:19:04 [end_date_ymd] => 2025-03-29 01:19:04 [RateCDR] => 1 ) [2025-03-29 01: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-28 22:19:04' and `end` < '2025-03-29 01: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-29 01:19:17] Production.INFO: count ==853 [2025-03-29 01:19:17] Production.ERROR: pbx CDR StartTime 2025-03-28 22:19:04 - End Time 2025-03-29 01:19:04 [2025-03-29 01:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785429', 'tblTempUsageDetail_20' ) start [2025-03-29 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785429', 'tblTempUsageDetail_20' ) end [2025-03-29 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785429', 'tblTempVendorCDR_20' ) start [2025-03-29 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785429', 'tblTempVendorCDR_20' ) end [2025-03-29 01:19:17] Production.INFO: ProcessCDR(1,14785429,1,1,2) [2025-03-29 01:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785429', 'tblTempUsageDetail_20' ) start [2025-03-29 01:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785429', 'tblTempUsageDetail_20' ) end [2025-03-29 01:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 01:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 01:19:21] Production.INFO: ==3351== Releasing lock... [2025-03-29 01:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 01:19:21] Production.INFO: 35 MB #Memory Used# [2025-03-29 01:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 22:20:06 [end_date_ymd] => 2025-03-29 01:20:06 [RateCDR] => 1 ) [2025-03-29 01:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 22:20:06' and `end` < '2025-03-29 01:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 01:20:19] Production.INFO: count ==867 [2025-03-29 01:20:19] Production.ERROR: pbx CDR StartTime 2025-03-28 22:20:06 - End Time 2025-03-29 01:20:06 [2025-03-29 01:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785435', 'tblTempUsageDetail_20' ) start [2025-03-29 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785435', 'tblTempUsageDetail_20' ) end [2025-03-29 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785435', 'tblTempVendorCDR_20' ) start [2025-03-29 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785435', 'tblTempVendorCDR_20' ) end [2025-03-29 01:20:19] Production.INFO: ProcessCDR(1,14785435,1,1,2) [2025-03-29 01:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785435', 'tblTempUsageDetail_20' ) start [2025-03-29 01:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785435', 'tblTempUsageDetail_20' ) end [2025-03-29 01:20:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 01:20:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 01:20:23] Production.INFO: ==3431== Releasing lock... [2025-03-29 01:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 01:20:23] Production.INFO: 35 MB #Memory Used# [2025-03-29 01:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 22:21:06 [end_date_ymd] => 2025-03-29 01:21:06 [RateCDR] => 1 ) [2025-03-29 01:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 22:21:06' and `end` < '2025-03-29 01:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 01:21:18] Production.INFO: count ==886 [2025-03-29 01:21:19] Production.ERROR: pbx CDR StartTime 2025-03-28 22:21:06 - End Time 2025-03-29 01:21:06 [2025-03-29 01:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 01:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785440', 'tblTempUsageDetail_20' ) start [2025-03-29 01:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785440', 'tblTempUsageDetail_20' ) end [2025-03-29 01:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785440', 'tblTempVendorCDR_20' ) start [2025-03-29 01:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785440', 'tblTempVendorCDR_20' ) end [2025-03-29 01:21:19] Production.INFO: ProcessCDR(1,14785440,1,1,2) [2025-03-29 01:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785440', 'tblTempUsageDetail_20' ) start [2025-03-29 01:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785440', 'tblTempUsageDetail_20' ) end [2025-03-29 01:21:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 01:21:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 01:21:22] Production.INFO: ==3521== Releasing lock... [2025-03-29 01:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 01:21:22] Production.INFO: 35.25 MB #Memory Used# [2025-03-29 01:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 22:22:05 [end_date_ymd] => 2025-03-29 01:22:05 [RateCDR] => 1 ) [2025-03-29 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-28 22:22:05' and `end` < '2025-03-29 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-29 01:22:18] Production.INFO: count ==886 [2025-03-29 01:22:18] Production.ERROR: pbx CDR StartTime 2025-03-28 22:22:05 - End Time 2025-03-29 01:22:05 [2025-03-29 01:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785445', 'tblTempUsageDetail_20' ) start [2025-03-29 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785445', 'tblTempUsageDetail_20' ) end [2025-03-29 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785445', 'tblTempVendorCDR_20' ) start [2025-03-29 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785445', 'tblTempVendorCDR_20' ) end [2025-03-29 01:22:18] Production.INFO: ProcessCDR(1,14785445,1,1,2) [2025-03-29 01:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785445', 'tblTempUsageDetail_20' ) start [2025-03-29 01:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785445', 'tblTempUsageDetail_20' ) end [2025-03-29 01:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 01:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 01:22:22] Production.INFO: ==3644== Releasing lock... [2025-03-29 01:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 01:22:22] Production.INFO: 35.25 MB #Memory Used# [2025-03-29 01:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 22:23:05 [end_date_ymd] => 2025-03-29 01:23:05 [RateCDR] => 1 ) [2025-03-29 01:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 22:23:05' and `end` < '2025-03-29 01:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 01:23:18] Production.INFO: count ==888 [2025-03-29 01:23:18] Production.ERROR: pbx CDR StartTime 2025-03-28 22:23:05 - End Time 2025-03-29 01:23:05 [2025-03-29 01:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785450', 'tblTempUsageDetail_20' ) start [2025-03-29 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785450', 'tblTempUsageDetail_20' ) end [2025-03-29 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785450', 'tblTempVendorCDR_20' ) start [2025-03-29 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785450', 'tblTempVendorCDR_20' ) end [2025-03-29 01:23:18] Production.INFO: ProcessCDR(1,14785450,1,1,2) [2025-03-29 01:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785450', 'tblTempUsageDetail_20' ) start [2025-03-29 01:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785450', 'tblTempUsageDetail_20' ) end [2025-03-29 01:23:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 01:23:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 01:23:22] Production.INFO: ==3737== Releasing lock... [2025-03-29 01:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 01:23:22] Production.INFO: 35 MB #Memory Used# [2025-03-29 01:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 22:24:05 [end_date_ymd] => 2025-03-29 01:24:05 [RateCDR] => 1 ) [2025-03-29 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-28 22:24:05' and `end` < '2025-03-29 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-29 01:24:18] Production.INFO: count ==897 [2025-03-29 01:24:18] Production.ERROR: pbx CDR StartTime 2025-03-28 22:24:05 - End Time 2025-03-29 01:24:05 [2025-03-29 01:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785455', 'tblTempUsageDetail_20' ) start [2025-03-29 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785455', 'tblTempUsageDetail_20' ) end [2025-03-29 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785455', 'tblTempVendorCDR_20' ) start [2025-03-29 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785455', 'tblTempVendorCDR_20' ) end [2025-03-29 01:24:18] Production.INFO: ProcessCDR(1,14785455,1,1,2) [2025-03-29 01:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785455', 'tblTempUsageDetail_20' ) start [2025-03-29 01:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785455', 'tblTempUsageDetail_20' ) end [2025-03-29 01:24:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 01:24:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 01:24:22] Production.INFO: ==3810== Releasing lock... [2025-03-29 01:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 01:24:22] Production.INFO: 35 MB #Memory Used# [2025-03-29 01:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 22:25:06 [end_date_ymd] => 2025-03-29 01:25:06 [RateCDR] => 1 ) [2025-03-29 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-28 22:25:06' and `end` < '2025-03-29 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-29 01:25:19] Production.INFO: count ==892 [2025-03-29 01:25:19] Production.ERROR: pbx CDR StartTime 2025-03-28 22:25:06 - End Time 2025-03-29 01:25:06 [2025-03-29 01:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 01:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785460', 'tblTempUsageDetail_20' ) start [2025-03-29 01:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785460', 'tblTempUsageDetail_20' ) end [2025-03-29 01:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785460', 'tblTempVendorCDR_20' ) start [2025-03-29 01:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785460', 'tblTempVendorCDR_20' ) end [2025-03-29 01:25:19] Production.INFO: ProcessCDR(1,14785460,1,1,2) [2025-03-29 01:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785460', 'tblTempUsageDetail_20' ) start [2025-03-29 01:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785460', 'tblTempUsageDetail_20' ) end [2025-03-29 01:25:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 01:25:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 01:25:23] Production.INFO: ==3885== Releasing lock... [2025-03-29 01:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 01:25:23] Production.INFO: 34.75 MB #Memory Used# [2025-03-29 01:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 22:26:05 [end_date_ymd] => 2025-03-29 01:26:05 [RateCDR] => 1 ) [2025-03-29 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-28 22:26:05' and `end` < '2025-03-29 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-29 01:26:18] Production.INFO: count ==892 [2025-03-29 01:26:18] Production.ERROR: pbx CDR StartTime 2025-03-28 22:26:05 - End Time 2025-03-29 01:26:05 [2025-03-29 01:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785465', 'tblTempUsageDetail_20' ) start [2025-03-29 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785465', 'tblTempUsageDetail_20' ) end [2025-03-29 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785465', 'tblTempVendorCDR_20' ) start [2025-03-29 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785465', 'tblTempVendorCDR_20' ) end [2025-03-29 01:26:18] Production.INFO: ProcessCDR(1,14785465,1,1,2) [2025-03-29 01:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785465', 'tblTempUsageDetail_20' ) start [2025-03-29 01:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785465', 'tblTempUsageDetail_20' ) end [2025-03-29 01:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 01:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 01:26:21] Production.INFO: ==4003== Releasing lock... [2025-03-29 01:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 01:26:21] Production.INFO: 34.75 MB #Memory Used# [2025-03-29 01:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 22:27:06 [end_date_ymd] => 2025-03-29 01:27:06 [RateCDR] => 1 ) [2025-03-29 01: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-28 22:27:06' and `end` < '2025-03-29 01: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-29 01:27:18] Production.INFO: count ==892 [2025-03-29 01:27:19] Production.ERROR: pbx CDR StartTime 2025-03-28 22:27:06 - End Time 2025-03-29 01:27:06 [2025-03-29 01:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 01:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785470', 'tblTempUsageDetail_20' ) start [2025-03-29 01:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785470', 'tblTempUsageDetail_20' ) end [2025-03-29 01:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785470', 'tblTempVendorCDR_20' ) start [2025-03-29 01:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785470', 'tblTempVendorCDR_20' ) end [2025-03-29 01:27:19] Production.INFO: ProcessCDR(1,14785470,1,1,2) [2025-03-29 01:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785470', 'tblTempUsageDetail_20' ) start [2025-03-29 01:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785470', 'tblTempUsageDetail_20' ) end [2025-03-29 01:27:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 01:27:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 01:27:22] Production.INFO: ==4079== Releasing lock... [2025-03-29 01:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 01:27:22] Production.INFO: 35.25 MB #Memory Used# [2025-03-29 01:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 22:28:04 [end_date_ymd] => 2025-03-29 01:28:04 [RateCDR] => 1 ) [2025-03-29 01:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 22:28:04' and `end` < '2025-03-29 01:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 01:28:17] Production.INFO: count ==897 [2025-03-29 01:28:18] Production.ERROR: pbx CDR StartTime 2025-03-28 22:28:04 - End Time 2025-03-29 01:28:04 [2025-03-29 01:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785475', 'tblTempUsageDetail_20' ) start [2025-03-29 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785475', 'tblTempUsageDetail_20' ) end [2025-03-29 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785475', 'tblTempVendorCDR_20' ) start [2025-03-29 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785475', 'tblTempVendorCDR_20' ) end [2025-03-29 01:28:18] Production.INFO: ProcessCDR(1,14785475,1,1,2) [2025-03-29 01:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785475', 'tblTempUsageDetail_20' ) start [2025-03-29 01:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785475', 'tblTempUsageDetail_20' ) end [2025-03-29 01:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 01:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 01:28:21] Production.INFO: ==4153== Releasing lock... [2025-03-29 01:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 01:28:21] Production.INFO: 35.25 MB #Memory Used# [2025-03-29 01:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 22:29:06 [end_date_ymd] => 2025-03-29 01:29:06 [RateCDR] => 1 ) [2025-03-29 01: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-28 22:29:06' and `end` < '2025-03-29 01: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-29 01:29:19] Production.INFO: count ==913 [2025-03-29 01:29:19] Production.ERROR: pbx CDR StartTime 2025-03-28 22:29:06 - End Time 2025-03-29 01:29:06 [2025-03-29 01:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 01:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785480', 'tblTempUsageDetail_20' ) start [2025-03-29 01:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785480', 'tblTempUsageDetail_20' ) end [2025-03-29 01:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785480', 'tblTempVendorCDR_20' ) start [2025-03-29 01:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785480', 'tblTempVendorCDR_20' ) end [2025-03-29 01:29:19] Production.INFO: ProcessCDR(1,14785480,1,1,2) [2025-03-29 01:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785480', 'tblTempUsageDetail_20' ) start [2025-03-29 01:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785480', 'tblTempUsageDetail_20' ) end [2025-03-29 01:29:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 01:29:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 01:29:22] Production.INFO: ==4225== Releasing lock... [2025-03-29 01:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 01:29:22] Production.INFO: 35.5 MB #Memory Used# [2025-03-29 01:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 22:30:06 [end_date_ymd] => 2025-03-29 01:30:06 [RateCDR] => 1 ) [2025-03-29 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-28 22:30:06' and `end` < '2025-03-29 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-29 01:30:19] Production.INFO: count ==970 [2025-03-29 01:30:19] Production.ERROR: pbx CDR StartTime 2025-03-28 22:30:06 - End Time 2025-03-29 01:30:06 [2025-03-29 01:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785486', 'tblTempUsageDetail_20' ) start [2025-03-29 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785486', 'tblTempUsageDetail_20' ) end [2025-03-29 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785486', 'tblTempVendorCDR_20' ) start [2025-03-29 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785486', 'tblTempVendorCDR_20' ) end [2025-03-29 01:30:19] Production.INFO: ProcessCDR(1,14785486,1,1,2) [2025-03-29 01:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785486', 'tblTempUsageDetail_20' ) start [2025-03-29 01:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785486', 'tblTempUsageDetail_20' ) end [2025-03-29 01:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 01:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 01:30:22] Production.INFO: ==4300== Releasing lock... [2025-03-29 01:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 01:30:22] Production.INFO: 35.5 MB #Memory Used# [2025-03-29 01:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 22:31:05 [end_date_ymd] => 2025-03-29 01:31:05 [RateCDR] => 1 ) [2025-03-29 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-28 22:31:05' and `end` < '2025-03-29 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-29 01:31:18] Production.INFO: count ==1008 [2025-03-29 01:31:18] Production.ERROR: pbx CDR StartTime 2025-03-28 22:31:05 - End Time 2025-03-29 01:31:05 [2025-03-29 01:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785491', 'tblTempUsageDetail_20' ) start [2025-03-29 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785491', 'tblTempUsageDetail_20' ) end [2025-03-29 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785491', 'tblTempVendorCDR_20' ) start [2025-03-29 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785491', 'tblTempVendorCDR_20' ) end [2025-03-29 01:31:18] Production.INFO: ProcessCDR(1,14785491,1,1,2) [2025-03-29 01:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785491', 'tblTempUsageDetail_20' ) start [2025-03-29 01:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785491', 'tblTempUsageDetail_20' ) end [2025-03-29 01:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 01:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 01:31:22] Production.INFO: ==4375== Releasing lock... [2025-03-29 01:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 01:31:22] Production.INFO: 35.5 MB #Memory Used# [2025-03-29 01:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 22:32:05 [end_date_ymd] => 2025-03-29 01:32:05 [RateCDR] => 1 ) [2025-03-29 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-28 22:32:05' and `end` < '2025-03-29 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-29 01:32:18] Production.INFO: count ==1024 [2025-03-29 01:32:18] Production.ERROR: pbx CDR StartTime 2025-03-28 22:32:05 - End Time 2025-03-29 01:32:05 [2025-03-29 01:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785496', 'tblTempUsageDetail_20' ) start [2025-03-29 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785496', 'tblTempUsageDetail_20' ) end [2025-03-29 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785496', 'tblTempVendorCDR_20' ) start [2025-03-29 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785496', 'tblTempVendorCDR_20' ) end [2025-03-29 01:32:18] Production.INFO: ProcessCDR(1,14785496,1,1,2) [2025-03-29 01:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785496', 'tblTempUsageDetail_20' ) start [2025-03-29 01:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785496', 'tblTempUsageDetail_20' ) end [2025-03-29 01:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 01:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 01:32:22] Production.INFO: ==4445== Releasing lock... [2025-03-29 01:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 01:32:22] Production.INFO: 36.25 MB #Memory Used# [2025-03-29 01:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 22:33:05 [end_date_ymd] => 2025-03-29 01:33:05 [RateCDR] => 1 ) [2025-03-29 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-28 22:33:05' and `end` < '2025-03-29 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-29 01:33:18] Production.INFO: count ==1033 [2025-03-29 01:33:18] Production.ERROR: pbx CDR StartTime 2025-03-28 22:33:05 - End Time 2025-03-29 01:33:05 [2025-03-29 01:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785501', 'tblTempUsageDetail_20' ) start [2025-03-29 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785501', 'tblTempUsageDetail_20' ) end [2025-03-29 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785501', 'tblTempVendorCDR_20' ) start [2025-03-29 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785501', 'tblTempVendorCDR_20' ) end [2025-03-29 01:33:18] Production.INFO: ProcessCDR(1,14785501,1,1,2) [2025-03-29 01:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785501', 'tblTempUsageDetail_20' ) start [2025-03-29 01:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785501', 'tblTempUsageDetail_20' ) end [2025-03-29 01:33:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 01:33:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 01:33:24] Production.INFO: ==4517== Releasing lock... [2025-03-29 01:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 01:33:24] Production.INFO: 36.25 MB #Memory Used# [2025-03-29 01:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 22:34:05 [end_date_ymd] => 2025-03-29 01:34:05 [RateCDR] => 1 ) [2025-03-29 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-28 22:34:05' and `end` < '2025-03-29 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-29 01:34:17] Production.INFO: count ==1042 [2025-03-29 01:34:18] Production.ERROR: pbx CDR StartTime 2025-03-28 22:34:05 - End Time 2025-03-29 01:34:05 [2025-03-29 01:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785506', 'tblTempUsageDetail_20' ) start [2025-03-29 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785506', 'tblTempUsageDetail_20' ) end [2025-03-29 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785506', 'tblTempVendorCDR_20' ) start [2025-03-29 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785506', 'tblTempVendorCDR_20' ) end [2025-03-29 01:34:18] Production.INFO: ProcessCDR(1,14785506,1,1,2) [2025-03-29 01:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785506', 'tblTempUsageDetail_20' ) start [2025-03-29 01:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785506', 'tblTempUsageDetail_20' ) end [2025-03-29 01:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 01:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 01:34:21] Production.INFO: ==4599== Releasing lock... [2025-03-29 01:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 01:34:21] Production.INFO: 36.75 MB #Memory Used# [2025-03-29 01:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 22:35:06 [end_date_ymd] => 2025-03-29 01:35:06 [RateCDR] => 1 ) [2025-03-29 01: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-28 22:35:06' and `end` < '2025-03-29 01: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-29 01:35:18] Production.INFO: count ==1053 [2025-03-29 01:35:19] Production.ERROR: pbx CDR StartTime 2025-03-28 22:35:06 - End Time 2025-03-29 01:35:06 [2025-03-29 01:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 01:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785511', 'tblTempUsageDetail_20' ) start [2025-03-29 01:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785511', 'tblTempUsageDetail_20' ) end [2025-03-29 01:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785511', 'tblTempVendorCDR_20' ) start [2025-03-29 01:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785511', 'tblTempVendorCDR_20' ) end [2025-03-29 01:35:19] Production.INFO: ProcessCDR(1,14785511,1,1,2) [2025-03-29 01:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785511', 'tblTempUsageDetail_20' ) start [2025-03-29 01:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785511', 'tblTempUsageDetail_20' ) end [2025-03-29 01:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 01:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 01:35:22] Production.INFO: ==4671== Releasing lock... [2025-03-29 01:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 01:35:22] Production.INFO: 37 MB #Memory Used# [2025-03-29 01:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 22:36:05 [end_date_ymd] => 2025-03-29 01:36:05 [RateCDR] => 1 ) [2025-03-29 01:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 22:36:05' and `end` < '2025-03-29 01:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 01:36:17] Production.INFO: count ==1039 [2025-03-29 01:36:18] Production.ERROR: pbx CDR StartTime 2025-03-28 22:36:05 - End Time 2025-03-29 01:36:05 [2025-03-29 01:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785516', 'tblTempUsageDetail_20' ) start [2025-03-29 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785516', 'tblTempUsageDetail_20' ) end [2025-03-29 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785516', 'tblTempVendorCDR_20' ) start [2025-03-29 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785516', 'tblTempVendorCDR_20' ) end [2025-03-29 01:36:18] Production.INFO: ProcessCDR(1,14785516,1,1,2) [2025-03-29 01:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785516', 'tblTempUsageDetail_20' ) start [2025-03-29 01:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785516', 'tblTempUsageDetail_20' ) end [2025-03-29 01:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 01:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 01:36:21] Production.INFO: ==4746== Releasing lock... [2025-03-29 01:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 01:36:21] Production.INFO: 36.25 MB #Memory Used# [2025-03-29 01:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 22:37:05 [end_date_ymd] => 2025-03-29 01:37:05 [RateCDR] => 1 ) [2025-03-29 01:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 22:37:05' and `end` < '2025-03-29 01:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 01:37:18] Production.INFO: count ==1065 [2025-03-29 01:37:18] Production.ERROR: pbx CDR StartTime 2025-03-28 22:37:05 - End Time 2025-03-29 01:37:05 [2025-03-29 01:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785521', 'tblTempUsageDetail_20' ) start [2025-03-29 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785521', 'tblTempUsageDetail_20' ) end [2025-03-29 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785521', 'tblTempVendorCDR_20' ) start [2025-03-29 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785521', 'tblTempVendorCDR_20' ) end [2025-03-29 01:37:18] Production.INFO: ProcessCDR(1,14785521,1,1,2) [2025-03-29 01:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785521', 'tblTempUsageDetail_20' ) start [2025-03-29 01:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785521', 'tblTempUsageDetail_20' ) end [2025-03-29 01:37:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 01:37:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 01:37:23] Production.INFO: ==4823== Releasing lock... [2025-03-29 01:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 01:37:23] Production.INFO: 36.25 MB #Memory Used# [2025-03-29 01:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 22:38:05 [end_date_ymd] => 2025-03-29 01:38:05 [RateCDR] => 1 ) [2025-03-29 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-28 22:38:05' and `end` < '2025-03-29 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-29 01:38:17] Production.INFO: count ==1079 [2025-03-29 01:38:18] Production.ERROR: pbx CDR StartTime 2025-03-28 22:38:05 - End Time 2025-03-29 01:38:05 [2025-03-29 01:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785526', 'tblTempUsageDetail_20' ) start [2025-03-29 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785526', 'tblTempUsageDetail_20' ) end [2025-03-29 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785526', 'tblTempVendorCDR_20' ) start [2025-03-29 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785526', 'tblTempVendorCDR_20' ) end [2025-03-29 01:38:18] Production.INFO: ProcessCDR(1,14785526,1,1,2) [2025-03-29 01:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785526', 'tblTempUsageDetail_20' ) start [2025-03-29 01:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785526', 'tblTempUsageDetail_20' ) end [2025-03-29 01:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 01:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 01:38:21] Production.INFO: ==4897== Releasing lock... [2025-03-29 01:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 01:38:21] Production.INFO: 37 MB #Memory Used# [2025-03-29 01:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 22:39:06 [end_date_ymd] => 2025-03-29 01:39:06 [RateCDR] => 1 ) [2025-03-29 01:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 22:39:06' and `end` < '2025-03-29 01:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 01:39:18] Production.INFO: count ==1082 [2025-03-29 01:39:19] Production.ERROR: pbx CDR StartTime 2025-03-28 22:39:06 - End Time 2025-03-29 01:39:06 [2025-03-29 01:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 01:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785531', 'tblTempUsageDetail_20' ) start [2025-03-29 01:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785531', 'tblTempUsageDetail_20' ) end [2025-03-29 01:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785531', 'tblTempVendorCDR_20' ) start [2025-03-29 01:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785531', 'tblTempVendorCDR_20' ) end [2025-03-29 01:39:19] Production.INFO: ProcessCDR(1,14785531,1,1,2) [2025-03-29 01:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785531', 'tblTempUsageDetail_20' ) start [2025-03-29 01:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785531', 'tblTempUsageDetail_20' ) end [2025-03-29 01:39:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 01:39:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 01:39:22] Production.INFO: ==4976== Releasing lock... [2025-03-29 01:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 01:39:22] Production.INFO: 37 MB #Memory Used# [2025-03-29 01:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 22:40:06 [end_date_ymd] => 2025-03-29 01:40:06 [RateCDR] => 1 ) [2025-03-29 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-28 22:40:06' and `end` < '2025-03-29 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-29 01:40:19] Production.INFO: count ==1092 [2025-03-29 01:40:20] Production.ERROR: pbx CDR StartTime 2025-03-28 22:40:06 - End Time 2025-03-29 01:40:06 [2025-03-29 01:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 01:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785537', 'tblTempUsageDetail_20' ) start [2025-03-29 01:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785537', 'tblTempUsageDetail_20' ) end [2025-03-29 01:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785537', 'tblTempVendorCDR_20' ) start [2025-03-29 01:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785537', 'tblTempVendorCDR_20' ) end [2025-03-29 01:40:20] Production.INFO: ProcessCDR(1,14785537,1,1,2) [2025-03-29 01:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785537', 'tblTempUsageDetail_20' ) start [2025-03-29 01:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785537', 'tblTempUsageDetail_20' ) end [2025-03-29 01:40:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 01:40:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 01:40:23] Production.INFO: ==5053== Releasing lock... [2025-03-29 01:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 01:40:23] Production.INFO: 36.25 MB #Memory Used# [2025-03-29 01:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 22:41:06 [end_date_ymd] => 2025-03-29 01:41:06 [RateCDR] => 1 ) [2025-03-29 01:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 22:41:06' and `end` < '2025-03-29 01:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 01:41:18] Production.INFO: count ==1109 [2025-03-29 01:41:19] Production.ERROR: pbx CDR StartTime 2025-03-28 22:41:06 - End Time 2025-03-29 01:41:06 [2025-03-29 01:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 01:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785542', 'tblTempUsageDetail_20' ) start [2025-03-29 01:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785542', 'tblTempUsageDetail_20' ) end [2025-03-29 01:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785542', 'tblTempVendorCDR_20' ) start [2025-03-29 01:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785542', 'tblTempVendorCDR_20' ) end [2025-03-29 01:41:19] Production.INFO: ProcessCDR(1,14785542,1,1,2) [2025-03-29 01:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785542', 'tblTempUsageDetail_20' ) start [2025-03-29 01:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785542', 'tblTempUsageDetail_20' ) end [2025-03-29 01:41:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 01:41:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 01:41:23] Production.INFO: ==5169== Releasing lock... [2025-03-29 01:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 01:41:23] Production.INFO: 36.5 MB #Memory Used# [2025-03-29 01:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 22:42:06 [end_date_ymd] => 2025-03-29 01:42:06 [RateCDR] => 1 ) [2025-03-29 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-28 22:42:06' and `end` < '2025-03-29 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-29 01:42:19] Production.INFO: count ==1107 [2025-03-29 01:42:19] Production.ERROR: pbx CDR StartTime 2025-03-28 22:42:06 - End Time 2025-03-29 01:42:06 [2025-03-29 01:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 01:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785547', 'tblTempUsageDetail_20' ) start [2025-03-29 01:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785547', 'tblTempUsageDetail_20' ) end [2025-03-29 01:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785547', 'tblTempVendorCDR_20' ) start [2025-03-29 01:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785547', 'tblTempVendorCDR_20' ) end [2025-03-29 01:42:19] Production.INFO: ProcessCDR(1,14785547,1,1,2) [2025-03-29 01:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785547', 'tblTempUsageDetail_20' ) start [2025-03-29 01:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785547', 'tblTempUsageDetail_20' ) end [2025-03-29 01:42:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 01:42:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 01:42:23] Production.INFO: ==5244== Releasing lock... [2025-03-29 01:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 01:42:23] Production.INFO: 36.25 MB #Memory Used# [2025-03-29 01:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 22:43:05 [end_date_ymd] => 2025-03-29 01:43:05 [RateCDR] => 1 ) [2025-03-29 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-28 22:43:05' and `end` < '2025-03-29 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-29 01:43:18] Production.INFO: count ==1107 [2025-03-29 01:43:18] Production.ERROR: pbx CDR StartTime 2025-03-28 22:43:05 - End Time 2025-03-29 01:43:05 [2025-03-29 01:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785552', 'tblTempUsageDetail_20' ) start [2025-03-29 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785552', 'tblTempUsageDetail_20' ) end [2025-03-29 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785552', 'tblTempVendorCDR_20' ) start [2025-03-29 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785552', 'tblTempVendorCDR_20' ) end [2025-03-29 01:43:18] Production.INFO: ProcessCDR(1,14785552,1,1,2) [2025-03-29 01:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785552', 'tblTempUsageDetail_20' ) start [2025-03-29 01:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785552', 'tblTempUsageDetail_20' ) end [2025-03-29 01:43:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 01:43:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 01:43:23] Production.INFO: ==5318== Releasing lock... [2025-03-29 01:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 01:43:23] Production.INFO: 36.5 MB #Memory Used# [2025-03-29 01:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 22:44:06 [end_date_ymd] => 2025-03-29 01:44:06 [RateCDR] => 1 ) [2025-03-29 01:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 22:44:06' and `end` < '2025-03-29 01:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 01:44:18] Production.INFO: count ==1114 [2025-03-29 01:44:19] Production.ERROR: pbx CDR StartTime 2025-03-28 22:44:06 - End Time 2025-03-29 01:44:06 [2025-03-29 01:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 01:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785557', 'tblTempUsageDetail_20' ) start [2025-03-29 01:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785557', 'tblTempUsageDetail_20' ) end [2025-03-29 01:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785557', 'tblTempVendorCDR_20' ) start [2025-03-29 01:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785557', 'tblTempVendorCDR_20' ) end [2025-03-29 01:44:19] Production.INFO: ProcessCDR(1,14785557,1,1,2) [2025-03-29 01:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785557', 'tblTempUsageDetail_20' ) start [2025-03-29 01:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785557', 'tblTempUsageDetail_20' ) end [2025-03-29 01:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 01:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 01:44:22] Production.INFO: ==5390== Releasing lock... [2025-03-29 01:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 01:44:22] Production.INFO: 36.75 MB #Memory Used# [2025-03-29 01:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 22:45:05 [end_date_ymd] => 2025-03-29 01:45:05 [RateCDR] => 1 ) [2025-03-29 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-28 22:45:05' and `end` < '2025-03-29 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-29 01:45:18] Production.INFO: count ==1094 [2025-03-29 01:45:18] Production.ERROR: pbx CDR StartTime 2025-03-28 22:45:05 - End Time 2025-03-29 01:45:05 [2025-03-29 01:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785562', 'tblTempUsageDetail_20' ) start [2025-03-29 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785562', 'tblTempUsageDetail_20' ) end [2025-03-29 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785562', 'tblTempVendorCDR_20' ) start [2025-03-29 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785562', 'tblTempVendorCDR_20' ) end [2025-03-29 01:45:18] Production.INFO: ProcessCDR(1,14785562,1,1,2) [2025-03-29 01:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785562', 'tblTempUsageDetail_20' ) start [2025-03-29 01:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785562', 'tblTempUsageDetail_20' ) end [2025-03-29 01:45:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 01:45:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 01:45:22] Production.INFO: ==5463== Releasing lock... [2025-03-29 01:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 01:45:22] Production.INFO: 36.25 MB #Memory Used# [2025-03-29 01:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 22:46:06 [end_date_ymd] => 2025-03-29 01:46:06 [RateCDR] => 1 ) [2025-03-29 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-28 22:46:06' and `end` < '2025-03-29 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-29 01:46:18] Production.INFO: count ==1087 [2025-03-29 01:46:19] Production.ERROR: pbx CDR StartTime 2025-03-28 22:46:06 - End Time 2025-03-29 01:46:06 [2025-03-29 01:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 01:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785567', 'tblTempUsageDetail_20' ) start [2025-03-29 01:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785567', 'tblTempUsageDetail_20' ) end [2025-03-29 01:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785567', 'tblTempVendorCDR_20' ) start [2025-03-29 01:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785567', 'tblTempVendorCDR_20' ) end [2025-03-29 01:46:19] Production.INFO: ProcessCDR(1,14785567,1,1,2) [2025-03-29 01:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785567', 'tblTempUsageDetail_20' ) start [2025-03-29 01:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785567', 'tblTempUsageDetail_20' ) end [2025-03-29 01:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 01:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 01:46:22] Production.INFO: ==5536== Releasing lock... [2025-03-29 01:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 01:46:22] Production.INFO: 36.25 MB #Memory Used# [2025-03-29 01:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 22:47:05 [end_date_ymd] => 2025-03-29 01:47:05 [RateCDR] => 1 ) [2025-03-29 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-28 22:47:05' and `end` < '2025-03-29 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-29 01:47:18] Production.INFO: count ==1086 [2025-03-29 01:47:18] Production.ERROR: pbx CDR StartTime 2025-03-28 22:47:05 - End Time 2025-03-29 01:47:05 [2025-03-29 01:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785572', 'tblTempUsageDetail_20' ) start [2025-03-29 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785572', 'tblTempUsageDetail_20' ) end [2025-03-29 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785572', 'tblTempVendorCDR_20' ) start [2025-03-29 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785572', 'tblTempVendorCDR_20' ) end [2025-03-29 01:47:18] Production.INFO: ProcessCDR(1,14785572,1,1,2) [2025-03-29 01:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785572', 'tblTempUsageDetail_20' ) start [2025-03-29 01:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785572', 'tblTempUsageDetail_20' ) end [2025-03-29 01:47:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 01:47:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 01:47:23] Production.INFO: ==5607== Releasing lock... [2025-03-29 01:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 01:47:23] Production.INFO: 36.5 MB #Memory Used# [2025-03-29 01:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 22:48:06 [end_date_ymd] => 2025-03-29 01:48:06 [RateCDR] => 1 ) [2025-03-29 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-28 22:48:06' and `end` < '2025-03-29 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-29 01:48:19] Production.INFO: count ==1086 [2025-03-29 01:48:19] Production.ERROR: pbx CDR StartTime 2025-03-28 22:48:06 - End Time 2025-03-29 01:48:06 [2025-03-29 01:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 01:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785577', 'tblTempUsageDetail_20' ) start [2025-03-29 01:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785577', 'tblTempUsageDetail_20' ) end [2025-03-29 01:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785577', 'tblTempVendorCDR_20' ) start [2025-03-29 01:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785577', 'tblTempVendorCDR_20' ) end [2025-03-29 01:48:19] Production.INFO: ProcessCDR(1,14785577,1,1,2) [2025-03-29 01:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785577', 'tblTempUsageDetail_20' ) start [2025-03-29 01:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785577', 'tblTempUsageDetail_20' ) end [2025-03-29 01:48:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 01:48:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 01:48:23] Production.INFO: ==5677== Releasing lock... [2025-03-29 01:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 01:48:23] Production.INFO: 36.5 MB #Memory Used# [2025-03-29 01:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 22:49:05 [end_date_ymd] => 2025-03-29 01:49:05 [RateCDR] => 1 ) [2025-03-29 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-28 22:49:05' and `end` < '2025-03-29 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-29 01:49:18] Production.INFO: count ==1080 [2025-03-29 01:49:18] Production.ERROR: pbx CDR StartTime 2025-03-28 22:49:05 - End Time 2025-03-29 01:49:05 [2025-03-29 01:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785582', 'tblTempUsageDetail_20' ) start [2025-03-29 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785582', 'tblTempUsageDetail_20' ) end [2025-03-29 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785582', 'tblTempVendorCDR_20' ) start [2025-03-29 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785582', 'tblTempVendorCDR_20' ) end [2025-03-29 01:49:18] Production.INFO: ProcessCDR(1,14785582,1,1,2) [2025-03-29 01:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785582', 'tblTempUsageDetail_20' ) start [2025-03-29 01:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785582', 'tblTempUsageDetail_20' ) end [2025-03-29 01:49:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 01:49:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 01:49:23] Production.INFO: ==5755== Releasing lock... [2025-03-29 01:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 01:49:23] Production.INFO: 36 MB #Memory Used# [2025-03-29 01:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 22:50:06 [end_date_ymd] => 2025-03-29 01:50:06 [RateCDR] => 1 ) [2025-03-29 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-28 22:50:06' and `end` < '2025-03-29 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-29 01:50:19] Production.INFO: count ==1071 [2025-03-29 01:50:19] Production.ERROR: pbx CDR StartTime 2025-03-28 22:50:06 - End Time 2025-03-29 01:50:06 [2025-03-29 01:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785588', 'tblTempUsageDetail_20' ) start [2025-03-29 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785588', 'tblTempUsageDetail_20' ) end [2025-03-29 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785588', 'tblTempVendorCDR_20' ) start [2025-03-29 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785588', 'tblTempVendorCDR_20' ) end [2025-03-29 01:50:19] Production.INFO: ProcessCDR(1,14785588,1,1,2) [2025-03-29 01:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785588', 'tblTempUsageDetail_20' ) start [2025-03-29 01:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785588', 'tblTempUsageDetail_20' ) end [2025-03-29 01:50:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 01:50:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 01:50:23] Production.INFO: ==5831== Releasing lock... [2025-03-29 01:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 01:50:23] Production.INFO: 36.25 MB #Memory Used# [2025-03-29 01:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 22:51:05 [end_date_ymd] => 2025-03-29 01:51:05 [RateCDR] => 1 ) [2025-03-29 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-28 22:51:05' and `end` < '2025-03-29 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-29 01:51:17] Production.INFO: count ==1071 [2025-03-29 01:51:18] Production.ERROR: pbx CDR StartTime 2025-03-28 22:51:05 - End Time 2025-03-29 01:51:05 [2025-03-29 01:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785593', 'tblTempUsageDetail_20' ) start [2025-03-29 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785593', 'tblTempUsageDetail_20' ) end [2025-03-29 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785593', 'tblTempVendorCDR_20' ) start [2025-03-29 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785593', 'tblTempVendorCDR_20' ) end [2025-03-29 01:51:18] Production.INFO: ProcessCDR(1,14785593,1,1,2) [2025-03-29 01:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785593', 'tblTempUsageDetail_20' ) start [2025-03-29 01:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785593', 'tblTempUsageDetail_20' ) end [2025-03-29 01:51:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 01:51:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 01:51:23] Production.INFO: ==5906== Releasing lock... [2025-03-29 01:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 01:51:23] Production.INFO: 36.25 MB #Memory Used# [2025-03-29 01:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 22:52:05 [end_date_ymd] => 2025-03-29 01:52:05 [RateCDR] => 1 ) [2025-03-29 01:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 22:52:05' and `end` < '2025-03-29 01:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 01:52:18] Production.INFO: count ==1068 [2025-03-29 01:52:18] Production.ERROR: pbx CDR StartTime 2025-03-28 22:52:05 - End Time 2025-03-29 01:52:05 [2025-03-29 01:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785598', 'tblTempUsageDetail_20' ) start [2025-03-29 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785598', 'tblTempUsageDetail_20' ) end [2025-03-29 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785598', 'tblTempVendorCDR_20' ) start [2025-03-29 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785598', 'tblTempVendorCDR_20' ) end [2025-03-29 01:52:18] Production.INFO: ProcessCDR(1,14785598,1,1,2) [2025-03-29 01:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785598', 'tblTempUsageDetail_20' ) start [2025-03-29 01:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785598', 'tblTempUsageDetail_20' ) end [2025-03-29 01:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 01:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 01:52:22] Production.INFO: ==5978== Releasing lock... [2025-03-29 01:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 01:52:22] Production.INFO: 36.5 MB #Memory Used# [2025-03-29 01:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 22:53:05 [end_date_ymd] => 2025-03-29 01:53:05 [RateCDR] => 1 ) [2025-03-29 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-28 22:53:05' and `end` < '2025-03-29 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-29 01:53:18] Production.INFO: count ==1067 [2025-03-29 01:53:18] Production.ERROR: pbx CDR StartTime 2025-03-28 22:53:05 - End Time 2025-03-29 01:53:05 [2025-03-29 01:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785603', 'tblTempUsageDetail_20' ) start [2025-03-29 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785603', 'tblTempUsageDetail_20' ) end [2025-03-29 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785603', 'tblTempVendorCDR_20' ) start [2025-03-29 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785603', 'tblTempVendorCDR_20' ) end [2025-03-29 01:53:18] Production.INFO: ProcessCDR(1,14785603,1,1,2) [2025-03-29 01:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785603', 'tblTempUsageDetail_20' ) start [2025-03-29 01:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785603', 'tblTempUsageDetail_20' ) end [2025-03-29 01:53:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 01:53:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 01:53:23] Production.INFO: ==6053== Releasing lock... [2025-03-29 01:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 01:53:23] Production.INFO: 36 MB #Memory Used# [2025-03-29 01:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 22:54:05 [end_date_ymd] => 2025-03-29 01:54:05 [RateCDR] => 1 ) [2025-03-29 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-28 22:54:05' and `end` < '2025-03-29 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-29 01:54:18] Production.INFO: count ==1068 [2025-03-29 01:54:18] Production.ERROR: pbx CDR StartTime 2025-03-28 22:54:05 - End Time 2025-03-29 01:54:05 [2025-03-29 01:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785608', 'tblTempUsageDetail_20' ) start [2025-03-29 01:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785608', 'tblTempUsageDetail_20' ) end [2025-03-29 01:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785608', 'tblTempVendorCDR_20' ) start [2025-03-29 01:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785608', 'tblTempVendorCDR_20' ) end [2025-03-29 01:54:19] Production.INFO: ProcessCDR(1,14785608,1,1,2) [2025-03-29 01:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785608', 'tblTempUsageDetail_20' ) start [2025-03-29 01:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785608', 'tblTempUsageDetail_20' ) end [2025-03-29 01:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 01:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 01:54:22] Production.INFO: ==6125== Releasing lock... [2025-03-29 01:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 01:54:22] Production.INFO: 36.25 MB #Memory Used# [2025-03-29 01:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 22:55:05 [end_date_ymd] => 2025-03-29 01:55:05 [RateCDR] => 1 ) [2025-03-29 01:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 22:55:05' and `end` < '2025-03-29 01:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 01:55:18] Production.INFO: count ==1067 [2025-03-29 01:55:18] Production.ERROR: pbx CDR StartTime 2025-03-28 22:55:05 - End Time 2025-03-29 01:55:05 [2025-03-29 01:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785613', 'tblTempUsageDetail_20' ) start [2025-03-29 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785613', 'tblTempUsageDetail_20' ) end [2025-03-29 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785613', 'tblTempVendorCDR_20' ) start [2025-03-29 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785613', 'tblTempVendorCDR_20' ) end [2025-03-29 01:55:18] Production.INFO: ProcessCDR(1,14785613,1,1,2) [2025-03-29 01:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785613', 'tblTempUsageDetail_20' ) start [2025-03-29 01:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785613', 'tblTempUsageDetail_20' ) end [2025-03-29 01:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 01:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 01:55:22] Production.INFO: ==6199== Releasing lock... [2025-03-29 01:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 01:55:22] Production.INFO: 36 MB #Memory Used# [2025-03-29 01:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 22:56:05 [end_date_ymd] => 2025-03-29 01:56:05 [RateCDR] => 1 ) [2025-03-29 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-28 22:56:05' and `end` < '2025-03-29 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-29 01:56:18] Production.INFO: count ==1069 [2025-03-29 01:56:19] Production.ERROR: pbx CDR StartTime 2025-03-28 22:56:05 - End Time 2025-03-29 01:56:05 [2025-03-29 01:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785618', 'tblTempUsageDetail_20' ) start [2025-03-29 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785618', 'tblTempUsageDetail_20' ) end [2025-03-29 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785618', 'tblTempVendorCDR_20' ) start [2025-03-29 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785618', 'tblTempVendorCDR_20' ) end [2025-03-29 01:56:19] Production.INFO: ProcessCDR(1,14785618,1,1,2) [2025-03-29 01:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785618', 'tblTempUsageDetail_20' ) start [2025-03-29 01:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785618', 'tblTempUsageDetail_20' ) end [2025-03-29 01:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 01:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 01:56:22] Production.INFO: ==6271== Releasing lock... [2025-03-29 01:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 01:56:22] Production.INFO: 36.5 MB #Memory Used# [2025-03-29 01:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 22:57:05 [end_date_ymd] => 2025-03-29 01:57:05 [RateCDR] => 1 ) [2025-03-29 01:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 22:57:05' and `end` < '2025-03-29 01:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 01:57:18] Production.INFO: count ==1070 [2025-03-29 01:57:18] Production.ERROR: pbx CDR StartTime 2025-03-28 22:57:05 - End Time 2025-03-29 01:57:05 [2025-03-29 01:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785623', 'tblTempUsageDetail_20' ) start [2025-03-29 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785623', 'tblTempUsageDetail_20' ) end [2025-03-29 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785623', 'tblTempVendorCDR_20' ) start [2025-03-29 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785623', 'tblTempVendorCDR_20' ) end [2025-03-29 01:57:18] Production.INFO: ProcessCDR(1,14785623,1,1,2) [2025-03-29 01:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785623', 'tblTempUsageDetail_20' ) start [2025-03-29 01:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785623', 'tblTempUsageDetail_20' ) end [2025-03-29 01:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 01:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 01:57:22] Production.INFO: ==6381== Releasing lock... [2025-03-29 01:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 01:57:22] Production.INFO: 36.25 MB #Memory Used# [2025-03-29 01:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 22:58:05 [end_date_ymd] => 2025-03-29 01:58:05 [RateCDR] => 1 ) [2025-03-29 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-28 22:58:05' and `end` < '2025-03-29 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-29 01:58:18] Production.INFO: count ==1081 [2025-03-29 01:58:19] Production.ERROR: pbx CDR StartTime 2025-03-28 22:58:05 - End Time 2025-03-29 01:58:05 [2025-03-29 01:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785628', 'tblTempUsageDetail_20' ) start [2025-03-29 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785628', 'tblTempUsageDetail_20' ) end [2025-03-29 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785628', 'tblTempVendorCDR_20' ) start [2025-03-29 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785628', 'tblTempVendorCDR_20' ) end [2025-03-29 01:58:19] Production.INFO: ProcessCDR(1,14785628,1,1,2) [2025-03-29 01:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785628', 'tblTempUsageDetail_20' ) start [2025-03-29 01:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785628', 'tblTempUsageDetail_20' ) end [2025-03-29 01:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 01:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 01:58:22] Production.INFO: ==6458== Releasing lock... [2025-03-29 01:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 01:58:22] Production.INFO: 36.75 MB #Memory Used# [2025-03-29 01:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 22:59:05 [end_date_ymd] => 2025-03-29 01:59:05 [RateCDR] => 1 ) [2025-03-29 01:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 22:59:05' and `end` < '2025-03-29 01:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 01:59:17] Production.INFO: count ==1080 [2025-03-29 01:59:18] Production.ERROR: pbx CDR StartTime 2025-03-28 22:59:05 - End Time 2025-03-29 01:59:05 [2025-03-29 01:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785633', 'tblTempUsageDetail_20' ) start [2025-03-29 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785633', 'tblTempUsageDetail_20' ) end [2025-03-29 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785633', 'tblTempVendorCDR_20' ) start [2025-03-29 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785633', 'tblTempVendorCDR_20' ) end [2025-03-29 01:59:18] Production.INFO: ProcessCDR(1,14785633,1,1,2) [2025-03-29 01:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 01:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 01:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785633', 'tblTempUsageDetail_20' ) start [2025-03-29 01:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785633', 'tblTempUsageDetail_20' ) end [2025-03-29 01:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 01:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 01:59:21] Production.INFO: ==6534== Releasing lock... [2025-03-29 01:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 01:59:21] Production.INFO: 36.25 MB #Memory Used# [2025-03-29 02:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 23:00:06 [end_date_ymd] => 2025-03-29 02:00:06 [RateCDR] => 1 ) [2025-03-29 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-28 23:00:06' and `end` < '2025-03-29 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-29 02:00:18] Production.INFO: count ==1091 [2025-03-29 02:00:19] Production.ERROR: pbx CDR StartTime 2025-03-28 23:00:06 - End Time 2025-03-29 02:00:06 [2025-03-29 02:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785638', 'tblTempUsageDetail_20' ) start [2025-03-29 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785638', 'tblTempUsageDetail_20' ) end [2025-03-29 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785638', 'tblTempVendorCDR_20' ) start [2025-03-29 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785638', 'tblTempVendorCDR_20' ) end [2025-03-29 02:00:19] Production.INFO: ProcessCDR(1,14785638,1,1,2) [2025-03-29 02:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785638', 'tblTempUsageDetail_20' ) start [2025-03-29 02:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785638', 'tblTempUsageDetail_20' ) end [2025-03-29 02:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 02:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 02:00:22] Production.INFO: ==6608== Releasing lock... [2025-03-29 02:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 02:00:22] Production.INFO: 36.25 MB #Memory Used# [2025-03-29 02:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 23:01:05 [end_date_ymd] => 2025-03-29 02:01:05 [RateCDR] => 1 ) [2025-03-29 02:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 23:01:05' and `end` < '2025-03-29 02:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 02:01:18] Production.INFO: count ==1099 [2025-03-29 02:01:18] Production.ERROR: pbx CDR StartTime 2025-03-28 23:01:05 - End Time 2025-03-29 02:01:05 [2025-03-29 02:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785644', 'tblTempUsageDetail_20' ) start [2025-03-29 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785644', 'tblTempUsageDetail_20' ) end [2025-03-29 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785644', 'tblTempVendorCDR_20' ) start [2025-03-29 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785644', 'tblTempVendorCDR_20' ) end [2025-03-29 02:01:18] Production.INFO: ProcessCDR(1,14785644,1,1,2) [2025-03-29 02:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785644', 'tblTempUsageDetail_20' ) start [2025-03-29 02:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785644', 'tblTempUsageDetail_20' ) end [2025-03-29 02:01:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 02:01:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 02:01:22] Production.INFO: ==6698== Releasing lock... [2025-03-29 02:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 02:01:22] Production.INFO: 36.5 MB #Memory Used# [2025-03-29 02:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 23:02:05 [end_date_ymd] => 2025-03-29 02:02:05 [RateCDR] => 1 ) [2025-03-29 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-28 23:02:05' and `end` < '2025-03-29 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-29 02:02:18] Production.INFO: count ==1101 [2025-03-29 02:02:18] Production.ERROR: pbx CDR StartTime 2025-03-28 23:02:05 - End Time 2025-03-29 02:02:05 [2025-03-29 02:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785649', 'tblTempUsageDetail_20' ) start [2025-03-29 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785649', 'tblTempUsageDetail_20' ) end [2025-03-29 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785649', 'tblTempVendorCDR_20' ) start [2025-03-29 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785649', 'tblTempVendorCDR_20' ) end [2025-03-29 02:02:18] Production.INFO: ProcessCDR(1,14785649,1,1,2) [2025-03-29 02:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785649', 'tblTempUsageDetail_20' ) start [2025-03-29 02:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785649', 'tblTempUsageDetail_20' ) end [2025-03-29 02:02:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 02:02:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 02:02:24] Production.INFO: ==6859== Releasing lock... [2025-03-29 02:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 02:02:24] Production.INFO: 36.25 MB #Memory Used# [2025-03-29 02:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 23:03:05 [end_date_ymd] => 2025-03-29 02:03:05 [RateCDR] => 1 ) [2025-03-29 02:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 23:03:05' and `end` < '2025-03-29 02:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 02:03:17] Production.INFO: count ==1105 [2025-03-29 02:03:18] Production.ERROR: pbx CDR StartTime 2025-03-28 23:03:05 - End Time 2025-03-29 02:03:05 [2025-03-29 02:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785654', 'tblTempUsageDetail_20' ) start [2025-03-29 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785654', 'tblTempUsageDetail_20' ) end [2025-03-29 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785654', 'tblTempVendorCDR_20' ) start [2025-03-29 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785654', 'tblTempVendorCDR_20' ) end [2025-03-29 02:03:18] Production.INFO: ProcessCDR(1,14785654,1,1,2) [2025-03-29 02:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785654', 'tblTempUsageDetail_20' ) start [2025-03-29 02:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785654', 'tblTempUsageDetail_20' ) end [2025-03-29 02:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 02:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 02:03:21] Production.INFO: ==6932== Releasing lock... [2025-03-29 02:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 02:03:21] Production.INFO: 36.5 MB #Memory Used# [2025-03-29 02:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 23:04:06 [end_date_ymd] => 2025-03-29 02:04:06 [RateCDR] => 1 ) [2025-03-29 02:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 23:04:06' and `end` < '2025-03-29 02:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 02:04:18] Production.INFO: count ==1113 [2025-03-29 02:04:19] Production.ERROR: pbx CDR StartTime 2025-03-28 23:04:06 - End Time 2025-03-29 02:04:06 [2025-03-29 02:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 02:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785659', 'tblTempUsageDetail_20' ) start [2025-03-29 02:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785659', 'tblTempUsageDetail_20' ) end [2025-03-29 02:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785659', 'tblTempVendorCDR_20' ) start [2025-03-29 02:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785659', 'tblTempVendorCDR_20' ) end [2025-03-29 02:04:19] Production.INFO: ProcessCDR(1,14785659,1,1,2) [2025-03-29 02:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785659', 'tblTempUsageDetail_20' ) start [2025-03-29 02:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785659', 'tblTempUsageDetail_20' ) end [2025-03-29 02:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 02:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 02:04:22] Production.INFO: ==7004== Releasing lock... [2025-03-29 02:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 02:04:22] Production.INFO: 36.75 MB #Memory Used# [2025-03-29 02:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 23:05:05 [end_date_ymd] => 2025-03-29 02:05:05 [RateCDR] => 1 ) [2025-03-29 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-28 23:05:05' and `end` < '2025-03-29 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-29 02:05:18] Production.INFO: count ==1113 [2025-03-29 02:05:18] Production.ERROR: pbx CDR StartTime 2025-03-28 23:05:05 - End Time 2025-03-29 02:05:05 [2025-03-29 02:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785664', 'tblTempUsageDetail_20' ) start [2025-03-29 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785664', 'tblTempUsageDetail_20' ) end [2025-03-29 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785664', 'tblTempVendorCDR_20' ) start [2025-03-29 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785664', 'tblTempVendorCDR_20' ) end [2025-03-29 02:05:18] Production.INFO: ProcessCDR(1,14785664,1,1,2) [2025-03-29 02:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785664', 'tblTempUsageDetail_20' ) start [2025-03-29 02:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785664', 'tblTempUsageDetail_20' ) end [2025-03-29 02:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 02:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 02:05:22] Production.INFO: ==7077== Releasing lock... [2025-03-29 02:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 02:05:22] Production.INFO: 36.75 MB #Memory Used# [2025-03-29 02:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 23:06:05 [end_date_ymd] => 2025-03-29 02:06:05 [RateCDR] => 1 ) [2025-03-29 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-28 23:06:05' and `end` < '2025-03-29 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-29 02:06:18] Production.INFO: count ==1118 [2025-03-29 02:06:18] Production.ERROR: pbx CDR StartTime 2025-03-28 23:06:05 - End Time 2025-03-29 02:06:05 [2025-03-29 02:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785669', 'tblTempUsageDetail_20' ) start [2025-03-29 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785669', 'tblTempUsageDetail_20' ) end [2025-03-29 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785669', 'tblTempVendorCDR_20' ) start [2025-03-29 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785669', 'tblTempVendorCDR_20' ) end [2025-03-29 02:06:18] Production.INFO: ProcessCDR(1,14785669,1,1,2) [2025-03-29 02:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785669', 'tblTempUsageDetail_20' ) start [2025-03-29 02:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785669', 'tblTempUsageDetail_20' ) end [2025-03-29 02:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 02:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 02:06:22] Production.INFO: ==7151== Releasing lock... [2025-03-29 02:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 02:06:22] Production.INFO: 36.75 MB #Memory Used# [2025-03-29 02:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 23:07:06 [end_date_ymd] => 2025-03-29 02:07:06 [RateCDR] => 1 ) [2025-03-29 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-28 23:07:06' and `end` < '2025-03-29 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-29 02:07:18] Production.INFO: count ==1122 [2025-03-29 02:07:19] Production.ERROR: pbx CDR StartTime 2025-03-28 23:07:06 - End Time 2025-03-29 02:07:06 [2025-03-29 02:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 02:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785674', 'tblTempUsageDetail_20' ) start [2025-03-29 02:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785674', 'tblTempUsageDetail_20' ) end [2025-03-29 02:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785674', 'tblTempVendorCDR_20' ) start [2025-03-29 02:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785674', 'tblTempVendorCDR_20' ) end [2025-03-29 02:07:19] Production.INFO: ProcessCDR(1,14785674,1,1,2) [2025-03-29 02:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785674', 'tblTempUsageDetail_20' ) start [2025-03-29 02:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785674', 'tblTempUsageDetail_20' ) end [2025-03-29 02:07:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 02:07:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 02:07:22] Production.INFO: ==7228== Releasing lock... [2025-03-29 02:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 02:07:22] Production.INFO: 36.5 MB #Memory Used# [2025-03-29 02:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 23:08:06 [end_date_ymd] => 2025-03-29 02:08:06 [RateCDR] => 1 ) [2025-03-29 02:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 23:08:06' and `end` < '2025-03-29 02:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 02:08:18] Production.INFO: count ==1122 [2025-03-29 02:08:19] Production.ERROR: pbx CDR StartTime 2025-03-28 23:08:06 - End Time 2025-03-29 02:08:06 [2025-03-29 02:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 02:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785679', 'tblTempUsageDetail_20' ) start [2025-03-29 02:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785679', 'tblTempUsageDetail_20' ) end [2025-03-29 02:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785679', 'tblTempVendorCDR_20' ) start [2025-03-29 02:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785679', 'tblTempVendorCDR_20' ) end [2025-03-29 02:08:19] Production.INFO: ProcessCDR(1,14785679,1,1,2) [2025-03-29 02:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785679', 'tblTempUsageDetail_20' ) start [2025-03-29 02:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785679', 'tblTempUsageDetail_20' ) end [2025-03-29 02:08:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 02:08:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 02:08:22] Production.INFO: ==7310== Releasing lock... [2025-03-29 02:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 02:08:22] Production.INFO: 36.5 MB #Memory Used# [2025-03-29 02:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 23:09:05 [end_date_ymd] => 2025-03-29 02:09:05 [RateCDR] => 1 ) [2025-03-29 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-28 23:09:05' and `end` < '2025-03-29 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-29 02:09:18] Production.INFO: count ==1128 [2025-03-29 02:09:18] Production.ERROR: pbx CDR StartTime 2025-03-28 23:09:05 - End Time 2025-03-29 02:09:05 [2025-03-29 02:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785682', 'tblTempUsageDetail_20' ) start [2025-03-29 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785682', 'tblTempUsageDetail_20' ) end [2025-03-29 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785682', 'tblTempVendorCDR_20' ) start [2025-03-29 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785682', 'tblTempVendorCDR_20' ) end [2025-03-29 02:09:18] Production.INFO: ProcessCDR(1,14785682,1,1,2) [2025-03-29 02:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785682', 'tblTempUsageDetail_20' ) start [2025-03-29 02:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785682', 'tblTempUsageDetail_20' ) end [2025-03-29 02:09:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 02:09:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 02:09:22] Production.INFO: ==7386== Releasing lock... [2025-03-29 02:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 02:09:22] Production.INFO: 36.75 MB #Memory Used# [2025-03-29 02:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 23:10:06 [end_date_ymd] => 2025-03-29 02:10:06 [RateCDR] => 1 ) [2025-03-29 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-28 23:10:06' and `end` < '2025-03-29 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-29 02:10:18] Production.INFO: count ==1139 [2025-03-29 02:10:19] Production.ERROR: pbx CDR StartTime 2025-03-28 23:10:06 - End Time 2025-03-29 02:10:06 [2025-03-29 02:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785690', 'tblTempUsageDetail_20' ) start [2025-03-29 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785690', 'tblTempUsageDetail_20' ) end [2025-03-29 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785690', 'tblTempVendorCDR_20' ) start [2025-03-29 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785690', 'tblTempVendorCDR_20' ) end [2025-03-29 02:10:19] Production.INFO: ProcessCDR(1,14785690,1,1,2) [2025-03-29 02:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785690', 'tblTempUsageDetail_20' ) start [2025-03-29 02:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785690', 'tblTempUsageDetail_20' ) end [2025-03-29 02:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 02:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 02:10:22] Production.INFO: ==7463== Releasing lock... [2025-03-29 02:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 02:10:22] Production.INFO: 36.5 MB #Memory Used# [2025-03-29 02:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 23:11:06 [end_date_ymd] => 2025-03-29 02:11:06 [RateCDR] => 1 ) [2025-03-29 02:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 23:11:06' and `end` < '2025-03-29 02:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 02:11:18] Production.INFO: count ==1144 [2025-03-29 02:11:19] Production.ERROR: pbx CDR StartTime 2025-03-28 23:11:06 - End Time 2025-03-29 02:11:06 [2025-03-29 02:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 02:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785695', 'tblTempUsageDetail_20' ) start [2025-03-29 02:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785695', 'tblTempUsageDetail_20' ) end [2025-03-29 02:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785695', 'tblTempVendorCDR_20' ) start [2025-03-29 02:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785695', 'tblTempVendorCDR_20' ) end [2025-03-29 02:11:19] Production.INFO: ProcessCDR(1,14785695,1,1,2) [2025-03-29 02:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785695', 'tblTempUsageDetail_20' ) start [2025-03-29 02:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785695', 'tblTempUsageDetail_20' ) end [2025-03-29 02:11:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 02:11:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 02:11:22] Production.INFO: ==7542== Releasing lock... [2025-03-29 02:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 02:11:22] Production.INFO: 37 MB #Memory Used# [2025-03-29 02:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 23:12:06 [end_date_ymd] => 2025-03-29 02:12:06 [RateCDR] => 1 ) [2025-03-29 02:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 23:12:06' and `end` < '2025-03-29 02:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 02:12:18] Production.INFO: count ==1119 [2025-03-29 02:12:19] Production.ERROR: pbx CDR StartTime 2025-03-28 23:12:06 - End Time 2025-03-29 02:12:06 [2025-03-29 02:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785700', 'tblTempUsageDetail_20' ) start [2025-03-29 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785700', 'tblTempUsageDetail_20' ) end [2025-03-29 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785700', 'tblTempVendorCDR_20' ) start [2025-03-29 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785700', 'tblTempVendorCDR_20' ) end [2025-03-29 02:12:19] Production.INFO: ProcessCDR(1,14785700,1,1,2) [2025-03-29 02:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785700', 'tblTempUsageDetail_20' ) start [2025-03-29 02:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785700', 'tblTempUsageDetail_20' ) end [2025-03-29 02:12:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 02:12:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 02:12:24] Production.INFO: ==7659== Releasing lock... [2025-03-29 02:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 02:12:24] Production.INFO: 36.75 MB #Memory Used# [2025-03-29 02:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 23:13:05 [end_date_ymd] => 2025-03-29 02:13:05 [RateCDR] => 1 ) [2025-03-29 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-28 23:13:05' and `end` < '2025-03-29 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-29 02:13:18] Production.INFO: count ==1124 [2025-03-29 02:13:18] Production.ERROR: pbx CDR StartTime 2025-03-28 23:13:05 - End Time 2025-03-29 02:13:05 [2025-03-29 02:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785705', 'tblTempUsageDetail_20' ) start [2025-03-29 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785705', 'tblTempUsageDetail_20' ) end [2025-03-29 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785705', 'tblTempVendorCDR_20' ) start [2025-03-29 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785705', 'tblTempVendorCDR_20' ) end [2025-03-29 02:13:18] Production.INFO: ProcessCDR(1,14785705,1,1,2) [2025-03-29 02:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785705', 'tblTempUsageDetail_20' ) start [2025-03-29 02:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785705', 'tblTempUsageDetail_20' ) end [2025-03-29 02:13:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 02:13:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 02:13:22] Production.INFO: ==7736== Releasing lock... [2025-03-29 02:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 02:13:22] Production.INFO: 36.5 MB #Memory Used# [2025-03-29 02:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 23:14:06 [end_date_ymd] => 2025-03-29 02:14:06 [RateCDR] => 1 ) [2025-03-29 02:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 23:14:06' and `end` < '2025-03-29 02: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-29 02:14:18] Production.INFO: count ==1131 [2025-03-29 02:14:19] Production.ERROR: pbx CDR StartTime 2025-03-28 23:14:06 - End Time 2025-03-29 02:14:06 [2025-03-29 02:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 02:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785710', 'tblTempUsageDetail_20' ) start [2025-03-29 02:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785710', 'tblTempUsageDetail_20' ) end [2025-03-29 02:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785710', 'tblTempVendorCDR_20' ) start [2025-03-29 02:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785710', 'tblTempVendorCDR_20' ) end [2025-03-29 02:14:19] Production.INFO: ProcessCDR(1,14785710,1,1,2) [2025-03-29 02:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785710', 'tblTempUsageDetail_20' ) start [2025-03-29 02:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785710', 'tblTempUsageDetail_20' ) end [2025-03-29 02:14:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 02:14:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 02:14:22] Production.INFO: ==7814== Releasing lock... [2025-03-29 02:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 02:14:22] Production.INFO: 36.5 MB #Memory Used# [2025-03-29 02:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 23:15:06 [end_date_ymd] => 2025-03-29 02:15:06 [RateCDR] => 1 ) [2025-03-29 02:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 23:15:06' and `end` < '2025-03-29 02:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 02:15:18] Production.INFO: count ==1128 [2025-03-29 02:15:19] Production.ERROR: pbx CDR StartTime 2025-03-28 23:15:06 - End Time 2025-03-29 02:15:06 [2025-03-29 02:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 02:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785715', 'tblTempUsageDetail_20' ) start [2025-03-29 02:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785715', 'tblTempUsageDetail_20' ) end [2025-03-29 02:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785715', 'tblTempVendorCDR_20' ) start [2025-03-29 02:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785715', 'tblTempVendorCDR_20' ) end [2025-03-29 02:15:19] Production.INFO: ProcessCDR(1,14785715,1,1,2) [2025-03-29 02:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785715', 'tblTempUsageDetail_20' ) start [2025-03-29 02:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785715', 'tblTempUsageDetail_20' ) end [2025-03-29 02:15:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 02:15:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 02:15:22] Production.INFO: ==7894== Releasing lock... [2025-03-29 02:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 02:15:22] Production.INFO: 36.5 MB #Memory Used# [2025-03-29 02:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 23:16:05 [end_date_ymd] => 2025-03-29 02:16:05 [RateCDR] => 1 ) [2025-03-29 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-28 23:16:05' and `end` < '2025-03-29 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-29 02:16:17] Production.INFO: count ==1116 [2025-03-29 02:16:18] Production.ERROR: pbx CDR StartTime 2025-03-28 23:16:05 - End Time 2025-03-29 02:16:05 [2025-03-29 02:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785720', 'tblTempUsageDetail_20' ) start [2025-03-29 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785720', 'tblTempUsageDetail_20' ) end [2025-03-29 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785720', 'tblTempVendorCDR_20' ) start [2025-03-29 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785720', 'tblTempVendorCDR_20' ) end [2025-03-29 02:16:18] Production.INFO: ProcessCDR(1,14785720,1,1,2) [2025-03-29 02:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785720', 'tblTempUsageDetail_20' ) start [2025-03-29 02:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785720', 'tblTempUsageDetail_20' ) end [2025-03-29 02:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 02:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 02:16:21] Production.INFO: ==7970== Releasing lock... [2025-03-29 02:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 02:16:21] Production.INFO: 36.5 MB #Memory Used# [2025-03-29 02:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 23:17:05 [end_date_ymd] => 2025-03-29 02:17:05 [RateCDR] => 1 ) [2025-03-29 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-28 23:17:05' and `end` < '2025-03-29 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-29 02:17:18] Production.INFO: count ==1113 [2025-03-29 02:17:18] Production.ERROR: pbx CDR StartTime 2025-03-28 23:17:05 - End Time 2025-03-29 02:17:05 [2025-03-29 02:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785725', 'tblTempUsageDetail_20' ) start [2025-03-29 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785725', 'tblTempUsageDetail_20' ) end [2025-03-29 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785725', 'tblTempVendorCDR_20' ) start [2025-03-29 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785725', 'tblTempVendorCDR_20' ) end [2025-03-29 02:17:18] Production.INFO: ProcessCDR(1,14785725,1,1,2) [2025-03-29 02:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785725', 'tblTempUsageDetail_20' ) start [2025-03-29 02:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785725', 'tblTempUsageDetail_20' ) end [2025-03-29 02:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 02:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 02:17:22] Production.INFO: ==8047== Releasing lock... [2025-03-29 02:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 02:17:22] Production.INFO: 36.75 MB #Memory Used# [2025-03-29 02:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 23:18:06 [end_date_ymd] => 2025-03-29 02:18:06 [RateCDR] => 1 ) [2025-03-29 02:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 23:18:06' and `end` < '2025-03-29 02:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 02:18:18] Production.INFO: count ==1110 [2025-03-29 02:18:19] Production.ERROR: pbx CDR StartTime 2025-03-28 23:18:06 - End Time 2025-03-29 02:18:06 [2025-03-29 02:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 02:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785730', 'tblTempUsageDetail_20' ) start [2025-03-29 02:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785730', 'tblTempUsageDetail_20' ) end [2025-03-29 02:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785730', 'tblTempVendorCDR_20' ) start [2025-03-29 02:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785730', 'tblTempVendorCDR_20' ) end [2025-03-29 02:18:19] Production.INFO: ProcessCDR(1,14785730,1,1,2) [2025-03-29 02:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785730', 'tblTempUsageDetail_20' ) start [2025-03-29 02:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785730', 'tblTempUsageDetail_20' ) end [2025-03-29 02:18:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 02:18:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 02:18:22] Production.INFO: ==8133== Releasing lock... [2025-03-29 02:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 02:18:22] Production.INFO: 36.75 MB #Memory Used# [2025-03-29 02:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 23:19:05 [end_date_ymd] => 2025-03-29 02:19:05 [RateCDR] => 1 ) [2025-03-29 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-28 23:19:05' and `end` < '2025-03-29 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-29 02:19:18] Production.INFO: count ==1106 [2025-03-29 02:19:18] Production.ERROR: pbx CDR StartTime 2025-03-28 23:19:05 - End Time 2025-03-29 02:19:05 [2025-03-29 02:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785735', 'tblTempUsageDetail_20' ) start [2025-03-29 02:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785735', 'tblTempUsageDetail_20' ) end [2025-03-29 02:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785735', 'tblTempVendorCDR_20' ) start [2025-03-29 02:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785735', 'tblTempVendorCDR_20' ) end [2025-03-29 02:19:19] Production.INFO: ProcessCDR(1,14785735,1,1,2) [2025-03-29 02:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785735', 'tblTempUsageDetail_20' ) start [2025-03-29 02:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785735', 'tblTempUsageDetail_20' ) end [2025-03-29 02:19:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 02:19:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 02:19:22] Production.INFO: ==8216== Releasing lock... [2025-03-29 02:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 02:19:22] Production.INFO: 36.5 MB #Memory Used# [2025-03-29 02:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 23:20:06 [end_date_ymd] => 2025-03-29 02:20:06 [RateCDR] => 1 ) [2025-03-29 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-28 23:20:06' and `end` < '2025-03-29 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-29 02:20:18] Production.INFO: count ==1101 [2025-03-29 02:20:19] Production.ERROR: pbx CDR StartTime 2025-03-28 23:20:06 - End Time 2025-03-29 02:20:06 [2025-03-29 02:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785741', 'tblTempUsageDetail_20' ) start [2025-03-29 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785741', 'tblTempUsageDetail_20' ) end [2025-03-29 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785741', 'tblTempVendorCDR_20' ) start [2025-03-29 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785741', 'tblTempVendorCDR_20' ) end [2025-03-29 02:20:19] Production.INFO: ProcessCDR(1,14785741,1,1,2) [2025-03-29 02:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785741', 'tblTempUsageDetail_20' ) start [2025-03-29 02:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785741', 'tblTempUsageDetail_20' ) end [2025-03-29 02:20:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 02:20:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 02:20:23] Production.INFO: ==8300== Releasing lock... [2025-03-29 02:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 02:20:23] Production.INFO: 36.25 MB #Memory Used# [2025-03-29 02:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 23:21:05 [end_date_ymd] => 2025-03-29 02:21:05 [RateCDR] => 1 ) [2025-03-29 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-28 23:21:05' and `end` < '2025-03-29 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-29 02:21:17] Production.INFO: count ==1101 [2025-03-29 02:21:18] Production.ERROR: pbx CDR StartTime 2025-03-28 23:21:05 - End Time 2025-03-29 02:21:05 [2025-03-29 02:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785746', 'tblTempUsageDetail_20' ) start [2025-03-29 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785746', 'tblTempUsageDetail_20' ) end [2025-03-29 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785746', 'tblTempVendorCDR_20' ) start [2025-03-29 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785746', 'tblTempVendorCDR_20' ) end [2025-03-29 02:21:18] Production.INFO: ProcessCDR(1,14785746,1,1,2) [2025-03-29 02:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785746', 'tblTempUsageDetail_20' ) start [2025-03-29 02:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785746', 'tblTempUsageDetail_20' ) end [2025-03-29 02:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 02:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 02:21:21] Production.INFO: ==8391== Releasing lock... [2025-03-29 02:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 02:21:21] Production.INFO: 36.25 MB #Memory Used# [2025-03-29 02:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 23:22:06 [end_date_ymd] => 2025-03-29 02:22:06 [RateCDR] => 1 ) [2025-03-29 02:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 23:22:06' and `end` < '2025-03-29 02:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 02:22:19] Production.INFO: count ==1096 [2025-03-29 02:22:19] Production.ERROR: pbx CDR StartTime 2025-03-28 23:22:06 - End Time 2025-03-29 02:22:06 [2025-03-29 02:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 02:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785751', 'tblTempUsageDetail_20' ) start [2025-03-29 02:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785751', 'tblTempUsageDetail_20' ) end [2025-03-29 02:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785751', 'tblTempVendorCDR_20' ) start [2025-03-29 02:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785751', 'tblTempVendorCDR_20' ) end [2025-03-29 02:22:19] Production.INFO: ProcessCDR(1,14785751,1,1,2) [2025-03-29 02:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785751', 'tblTempUsageDetail_20' ) start [2025-03-29 02:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785751', 'tblTempUsageDetail_20' ) end [2025-03-29 02:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 02:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 02:22:22] Production.INFO: ==8475== Releasing lock... [2025-03-29 02:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 02:22:22] Production.INFO: 36.25 MB #Memory Used# [2025-03-29 02:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 23:23:05 [end_date_ymd] => 2025-03-29 02:23:05 [RateCDR] => 1 ) [2025-03-29 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-28 23:23:05' and `end` < '2025-03-29 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-29 02:23:18] Production.INFO: count ==1096 [2025-03-29 02:23:18] Production.ERROR: pbx CDR StartTime 2025-03-28 23:23:05 - End Time 2025-03-29 02:23:05 [2025-03-29 02:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785756', 'tblTempUsageDetail_20' ) start [2025-03-29 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785756', 'tblTempUsageDetail_20' ) end [2025-03-29 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785756', 'tblTempVendorCDR_20' ) start [2025-03-29 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785756', 'tblTempVendorCDR_20' ) end [2025-03-29 02:23:18] Production.INFO: ProcessCDR(1,14785756,1,1,2) [2025-03-29 02:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785756', 'tblTempUsageDetail_20' ) start [2025-03-29 02:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785756', 'tblTempUsageDetail_20' ) end [2025-03-29 02:23:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 02:23:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 02:23:22] Production.INFO: ==8553== Releasing lock... [2025-03-29 02:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 02:23:22] Production.INFO: 36.25 MB #Memory Used# [2025-03-29 02:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 23:24:06 [end_date_ymd] => 2025-03-29 02:24:06 [RateCDR] => 1 ) [2025-03-29 02:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 23:24:06' and `end` < '2025-03-29 02:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 02:24:18] Production.INFO: count ==1104 [2025-03-29 02:24:19] Production.ERROR: pbx CDR StartTime 2025-03-28 23:24:06 - End Time 2025-03-29 02:24:06 [2025-03-29 02:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 02:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785761', 'tblTempUsageDetail_20' ) start [2025-03-29 02:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785761', 'tblTempUsageDetail_20' ) end [2025-03-29 02:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785761', 'tblTempVendorCDR_20' ) start [2025-03-29 02:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785761', 'tblTempVendorCDR_20' ) end [2025-03-29 02:24:19] Production.INFO: ProcessCDR(1,14785761,1,1,2) [2025-03-29 02:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785761', 'tblTempUsageDetail_20' ) start [2025-03-29 02:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785761', 'tblTempUsageDetail_20' ) end [2025-03-29 02:24:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 02:24:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 02:24:22] Production.INFO: ==8640== Releasing lock... [2025-03-29 02:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 02:24:22] Production.INFO: 36.25 MB #Memory Used# [2025-03-29 02:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 23:25:05 [end_date_ymd] => 2025-03-29 02:25:05 [RateCDR] => 1 ) [2025-03-29 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-28 23:25:05' and `end` < '2025-03-29 02:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 02:25:18] Production.INFO: count ==1102 [2025-03-29 02:25:19] Production.ERROR: pbx CDR StartTime 2025-03-28 23:25:05 - End Time 2025-03-29 02:25:05 [2025-03-29 02:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785766', 'tblTempUsageDetail_20' ) start [2025-03-29 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785766', 'tblTempUsageDetail_20' ) end [2025-03-29 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785766', 'tblTempVendorCDR_20' ) start [2025-03-29 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785766', 'tblTempVendorCDR_20' ) end [2025-03-29 02:25:19] Production.INFO: ProcessCDR(1,14785766,1,1,2) [2025-03-29 02:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785766', 'tblTempUsageDetail_20' ) start [2025-03-29 02:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785766', 'tblTempUsageDetail_20' ) end [2025-03-29 02:25:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 02:25:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 02:25:22] Production.INFO: ==8722== Releasing lock... [2025-03-29 02:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 02:25:22] Production.INFO: 36.5 MB #Memory Used# [2025-03-29 02:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 23:26:06 [end_date_ymd] => 2025-03-29 02:26:06 [RateCDR] => 1 ) [2025-03-29 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-28 23:26:06' and `end` < '2025-03-29 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-29 02:26:19] Production.INFO: count ==1112 [2025-03-29 02:26:19] Production.ERROR: pbx CDR StartTime 2025-03-28 23:26:06 - End Time 2025-03-29 02:26:06 [2025-03-29 02:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 02:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785771', 'tblTempUsageDetail_20' ) start [2025-03-29 02:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785771', 'tblTempUsageDetail_20' ) end [2025-03-29 02:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785771', 'tblTempVendorCDR_20' ) start [2025-03-29 02:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785771', 'tblTempVendorCDR_20' ) end [2025-03-29 02:26:19] Production.INFO: ProcessCDR(1,14785771,1,1,2) [2025-03-29 02:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785771', 'tblTempUsageDetail_20' ) start [2025-03-29 02:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785771', 'tblTempUsageDetail_20' ) end [2025-03-29 02:26:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 02:26:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 02:26:23] Production.INFO: ==8804== Releasing lock... [2025-03-29 02:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 02:26:23] Production.INFO: 37 MB #Memory Used# [2025-03-29 02:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 23:27:05 [end_date_ymd] => 2025-03-29 02:27:05 [RateCDR] => 1 ) [2025-03-29 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-28 23:27:05' and `end` < '2025-03-29 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-29 02:27:17] Production.INFO: count ==1112 [2025-03-29 02:27:17] Production.ERROR: pbx CDR StartTime 2025-03-28 23:27:05 - End Time 2025-03-29 02:27:05 [2025-03-29 02:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785776', 'tblTempUsageDetail_20' ) start [2025-03-29 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785776', 'tblTempUsageDetail_20' ) end [2025-03-29 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785776', 'tblTempVendorCDR_20' ) start [2025-03-29 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785776', 'tblTempVendorCDR_20' ) end [2025-03-29 02:27:18] Production.INFO: ProcessCDR(1,14785776,1,1,2) [2025-03-29 02:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785776', 'tblTempUsageDetail_20' ) start [2025-03-29 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785776', 'tblTempUsageDetail_20' ) end [2025-03-29 02:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 02:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 02:27:21] Production.INFO: ==8884== Releasing lock... [2025-03-29 02:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 02:27:21] Production.INFO: 37 MB #Memory Used# [2025-03-29 02:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 23:28:06 [end_date_ymd] => 2025-03-29 02:28:06 [RateCDR] => 1 ) [2025-03-29 02:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 23:28:06' and `end` < '2025-03-29 02:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 02:28:18] Production.INFO: count ==1109 [2025-03-29 02:28:19] Production.ERROR: pbx CDR StartTime 2025-03-28 23:28:06 - End Time 2025-03-29 02:28:06 [2025-03-29 02:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 02:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785781', 'tblTempUsageDetail_20' ) start [2025-03-29 02:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785781', 'tblTempUsageDetail_20' ) end [2025-03-29 02:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785781', 'tblTempVendorCDR_20' ) start [2025-03-29 02:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785781', 'tblTempVendorCDR_20' ) end [2025-03-29 02:28:19] Production.INFO: ProcessCDR(1,14785781,1,1,2) [2025-03-29 02:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785781', 'tblTempUsageDetail_20' ) start [2025-03-29 02:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785781', 'tblTempUsageDetail_20' ) end [2025-03-29 02:28:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 02:28:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 02:28:24] Production.INFO: ==9016== Releasing lock... [2025-03-29 02:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 02:28:24] Production.INFO: 36.75 MB #Memory Used# [2025-03-29 02:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 23:29:05 [end_date_ymd] => 2025-03-29 02:29:05 [RateCDR] => 1 ) [2025-03-29 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-28 23:29:05' and `end` < '2025-03-29 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-29 02:29:18] Production.INFO: count ==1109 [2025-03-29 02:29:18] Production.ERROR: pbx CDR StartTime 2025-03-28 23:29:05 - End Time 2025-03-29 02:29:05 [2025-03-29 02:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785786', 'tblTempUsageDetail_20' ) start [2025-03-29 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785786', 'tblTempUsageDetail_20' ) end [2025-03-29 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785786', 'tblTempVendorCDR_20' ) start [2025-03-29 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785786', 'tblTempVendorCDR_20' ) end [2025-03-29 02:29:18] Production.INFO: ProcessCDR(1,14785786,1,1,2) [2025-03-29 02:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785786', 'tblTempUsageDetail_20' ) start [2025-03-29 02:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785786', 'tblTempUsageDetail_20' ) end [2025-03-29 02:29:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 02:29:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 02:29:22] Production.INFO: ==9096== Releasing lock... [2025-03-29 02:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 02:29:22] Production.INFO: 36.75 MB #Memory Used# [2025-03-29 02:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 23:30:06 [end_date_ymd] => 2025-03-29 02:30:06 [RateCDR] => 1 ) [2025-03-29 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-28 23:30:06' and `end` < '2025-03-29 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-29 02:30:19] Production.INFO: count ==1108 [2025-03-29 02:30:19] Production.ERROR: pbx CDR StartTime 2025-03-28 23:30:06 - End Time 2025-03-29 02:30:06 [2025-03-29 02:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785792', 'tblTempUsageDetail_20' ) start [2025-03-29 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785792', 'tblTempUsageDetail_20' ) end [2025-03-29 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785792', 'tblTempVendorCDR_20' ) start [2025-03-29 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785792', 'tblTempVendorCDR_20' ) end [2025-03-29 02:30:19] Production.INFO: ProcessCDR(1,14785792,1,1,2) [2025-03-29 02:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785792', 'tblTempUsageDetail_20' ) start [2025-03-29 02:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785792', 'tblTempUsageDetail_20' ) end [2025-03-29 02:30:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 02:30:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 02:30:23] Production.INFO: ==9181== Releasing lock... [2025-03-29 02:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 02:30:23] Production.INFO: 36.5 MB #Memory Used# [2025-03-29 02:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 23:31:05 [end_date_ymd] => 2025-03-29 02:31:05 [RateCDR] => 1 ) [2025-03-29 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-28 23:31:05' and `end` < '2025-03-29 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-29 02:31:18] Production.INFO: count ==1112 [2025-03-29 02:31:18] Production.ERROR: pbx CDR StartTime 2025-03-28 23:31:05 - End Time 2025-03-29 02:31:05 [2025-03-29 02:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785797', 'tblTempUsageDetail_20' ) start [2025-03-29 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785797', 'tblTempUsageDetail_20' ) end [2025-03-29 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785797', 'tblTempVendorCDR_20' ) start [2025-03-29 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785797', 'tblTempVendorCDR_20' ) end [2025-03-29 02:31:18] Production.INFO: ProcessCDR(1,14785797,1,1,2) [2025-03-29 02:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785797', 'tblTempUsageDetail_20' ) start [2025-03-29 02:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785797', 'tblTempUsageDetail_20' ) end [2025-03-29 02:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 02:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 02:31:22] Production.INFO: ==9266== Releasing lock... [2025-03-29 02:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 02:31:22] Production.INFO: 36.75 MB #Memory Used# [2025-03-29 02:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 23:32:06 [end_date_ymd] => 2025-03-29 02:32:06 [RateCDR] => 1 ) [2025-03-29 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-28 23:32:06' and `end` < '2025-03-29 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-29 02:32:18] Production.INFO: count ==1118 [2025-03-29 02:32:19] Production.ERROR: pbx CDR StartTime 2025-03-28 23:32:06 - End Time 2025-03-29 02:32:06 [2025-03-29 02:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 02:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785802', 'tblTempUsageDetail_20' ) start [2025-03-29 02:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785802', 'tblTempUsageDetail_20' ) end [2025-03-29 02:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785802', 'tblTempVendorCDR_20' ) start [2025-03-29 02:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785802', 'tblTempVendorCDR_20' ) end [2025-03-29 02:32:19] Production.INFO: ProcessCDR(1,14785802,1,1,2) [2025-03-29 02:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785802', 'tblTempUsageDetail_20' ) start [2025-03-29 02:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785802', 'tblTempUsageDetail_20' ) end [2025-03-29 02:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 02:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 02:32:22] Production.INFO: ==9351== Releasing lock... [2025-03-29 02:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 02:32:22] Production.INFO: 36.75 MB #Memory Used# [2025-03-29 02:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 23:33:05 [end_date_ymd] => 2025-03-29 02:33:05 [RateCDR] => 1 ) [2025-03-29 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-28 23:33:05' and `end` < '2025-03-29 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-29 02:33:18] Production.INFO: count ==1119 [2025-03-29 02:33:18] Production.ERROR: pbx CDR StartTime 2025-03-28 23:33:05 - End Time 2025-03-29 02:33:05 [2025-03-29 02:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785807', 'tblTempUsageDetail_20' ) start [2025-03-29 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785807', 'tblTempUsageDetail_20' ) end [2025-03-29 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785807', 'tblTempVendorCDR_20' ) start [2025-03-29 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785807', 'tblTempVendorCDR_20' ) end [2025-03-29 02:33:18] Production.INFO: ProcessCDR(1,14785807,1,1,2) [2025-03-29 02:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785807', 'tblTempUsageDetail_20' ) start [2025-03-29 02:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785807', 'tblTempUsageDetail_20' ) end [2025-03-29 02:33:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 02:33:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 02:33:22] Production.INFO: ==9441== Releasing lock... [2025-03-29 02:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 02:33:22] Production.INFO: 36.75 MB #Memory Used# [2025-03-29 02:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 23:34:06 [end_date_ymd] => 2025-03-29 02:34:06 [RateCDR] => 1 ) [2025-03-29 02:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 23:34:06' and `end` < '2025-03-29 02:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 02:34:19] Production.INFO: count ==1119 [2025-03-29 02:34:19] Production.ERROR: pbx CDR StartTime 2025-03-28 23:34:06 - End Time 2025-03-29 02:34:06 [2025-03-29 02:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 02:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785812', 'tblTempUsageDetail_20' ) start [2025-03-29 02:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785812', 'tblTempUsageDetail_20' ) end [2025-03-29 02:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785812', 'tblTempVendorCDR_20' ) start [2025-03-29 02:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785812', 'tblTempVendorCDR_20' ) end [2025-03-29 02:34:19] Production.INFO: ProcessCDR(1,14785812,1,1,2) [2025-03-29 02:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785812', 'tblTempUsageDetail_20' ) start [2025-03-29 02:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785812', 'tblTempUsageDetail_20' ) end [2025-03-29 02:34:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 02:34:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 02:34:23] Production.INFO: ==9526== Releasing lock... [2025-03-29 02:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 02:34:23] Production.INFO: 36.75 MB #Memory Used# [2025-03-29 02:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 23:35:06 [end_date_ymd] => 2025-03-29 02:35:06 [RateCDR] => 1 ) [2025-03-29 02: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-28 23:35:06' and `end` < '2025-03-29 02: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-29 02:35:18] Production.INFO: count ==1119 [2025-03-29 02:35:19] Production.ERROR: pbx CDR StartTime 2025-03-28 23:35:06 - End Time 2025-03-29 02:35:06 [2025-03-29 02:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 02:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785817', 'tblTempUsageDetail_20' ) start [2025-03-29 02:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785817', 'tblTempUsageDetail_20' ) end [2025-03-29 02:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785817', 'tblTempVendorCDR_20' ) start [2025-03-29 02:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785817', 'tblTempVendorCDR_20' ) end [2025-03-29 02:35:19] Production.INFO: ProcessCDR(1,14785817,1,1,2) [2025-03-29 02:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785817', 'tblTempUsageDetail_20' ) start [2025-03-29 02:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785817', 'tblTempUsageDetail_20' ) end [2025-03-29 02:35:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 02:35:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 02:35:23] Production.INFO: ==9609== Releasing lock... [2025-03-29 02:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 02:35:23] Production.INFO: 36.75 MB #Memory Used# [2025-03-29 02:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 23:36:06 [end_date_ymd] => 2025-03-29 02:36:06 [RateCDR] => 1 ) [2025-03-29 02:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 23:36:06' and `end` < '2025-03-29 02:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 02:36:19] Production.INFO: count ==1117 [2025-03-29 02:36:19] Production.ERROR: pbx CDR StartTime 2025-03-28 23:36:06 - End Time 2025-03-29 02:36:06 [2025-03-29 02:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785822', 'tblTempUsageDetail_20' ) start [2025-03-29 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785822', 'tblTempUsageDetail_20' ) end [2025-03-29 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785822', 'tblTempVendorCDR_20' ) start [2025-03-29 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785822', 'tblTempVendorCDR_20' ) end [2025-03-29 02:36:19] Production.INFO: ProcessCDR(1,14785822,1,1,2) [2025-03-29 02:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785822', 'tblTempUsageDetail_20' ) start [2025-03-29 02:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785822', 'tblTempUsageDetail_20' ) end [2025-03-29 02:36:25] Production.ERROR: pbx prc_insertCDR start [2025-03-29 02:36:25] Production.ERROR: pbx prc_insertCDR end [2025-03-29 02:36:25] Production.INFO: ==9691== Releasing lock... [2025-03-29 02:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 02:36:25] Production.INFO: 36.75 MB #Memory Used# [2025-03-29 02:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 23:37:06 [end_date_ymd] => 2025-03-29 02:37:06 [RateCDR] => 1 ) [2025-03-29 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-28 23:37:06' and `end` < '2025-03-29 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-29 02:37:18] Production.INFO: count ==1117 [2025-03-29 02:37:19] Production.ERROR: pbx CDR StartTime 2025-03-28 23:37:06 - End Time 2025-03-29 02:37:06 [2025-03-29 02:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 02:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785827', 'tblTempUsageDetail_20' ) start [2025-03-29 02:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785827', 'tblTempUsageDetail_20' ) end [2025-03-29 02:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785827', 'tblTempVendorCDR_20' ) start [2025-03-29 02:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785827', 'tblTempVendorCDR_20' ) end [2025-03-29 02:37:19] Production.INFO: ProcessCDR(1,14785827,1,1,2) [2025-03-29 02:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785827', 'tblTempUsageDetail_20' ) start [2025-03-29 02:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785827', 'tblTempUsageDetail_20' ) end [2025-03-29 02:37:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 02:37:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 02:37:23] Production.INFO: ==9778== Releasing lock... [2025-03-29 02:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 02:37:23] Production.INFO: 36.75 MB #Memory Used# [2025-03-29 02:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 23:38:06 [end_date_ymd] => 2025-03-29 02:38:06 [RateCDR] => 1 ) [2025-03-29 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-28 23:38:06' and `end` < '2025-03-29 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-29 02:38:19] Production.INFO: count ==1115 [2025-03-29 02:38:19] Production.ERROR: pbx CDR StartTime 2025-03-28 23:38:06 - End Time 2025-03-29 02:38:06 [2025-03-29 02:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785828', 'tblTempUsageDetail_20' ) start [2025-03-29 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785828', 'tblTempUsageDetail_20' ) end [2025-03-29 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785828', 'tblTempVendorCDR_20' ) start [2025-03-29 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785828', 'tblTempVendorCDR_20' ) end [2025-03-29 02:38:19] Production.INFO: ProcessCDR(1,14785828,1,1,2) [2025-03-29 02:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785828', 'tblTempUsageDetail_20' ) start [2025-03-29 02:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785828', 'tblTempUsageDetail_20' ) end [2025-03-29 02:38:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 02:38:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 02:38:23] Production.INFO: ==9864== Releasing lock... [2025-03-29 02:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 02:38:23] Production.INFO: 36.75 MB #Memory Used# [2025-03-29 02:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 23:39:06 [end_date_ymd] => 2025-03-29 02:39:06 [RateCDR] => 1 ) [2025-03-29 02: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-28 23:39:06' and `end` < '2025-03-29 02: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-29 02:39:19] Production.INFO: count ==1115 [2025-03-29 02:39:19] Production.ERROR: pbx CDR StartTime 2025-03-28 23:39:06 - End Time 2025-03-29 02:39:06 [2025-03-29 02:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 02:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785837', 'tblTempUsageDetail_20' ) start [2025-03-29 02:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785837', 'tblTempUsageDetail_20' ) end [2025-03-29 02:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785837', 'tblTempVendorCDR_20' ) start [2025-03-29 02:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785837', 'tblTempVendorCDR_20' ) end [2025-03-29 02:39:19] Production.INFO: ProcessCDR(1,14785837,1,1,2) [2025-03-29 02:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785837', 'tblTempUsageDetail_20' ) start [2025-03-29 02:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785837', 'tblTempUsageDetail_20' ) end [2025-03-29 02:39:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 02:39:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 02:39:23] Production.INFO: ==9944== Releasing lock... [2025-03-29 02:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 02:39:23] Production.INFO: 36.75 MB #Memory Used# [2025-03-29 02:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 23:40:07 [end_date_ymd] => 2025-03-29 02:40:07 [RateCDR] => 1 ) [2025-03-29 02: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-28 23:40:07' and `end` < '2025-03-29 02: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-29 02:40:19] Production.INFO: count ==1125 [2025-03-29 02:40:20] Production.ERROR: pbx CDR StartTime 2025-03-28 23:40:07 - End Time 2025-03-29 02:40:07 [2025-03-29 02:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 02:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785842', 'tblTempUsageDetail_20' ) start [2025-03-29 02:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785842', 'tblTempUsageDetail_20' ) end [2025-03-29 02:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785842', 'tblTempVendorCDR_20' ) start [2025-03-29 02:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785842', 'tblTempVendorCDR_20' ) end [2025-03-29 02:40:20] Production.INFO: ProcessCDR(1,14785842,1,1,2) [2025-03-29 02:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785842', 'tblTempUsageDetail_20' ) start [2025-03-29 02:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785842', 'tblTempUsageDetail_20' ) end [2025-03-29 02:40:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 02:40:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 02:40:23] Production.INFO: ==10030== Releasing lock... [2025-03-29 02:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 02:40:23] Production.INFO: 36.5 MB #Memory Used# [2025-03-29 02:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 23:41:06 [end_date_ymd] => 2025-03-29 02:41:06 [RateCDR] => 1 ) [2025-03-29 02:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 23:41:06' and `end` < '2025-03-29 02:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 02:41:19] Production.INFO: count ==1142 [2025-03-29 02:41:19] Production.ERROR: pbx CDR StartTime 2025-03-28 23:41:06 - End Time 2025-03-29 02:41:06 [2025-03-29 02:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 02:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785848', 'tblTempUsageDetail_20' ) start [2025-03-29 02:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785848', 'tblTempUsageDetail_20' ) end [2025-03-29 02:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785848', 'tblTempVendorCDR_20' ) start [2025-03-29 02:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785848', 'tblTempVendorCDR_20' ) end [2025-03-29 02:41:19] Production.INFO: ProcessCDR(1,14785848,1,1,2) [2025-03-29 02:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785848', 'tblTempUsageDetail_20' ) start [2025-03-29 02:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785848', 'tblTempUsageDetail_20' ) end [2025-03-29 02:41:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 02:41:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 02:41:23] Production.INFO: ==10113== Releasing lock... [2025-03-29 02:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 02:41:23] Production.INFO: 36.75 MB #Memory Used# [2025-03-29 02:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 23:42:06 [end_date_ymd] => 2025-03-29 02:42:06 [RateCDR] => 1 ) [2025-03-29 02: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-28 23:42:06' and `end` < '2025-03-29 02: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-29 02:42:18] Production.INFO: count ==1141 [2025-03-29 02:42:19] Production.ERROR: pbx CDR StartTime 2025-03-28 23:42:06 - End Time 2025-03-29 02:42:06 [2025-03-29 02:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785853', 'tblTempUsageDetail_20' ) start [2025-03-29 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785853', 'tblTempUsageDetail_20' ) end [2025-03-29 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785853', 'tblTempVendorCDR_20' ) start [2025-03-29 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785853', 'tblTempVendorCDR_20' ) end [2025-03-29 02:42:19] Production.INFO: ProcessCDR(1,14785853,1,1,2) [2025-03-29 02:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785853', 'tblTempUsageDetail_20' ) start [2025-03-29 02:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785853', 'tblTempUsageDetail_20' ) end [2025-03-29 02:42:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 02:42:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 02:42:23] Production.INFO: ==10194== Releasing lock... [2025-03-29 02:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 02:42:23] Production.INFO: 36.75 MB #Memory Used# [2025-03-29 02:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 23:43:06 [end_date_ymd] => 2025-03-29 02:43:06 [RateCDR] => 1 ) [2025-03-29 02: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-28 23:43:06' and `end` < '2025-03-29 02: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-29 02:43:19] Production.INFO: count ==1139 [2025-03-29 02:43:19] Production.ERROR: pbx CDR StartTime 2025-03-28 23:43:06 - End Time 2025-03-29 02:43:06 [2025-03-29 02:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 02:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785858', 'tblTempUsageDetail_20' ) start [2025-03-29 02:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785858', 'tblTempUsageDetail_20' ) end [2025-03-29 02:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785858', 'tblTempVendorCDR_20' ) start [2025-03-29 02:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785858', 'tblTempVendorCDR_20' ) end [2025-03-29 02:43:19] Production.INFO: ProcessCDR(1,14785858,1,1,2) [2025-03-29 02:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785858', 'tblTempUsageDetail_20' ) start [2025-03-29 02:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785858', 'tblTempUsageDetail_20' ) end [2025-03-29 02:43:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 02:43:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 02:43:23] Production.INFO: ==10316== Releasing lock... [2025-03-29 02:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 02:43:23] Production.INFO: 37 MB #Memory Used# [2025-03-29 02:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 23:44:05 [end_date_ymd] => 2025-03-29 02:44:05 [RateCDR] => 1 ) [2025-03-29 02:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 23:44:05' and `end` < '2025-03-29 02:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 02:44:18] Production.INFO: count ==1134 [2025-03-29 02:44:19] Production.ERROR: pbx CDR StartTime 2025-03-28 23:44:05 - End Time 2025-03-29 02:44:05 [2025-03-29 02:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785863', 'tblTempUsageDetail_20' ) start [2025-03-29 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785863', 'tblTempUsageDetail_20' ) end [2025-03-29 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785863', 'tblTempVendorCDR_20' ) start [2025-03-29 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785863', 'tblTempVendorCDR_20' ) end [2025-03-29 02:44:19] Production.INFO: ProcessCDR(1,14785863,1,1,2) [2025-03-29 02:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785863', 'tblTempUsageDetail_20' ) start [2025-03-29 02:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785863', 'tblTempUsageDetail_20' ) end [2025-03-29 02:44:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 02:44:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 02:44:23] Production.INFO: ==10395== Releasing lock... [2025-03-29 02:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 02:44:23] Production.INFO: 36.5 MB #Memory Used# [2025-03-29 02:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 23:45:05 [end_date_ymd] => 2025-03-29 02:45:05 [RateCDR] => 1 ) [2025-03-29 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-28 23:45:05' and `end` < '2025-03-29 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-29 02:45:18] Production.INFO: count ==1119 [2025-03-29 02:45:18] Production.ERROR: pbx CDR StartTime 2025-03-28 23:45:05 - End Time 2025-03-29 02:45:05 [2025-03-29 02:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785868', 'tblTempUsageDetail_20' ) start [2025-03-29 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785868', 'tblTempUsageDetail_20' ) end [2025-03-29 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785868', 'tblTempVendorCDR_20' ) start [2025-03-29 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785868', 'tblTempVendorCDR_20' ) end [2025-03-29 02:45:18] Production.INFO: ProcessCDR(1,14785868,1,1,2) [2025-03-29 02:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785868', 'tblTempUsageDetail_20' ) start [2025-03-29 02:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785868', 'tblTempUsageDetail_20' ) end [2025-03-29 02:45:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 02:45:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 02:45:22] Production.INFO: ==10472== Releasing lock... [2025-03-29 02:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 02:45:22] Production.INFO: 36.5 MB #Memory Used# [2025-03-29 02:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 23:46:05 [end_date_ymd] => 2025-03-29 02:46:05 [RateCDR] => 1 ) [2025-03-29 02:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 23:46:05' and `end` < '2025-03-29 02:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 02:46:17] Production.INFO: count ==1122 [2025-03-29 02:46:18] Production.ERROR: pbx CDR StartTime 2025-03-28 23:46:05 - End Time 2025-03-29 02:46:05 [2025-03-29 02:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785873', 'tblTempUsageDetail_20' ) start [2025-03-29 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785873', 'tblTempUsageDetail_20' ) end [2025-03-29 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785873', 'tblTempVendorCDR_20' ) start [2025-03-29 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785873', 'tblTempVendorCDR_20' ) end [2025-03-29 02:46:18] Production.INFO: ProcessCDR(1,14785873,1,1,2) [2025-03-29 02:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785873', 'tblTempUsageDetail_20' ) start [2025-03-29 02:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785873', 'tblTempUsageDetail_20' ) end [2025-03-29 02:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 02:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 02:46:22] Production.INFO: ==10557== Releasing lock... [2025-03-29 02:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 02:46:22] Production.INFO: 37.5 MB #Memory Used# [2025-03-29 02:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 23:47:06 [end_date_ymd] => 2025-03-29 02:47:06 [RateCDR] => 1 ) [2025-03-29 02: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-28 23:47:06' and `end` < '2025-03-29 02: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-29 02:47:18] Production.INFO: count ==1118 [2025-03-29 02:47:19] Production.ERROR: pbx CDR StartTime 2025-03-28 23:47:06 - End Time 2025-03-29 02:47:06 [2025-03-29 02:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 02:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785878', 'tblTempUsageDetail_20' ) start [2025-03-29 02:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785878', 'tblTempUsageDetail_20' ) end [2025-03-29 02:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785878', 'tblTempVendorCDR_20' ) start [2025-03-29 02:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785878', 'tblTempVendorCDR_20' ) end [2025-03-29 02:47:19] Production.INFO: ProcessCDR(1,14785878,1,1,2) [2025-03-29 02:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785878', 'tblTempUsageDetail_20' ) start [2025-03-29 02:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785878', 'tblTempUsageDetail_20' ) end [2025-03-29 02:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 02:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 02:47:22] Production.INFO: ==10640== Releasing lock... [2025-03-29 02:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 02:47:22] Production.INFO: 36.5 MB #Memory Used# [2025-03-29 02:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 23:48:06 [end_date_ymd] => 2025-03-29 02:48:06 [RateCDR] => 1 ) [2025-03-29 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-28 23:48:06' and `end` < '2025-03-29 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-29 02:48:18] Production.INFO: count ==1118 [2025-03-29 02:48:19] Production.ERROR: pbx CDR StartTime 2025-03-28 23:48:06 - End Time 2025-03-29 02:48:06 [2025-03-29 02:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 02:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785883', 'tblTempUsageDetail_20' ) start [2025-03-29 02:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785883', 'tblTempUsageDetail_20' ) end [2025-03-29 02:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785883', 'tblTempVendorCDR_20' ) start [2025-03-29 02:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785883', 'tblTempVendorCDR_20' ) end [2025-03-29 02:48:19] Production.INFO: ProcessCDR(1,14785883,1,1,2) [2025-03-29 02:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785883', 'tblTempUsageDetail_20' ) start [2025-03-29 02:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785883', 'tblTempUsageDetail_20' ) end [2025-03-29 02:48:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 02:48:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 02:48:23] Production.INFO: ==10723== Releasing lock... [2025-03-29 02:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 02:48:23] Production.INFO: 36.5 MB #Memory Used# [2025-03-29 02:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 23:49:05 [end_date_ymd] => 2025-03-29 02:49:05 [RateCDR] => 1 ) [2025-03-29 02:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 23:49:05' and `end` < '2025-03-29 02:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 02:49:18] Production.INFO: count ==1116 [2025-03-29 02:49:19] Production.ERROR: pbx CDR StartTime 2025-03-28 23:49:05 - End Time 2025-03-29 02:49:05 [2025-03-29 02:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 02:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785888', 'tblTempUsageDetail_20' ) start [2025-03-29 02:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785888', 'tblTempUsageDetail_20' ) end [2025-03-29 02:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785888', 'tblTempVendorCDR_20' ) start [2025-03-29 02:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785888', 'tblTempVendorCDR_20' ) end [2025-03-29 02:49:19] Production.INFO: ProcessCDR(1,14785888,1,1,2) [2025-03-29 02:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785888', 'tblTempUsageDetail_20' ) start [2025-03-29 02:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785888', 'tblTempUsageDetail_20' ) end [2025-03-29 02:49:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 02:49:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 02:49:23] Production.INFO: ==10809== Releasing lock... [2025-03-29 02:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 02:49:23] Production.INFO: 36.75 MB #Memory Used# [2025-03-29 02:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 23:50:07 [end_date_ymd] => 2025-03-29 02:50:07 [RateCDR] => 1 ) [2025-03-29 02: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-28 23:50:07' and `end` < '2025-03-29 02: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-29 02:50:20] Production.INFO: count ==1116 [2025-03-29 02:50:20] Production.ERROR: pbx CDR StartTime 2025-03-28 23:50:07 - End Time 2025-03-29 02:50:07 [2025-03-29 02:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 02:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785893', 'tblTempUsageDetail_20' ) start [2025-03-29 02:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785893', 'tblTempUsageDetail_20' ) end [2025-03-29 02:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785893', 'tblTempVendorCDR_20' ) start [2025-03-29 02:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785893', 'tblTempVendorCDR_20' ) end [2025-03-29 02:50:20] Production.INFO: ProcessCDR(1,14785893,1,1,2) [2025-03-29 02:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785893', 'tblTempUsageDetail_20' ) start [2025-03-29 02:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785893', 'tblTempUsageDetail_20' ) end [2025-03-29 02:50:26] Production.ERROR: pbx prc_insertCDR start [2025-03-29 02:50:26] Production.ERROR: pbx prc_insertCDR end [2025-03-29 02:50:26] Production.INFO: ==10891== Releasing lock... [2025-03-29 02:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 02:50:26] Production.INFO: 36.75 MB #Memory Used# [2025-03-29 02:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 23:51:06 [end_date_ymd] => 2025-03-29 02:51:06 [RateCDR] => 1 ) [2025-03-29 02:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 23:51:06' and `end` < '2025-03-29 02:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 02:51:18] Production.INFO: count ==1113 [2025-03-29 02:51:19] Production.ERROR: pbx CDR StartTime 2025-03-28 23:51:06 - End Time 2025-03-29 02:51:06 [2025-03-29 02:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 02:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785899', 'tblTempUsageDetail_20' ) start [2025-03-29 02:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785899', 'tblTempUsageDetail_20' ) end [2025-03-29 02:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785899', 'tblTempVendorCDR_20' ) start [2025-03-29 02:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785899', 'tblTempVendorCDR_20' ) end [2025-03-29 02:51:19] Production.INFO: ProcessCDR(1,14785899,1,1,2) [2025-03-29 02:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785899', 'tblTempUsageDetail_20' ) start [2025-03-29 02:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785899', 'tblTempUsageDetail_20' ) end [2025-03-29 02:51:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 02:51:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 02:51:23] Production.INFO: ==10972== Releasing lock... [2025-03-29 02:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 02:51:23] Production.INFO: 37 MB #Memory Used# [2025-03-29 02:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 23:52:05 [end_date_ymd] => 2025-03-29 02:52:05 [RateCDR] => 1 ) [2025-03-29 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-28 23:52:05' and `end` < '2025-03-29 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-29 02:52:18] Production.INFO: count ==1116 [2025-03-29 02:52:18] Production.ERROR: pbx CDR StartTime 2025-03-28 23:52:05 - End Time 2025-03-29 02:52:05 [2025-03-29 02:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785904', 'tblTempUsageDetail_20' ) start [2025-03-29 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785904', 'tblTempUsageDetail_20' ) end [2025-03-29 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785904', 'tblTempVendorCDR_20' ) start [2025-03-29 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785904', 'tblTempVendorCDR_20' ) end [2025-03-29 02:52:18] Production.INFO: ProcessCDR(1,14785904,1,1,2) [2025-03-29 02:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785904', 'tblTempUsageDetail_20' ) start [2025-03-29 02:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785904', 'tblTempUsageDetail_20' ) end [2025-03-29 02:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 02:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 02:52:22] Production.INFO: ==11052== Releasing lock... [2025-03-29 02:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 02:52:22] Production.INFO: 36.75 MB #Memory Used# [2025-03-29 02:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 23:53:06 [end_date_ymd] => 2025-03-29 02:53:06 [RateCDR] => 1 ) [2025-03-29 02: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-28 23:53:06' and `end` < '2025-03-29 02: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-29 02:53:19] Production.INFO: count ==1105 [2025-03-29 02:53:19] Production.ERROR: pbx CDR StartTime 2025-03-28 23:53:06 - End Time 2025-03-29 02:53:06 [2025-03-29 02:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785909', 'tblTempUsageDetail_20' ) start [2025-03-29 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785909', 'tblTempUsageDetail_20' ) end [2025-03-29 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785909', 'tblTempVendorCDR_20' ) start [2025-03-29 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785909', 'tblTempVendorCDR_20' ) end [2025-03-29 02:53:19] Production.INFO: ProcessCDR(1,14785909,1,1,2) [2025-03-29 02:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785909', 'tblTempUsageDetail_20' ) start [2025-03-29 02:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785909', 'tblTempUsageDetail_20' ) end [2025-03-29 02:53:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 02:53:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 02:53:23] Production.INFO: ==11131== Releasing lock... [2025-03-29 02:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 02:53:23] Production.INFO: 36.5 MB #Memory Used# [2025-03-29 02:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 23:54:05 [end_date_ymd] => 2025-03-29 02:54:05 [RateCDR] => 1 ) [2025-03-29 02:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 23:54:05' and `end` < '2025-03-29 02:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 02:54:18] Production.INFO: count ==1101 [2025-03-29 02:54:18] Production.ERROR: pbx CDR StartTime 2025-03-28 23:54:05 - End Time 2025-03-29 02:54:05 [2025-03-29 02:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785914', 'tblTempUsageDetail_20' ) start [2025-03-29 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785914', 'tblTempUsageDetail_20' ) end [2025-03-29 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785914', 'tblTempVendorCDR_20' ) start [2025-03-29 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785914', 'tblTempVendorCDR_20' ) end [2025-03-29 02:54:18] Production.INFO: ProcessCDR(1,14785914,1,1,2) [2025-03-29 02:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785914', 'tblTempUsageDetail_20' ) start [2025-03-29 02:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785914', 'tblTempUsageDetail_20' ) end [2025-03-29 02:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 02:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 02:54:22] Production.INFO: ==11211== Releasing lock... [2025-03-29 02:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 02:54:22] Production.INFO: 36.5 MB #Memory Used# [2025-03-29 02:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 23:55:06 [end_date_ymd] => 2025-03-29 02:55:06 [RateCDR] => 1 ) [2025-03-29 02: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-28 23:55:06' and `end` < '2025-03-29 02: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-29 02:55:19] Production.INFO: count ==1091 [2025-03-29 02:55:19] Production.ERROR: pbx CDR StartTime 2025-03-28 23:55:06 - End Time 2025-03-29 02:55:06 [2025-03-29 02:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 02:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785919', 'tblTempUsageDetail_20' ) start [2025-03-29 02:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785919', 'tblTempUsageDetail_20' ) end [2025-03-29 02:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785919', 'tblTempVendorCDR_20' ) start [2025-03-29 02:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785919', 'tblTempVendorCDR_20' ) end [2025-03-29 02:55:19] Production.INFO: ProcessCDR(1,14785919,1,1,2) [2025-03-29 02:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785919', 'tblTempUsageDetail_20' ) start [2025-03-29 02:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785919', 'tblTempUsageDetail_20' ) end [2025-03-29 02:55:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 02:55:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 02:55:24] Production.INFO: ==11293== Releasing lock... [2025-03-29 02:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 02:55:24] Production.INFO: 36.5 MB #Memory Used# [2025-03-29 02:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 23:56:05 [end_date_ymd] => 2025-03-29 02:56:05 [RateCDR] => 1 ) [2025-03-29 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-28 23:56:05' and `end` < '2025-03-29 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-29 02:56:18] Production.INFO: count ==1086 [2025-03-29 02:56:18] Production.ERROR: pbx CDR StartTime 2025-03-28 23:56:05 - End Time 2025-03-29 02:56:05 [2025-03-29 02:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785924', 'tblTempUsageDetail_20' ) start [2025-03-29 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785924', 'tblTempUsageDetail_20' ) end [2025-03-29 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785924', 'tblTempVendorCDR_20' ) start [2025-03-29 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785924', 'tblTempVendorCDR_20' ) end [2025-03-29 02:56:18] Production.INFO: ProcessCDR(1,14785924,1,1,2) [2025-03-29 02:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785924', 'tblTempUsageDetail_20' ) start [2025-03-29 02:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785924', 'tblTempUsageDetail_20' ) end [2025-03-29 02:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 02:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 02:56:22] Production.INFO: ==11369== Releasing lock... [2025-03-29 02:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 02:56:22] Production.INFO: 37 MB #Memory Used# [2025-03-29 02:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 23:57:05 [end_date_ymd] => 2025-03-29 02:57:05 [RateCDR] => 1 ) [2025-03-29 02:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 23:57:05' and `end` < '2025-03-29 02:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 02:57:18] Production.INFO: count ==1077 [2025-03-29 02:57:18] Production.ERROR: pbx CDR StartTime 2025-03-28 23:57:05 - End Time 2025-03-29 02:57:05 [2025-03-29 02:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785929', 'tblTempUsageDetail_20' ) start [2025-03-29 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785929', 'tblTempUsageDetail_20' ) end [2025-03-29 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785929', 'tblTempVendorCDR_20' ) start [2025-03-29 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785929', 'tblTempVendorCDR_20' ) end [2025-03-29 02:57:18] Production.INFO: ProcessCDR(1,14785929,1,1,2) [2025-03-29 02:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785929', 'tblTempUsageDetail_20' ) start [2025-03-29 02:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785929', 'tblTempUsageDetail_20' ) end [2025-03-29 02:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 02:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 02:57:22] Production.INFO: ==11453== Releasing lock... [2025-03-29 02:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 02:57:22] Production.INFO: 37 MB #Memory Used# [2025-03-29 02:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 23:58:06 [end_date_ymd] => 2025-03-29 02:58:06 [RateCDR] => 1 ) [2025-03-29 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-28 23:58:06' and `end` < '2025-03-29 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-29 02:58:18] Production.INFO: count ==1076 [2025-03-29 02:58:19] Production.ERROR: pbx CDR StartTime 2025-03-28 23:58:06 - End Time 2025-03-29 02:58:06 [2025-03-29 02:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785934', 'tblTempUsageDetail_20' ) start [2025-03-29 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785934', 'tblTempUsageDetail_20' ) end [2025-03-29 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785934', 'tblTempVendorCDR_20' ) start [2025-03-29 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785934', 'tblTempVendorCDR_20' ) end [2025-03-29 02:58:19] Production.INFO: ProcessCDR(1,14785934,1,1,2) [2025-03-29 02:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785934', 'tblTempUsageDetail_20' ) start [2025-03-29 02:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785934', 'tblTempUsageDetail_20' ) end [2025-03-29 02:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 02:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 02:58:22] Production.INFO: ==11535== Releasing lock... [2025-03-29 02:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 02:58:22] Production.INFO: 36.75 MB #Memory Used# [2025-03-29 02:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 23:59:06 [end_date_ymd] => 2025-03-29 02:59:06 [RateCDR] => 1 ) [2025-03-29 02:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 23:59:06' and `end` < '2025-03-29 02:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 02:59:18] Production.INFO: count ==1073 [2025-03-29 02:59:19] Production.ERROR: pbx CDR StartTime 2025-03-28 23:59:06 - End Time 2025-03-29 02:59:06 [2025-03-29 02:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 02:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785939', 'tblTempUsageDetail_20' ) start [2025-03-29 02:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785939', 'tblTempUsageDetail_20' ) end [2025-03-29 02:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785939', 'tblTempVendorCDR_20' ) start [2025-03-29 02:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785939', 'tblTempVendorCDR_20' ) end [2025-03-29 02:59:19] Production.INFO: ProcessCDR(1,14785939,1,1,2) [2025-03-29 02:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 02:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 02:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785939', 'tblTempUsageDetail_20' ) start [2025-03-29 02:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785939', 'tblTempUsageDetail_20' ) end [2025-03-29 02:59:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 02:59:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 02:59:22] Production.INFO: ==11652== Releasing lock... [2025-03-29 02:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 02:59:22] Production.INFO: 36.5 MB #Memory Used# [2025-03-29 03:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 00:00:06 [end_date_ymd] => 2025-03-29 03:00:06 [RateCDR] => 1 ) [2025-03-29 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-29 00:00:06' and `end` < '2025-03-29 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-29 03:00:19] Production.INFO: count ==1080 [2025-03-29 03:00:19] Production.ERROR: pbx CDR StartTime 2025-03-29 00:00:06 - End Time 2025-03-29 03:00:06 [2025-03-29 03:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785945', 'tblTempUsageDetail_20' ) start [2025-03-29 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785945', 'tblTempUsageDetail_20' ) end [2025-03-29 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785945', 'tblTempVendorCDR_20' ) start [2025-03-29 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785945', 'tblTempVendorCDR_20' ) end [2025-03-29 03:00:19] Production.INFO: ProcessCDR(1,14785945,1,1,2) [2025-03-29 03:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785945', 'tblTempUsageDetail_20' ) start [2025-03-29 03:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785945', 'tblTempUsageDetail_20' ) end [2025-03-29 03:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 03:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 03:00:23] Production.INFO: ==11749== Releasing lock... [2025-03-29 03:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 03:00:23] Production.INFO: 36.25 MB #Memory Used# [2025-03-29 03:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 00:01:05 [end_date_ymd] => 2025-03-29 03:01:05 [RateCDR] => 1 ) [2025-03-29 03:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 00:01:05' and `end` < '2025-03-29 03:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 03:01:18] Production.INFO: count ==1080 [2025-03-29 03:01:18] Production.ERROR: pbx CDR StartTime 2025-03-29 00:01:05 - End Time 2025-03-29 03:01:05 [2025-03-29 03:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785950', 'tblTempUsageDetail_20' ) start [2025-03-29 03:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785950', 'tblTempUsageDetail_20' ) end [2025-03-29 03:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785950', 'tblTempVendorCDR_20' ) start [2025-03-29 03:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785950', 'tblTempVendorCDR_20' ) end [2025-03-29 03:01:19] Production.INFO: ProcessCDR(1,14785950,1,1,2) [2025-03-29 03:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785950', 'tblTempUsageDetail_20' ) start [2025-03-29 03:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785950', 'tblTempUsageDetail_20' ) end [2025-03-29 03:01:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 03:01:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 03:01:22] Production.INFO: ==11841== Releasing lock... [2025-03-29 03:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 03:01:22] Production.INFO: 36.25 MB #Memory Used# [2025-03-29 03:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 00:02:06 [end_date_ymd] => 2025-03-29 03:02:06 [RateCDR] => 1 ) [2025-03-29 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-29 00:02:06' and `end` < '2025-03-29 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-29 03:02:18] Production.INFO: count ==1087 [2025-03-29 03:02:19] Production.ERROR: pbx CDR StartTime 2025-03-29 00:02:06 - End Time 2025-03-29 03:02:06 [2025-03-29 03:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 03:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785955', 'tblTempUsageDetail_20' ) start [2025-03-29 03:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785955', 'tblTempUsageDetail_20' ) end [2025-03-29 03:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785955', 'tblTempVendorCDR_20' ) start [2025-03-29 03:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785955', 'tblTempVendorCDR_20' ) end [2025-03-29 03:02:19] Production.INFO: ProcessCDR(1,14785955,1,1,2) [2025-03-29 03:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785955', 'tblTempUsageDetail_20' ) start [2025-03-29 03:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785955', 'tblTempUsageDetail_20' ) end [2025-03-29 03:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 03:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 03:02:22] Production.INFO: ==11994== Releasing lock... [2025-03-29 03:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 03:02:22] Production.INFO: 36.5 MB #Memory Used# [2025-03-29 03:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 00:03:06 [end_date_ymd] => 2025-03-29 03:03:06 [RateCDR] => 1 ) [2025-03-29 03: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-29 00:03:06' and `end` < '2025-03-29 03: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-29 03:03:18] Production.INFO: count ==1087 [2025-03-29 03:03:19] Production.ERROR: pbx CDR StartTime 2025-03-29 00:03:06 - End Time 2025-03-29 03:03:06 [2025-03-29 03:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785960', 'tblTempUsageDetail_20' ) start [2025-03-29 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785960', 'tblTempUsageDetail_20' ) end [2025-03-29 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785960', 'tblTempVendorCDR_20' ) start [2025-03-29 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785960', 'tblTempVendorCDR_20' ) end [2025-03-29 03:03:19] Production.INFO: ProcessCDR(1,14785960,1,1,2) [2025-03-29 03:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785960', 'tblTempUsageDetail_20' ) start [2025-03-29 03:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785960', 'tblTempUsageDetail_20' ) end [2025-03-29 03:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 03:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 03:03:22] Production.INFO: ==12069== Releasing lock... [2025-03-29 03:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 03:03:22] Production.INFO: 36.5 MB #Memory Used# [2025-03-29 03:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 00:04:05 [end_date_ymd] => 2025-03-29 03:04:05 [RateCDR] => 1 ) [2025-03-29 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-29 00:04:05' and `end` < '2025-03-29 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-29 03:04:18] Production.INFO: count ==1087 [2025-03-29 03:04:19] Production.ERROR: pbx CDR StartTime 2025-03-29 00:04:05 - End Time 2025-03-29 03:04:05 [2025-03-29 03:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 03:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785965', 'tblTempUsageDetail_20' ) start [2025-03-29 03:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785965', 'tblTempUsageDetail_20' ) end [2025-03-29 03:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785965', 'tblTempVendorCDR_20' ) start [2025-03-29 03:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785965', 'tblTempVendorCDR_20' ) end [2025-03-29 03:04:19] Production.INFO: ProcessCDR(1,14785965,1,1,2) [2025-03-29 03:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785965', 'tblTempUsageDetail_20' ) start [2025-03-29 03:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785965', 'tblTempUsageDetail_20' ) end [2025-03-29 03:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 03:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 03:04:22] Production.INFO: ==12142== Releasing lock... [2025-03-29 03:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 03:04:22] Production.INFO: 36.5 MB #Memory Used# [2025-03-29 03:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 00:05:06 [end_date_ymd] => 2025-03-29 03:05:06 [RateCDR] => 1 ) [2025-03-29 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-29 00:05:06' and `end` < '2025-03-29 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-29 03:05:19] Production.INFO: count ==1073 [2025-03-29 03:05:19] Production.ERROR: pbx CDR StartTime 2025-03-29 00:05:06 - End Time 2025-03-29 03:05:06 [2025-03-29 03:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 03:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785970', 'tblTempUsageDetail_20' ) start [2025-03-29 03:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785970', 'tblTempUsageDetail_20' ) end [2025-03-29 03:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785970', 'tblTempVendorCDR_20' ) start [2025-03-29 03:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785970', 'tblTempVendorCDR_20' ) end [2025-03-29 03:05:19] Production.INFO: ProcessCDR(1,14785970,1,1,2) [2025-03-29 03:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785970', 'tblTempUsageDetail_20' ) start [2025-03-29 03:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785970', 'tblTempUsageDetail_20' ) end [2025-03-29 03:05:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 03:05:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 03:05:23] Production.INFO: ==12218== Releasing lock... [2025-03-29 03:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 03:05:23] Production.INFO: 36 MB #Memory Used# [2025-03-29 03:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 00:06:06 [end_date_ymd] => 2025-03-29 03:06:06 [RateCDR] => 1 ) [2025-03-29 03:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 00:06:06' and `end` < '2025-03-29 03:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 03:06:18] Production.INFO: count ==1072 [2025-03-29 03:06:18] Production.ERROR: pbx CDR StartTime 2025-03-29 00:06:06 - End Time 2025-03-29 03:06:06 [2025-03-29 03:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785975', 'tblTempUsageDetail_20' ) start [2025-03-29 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785975', 'tblTempUsageDetail_20' ) end [2025-03-29 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785975', 'tblTempVendorCDR_20' ) start [2025-03-29 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785975', 'tblTempVendorCDR_20' ) end [2025-03-29 03:06:18] Production.INFO: ProcessCDR(1,14785975,1,1,2) [2025-03-29 03:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785975', 'tblTempUsageDetail_20' ) start [2025-03-29 03:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785975', 'tblTempUsageDetail_20' ) end [2025-03-29 03:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 03:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 03:06:22] Production.INFO: ==12370== Releasing lock... [2025-03-29 03:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 03:06:22] Production.INFO: 36.25 MB #Memory Used# [2025-03-29 03:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 00:07:06 [end_date_ymd] => 2025-03-29 03:07:06 [RateCDR] => 1 ) [2025-03-29 03: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-29 00:07:06' and `end` < '2025-03-29 03: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-29 03:07:18] Production.INFO: count ==1067 [2025-03-29 03:07:19] Production.ERROR: pbx CDR StartTime 2025-03-29 00:07:06 - End Time 2025-03-29 03:07:06 [2025-03-29 03:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 03:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785980', 'tblTempUsageDetail_20' ) start [2025-03-29 03:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785980', 'tblTempUsageDetail_20' ) end [2025-03-29 03:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785980', 'tblTempVendorCDR_20' ) start [2025-03-29 03:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785980', 'tblTempVendorCDR_20' ) end [2025-03-29 03:07:19] Production.INFO: ProcessCDR(1,14785980,1,1,2) [2025-03-29 03:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785980', 'tblTempUsageDetail_20' ) start [2025-03-29 03:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785980', 'tblTempUsageDetail_20' ) end [2025-03-29 03:07:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 03:07:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 03:07:22] Production.INFO: ==12446== Releasing lock... [2025-03-29 03:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 03:07:22] Production.INFO: 36.5 MB #Memory Used# [2025-03-29 03:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 00:08:05 [end_date_ymd] => 2025-03-29 03:08:05 [RateCDR] => 1 ) [2025-03-29 03:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 00:08:05' and `end` < '2025-03-29 03:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 03:08:18] Production.INFO: count ==1067 [2025-03-29 03:08:18] Production.ERROR: pbx CDR StartTime 2025-03-29 00:08:05 - End Time 2025-03-29 03:08:05 [2025-03-29 03:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785985', 'tblTempUsageDetail_20' ) start [2025-03-29 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785985', 'tblTempUsageDetail_20' ) end [2025-03-29 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785985', 'tblTempVendorCDR_20' ) start [2025-03-29 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785985', 'tblTempVendorCDR_20' ) end [2025-03-29 03:08:18] Production.INFO: ProcessCDR(1,14785985,1,1,2) [2025-03-29 03:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785985', 'tblTempUsageDetail_20' ) start [2025-03-29 03:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785985', 'tblTempUsageDetail_20' ) end [2025-03-29 03:08:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 03:08:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 03:08:22] Production.INFO: ==12521== Releasing lock... [2025-03-29 03:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 03:08:22] Production.INFO: 36.5 MB #Memory Used# [2025-03-29 03:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 00:09:05 [end_date_ymd] => 2025-03-29 03:09:05 [RateCDR] => 1 ) [2025-03-29 03:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 00:09:05' and `end` < '2025-03-29 03:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 03:09:18] Production.INFO: count ==1065 [2025-03-29 03:09:18] Production.ERROR: pbx CDR StartTime 2025-03-29 00:09:05 - End Time 2025-03-29 03:09:05 [2025-03-29 03:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785990', 'tblTempUsageDetail_20' ) start [2025-03-29 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785990', 'tblTempUsageDetail_20' ) end [2025-03-29 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785990', 'tblTempVendorCDR_20' ) start [2025-03-29 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785990', 'tblTempVendorCDR_20' ) end [2025-03-29 03:09:18] Production.INFO: ProcessCDR(1,14785990,1,1,2) [2025-03-29 03:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785990', 'tblTempUsageDetail_20' ) start [2025-03-29 03:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785990', 'tblTempUsageDetail_20' ) end [2025-03-29 03:09:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 03:09:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 03:09:22] Production.INFO: ==12671== Releasing lock... [2025-03-29 03:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 03:09:22] Production.INFO: 36 MB #Memory Used# [2025-03-29 03:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 00:10:06 [end_date_ymd] => 2025-03-29 03:10:06 [RateCDR] => 1 ) [2025-03-29 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-29 00:10:06' and `end` < '2025-03-29 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-29 03:10:18] Production.INFO: count ==1051 [2025-03-29 03:10:19] Production.ERROR: pbx CDR StartTime 2025-03-29 00:10:06 - End Time 2025-03-29 03:10:06 [2025-03-29 03:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785996', 'tblTempUsageDetail_20' ) start [2025-03-29 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785996', 'tblTempUsageDetail_20' ) end [2025-03-29 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785996', 'tblTempVendorCDR_20' ) start [2025-03-29 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785996', 'tblTempVendorCDR_20' ) end [2025-03-29 03:10:19] Production.INFO: ProcessCDR(1,14785996,1,1,2) [2025-03-29 03:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785996', 'tblTempUsageDetail_20' ) start [2025-03-29 03:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785996', 'tblTempUsageDetail_20' ) end [2025-03-29 03:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 03:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 03:10:22] Production.INFO: ==12743== Releasing lock... [2025-03-29 03:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 03:10:22] Production.INFO: 36 MB #Memory Used# [2025-03-29 03:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 00:11:06 [end_date_ymd] => 2025-03-29 03:11:06 [RateCDR] => 1 ) [2025-03-29 03: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-29 00:11:06' and `end` < '2025-03-29 03: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-29 03:11:18] Production.INFO: count ==1051 [2025-03-29 03:11:19] Production.ERROR: pbx CDR StartTime 2025-03-29 00:11:06 - End Time 2025-03-29 03:11:06 [2025-03-29 03:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 03:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786001', 'tblTempUsageDetail_20' ) start [2025-03-29 03:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786001', 'tblTempUsageDetail_20' ) end [2025-03-29 03:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786001', 'tblTempVendorCDR_20' ) start [2025-03-29 03:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786001', 'tblTempVendorCDR_20' ) end [2025-03-29 03:11:19] Production.INFO: ProcessCDR(1,14786001,1,1,2) [2025-03-29 03:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786001', 'tblTempUsageDetail_20' ) start [2025-03-29 03:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786001', 'tblTempUsageDetail_20' ) end [2025-03-29 03:11:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 03:11:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 03:11:22] Production.INFO: ==12821== Releasing lock... [2025-03-29 03:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 03:11:22] Production.INFO: 36.75 MB #Memory Used# [2025-03-29 03:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 00:12:05 [end_date_ymd] => 2025-03-29 03:12:05 [RateCDR] => 1 ) [2025-03-29 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-29 00:12:05' and `end` < '2025-03-29 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-29 03:12:17] Production.INFO: count ==1055 [2025-03-29 03:12:18] Production.ERROR: pbx CDR StartTime 2025-03-29 00:12:05 - End Time 2025-03-29 03:12:05 [2025-03-29 03:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786006', 'tblTempUsageDetail_20' ) start [2025-03-29 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786006', 'tblTempUsageDetail_20' ) end [2025-03-29 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786006', 'tblTempVendorCDR_20' ) start [2025-03-29 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786006', 'tblTempVendorCDR_20' ) end [2025-03-29 03:12:18] Production.INFO: ProcessCDR(1,14786006,1,1,2) [2025-03-29 03:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786006', 'tblTempUsageDetail_20' ) start [2025-03-29 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786006', 'tblTempUsageDetail_20' ) end [2025-03-29 03:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 03:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 03:12:21] Production.INFO: ==12893== Releasing lock... [2025-03-29 03:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 03:12:21] Production.INFO: 36.25 MB #Memory Used# [2025-03-29 03:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 00:13:05 [end_date_ymd] => 2025-03-29 03:13:05 [RateCDR] => 1 ) [2025-03-29 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-29 00:13:05' and `end` < '2025-03-29 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-29 03:13:18] Production.INFO: count ==1042 [2025-03-29 03:13:18] Production.ERROR: pbx CDR StartTime 2025-03-29 00:13:05 - End Time 2025-03-29 03:13:05 [2025-03-29 03:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786011', 'tblTempUsageDetail_20' ) start [2025-03-29 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786011', 'tblTempUsageDetail_20' ) end [2025-03-29 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786011', 'tblTempVendorCDR_20' ) start [2025-03-29 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786011', 'tblTempVendorCDR_20' ) end [2025-03-29 03:13:18] Production.INFO: ProcessCDR(1,14786011,1,1,2) [2025-03-29 03:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786011', 'tblTempUsageDetail_20' ) start [2025-03-29 03:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786011', 'tblTempUsageDetail_20' ) end [2025-03-29 03:13:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 03:13:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 03:13:22] Production.INFO: ==13046== Releasing lock... [2025-03-29 03:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 03:13:22] Production.INFO: 36 MB #Memory Used# [2025-03-29 03:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 00:14:05 [end_date_ymd] => 2025-03-29 03:14:05 [RateCDR] => 1 ) [2025-03-29 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-29 00:14:05' and `end` < '2025-03-29 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-29 03:14:17] Production.INFO: count ==1042 [2025-03-29 03:14:18] Production.ERROR: pbx CDR StartTime 2025-03-29 00:14:05 - End Time 2025-03-29 03:14:05 [2025-03-29 03:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786016', 'tblTempUsageDetail_20' ) start [2025-03-29 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786016', 'tblTempUsageDetail_20' ) end [2025-03-29 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786016', 'tblTempVendorCDR_20' ) start [2025-03-29 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786016', 'tblTempVendorCDR_20' ) end [2025-03-29 03:14:18] Production.INFO: ProcessCDR(1,14786016,1,1,2) [2025-03-29 03:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786016', 'tblTempUsageDetail_20' ) start [2025-03-29 03:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786016', 'tblTempUsageDetail_20' ) end [2025-03-29 03:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 03:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 03:14:21] Production.INFO: ==13162== Releasing lock... [2025-03-29 03:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 03:14:21] Production.INFO: 36 MB #Memory Used# [2025-03-29 03:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 00:15:06 [end_date_ymd] => 2025-03-29 03:15:06 [RateCDR] => 1 ) [2025-03-29 03:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 00:15:06' and `end` < '2025-03-29 03:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 03:15:18] Production.INFO: count ==1041 [2025-03-29 03:15:19] Production.ERROR: pbx CDR StartTime 2025-03-29 00:15:06 - End Time 2025-03-29 03:15:06 [2025-03-29 03:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 03:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786021', 'tblTempUsageDetail_20' ) start [2025-03-29 03:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786021', 'tblTempUsageDetail_20' ) end [2025-03-29 03:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786021', 'tblTempVendorCDR_20' ) start [2025-03-29 03:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786021', 'tblTempVendorCDR_20' ) end [2025-03-29 03:15:19] Production.INFO: ProcessCDR(1,14786021,1,1,2) [2025-03-29 03:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786021', 'tblTempUsageDetail_20' ) start [2025-03-29 03:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786021', 'tblTempUsageDetail_20' ) end [2025-03-29 03:15:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 03:15:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 03:15:22] Production.INFO: ==13245== Releasing lock... [2025-03-29 03:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 03:15:22] Production.INFO: 36 MB #Memory Used# [2025-03-29 03:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 00:16:06 [end_date_ymd] => 2025-03-29 03:16:06 [RateCDR] => 1 ) [2025-03-29 03:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 00:16:06' and `end` < '2025-03-29 03:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 03:16:18] Production.INFO: count ==1040 [2025-03-29 03:16:19] Production.ERROR: pbx CDR StartTime 2025-03-29 00:16:06 - End Time 2025-03-29 03:16:06 [2025-03-29 03:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 03:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786026', 'tblTempUsageDetail_20' ) start [2025-03-29 03:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786026', 'tblTempUsageDetail_20' ) end [2025-03-29 03:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786026', 'tblTempVendorCDR_20' ) start [2025-03-29 03:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786026', 'tblTempVendorCDR_20' ) end [2025-03-29 03:16:19] Production.INFO: ProcessCDR(1,14786026,1,1,2) [2025-03-29 03:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786026', 'tblTempUsageDetail_20' ) start [2025-03-29 03:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786026', 'tblTempUsageDetail_20' ) end [2025-03-29 03:16:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 03:16:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 03:16:22] Production.INFO: ==13335== Releasing lock... [2025-03-29 03:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 03:16:22] Production.INFO: 35.75 MB #Memory Used# [2025-03-29 03:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 00:17:05 [end_date_ymd] => 2025-03-29 03:17:05 [RateCDR] => 1 ) [2025-03-29 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-29 00:17:05' and `end` < '2025-03-29 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-29 03:17:18] Production.INFO: count ==1037 [2025-03-29 03:17:18] Production.ERROR: pbx CDR StartTime 2025-03-29 00:17:05 - End Time 2025-03-29 03:17:05 [2025-03-29 03:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786031', 'tblTempUsageDetail_20' ) start [2025-03-29 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786031', 'tblTempUsageDetail_20' ) end [2025-03-29 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786031', 'tblTempVendorCDR_20' ) start [2025-03-29 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786031', 'tblTempVendorCDR_20' ) end [2025-03-29 03:17:18] Production.INFO: ProcessCDR(1,14786031,1,1,2) [2025-03-29 03:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786031', 'tblTempUsageDetail_20' ) start [2025-03-29 03:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786031', 'tblTempUsageDetail_20' ) end [2025-03-29 03:17:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 03:17:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 03:17:23] Production.INFO: ==13500== Releasing lock... [2025-03-29 03:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 03:17:23] Production.INFO: 36 MB #Memory Used# [2025-03-29 03:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 00:18:06 [end_date_ymd] => 2025-03-29 03:18:06 [RateCDR] => 1 ) [2025-03-29 03:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 00:18:06' and `end` < '2025-03-29 03:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 03:18:18] Production.INFO: count ==1037 [2025-03-29 03:18:19] Production.ERROR: pbx CDR StartTime 2025-03-29 00:18:06 - End Time 2025-03-29 03:18:06 [2025-03-29 03:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 03:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786036', 'tblTempUsageDetail_20' ) start [2025-03-29 03:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786036', 'tblTempUsageDetail_20' ) end [2025-03-29 03:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786036', 'tblTempVendorCDR_20' ) start [2025-03-29 03:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786036', 'tblTempVendorCDR_20' ) end [2025-03-29 03:18:19] Production.INFO: ProcessCDR(1,14786036,1,1,2) [2025-03-29 03:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786036', 'tblTempUsageDetail_20' ) start [2025-03-29 03:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786036', 'tblTempUsageDetail_20' ) end [2025-03-29 03:18:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 03:18:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 03:18:22] Production.INFO: ==13589== Releasing lock... [2025-03-29 03:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 03:18:22] Production.INFO: 36 MB #Memory Used# [2025-03-29 03:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 00:19:05 [end_date_ymd] => 2025-03-29 03:19:05 [RateCDR] => 1 ) [2025-03-29 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-29 00:19:05' and `end` < '2025-03-29 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-29 03:19:17] Production.INFO: count ==1037 [2025-03-29 03:19:17] Production.ERROR: pbx CDR StartTime 2025-03-29 00:19:05 - End Time 2025-03-29 03:19:05 [2025-03-29 03:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786041', 'tblTempUsageDetail_20' ) start [2025-03-29 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786041', 'tblTempUsageDetail_20' ) end [2025-03-29 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786041', 'tblTempVendorCDR_20' ) start [2025-03-29 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786041', 'tblTempVendorCDR_20' ) end [2025-03-29 03:19:18] Production.INFO: ProcessCDR(1,14786041,1,1,2) [2025-03-29 03:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786041', 'tblTempUsageDetail_20' ) start [2025-03-29 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786041', 'tblTempUsageDetail_20' ) end [2025-03-29 03:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 03:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 03:19:21] Production.INFO: ==13674== Releasing lock... [2025-03-29 03:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 03:19:21] Production.INFO: 36 MB #Memory Used# [2025-03-29 03:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 00:20:06 [end_date_ymd] => 2025-03-29 03:20:06 [RateCDR] => 1 ) [2025-03-29 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-29 00:20:06' and `end` < '2025-03-29 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-29 03:20:18] Production.INFO: count ==1036 [2025-03-29 03:20:18] Production.ERROR: pbx CDR StartTime 2025-03-29 00:20:06 - End Time 2025-03-29 03:20:06 [2025-03-29 03:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786046', 'tblTempUsageDetail_20' ) start [2025-03-29 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786046', 'tblTempUsageDetail_20' ) end [2025-03-29 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786046', 'tblTempVendorCDR_20' ) start [2025-03-29 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786046', 'tblTempVendorCDR_20' ) end [2025-03-29 03:20:18] Production.INFO: ProcessCDR(1,14786046,1,1,2) [2025-03-29 03:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786046', 'tblTempUsageDetail_20' ) start [2025-03-29 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786046', 'tblTempUsageDetail_20' ) end [2025-03-29 03:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 03:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 03:20:22] Production.INFO: ==13761== Releasing lock... [2025-03-29 03:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 03:20:22] Production.INFO: 35.75 MB #Memory Used# [2025-03-29 03:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 00:21:05 [end_date_ymd] => 2025-03-29 03:21:05 [RateCDR] => 1 ) [2025-03-29 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-29 00:21:05' and `end` < '2025-03-29 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-29 03:21:17] Production.INFO: count ==1046 [2025-03-29 03:21:17] Production.ERROR: pbx CDR StartTime 2025-03-29 00:21:05 - End Time 2025-03-29 03:21:05 [2025-03-29 03:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786052', 'tblTempUsageDetail_20' ) start [2025-03-29 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786052', 'tblTempUsageDetail_20' ) end [2025-03-29 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786052', 'tblTempVendorCDR_20' ) start [2025-03-29 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786052', 'tblTempVendorCDR_20' ) end [2025-03-29 03:21:17] Production.INFO: ProcessCDR(1,14786052,1,1,2) [2025-03-29 03:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786052', 'tblTempUsageDetail_20' ) start [2025-03-29 03:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786052', 'tblTempUsageDetail_20' ) end [2025-03-29 03:21:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 03:21:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 03:21:22] Production.INFO: ==13838== Releasing lock... [2025-03-29 03:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 03:21:22] Production.INFO: 36 MB #Memory Used# [2025-03-29 03:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 00:22:05 [end_date_ymd] => 2025-03-29 03:22:05 [RateCDR] => 1 ) [2025-03-29 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-29 00:22:05' and `end` < '2025-03-29 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-29 03:22:17] Production.INFO: count ==1046 [2025-03-29 03:22:18] Production.ERROR: pbx CDR StartTime 2025-03-29 00:22:05 - End Time 2025-03-29 03:22:05 [2025-03-29 03:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786057', 'tblTempUsageDetail_20' ) start [2025-03-29 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786057', 'tblTempUsageDetail_20' ) end [2025-03-29 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786057', 'tblTempVendorCDR_20' ) start [2025-03-29 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786057', 'tblTempVendorCDR_20' ) end [2025-03-29 03:22:18] Production.INFO: ProcessCDR(1,14786057,1,1,2) [2025-03-29 03:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786057', 'tblTempUsageDetail_20' ) start [2025-03-29 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786057', 'tblTempUsageDetail_20' ) end [2025-03-29 03:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 03:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 03:22:21] Production.INFO: ==13910== Releasing lock... [2025-03-29 03:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 03:22:21] Production.INFO: 36 MB #Memory Used# [2025-03-29 03:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 00:23:05 [end_date_ymd] => 2025-03-29 03:23:05 [RateCDR] => 1 ) [2025-03-29 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-29 00:23:05' and `end` < '2025-03-29 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-29 03:23:17] Production.INFO: count ==1043 [2025-03-29 03:23:17] Production.ERROR: pbx CDR StartTime 2025-03-29 00:23:05 - End Time 2025-03-29 03:23:05 [2025-03-29 03:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786062', 'tblTempUsageDetail_20' ) start [2025-03-29 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786062', 'tblTempUsageDetail_20' ) end [2025-03-29 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786062', 'tblTempVendorCDR_20' ) start [2025-03-29 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786062', 'tblTempVendorCDR_20' ) end [2025-03-29 03:23:18] Production.INFO: ProcessCDR(1,14786062,1,1,2) [2025-03-29 03:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786062', 'tblTempUsageDetail_20' ) start [2025-03-29 03:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786062', 'tblTempUsageDetail_20' ) end [2025-03-29 03:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 03:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 03:23:21] Production.INFO: ==13982== Releasing lock... [2025-03-29 03:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 03:23:21] Production.INFO: 36 MB #Memory Used# [2025-03-29 03:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 00:24:06 [end_date_ymd] => 2025-03-29 03:24:06 [RateCDR] => 1 ) [2025-03-29 03: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-29 00:24:06' and `end` < '2025-03-29 03: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-29 03:24:18] Production.INFO: count ==1046 [2025-03-29 03:24:18] Production.ERROR: pbx CDR StartTime 2025-03-29 00:24:06 - End Time 2025-03-29 03:24:06 [2025-03-29 03:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786067', 'tblTempUsageDetail_20' ) start [2025-03-29 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786067', 'tblTempUsageDetail_20' ) end [2025-03-29 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786067', 'tblTempVendorCDR_20' ) start [2025-03-29 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786067', 'tblTempVendorCDR_20' ) end [2025-03-29 03:24:18] Production.INFO: ProcessCDR(1,14786067,1,1,2) [2025-03-29 03:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786067', 'tblTempUsageDetail_20' ) start [2025-03-29 03:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786067', 'tblTempUsageDetail_20' ) end [2025-03-29 03:24:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 03:24:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 03:24:22] Production.INFO: ==14054== Releasing lock... [2025-03-29 03:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 03:24:22] Production.INFO: 36 MB #Memory Used# [2025-03-29 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 00:25:05 [end_date_ymd] => 2025-03-29 03:25:05 [RateCDR] => 1 ) [2025-03-29 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-29 00:25:05' and `end` < '2025-03-29 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-29 03:25:17] Production.INFO: count ==1049 [2025-03-29 03:25:17] Production.ERROR: pbx CDR StartTime 2025-03-29 00:25:05 - End Time 2025-03-29 03:25:05 [2025-03-29 03:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786072', 'tblTempUsageDetail_20' ) start [2025-03-29 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786072', 'tblTempUsageDetail_20' ) end [2025-03-29 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786072', 'tblTempVendorCDR_20' ) start [2025-03-29 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786072', 'tblTempVendorCDR_20' ) end [2025-03-29 03:25:17] Production.INFO: ProcessCDR(1,14786072,1,1,2) [2025-03-29 03:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786072', 'tblTempUsageDetail_20' ) start [2025-03-29 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786072', 'tblTempUsageDetail_20' ) end [2025-03-29 03:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 03:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 03:25:21] Production.INFO: ==14123== Releasing lock... [2025-03-29 03:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 03:25:21] Production.INFO: 36.25 MB #Memory Used# [2025-03-29 03:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 00:26:05 [end_date_ymd] => 2025-03-29 03:26:05 [RateCDR] => 1 ) [2025-03-29 03:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 00:26:05' and `end` < '2025-03-29 03:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 03:26:18] Production.INFO: count ==1056 [2025-03-29 03:26:18] Production.ERROR: pbx CDR StartTime 2025-03-29 00:26:05 - End Time 2025-03-29 03:26:05 [2025-03-29 03:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786077', 'tblTempUsageDetail_20' ) start [2025-03-29 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786077', 'tblTempUsageDetail_20' ) end [2025-03-29 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786077', 'tblTempVendorCDR_20' ) start [2025-03-29 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786077', 'tblTempVendorCDR_20' ) end [2025-03-29 03:26:18] Production.INFO: ProcessCDR(1,14786077,1,1,2) [2025-03-29 03:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786077', 'tblTempUsageDetail_20' ) start [2025-03-29 03:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786077', 'tblTempUsageDetail_20' ) end [2025-03-29 03:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 03:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 03:26:21] Production.INFO: ==14197== Releasing lock... [2025-03-29 03:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 03:26:21] Production.INFO: 36.5 MB #Memory Used# [2025-03-29 03:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 00:27:05 [end_date_ymd] => 2025-03-29 03:27:05 [RateCDR] => 1 ) [2025-03-29 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-29 00:27:05' and `end` < '2025-03-29 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-29 03:27:18] Production.INFO: count ==1060 [2025-03-29 03:27:18] Production.ERROR: pbx CDR StartTime 2025-03-29 00:27:05 - End Time 2025-03-29 03:27:05 [2025-03-29 03:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786082', 'tblTempUsageDetail_20' ) start [2025-03-29 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786082', 'tblTempUsageDetail_20' ) end [2025-03-29 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786082', 'tblTempVendorCDR_20' ) start [2025-03-29 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786082', 'tblTempVendorCDR_20' ) end [2025-03-29 03:27:18] Production.INFO: ProcessCDR(1,14786082,1,1,2) [2025-03-29 03:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786082', 'tblTempUsageDetail_20' ) start [2025-03-29 03:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786082', 'tblTempUsageDetail_20' ) end [2025-03-29 03:27:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 03:27:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 03:27:22] Production.INFO: ==14268== Releasing lock... [2025-03-29 03:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 03:27:22] Production.INFO: 36 MB #Memory Used# [2025-03-29 03:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 00:28:05 [end_date_ymd] => 2025-03-29 03:28:05 [RateCDR] => 1 ) [2025-03-29 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-29 00:28:05' and `end` < '2025-03-29 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-29 03:28:18] Production.INFO: count ==1060 [2025-03-29 03:28:18] Production.ERROR: pbx CDR StartTime 2025-03-29 00:28:05 - End Time 2025-03-29 03:28:05 [2025-03-29 03:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786087', 'tblTempUsageDetail_20' ) start [2025-03-29 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786087', 'tblTempUsageDetail_20' ) end [2025-03-29 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786087', 'tblTempVendorCDR_20' ) start [2025-03-29 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786087', 'tblTempVendorCDR_20' ) end [2025-03-29 03:28:18] Production.INFO: ProcessCDR(1,14786087,1,1,2) [2025-03-29 03:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786087', 'tblTempUsageDetail_20' ) start [2025-03-29 03:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786087', 'tblTempUsageDetail_20' ) end [2025-03-29 03:28:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 03:28:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 03:28:22] Production.INFO: ==14341== Releasing lock... [2025-03-29 03:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 03:28:22] Production.INFO: 36 MB #Memory Used# [2025-03-29 03:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 00:29:06 [end_date_ymd] => 2025-03-29 03:29:06 [RateCDR] => 1 ) [2025-03-29 03: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-29 00:29:06' and `end` < '2025-03-29 03: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-29 03:29:18] Production.INFO: count ==1060 [2025-03-29 03:29:19] Production.ERROR: pbx CDR StartTime 2025-03-29 00:29:06 - End Time 2025-03-29 03:29:06 [2025-03-29 03:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 03:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786092', 'tblTempUsageDetail_20' ) start [2025-03-29 03:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786092', 'tblTempUsageDetail_20' ) end [2025-03-29 03:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786092', 'tblTempVendorCDR_20' ) start [2025-03-29 03:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786092', 'tblTempVendorCDR_20' ) end [2025-03-29 03:29:19] Production.INFO: ProcessCDR(1,14786092,1,1,2) [2025-03-29 03:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786092', 'tblTempUsageDetail_20' ) start [2025-03-29 03:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786092', 'tblTempUsageDetail_20' ) end [2025-03-29 03:29:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 03:29:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 03:29:22] Production.INFO: ==14412== Releasing lock... [2025-03-29 03:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 03:29:22] Production.INFO: 36 MB #Memory Used# [2025-03-29 03:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 00:30:06 [end_date_ymd] => 2025-03-29 03:30:06 [RateCDR] => 1 ) [2025-03-29 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-29 00:30:06' and `end` < '2025-03-29 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-29 03:30:19] Production.INFO: count ==1062 [2025-03-29 03:30:19] Production.ERROR: pbx CDR StartTime 2025-03-29 00:30:06 - End Time 2025-03-29 03:30:06 [2025-03-29 03:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786098', 'tblTempUsageDetail_20' ) start [2025-03-29 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786098', 'tblTempUsageDetail_20' ) end [2025-03-29 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786098', 'tblTempVendorCDR_20' ) start [2025-03-29 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786098', 'tblTempVendorCDR_20' ) end [2025-03-29 03:30:19] Production.INFO: ProcessCDR(1,14786098,1,1,2) [2025-03-29 03:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786098', 'tblTempUsageDetail_20' ) start [2025-03-29 03:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786098', 'tblTempUsageDetail_20' ) end [2025-03-29 03:30:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 03:30:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 03:30:23] Production.INFO: ==14485== Releasing lock... [2025-03-29 03:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 03:30:23] Production.INFO: 36.25 MB #Memory Used# [2025-03-29 03:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 00:31:06 [end_date_ymd] => 2025-03-29 03:31:06 [RateCDR] => 1 ) [2025-03-29 03:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 00:31:06' and `end` < '2025-03-29 03:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 03:31:18] Production.INFO: count ==1049 [2025-03-29 03:31:18] Production.ERROR: pbx CDR StartTime 2025-03-29 00:31:06 - End Time 2025-03-29 03:31:06 [2025-03-29 03:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786103', 'tblTempUsageDetail_20' ) start [2025-03-29 03:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786103', 'tblTempUsageDetail_20' ) end [2025-03-29 03:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786103', 'tblTempVendorCDR_20' ) start [2025-03-29 03:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786103', 'tblTempVendorCDR_20' ) end [2025-03-29 03:31:19] Production.INFO: ProcessCDR(1,14786103,1,1,2) [2025-03-29 03:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786103', 'tblTempUsageDetail_20' ) start [2025-03-29 03:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786103', 'tblTempUsageDetail_20' ) end [2025-03-29 03:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 03:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 03:31:22] Production.INFO: ==14597== Releasing lock... [2025-03-29 03:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 03:31:22] Production.INFO: 36.75 MB #Memory Used# [2025-03-29 03:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 00:32:05 [end_date_ymd] => 2025-03-29 03:32:05 [RateCDR] => 1 ) [2025-03-29 03:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 00:32:05' and `end` < '2025-03-29 03:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 03:32:18] Production.INFO: count ==1031 [2025-03-29 03:32:18] Production.ERROR: pbx CDR StartTime 2025-03-29 00:32:05 - End Time 2025-03-29 03:32:05 [2025-03-29 03:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786108', 'tblTempUsageDetail_20' ) start [2025-03-29 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786108', 'tblTempUsageDetail_20' ) end [2025-03-29 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786108', 'tblTempVendorCDR_20' ) start [2025-03-29 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786108', 'tblTempVendorCDR_20' ) end [2025-03-29 03:32:18] Production.INFO: ProcessCDR(1,14786108,1,1,2) [2025-03-29 03:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786108', 'tblTempUsageDetail_20' ) start [2025-03-29 03:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786108', 'tblTempUsageDetail_20' ) end [2025-03-29 03:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 03:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 03:32:22] Production.INFO: ==14667== Releasing lock... [2025-03-29 03:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 03:32:22] Production.INFO: 35.75 MB #Memory Used# [2025-03-29 03:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 00:33:06 [end_date_ymd] => 2025-03-29 03:33:06 [RateCDR] => 1 ) [2025-03-29 03: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-29 00:33:06' and `end` < '2025-03-29 03: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-29 03:33:19] Production.INFO: count ==1032 [2025-03-29 03:33:19] Production.ERROR: pbx CDR StartTime 2025-03-29 00:33:06 - End Time 2025-03-29 03:33:06 [2025-03-29 03:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 03:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786113', 'tblTempUsageDetail_20' ) start [2025-03-29 03:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786113', 'tblTempUsageDetail_20' ) end [2025-03-29 03:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786113', 'tblTempVendorCDR_20' ) start [2025-03-29 03:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786113', 'tblTempVendorCDR_20' ) end [2025-03-29 03:33:19] Production.INFO: ProcessCDR(1,14786113,1,1,2) [2025-03-29 03:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786113', 'tblTempUsageDetail_20' ) start [2025-03-29 03:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786113', 'tblTempUsageDetail_20' ) end [2025-03-29 03:33:25] Production.ERROR: pbx prc_insertCDR start [2025-03-29 03:33:25] Production.ERROR: pbx prc_insertCDR end [2025-03-29 03:33:25] Production.INFO: ==14738== Releasing lock... [2025-03-29 03:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 03:33:25] Production.INFO: 36 MB #Memory Used# [2025-03-29 03:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 00:34:06 [end_date_ymd] => 2025-03-29 03:34:06 [RateCDR] => 1 ) [2025-03-29 03:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 00:34:06' and `end` < '2025-03-29 03:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 03:34:18] Production.INFO: count ==1035 [2025-03-29 03:34:19] Production.ERROR: pbx CDR StartTime 2025-03-29 00:34:06 - End Time 2025-03-29 03:34:06 [2025-03-29 03:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 03:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786118', 'tblTempUsageDetail_20' ) start [2025-03-29 03:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786118', 'tblTempUsageDetail_20' ) end [2025-03-29 03:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786118', 'tblTempVendorCDR_20' ) start [2025-03-29 03:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786118', 'tblTempVendorCDR_20' ) end [2025-03-29 03:34:19] Production.INFO: ProcessCDR(1,14786118,1,1,2) [2025-03-29 03:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786118', 'tblTempUsageDetail_20' ) start [2025-03-29 03:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786118', 'tblTempUsageDetail_20' ) end [2025-03-29 03:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 03:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 03:34:22] Production.INFO: ==14810== Releasing lock... [2025-03-29 03:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 03:34:22] Production.INFO: 36 MB #Memory Used# [2025-03-29 03:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 00:35:06 [end_date_ymd] => 2025-03-29 03:35:06 [RateCDR] => 1 ) [2025-03-29 03: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-29 00:35:06' and `end` < '2025-03-29 03: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-29 03:35:19] Production.INFO: count ==1035 [2025-03-29 03:35:19] Production.ERROR: pbx CDR StartTime 2025-03-29 00:35:06 - End Time 2025-03-29 03:35:06 [2025-03-29 03:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 03:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786123', 'tblTempUsageDetail_20' ) start [2025-03-29 03:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786123', 'tblTempUsageDetail_20' ) end [2025-03-29 03:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786123', 'tblTempVendorCDR_20' ) start [2025-03-29 03:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786123', 'tblTempVendorCDR_20' ) end [2025-03-29 03:35:19] Production.INFO: ProcessCDR(1,14786123,1,1,2) [2025-03-29 03:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786123', 'tblTempUsageDetail_20' ) start [2025-03-29 03:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786123', 'tblTempUsageDetail_20' ) end [2025-03-29 03:35:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 03:35:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 03:35:23] Production.INFO: ==14884== Releasing lock... [2025-03-29 03:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 03:35:23] Production.INFO: 36 MB #Memory Used# [2025-03-29 03:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 00:36:05 [end_date_ymd] => 2025-03-29 03:36:05 [RateCDR] => 1 ) [2025-03-29 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-29 00:36:05' and `end` < '2025-03-29 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-29 03:36:18] Production.INFO: count ==1035 [2025-03-29 03:36:18] Production.ERROR: pbx CDR StartTime 2025-03-29 00:36:05 - End Time 2025-03-29 03:36:05 [2025-03-29 03:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786128', 'tblTempUsageDetail_20' ) start [2025-03-29 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786128', 'tblTempUsageDetail_20' ) end [2025-03-29 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786128', 'tblTempVendorCDR_20' ) start [2025-03-29 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786128', 'tblTempVendorCDR_20' ) end [2025-03-29 03:36:18] Production.INFO: ProcessCDR(1,14786128,1,1,2) [2025-03-29 03:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786128', 'tblTempUsageDetail_20' ) start [2025-03-29 03:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786128', 'tblTempUsageDetail_20' ) end [2025-03-29 03:36:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 03:36:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 03:36:22] Production.INFO: ==14954== Releasing lock... [2025-03-29 03:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 03:36:22] Production.INFO: 36 MB #Memory Used# [2025-03-29 03:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 00:37:06 [end_date_ymd] => 2025-03-29 03:37:06 [RateCDR] => 1 ) [2025-03-29 03:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 00:37:06' and `end` < '2025-03-29 03:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 03:37:19] Production.INFO: count ==1035 [2025-03-29 03:37:19] Production.ERROR: pbx CDR StartTime 2025-03-29 00:37:06 - End Time 2025-03-29 03:37:06 [2025-03-29 03:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 03:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786133', 'tblTempUsageDetail_20' ) start [2025-03-29 03:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786133', 'tblTempUsageDetail_20' ) end [2025-03-29 03:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786133', 'tblTempVendorCDR_20' ) start [2025-03-29 03:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786133', 'tblTempVendorCDR_20' ) end [2025-03-29 03:37:19] Production.INFO: ProcessCDR(1,14786133,1,1,2) [2025-03-29 03:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786133', 'tblTempUsageDetail_20' ) start [2025-03-29 03:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786133', 'tblTempUsageDetail_20' ) end [2025-03-29 03:37:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 03:37:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 03:37:23] Production.INFO: ==15025== Releasing lock... [2025-03-29 03:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 03:37:23] Production.INFO: 36 MB #Memory Used# [2025-03-29 03:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 00:38:06 [end_date_ymd] => 2025-03-29 03:38:06 [RateCDR] => 1 ) [2025-03-29 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-29 00:38:06' and `end` < '2025-03-29 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-29 03:38:18] Production.INFO: count ==1033 [2025-03-29 03:38:19] Production.ERROR: pbx CDR StartTime 2025-03-29 00:38:06 - End Time 2025-03-29 03:38:06 [2025-03-29 03:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786138', 'tblTempUsageDetail_20' ) start [2025-03-29 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786138', 'tblTempUsageDetail_20' ) end [2025-03-29 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786138', 'tblTempVendorCDR_20' ) start [2025-03-29 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786138', 'tblTempVendorCDR_20' ) end [2025-03-29 03:38:19] Production.INFO: ProcessCDR(1,14786138,1,1,2) [2025-03-29 03:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786138', 'tblTempUsageDetail_20' ) start [2025-03-29 03:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786138', 'tblTempUsageDetail_20' ) end [2025-03-29 03:38:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 03:38:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 03:38:24] Production.INFO: ==15100== Releasing lock... [2025-03-29 03:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 03:38:24] Production.INFO: 36 MB #Memory Used# [2025-03-29 03:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 00:39:06 [end_date_ymd] => 2025-03-29 03:39:06 [RateCDR] => 1 ) [2025-03-29 03: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-29 00:39:06' and `end` < '2025-03-29 03: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-29 03:39:19] Production.INFO: count ==1033 [2025-03-29 03:39:19] Production.ERROR: pbx CDR StartTime 2025-03-29 00:39:06 - End Time 2025-03-29 03:39:06 [2025-03-29 03:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786143', 'tblTempUsageDetail_20' ) start [2025-03-29 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786143', 'tblTempUsageDetail_20' ) end [2025-03-29 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786143', 'tblTempVendorCDR_20' ) start [2025-03-29 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786143', 'tblTempVendorCDR_20' ) end [2025-03-29 03:39:19] Production.INFO: ProcessCDR(1,14786143,1,1,2) [2025-03-29 03:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786143', 'tblTempUsageDetail_20' ) start [2025-03-29 03:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786143', 'tblTempUsageDetail_20' ) end [2025-03-29 03:39:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 03:39:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 03:39:24] Production.INFO: ==15173== Releasing lock... [2025-03-29 03:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 03:39:24] Production.INFO: 35.75 MB #Memory Used# [2025-03-29 03:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 00:40:06 [end_date_ymd] => 2025-03-29 03:40:06 [RateCDR] => 1 ) [2025-03-29 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-29 00:40:06' and `end` < '2025-03-29 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-29 03:40:19] Production.INFO: count ==1032 [2025-03-29 03:40:19] Production.ERROR: pbx CDR StartTime 2025-03-29 00:40:06 - End Time 2025-03-29 03:40:06 [2025-03-29 03:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786149', 'tblTempUsageDetail_20' ) start [2025-03-29 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786149', 'tblTempUsageDetail_20' ) end [2025-03-29 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786149', 'tblTempVendorCDR_20' ) start [2025-03-29 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786149', 'tblTempVendorCDR_20' ) end [2025-03-29 03:40:19] Production.INFO: ProcessCDR(1,14786149,1,1,2) [2025-03-29 03:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786149', 'tblTempUsageDetail_20' ) start [2025-03-29 03:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786149', 'tblTempUsageDetail_20' ) end [2025-03-29 03:40:25] Production.ERROR: pbx prc_insertCDR start [2025-03-29 03:40:25] Production.ERROR: pbx prc_insertCDR end [2025-03-29 03:40:25] Production.INFO: ==15250== Releasing lock... [2025-03-29 03:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 03:40:25] Production.INFO: 36 MB #Memory Used# [2025-03-29 03:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 00:41:06 [end_date_ymd] => 2025-03-29 03:41:06 [RateCDR] => 1 ) [2025-03-29 03:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 00:41:06' and `end` < '2025-03-29 03:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 03:41:18] Production.INFO: count ==993 [2025-03-29 03:41:18] Production.ERROR: pbx CDR StartTime 2025-03-29 00:41:06 - End Time 2025-03-29 03:41:06 [2025-03-29 03:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786154', 'tblTempUsageDetail_20' ) start [2025-03-29 03:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786154', 'tblTempUsageDetail_20' ) end [2025-03-29 03:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786154', 'tblTempVendorCDR_20' ) start [2025-03-29 03:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786154', 'tblTempVendorCDR_20' ) end [2025-03-29 03:41:19] Production.INFO: ProcessCDR(1,14786154,1,1,2) [2025-03-29 03:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786154', 'tblTempUsageDetail_20' ) start [2025-03-29 03:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786154', 'tblTempUsageDetail_20' ) end [2025-03-29 03:41:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 03:41:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 03:41:24] Production.INFO: ==15324== Releasing lock... [2025-03-29 03:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 03:41:24] Production.INFO: 36 MB #Memory Used# [2025-03-29 03:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 00:42:06 [end_date_ymd] => 2025-03-29 03:42:06 [RateCDR] => 1 ) [2025-03-29 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-29 00:42:06' and `end` < '2025-03-29 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-29 03:42:18] Production.INFO: count ==1003 [2025-03-29 03:42:19] Production.ERROR: pbx CDR StartTime 2025-03-29 00:42:06 - End Time 2025-03-29 03:42:06 [2025-03-29 03:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 03:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786159', 'tblTempUsageDetail_20' ) start [2025-03-29 03:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786159', 'tblTempUsageDetail_20' ) end [2025-03-29 03:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786159', 'tblTempVendorCDR_20' ) start [2025-03-29 03:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786159', 'tblTempVendorCDR_20' ) end [2025-03-29 03:42:19] Production.INFO: ProcessCDR(1,14786159,1,1,2) [2025-03-29 03:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786159', 'tblTempUsageDetail_20' ) start [2025-03-29 03:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786159', 'tblTempUsageDetail_20' ) end [2025-03-29 03:42:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 03:42:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 03:42:23] Production.INFO: ==15395== Releasing lock... [2025-03-29 03:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 03:42:23] Production.INFO: 35.5 MB #Memory Used# [2025-03-29 03:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 00:43:06 [end_date_ymd] => 2025-03-29 03:43:06 [RateCDR] => 1 ) [2025-03-29 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-29 00:43:06' and `end` < '2025-03-29 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-29 03:43:18] Production.INFO: count ==1011 [2025-03-29 03:43:19] Production.ERROR: pbx CDR StartTime 2025-03-29 00:43:06 - End Time 2025-03-29 03:43:06 [2025-03-29 03:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 03:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786164', 'tblTempUsageDetail_20' ) start [2025-03-29 03:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786164', 'tblTempUsageDetail_20' ) end [2025-03-29 03:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786164', 'tblTempVendorCDR_20' ) start [2025-03-29 03:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786164', 'tblTempVendorCDR_20' ) end [2025-03-29 03:43:19] Production.INFO: ProcessCDR(1,14786164,1,1,2) [2025-03-29 03:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786164', 'tblTempUsageDetail_20' ) start [2025-03-29 03:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786164', 'tblTempUsageDetail_20' ) end [2025-03-29 03:43:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 03:43:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 03:43:23] Production.INFO: ==15467== Releasing lock... [2025-03-29 03:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 03:43:23] Production.INFO: 36 MB #Memory Used# [2025-03-29 03:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 00:44:06 [end_date_ymd] => 2025-03-29 03:44:06 [RateCDR] => 1 ) [2025-03-29 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-29 00:44:06' and `end` < '2025-03-29 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-29 03:44:19] Production.INFO: count ==1025 [2025-03-29 03:44:19] Production.ERROR: pbx CDR StartTime 2025-03-29 00:44:06 - End Time 2025-03-29 03:44:06 [2025-03-29 03:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786169', 'tblTempUsageDetail_20' ) start [2025-03-29 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786169', 'tblTempUsageDetail_20' ) end [2025-03-29 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786169', 'tblTempVendorCDR_20' ) start [2025-03-29 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786169', 'tblTempVendorCDR_20' ) end [2025-03-29 03:44:19] Production.INFO: ProcessCDR(1,14786169,1,1,2) [2025-03-29 03:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786169', 'tblTempUsageDetail_20' ) start [2025-03-29 03:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786169', 'tblTempUsageDetail_20' ) end [2025-03-29 03:44:25] Production.ERROR: pbx prc_insertCDR start [2025-03-29 03:44:25] Production.ERROR: pbx prc_insertCDR end [2025-03-29 03:44:25] Production.INFO: ==15546== Releasing lock... [2025-03-29 03:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 03:44:25] Production.INFO: 35.5 MB #Memory Used# [2025-03-29 03:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 00:45:05 [end_date_ymd] => 2025-03-29 03:45:05 [RateCDR] => 1 ) [2025-03-29 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-29 00:45:05' and `end` < '2025-03-29 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-29 03:45:17] Production.INFO: count ==1023 [2025-03-29 03:45:18] Production.ERROR: pbx CDR StartTime 2025-03-29 00:45:05 - End Time 2025-03-29 03:45:05 [2025-03-29 03:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786174', 'tblTempUsageDetail_20' ) start [2025-03-29 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786174', 'tblTempUsageDetail_20' ) end [2025-03-29 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786174', 'tblTempVendorCDR_20' ) start [2025-03-29 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786174', 'tblTempVendorCDR_20' ) end [2025-03-29 03:45:18] Production.INFO: ProcessCDR(1,14786174,1,1,2) [2025-03-29 03:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786174', 'tblTempUsageDetail_20' ) start [2025-03-29 03:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786174', 'tblTempUsageDetail_20' ) end [2025-03-29 03:45:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 03:45:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 03:45:22] Production.INFO: ==15630== Releasing lock... [2025-03-29 03:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 03:45:22] Production.INFO: 36 MB #Memory Used# [2025-03-29 03:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 00:46:06 [end_date_ymd] => 2025-03-29 03:46:06 [RateCDR] => 1 ) [2025-03-29 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-29 00:46:06' and `end` < '2025-03-29 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-29 03:46:19] Production.INFO: count ==1022 [2025-03-29 03:46:19] Production.ERROR: pbx CDR StartTime 2025-03-29 00:46:06 - End Time 2025-03-29 03:46:06 [2025-03-29 03:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 03:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786179', 'tblTempUsageDetail_20' ) start [2025-03-29 03:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786179', 'tblTempUsageDetail_20' ) end [2025-03-29 03:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786179', 'tblTempVendorCDR_20' ) start [2025-03-29 03:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786179', 'tblTempVendorCDR_20' ) end [2025-03-29 03:46:19] Production.INFO: ProcessCDR(1,14786179,1,1,2) [2025-03-29 03:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786179', 'tblTempUsageDetail_20' ) start [2025-03-29 03:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786179', 'tblTempUsageDetail_20' ) end [2025-03-29 03:46:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 03:46:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 03:46:23] Production.INFO: ==15715== Releasing lock... [2025-03-29 03:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 03:46:23] Production.INFO: 35.75 MB #Memory Used# [2025-03-29 03:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 00:47:05 [end_date_ymd] => 2025-03-29 03:47:05 [RateCDR] => 1 ) [2025-03-29 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-29 00:47:05' and `end` < '2025-03-29 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-29 03:47:18] Production.INFO: count ==1022 [2025-03-29 03:47:18] Production.ERROR: pbx CDR StartTime 2025-03-29 00:47:05 - End Time 2025-03-29 03:47:05 [2025-03-29 03:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786184', 'tblTempUsageDetail_20' ) start [2025-03-29 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786184', 'tblTempUsageDetail_20' ) end [2025-03-29 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786184', 'tblTempVendorCDR_20' ) start [2025-03-29 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786184', 'tblTempVendorCDR_20' ) end [2025-03-29 03:47:18] Production.INFO: ProcessCDR(1,14786184,1,1,2) [2025-03-29 03:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786184', 'tblTempUsageDetail_20' ) start [2025-03-29 03:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786184', 'tblTempUsageDetail_20' ) end [2025-03-29 03:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 03:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 03:47:22] Production.INFO: ==15834== Releasing lock... [2025-03-29 03:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 03:47:22] Production.INFO: 35.75 MB #Memory Used# [2025-03-29 03:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 00:48:06 [end_date_ymd] => 2025-03-29 03:48:06 [RateCDR] => 1 ) [2025-03-29 03:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 00:48:06' and `end` < '2025-03-29 03:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 03:48:18] Production.INFO: count ==1019 [2025-03-29 03:48:19] Production.ERROR: pbx CDR StartTime 2025-03-29 00:48:06 - End Time 2025-03-29 03:48:06 [2025-03-29 03:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 03:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786189', 'tblTempUsageDetail_20' ) start [2025-03-29 03:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786189', 'tblTempUsageDetail_20' ) end [2025-03-29 03:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786189', 'tblTempVendorCDR_20' ) start [2025-03-29 03:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786189', 'tblTempVendorCDR_20' ) end [2025-03-29 03:48:19] Production.INFO: ProcessCDR(1,14786189,1,1,2) [2025-03-29 03:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786189', 'tblTempUsageDetail_20' ) start [2025-03-29 03:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786189', 'tblTempUsageDetail_20' ) end [2025-03-29 03:48:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 03:48:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 03:48:23] Production.INFO: ==15905== Releasing lock... [2025-03-29 03:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 03:48:23] Production.INFO: 35.75 MB #Memory Used# [2025-03-29 03:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 00:49:05 [end_date_ymd] => 2025-03-29 03:49:05 [RateCDR] => 1 ) [2025-03-29 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-29 00:49:05' and `end` < '2025-03-29 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-29 03:49:18] Production.INFO: count ==1019 [2025-03-29 03:49:18] Production.ERROR: pbx CDR StartTime 2025-03-29 00:49:05 - End Time 2025-03-29 03:49:05 [2025-03-29 03:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786194', 'tblTempUsageDetail_20' ) start [2025-03-29 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786194', 'tblTempUsageDetail_20' ) end [2025-03-29 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786194', 'tblTempVendorCDR_20' ) start [2025-03-29 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786194', 'tblTempVendorCDR_20' ) end [2025-03-29 03:49:18] Production.INFO: ProcessCDR(1,14786194,1,1,2) [2025-03-29 03:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786194', 'tblTempUsageDetail_20' ) start [2025-03-29 03:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786194', 'tblTempUsageDetail_20' ) end [2025-03-29 03:49:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 03:49:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 03:49:24] Production.INFO: ==15995== Releasing lock... [2025-03-29 03:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 03:49:24] Production.INFO: 36 MB #Memory Used# [2025-03-29 03:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 00:50:07 [end_date_ymd] => 2025-03-29 03:50:07 [RateCDR] => 1 ) [2025-03-29 03:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 00:50:07' and `end` < '2025-03-29 03:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 03:50:19] Production.INFO: count ==1016 [2025-03-29 03:50:20] Production.ERROR: pbx CDR StartTime 2025-03-29 00:50:07 - End Time 2025-03-29 03:50:07 [2025-03-29 03:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 03:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786200', 'tblTempUsageDetail_20' ) start [2025-03-29 03:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786200', 'tblTempUsageDetail_20' ) end [2025-03-29 03:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786200', 'tblTempVendorCDR_20' ) start [2025-03-29 03:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786200', 'tblTempVendorCDR_20' ) end [2025-03-29 03:50:20] Production.INFO: ProcessCDR(1,14786200,1,1,2) [2025-03-29 03:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786200', 'tblTempUsageDetail_20' ) start [2025-03-29 03:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786200', 'tblTempUsageDetail_20' ) end [2025-03-29 03:50:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 03:50:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 03:50:24] Production.INFO: ==16090== Releasing lock... [2025-03-29 03:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 03:50:24] Production.INFO: 35.75 MB #Memory Used# [2025-03-29 03:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 00:51:05 [end_date_ymd] => 2025-03-29 03:51:05 [RateCDR] => 1 ) [2025-03-29 03:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 00:51:05' and `end` < '2025-03-29 03:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 03:51:17] Production.INFO: count ==1009 [2025-03-29 03:51:18] Production.ERROR: pbx CDR StartTime 2025-03-29 00:51:05 - End Time 2025-03-29 03:51:05 [2025-03-29 03:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786205', 'tblTempUsageDetail_20' ) start [2025-03-29 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786205', 'tblTempUsageDetail_20' ) end [2025-03-29 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786205', 'tblTempVendorCDR_20' ) start [2025-03-29 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786205', 'tblTempVendorCDR_20' ) end [2025-03-29 03:51:18] Production.INFO: ProcessCDR(1,14786205,1,1,2) [2025-03-29 03:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786205', 'tblTempUsageDetail_20' ) start [2025-03-29 03:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786205', 'tblTempUsageDetail_20' ) end [2025-03-29 03:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 03:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 03:51:22] Production.INFO: ==16162== Releasing lock... [2025-03-29 03:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 03:51:22] Production.INFO: 36 MB #Memory Used# [2025-03-29 03:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 00:52:06 [end_date_ymd] => 2025-03-29 03:52:06 [RateCDR] => 1 ) [2025-03-29 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-29 00:52:06' and `end` < '2025-03-29 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-29 03:52:18] Production.INFO: count ==983 [2025-03-29 03:52:19] Production.ERROR: pbx CDR StartTime 2025-03-29 00:52:06 - End Time 2025-03-29 03:52:06 [2025-03-29 03:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 03:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786210', 'tblTempUsageDetail_20' ) start [2025-03-29 03:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786210', 'tblTempUsageDetail_20' ) end [2025-03-29 03:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786210', 'tblTempVendorCDR_20' ) start [2025-03-29 03:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786210', 'tblTempVendorCDR_20' ) end [2025-03-29 03:52:19] Production.INFO: ProcessCDR(1,14786210,1,1,2) [2025-03-29 03:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786210', 'tblTempUsageDetail_20' ) start [2025-03-29 03:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786210', 'tblTempUsageDetail_20' ) end [2025-03-29 03:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 03:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 03:52:22] Production.INFO: ==16234== Releasing lock... [2025-03-29 03:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 03:52:22] Production.INFO: 35.25 MB #Memory Used# [2025-03-29 03:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 00:53:05 [end_date_ymd] => 2025-03-29 03:53:05 [RateCDR] => 1 ) [2025-03-29 03:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 00:53:05' and `end` < '2025-03-29 03:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 03:53:18] Production.INFO: count ==979 [2025-03-29 03:53:18] Production.ERROR: pbx CDR StartTime 2025-03-29 00:53:05 - End Time 2025-03-29 03:53:05 [2025-03-29 03:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786215', 'tblTempUsageDetail_20' ) start [2025-03-29 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786215', 'tblTempUsageDetail_20' ) end [2025-03-29 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786215', 'tblTempVendorCDR_20' ) start [2025-03-29 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786215', 'tblTempVendorCDR_20' ) end [2025-03-29 03:53:18] Production.INFO: ProcessCDR(1,14786215,1,1,2) [2025-03-29 03:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786215', 'tblTempUsageDetail_20' ) start [2025-03-29 03:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786215', 'tblTempUsageDetail_20' ) end [2025-03-29 03:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 03:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 03:53:22] Production.INFO: ==16306== Releasing lock... [2025-03-29 03:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 03:53:22] Production.INFO: 36.25 MB #Memory Used# [2025-03-29 03:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 00:54:05 [end_date_ymd] => 2025-03-29 03:54:05 [RateCDR] => 1 ) [2025-03-29 03:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 00:54:05' and `end` < '2025-03-29 03:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 03:54:18] Production.INFO: count ==977 [2025-03-29 03:54:19] Production.ERROR: pbx CDR StartTime 2025-03-29 00:54:05 - End Time 2025-03-29 03:54:05 [2025-03-29 03:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 03:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786220', 'tblTempUsageDetail_20' ) start [2025-03-29 03:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786220', 'tblTempUsageDetail_20' ) end [2025-03-29 03:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786220', 'tblTempVendorCDR_20' ) start [2025-03-29 03:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786220', 'tblTempVendorCDR_20' ) end [2025-03-29 03:54:19] Production.INFO: ProcessCDR(1,14786220,1,1,2) [2025-03-29 03:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786220', 'tblTempUsageDetail_20' ) start [2025-03-29 03:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786220', 'tblTempUsageDetail_20' ) end [2025-03-29 03:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 03:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 03:54:22] Production.INFO: ==16377== Releasing lock... [2025-03-29 03:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 03:54:22] Production.INFO: 35.5 MB #Memory Used# [2025-03-29 03:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 00:55:06 [end_date_ymd] => 2025-03-29 03:55:06 [RateCDR] => 1 ) [2025-03-29 03:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 00:55:06' and `end` < '2025-03-29 03:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 03:55:19] Production.INFO: count ==977 [2025-03-29 03:55:19] Production.ERROR: pbx CDR StartTime 2025-03-29 00:55:06 - End Time 2025-03-29 03:55:06 [2025-03-29 03:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 03:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786225', 'tblTempUsageDetail_20' ) start [2025-03-29 03:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786225', 'tblTempUsageDetail_20' ) end [2025-03-29 03:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786225', 'tblTempVendorCDR_20' ) start [2025-03-29 03:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786225', 'tblTempVendorCDR_20' ) end [2025-03-29 03:55:19] Production.INFO: ProcessCDR(1,14786225,1,1,2) [2025-03-29 03:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786225', 'tblTempUsageDetail_20' ) start [2025-03-29 03:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786225', 'tblTempUsageDetail_20' ) end [2025-03-29 03:55:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 03:55:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 03:55:24] Production.INFO: ==16463== Releasing lock... [2025-03-29 03:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 03:55:24] Production.INFO: 35.5 MB #Memory Used# [2025-03-29 03:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 00:56:06 [end_date_ymd] => 2025-03-29 03:56:06 [RateCDR] => 1 ) [2025-03-29 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-29 00:56:06' and `end` < '2025-03-29 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-29 03:56:18] Production.INFO: count ==974 [2025-03-29 03:56:19] Production.ERROR: pbx CDR StartTime 2025-03-29 00:56:06 - End Time 2025-03-29 03:56:06 [2025-03-29 03:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 03:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786230', 'tblTempUsageDetail_20' ) start [2025-03-29 03:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786230', 'tblTempUsageDetail_20' ) end [2025-03-29 03:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786230', 'tblTempVendorCDR_20' ) start [2025-03-29 03:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786230', 'tblTempVendorCDR_20' ) end [2025-03-29 03:56:19] Production.INFO: ProcessCDR(1,14786230,1,1,2) [2025-03-29 03:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786230', 'tblTempUsageDetail_20' ) start [2025-03-29 03:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786230', 'tblTempUsageDetail_20' ) end [2025-03-29 03:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 03:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 03:56:22] Production.INFO: ==16538== Releasing lock... [2025-03-29 03:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 03:56:22] Production.INFO: 36 MB #Memory Used# [2025-03-29 03:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 00:57:06 [end_date_ymd] => 2025-03-29 03:57:06 [RateCDR] => 1 ) [2025-03-29 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-29 00:57:06' and `end` < '2025-03-29 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-29 03:57:19] Production.INFO: count ==972 [2025-03-29 03:57:19] Production.ERROR: pbx CDR StartTime 2025-03-29 00:57:06 - End Time 2025-03-29 03:57:06 [2025-03-29 03:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786235', 'tblTempUsageDetail_20' ) start [2025-03-29 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786235', 'tblTempUsageDetail_20' ) end [2025-03-29 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786235', 'tblTempVendorCDR_20' ) start [2025-03-29 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786235', 'tblTempVendorCDR_20' ) end [2025-03-29 03:57:19] Production.INFO: ProcessCDR(1,14786235,1,1,2) [2025-03-29 03:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786235', 'tblTempUsageDetail_20' ) start [2025-03-29 03:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786235', 'tblTempUsageDetail_20' ) end [2025-03-29 03:57:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 03:57:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 03:57:23] Production.INFO: ==16611== Releasing lock... [2025-03-29 03:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 03:57:23] Production.INFO: 35.25 MB #Memory Used# [2025-03-29 03:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 00:58:06 [end_date_ymd] => 2025-03-29 03:58:06 [RateCDR] => 1 ) [2025-03-29 03:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 00:58:06' and `end` < '2025-03-29 03:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 03:58:18] Production.INFO: count ==969 [2025-03-29 03:58:19] Production.ERROR: pbx CDR StartTime 2025-03-29 00:58:06 - End Time 2025-03-29 03:58:06 [2025-03-29 03:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 03:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786240', 'tblTempUsageDetail_20' ) start [2025-03-29 03:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786240', 'tblTempUsageDetail_20' ) end [2025-03-29 03:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786240', 'tblTempVendorCDR_20' ) start [2025-03-29 03:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786240', 'tblTempVendorCDR_20' ) end [2025-03-29 03:58:19] Production.INFO: ProcessCDR(1,14786240,1,1,2) [2025-03-29 03:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786240', 'tblTempUsageDetail_20' ) start [2025-03-29 03:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786240', 'tblTempUsageDetail_20' ) end [2025-03-29 03:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 03:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 03:58:22] Production.INFO: ==16692== Releasing lock... [2025-03-29 03:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 03:58:22] Production.INFO: 35.25 MB #Memory Used# [2025-03-29 03:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 00:59:06 [end_date_ymd] => 2025-03-29 03:59:06 [RateCDR] => 1 ) [2025-03-29 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-29 00:59:06' and `end` < '2025-03-29 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-29 03:59:19] Production.INFO: count ==994 [2025-03-29 03:59:19] Production.ERROR: pbx CDR StartTime 2025-03-29 00:59:06 - End Time 2025-03-29 03:59:06 [2025-03-29 03:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 03:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786245', 'tblTempUsageDetail_20' ) start [2025-03-29 03:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786245', 'tblTempUsageDetail_20' ) end [2025-03-29 03:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786245', 'tblTempVendorCDR_20' ) start [2025-03-29 03:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786245', 'tblTempVendorCDR_20' ) end [2025-03-29 03:59:19] Production.INFO: ProcessCDR(1,14786245,1,1,2) [2025-03-29 03:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 03:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 03:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786245', 'tblTempUsageDetail_20' ) start [2025-03-29 03:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786245', 'tblTempUsageDetail_20' ) end [2025-03-29 03:59:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 03:59:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 03:59:23] Production.INFO: ==16764== Releasing lock... [2025-03-29 03:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 03:59:23] Production.INFO: 35.75 MB #Memory Used# [2025-03-29 04:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 01:00:06 [end_date_ymd] => 2025-03-29 04:00:06 [RateCDR] => 1 ) [2025-03-29 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-29 01:00:06' and `end` < '2025-03-29 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-29 04:00:19] Production.INFO: count ==1059 [2025-03-29 04:00:20] Production.ERROR: pbx CDR StartTime 2025-03-29 01:00:06 - End Time 2025-03-29 04:00:06 [2025-03-29 04:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 04:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786250', 'tblTempUsageDetail_20' ) start [2025-03-29 04:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786250', 'tblTempUsageDetail_20' ) end [2025-03-29 04:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786250', 'tblTempVendorCDR_20' ) start [2025-03-29 04:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786250', 'tblTempVendorCDR_20' ) end [2025-03-29 04:00:20] Production.INFO: ProcessCDR(1,14786250,1,1,2) [2025-03-29 04:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786250', 'tblTempUsageDetail_20' ) start [2025-03-29 04:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786250', 'tblTempUsageDetail_20' ) end [2025-03-29 04:00:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 04:00:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 04:00:24] Production.INFO: ==16838== Releasing lock... [2025-03-29 04:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 04:00:24] Production.INFO: 36.25 MB #Memory Used# [2025-03-29 04:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 01:01:06 [end_date_ymd] => 2025-03-29 04:01:06 [RateCDR] => 1 ) [2025-03-29 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-29 01:01:06' and `end` < '2025-03-29 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-29 04:01:19] Production.INFO: count ==1047 [2025-03-29 04:01:19] Production.ERROR: pbx CDR StartTime 2025-03-29 01:01:06 - End Time 2025-03-29 04:01:06 [2025-03-29 04:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786257', 'tblTempUsageDetail_20' ) start [2025-03-29 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786257', 'tblTempUsageDetail_20' ) end [2025-03-29 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786257', 'tblTempVendorCDR_20' ) start [2025-03-29 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786257', 'tblTempVendorCDR_20' ) end [2025-03-29 04:01:19] Production.INFO: ProcessCDR(1,14786257,1,1,2) [2025-03-29 04:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786257', 'tblTempUsageDetail_20' ) start [2025-03-29 04:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786257', 'tblTempUsageDetail_20' ) end [2025-03-29 04:01:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 04:01:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 04:01:23] Production.INFO: ==16926== Releasing lock... [2025-03-29 04:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 04:01:23] Production.INFO: 36 MB #Memory Used# [2025-03-29 04:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 01:02:05 [end_date_ymd] => 2025-03-29 04:02:05 [RateCDR] => 1 ) [2025-03-29 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-29 01:02:05' and `end` < '2025-03-29 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-29 04:02:18] Production.INFO: count ==1047 [2025-03-29 04:02:18] Production.ERROR: pbx CDR StartTime 2025-03-29 01:02:05 - End Time 2025-03-29 04:02:05 [2025-03-29 04:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786262', 'tblTempUsageDetail_20' ) start [2025-03-29 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786262', 'tblTempUsageDetail_20' ) end [2025-03-29 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786262', 'tblTempVendorCDR_20' ) start [2025-03-29 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786262', 'tblTempVendorCDR_20' ) end [2025-03-29 04:02:18] Production.INFO: ProcessCDR(1,14786262,1,1,2) [2025-03-29 04:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786262', 'tblTempUsageDetail_20' ) start [2025-03-29 04:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786262', 'tblTempUsageDetail_20' ) end [2025-03-29 04:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 04:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 04:02:22] Production.INFO: ==17037== Releasing lock... [2025-03-29 04:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 04:02:22] Production.INFO: 36 MB #Memory Used# [2025-03-29 04:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 01:03:05 [end_date_ymd] => 2025-03-29 04:03:05 [RateCDR] => 1 ) [2025-03-29 04:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 01:03:05' and `end` < '2025-03-29 04:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 04:03:18] Production.INFO: count ==1027 [2025-03-29 04:03:18] Production.ERROR: pbx CDR StartTime 2025-03-29 01:03:05 - End Time 2025-03-29 04:03:05 [2025-03-29 04:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786267', 'tblTempUsageDetail_20' ) start [2025-03-29 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786267', 'tblTempUsageDetail_20' ) end [2025-03-29 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786267', 'tblTempVendorCDR_20' ) start [2025-03-29 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786267', 'tblTempVendorCDR_20' ) end [2025-03-29 04:03:18] Production.INFO: ProcessCDR(1,14786267,1,1,2) [2025-03-29 04:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786267', 'tblTempUsageDetail_20' ) start [2025-03-29 04:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786267', 'tblTempUsageDetail_20' ) end [2025-03-29 04:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 04:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 04:03:22] Production.INFO: ==17108== Releasing lock... [2025-03-29 04:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 04:03:22] Production.INFO: 35.75 MB #Memory Used# [2025-03-29 04:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 01:04:05 [end_date_ymd] => 2025-03-29 04:04:05 [RateCDR] => 1 ) [2025-03-29 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-29 01:04:05' and `end` < '2025-03-29 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-29 04:04:18] Production.INFO: count ==1026 [2025-03-29 04:04:18] Production.ERROR: pbx CDR StartTime 2025-03-29 01:04:05 - End Time 2025-03-29 04:04:05 [2025-03-29 04:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786272', 'tblTempUsageDetail_20' ) start [2025-03-29 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786272', 'tblTempUsageDetail_20' ) end [2025-03-29 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786272', 'tblTempVendorCDR_20' ) start [2025-03-29 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786272', 'tblTempVendorCDR_20' ) end [2025-03-29 04:04:18] Production.INFO: ProcessCDR(1,14786272,1,1,2) [2025-03-29 04:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786272', 'tblTempUsageDetail_20' ) start [2025-03-29 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786272', 'tblTempUsageDetail_20' ) end [2025-03-29 04:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 04:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 04:04:21] Production.INFO: ==17181== Releasing lock... [2025-03-29 04:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 04:04:21] Production.INFO: 36 MB #Memory Used# [2025-03-29 04:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 01:05:04 [end_date_ymd] => 2025-03-29 04:05:04 [RateCDR] => 1 ) [2025-03-29 04: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-29 01:05:04' and `end` < '2025-03-29 04: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-29 04:05:17] Production.INFO: count ==1011 [2025-03-29 04:05:17] Production.ERROR: pbx CDR StartTime 2025-03-29 01:05:04 - End Time 2025-03-29 04:05:04 [2025-03-29 04:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786277', 'tblTempUsageDetail_20' ) start [2025-03-29 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786277', 'tblTempUsageDetail_20' ) end [2025-03-29 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786277', 'tblTempVendorCDR_20' ) start [2025-03-29 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786277', 'tblTempVendorCDR_20' ) end [2025-03-29 04:05:17] Production.INFO: ProcessCDR(1,14786277,1,1,2) [2025-03-29 04:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786277', 'tblTempUsageDetail_20' ) start [2025-03-29 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786277', 'tblTempUsageDetail_20' ) end [2025-03-29 04:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 04:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 04:05:21] Production.INFO: ==17255== Releasing lock... [2025-03-29 04:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 04:05:21] Production.INFO: 36 MB #Memory Used# [2025-03-29 04:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 01:06:05 [end_date_ymd] => 2025-03-29 04:06:05 [RateCDR] => 1 ) [2025-03-29 04:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 01:06:05' and `end` < '2025-03-29 04:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 04:06:17] Production.INFO: count ==1008 [2025-03-29 04:06:18] Production.ERROR: pbx CDR StartTime 2025-03-29 01:06:05 - End Time 2025-03-29 04:06:05 [2025-03-29 04:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786282', 'tblTempUsageDetail_20' ) start [2025-03-29 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786282', 'tblTempUsageDetail_20' ) end [2025-03-29 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786282', 'tblTempVendorCDR_20' ) start [2025-03-29 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786282', 'tblTempVendorCDR_20' ) end [2025-03-29 04:06:18] Production.INFO: ProcessCDR(1,14786282,1,1,2) [2025-03-29 04:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786282', 'tblTempUsageDetail_20' ) start [2025-03-29 04:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786282', 'tblTempUsageDetail_20' ) end [2025-03-29 04:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 04:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 04:06:22] Production.INFO: ==17330== Releasing lock... [2025-03-29 04:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 04:06:22] Production.INFO: 35.75 MB #Memory Used# [2025-03-29 04:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 01:07:06 [end_date_ymd] => 2025-03-29 04:07:06 [RateCDR] => 1 ) [2025-03-29 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-29 01:07:06' and `end` < '2025-03-29 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-29 04:07:19] Production.INFO: count ==1008 [2025-03-29 04:07:19] Production.ERROR: pbx CDR StartTime 2025-03-29 01:07:06 - End Time 2025-03-29 04:07:06 [2025-03-29 04:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 04:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786287', 'tblTempUsageDetail_20' ) start [2025-03-29 04:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786287', 'tblTempUsageDetail_20' ) end [2025-03-29 04:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786287', 'tblTempVendorCDR_20' ) start [2025-03-29 04:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786287', 'tblTempVendorCDR_20' ) end [2025-03-29 04:07:19] Production.INFO: ProcessCDR(1,14786287,1,1,2) [2025-03-29 04:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786287', 'tblTempUsageDetail_20' ) start [2025-03-29 04:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786287', 'tblTempUsageDetail_20' ) end [2025-03-29 04:07:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 04:07:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 04:07:22] Production.INFO: ==17403== Releasing lock... [2025-03-29 04:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 04:07:22] Production.INFO: 35.75 MB #Memory Used# [2025-03-29 04:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 01:08:05 [end_date_ymd] => 2025-03-29 04:08:05 [RateCDR] => 1 ) [2025-03-29 04:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 01:08:05' and `end` < '2025-03-29 04:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 04:08:17] Production.INFO: count ==1009 [2025-03-29 04:08:18] Production.ERROR: pbx CDR StartTime 2025-03-29 01:08:05 - End Time 2025-03-29 04:08:05 [2025-03-29 04:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786292', 'tblTempUsageDetail_20' ) start [2025-03-29 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786292', 'tblTempUsageDetail_20' ) end [2025-03-29 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786292', 'tblTempVendorCDR_20' ) start [2025-03-29 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786292', 'tblTempVendorCDR_20' ) end [2025-03-29 04:08:18] Production.INFO: ProcessCDR(1,14786292,1,1,2) [2025-03-29 04:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786292', 'tblTempUsageDetail_20' ) start [2025-03-29 04:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786292', 'tblTempUsageDetail_20' ) end [2025-03-29 04:08:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 04:08:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 04:08:23] Production.INFO: ==17478== Releasing lock... [2025-03-29 04:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 04:08:23] Production.INFO: 35.5 MB #Memory Used# [2025-03-29 04:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 01:09:06 [end_date_ymd] => 2025-03-29 04:09:06 [RateCDR] => 1 ) [2025-03-29 04:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 01:09:06' and `end` < '2025-03-29 04:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 04:09:18] Production.INFO: count ==1009 [2025-03-29 04:09:19] Production.ERROR: pbx CDR StartTime 2025-03-29 01:09:06 - End Time 2025-03-29 04:09:06 [2025-03-29 04:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 04:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786297', 'tblTempUsageDetail_20' ) start [2025-03-29 04:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786297', 'tblTempUsageDetail_20' ) end [2025-03-29 04:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786297', 'tblTempVendorCDR_20' ) start [2025-03-29 04:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786297', 'tblTempVendorCDR_20' ) end [2025-03-29 04:09:19] Production.INFO: ProcessCDR(1,14786297,1,1,2) [2025-03-29 04:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786297', 'tblTempUsageDetail_20' ) start [2025-03-29 04:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786297', 'tblTempUsageDetail_20' ) end [2025-03-29 04:09:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 04:09:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 04:09:22] Production.INFO: ==17550== Releasing lock... [2025-03-29 04:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 04:09:22] Production.INFO: 35.5 MB #Memory Used# [2025-03-29 04:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 01:10:06 [end_date_ymd] => 2025-03-29 04:10:06 [RateCDR] => 1 ) [2025-03-29 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-29 01:10:06' and `end` < '2025-03-29 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-29 04:10:19] Production.INFO: count ==1004 [2025-03-29 04:10:19] Production.ERROR: pbx CDR StartTime 2025-03-29 01:10:06 - End Time 2025-03-29 04:10:06 [2025-03-29 04:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786303', 'tblTempUsageDetail_20' ) start [2025-03-29 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786303', 'tblTempUsageDetail_20' ) end [2025-03-29 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786303', 'tblTempVendorCDR_20' ) start [2025-03-29 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786303', 'tblTempVendorCDR_20' ) end [2025-03-29 04:10:19] Production.INFO: ProcessCDR(1,14786303,1,1,2) [2025-03-29 04:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786303', 'tblTempUsageDetail_20' ) start [2025-03-29 04:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786303', 'tblTempUsageDetail_20' ) end [2025-03-29 04:10:25] Production.ERROR: pbx prc_insertCDR start [2025-03-29 04:10:25] Production.ERROR: pbx prc_insertCDR end [2025-03-29 04:10:25] Production.INFO: ==17624== Releasing lock... [2025-03-29 04:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 04:10:25] Production.INFO: 35.75 MB #Memory Used# [2025-03-29 04:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 01:11:05 [end_date_ymd] => 2025-03-29 04:11:05 [RateCDR] => 1 ) [2025-03-29 04:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 01:11:05' and `end` < '2025-03-29 04:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 04:11:18] Production.INFO: count ==991 [2025-03-29 04:11:18] Production.ERROR: pbx CDR StartTime 2025-03-29 01:11:05 - End Time 2025-03-29 04:11:05 [2025-03-29 04:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786308', 'tblTempUsageDetail_20' ) start [2025-03-29 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786308', 'tblTempUsageDetail_20' ) end [2025-03-29 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786308', 'tblTempVendorCDR_20' ) start [2025-03-29 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786308', 'tblTempVendorCDR_20' ) end [2025-03-29 04:11:18] Production.INFO: ProcessCDR(1,14786308,1,1,2) [2025-03-29 04:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786308', 'tblTempUsageDetail_20' ) start [2025-03-29 04:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786308', 'tblTempUsageDetail_20' ) end [2025-03-29 04:11:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 04:11:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 04:11:22] Production.INFO: ==17705== Releasing lock... [2025-03-29 04:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 04:11:22] Production.INFO: 35.75 MB #Memory Used# [2025-03-29 04:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 01:12:05 [end_date_ymd] => 2025-03-29 04:12:05 [RateCDR] => 1 ) [2025-03-29 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-29 01:12:05' and `end` < '2025-03-29 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-29 04:12:18] Production.INFO: count ==991 [2025-03-29 04:12:18] Production.ERROR: pbx CDR StartTime 2025-03-29 01:12:05 - End Time 2025-03-29 04:12:05 [2025-03-29 04:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786313', 'tblTempUsageDetail_20' ) start [2025-03-29 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786313', 'tblTempUsageDetail_20' ) end [2025-03-29 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786313', 'tblTempVendorCDR_20' ) start [2025-03-29 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786313', 'tblTempVendorCDR_20' ) end [2025-03-29 04:12:18] Production.INFO: ProcessCDR(1,14786313,1,1,2) [2025-03-29 04:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786313', 'tblTempUsageDetail_20' ) start [2025-03-29 04:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786313', 'tblTempUsageDetail_20' ) end [2025-03-29 04:12:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 04:12:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 04:12:23] Production.INFO: ==17777== Releasing lock... [2025-03-29 04:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 04:12:23] Production.INFO: 35.75 MB #Memory Used# [2025-03-29 04:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 01:13:06 [end_date_ymd] => 2025-03-29 04:13:06 [RateCDR] => 1 ) [2025-03-29 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-29 01:13:06' and `end` < '2025-03-29 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-29 04:13:18] Production.INFO: count ==990 [2025-03-29 04:13:19] Production.ERROR: pbx CDR StartTime 2025-03-29 01:13:06 - End Time 2025-03-29 04:13:06 [2025-03-29 04:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 04:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786318', 'tblTempUsageDetail_20' ) start [2025-03-29 04:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786318', 'tblTempUsageDetail_20' ) end [2025-03-29 04:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786318', 'tblTempVendorCDR_20' ) start [2025-03-29 04:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786318', 'tblTempVendorCDR_20' ) end [2025-03-29 04:13:19] Production.INFO: ProcessCDR(1,14786318,1,1,2) [2025-03-29 04:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786318', 'tblTempUsageDetail_20' ) start [2025-03-29 04:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786318', 'tblTempUsageDetail_20' ) end [2025-03-29 04:13:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 04:13:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 04:13:22] Production.INFO: ==17847== Releasing lock... [2025-03-29 04:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 04:13:22] Production.INFO: 36 MB #Memory Used# [2025-03-29 04:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 01:14:05 [end_date_ymd] => 2025-03-29 04:14:05 [RateCDR] => 1 ) [2025-03-29 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-29 01:14:05' and `end` < '2025-03-29 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-29 04:14:18] Production.INFO: count ==990 [2025-03-29 04:14:18] Production.ERROR: pbx CDR StartTime 2025-03-29 01:14:05 - End Time 2025-03-29 04:14:05 [2025-03-29 04:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786323', 'tblTempUsageDetail_20' ) start [2025-03-29 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786323', 'tblTempUsageDetail_20' ) end [2025-03-29 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786323', 'tblTempVendorCDR_20' ) start [2025-03-29 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786323', 'tblTempVendorCDR_20' ) end [2025-03-29 04:14:18] Production.INFO: ProcessCDR(1,14786323,1,1,2) [2025-03-29 04:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786323', 'tblTempUsageDetail_20' ) start [2025-03-29 04:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786323', 'tblTempUsageDetail_20' ) end [2025-03-29 04:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 04:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 04:14:21] Production.INFO: ==17926== Releasing lock... [2025-03-29 04:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 04:14:21] Production.INFO: 36 MB #Memory Used# [2025-03-29 04:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 01:15:06 [end_date_ymd] => 2025-03-29 04:15:06 [RateCDR] => 1 ) [2025-03-29 04:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 01:15:06' and `end` < '2025-03-29 04:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 04:15:18] Production.INFO: count ==987 [2025-03-29 04:15:19] Production.ERROR: pbx CDR StartTime 2025-03-29 01:15:06 - End Time 2025-03-29 04:15:06 [2025-03-29 04:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 04:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786328', 'tblTempUsageDetail_20' ) start [2025-03-29 04:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786328', 'tblTempUsageDetail_20' ) end [2025-03-29 04:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786328', 'tblTempVendorCDR_20' ) start [2025-03-29 04:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786328', 'tblTempVendorCDR_20' ) end [2025-03-29 04:15:19] Production.INFO: ProcessCDR(1,14786328,1,1,2) [2025-03-29 04:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786328', 'tblTempUsageDetail_20' ) start [2025-03-29 04:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786328', 'tblTempUsageDetail_20' ) end [2025-03-29 04:15:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 04:15:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 04:15:23] Production.INFO: ==18000== Releasing lock... [2025-03-29 04:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 04:15:23] Production.INFO: 36 MB #Memory Used# [2025-03-29 04:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 01:16:05 [end_date_ymd] => 2025-03-29 04:16:05 [RateCDR] => 1 ) [2025-03-29 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-29 01:16:05' and `end` < '2025-03-29 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-29 04:16:18] Production.INFO: count ==972 [2025-03-29 04:16:18] Production.ERROR: pbx CDR StartTime 2025-03-29 01:16:05 - End Time 2025-03-29 04:16:05 [2025-03-29 04:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786333', 'tblTempUsageDetail_20' ) start [2025-03-29 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786333', 'tblTempUsageDetail_20' ) end [2025-03-29 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786333', 'tblTempVendorCDR_20' ) start [2025-03-29 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786333', 'tblTempVendorCDR_20' ) end [2025-03-29 04:16:18] Production.INFO: ProcessCDR(1,14786333,1,1,2) [2025-03-29 04:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786333', 'tblTempUsageDetail_20' ) start [2025-03-29 04:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786333', 'tblTempUsageDetail_20' ) end [2025-03-29 04:16:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 04:16:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 04:16:22] Production.INFO: ==18069== Releasing lock... [2025-03-29 04:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 04:16:22] Production.INFO: 35.25 MB #Memory Used# [2025-03-29 04:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 01:17:05 [end_date_ymd] => 2025-03-29 04:17:05 [RateCDR] => 1 ) [2025-03-29 04:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 01:17:05' and `end` < '2025-03-29 04:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 04:17:18] Production.INFO: count ==971 [2025-03-29 04:17:18] Production.ERROR: pbx CDR StartTime 2025-03-29 01:17:05 - End Time 2025-03-29 04:17:05 [2025-03-29 04:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786338', 'tblTempUsageDetail_20' ) start [2025-03-29 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786338', 'tblTempUsageDetail_20' ) end [2025-03-29 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786338', 'tblTempVendorCDR_20' ) start [2025-03-29 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786338', 'tblTempVendorCDR_20' ) end [2025-03-29 04:17:18] Production.INFO: ProcessCDR(1,14786338,1,1,2) [2025-03-29 04:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786338', 'tblTempUsageDetail_20' ) start [2025-03-29 04:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786338', 'tblTempUsageDetail_20' ) end [2025-03-29 04:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 04:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 04:17:21] Production.INFO: ==18181== Releasing lock... [2025-03-29 04:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 04:17:21] Production.INFO: 35.75 MB #Memory Used# [2025-03-29 04:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 01:18:05 [end_date_ymd] => 2025-03-29 04:18:05 [RateCDR] => 1 ) [2025-03-29 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-29 01:18:05' and `end` < '2025-03-29 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-29 04:18:17] Production.INFO: count ==956 [2025-03-29 04:18:18] Production.ERROR: pbx CDR StartTime 2025-03-29 01:18:05 - End Time 2025-03-29 04:18:05 [2025-03-29 04:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786343', 'tblTempUsageDetail_20' ) start [2025-03-29 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786343', 'tblTempUsageDetail_20' ) end [2025-03-29 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786343', 'tblTempVendorCDR_20' ) start [2025-03-29 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786343', 'tblTempVendorCDR_20' ) end [2025-03-29 04:18:18] Production.INFO: ProcessCDR(1,14786343,1,1,2) [2025-03-29 04:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786343', 'tblTempUsageDetail_20' ) start [2025-03-29 04:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786343', 'tblTempUsageDetail_20' ) end [2025-03-29 04:18:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 04:18:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 04:18:23] Production.INFO: ==18261== Releasing lock... [2025-03-29 04:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 04:18:23] Production.INFO: 35.5 MB #Memory Used# [2025-03-29 04:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 01:19:05 [end_date_ymd] => 2025-03-29 04:19:05 [RateCDR] => 1 ) [2025-03-29 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-29 01:19:05' and `end` < '2025-03-29 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-29 04:19:18] Production.INFO: count ==945 [2025-03-29 04:19:18] Production.ERROR: pbx CDR StartTime 2025-03-29 01:19:05 - End Time 2025-03-29 04:19:05 [2025-03-29 04:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786348', 'tblTempUsageDetail_20' ) start [2025-03-29 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786348', 'tblTempUsageDetail_20' ) end [2025-03-29 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786348', 'tblTempVendorCDR_20' ) start [2025-03-29 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786348', 'tblTempVendorCDR_20' ) end [2025-03-29 04:19:18] Production.INFO: ProcessCDR(1,14786348,1,1,2) [2025-03-29 04:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786348', 'tblTempUsageDetail_20' ) start [2025-03-29 04:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786348', 'tblTempUsageDetail_20' ) end [2025-03-29 04:19:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 04:19:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 04:19:22] Production.INFO: ==18333== Releasing lock... [2025-03-29 04:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 04:19:22] Production.INFO: 35.5 MB #Memory Used# [2025-03-29 04:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 01:20:05 [end_date_ymd] => 2025-03-29 04:20:05 [RateCDR] => 1 ) [2025-03-29 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-29 01:20:05' and `end` < '2025-03-29 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-29 04:20:17] Production.INFO: count ==935 [2025-03-29 04:20:17] Production.ERROR: pbx CDR StartTime 2025-03-29 01:20:05 - End Time 2025-03-29 04:20:05 [2025-03-29 04:20:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 04:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786353', 'tblTempUsageDetail_20' ) start [2025-03-29 04:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786353', 'tblTempUsageDetail_20' ) end [2025-03-29 04:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786353', 'tblTempVendorCDR_20' ) start [2025-03-29 04:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786353', 'tblTempVendorCDR_20' ) end [2025-03-29 04:20:17] Production.INFO: ProcessCDR(1,14786353,1,1,2) [2025-03-29 04:20:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:20:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:20:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786353', 'tblTempUsageDetail_20' ) start [2025-03-29 04:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786353', 'tblTempUsageDetail_20' ) end [2025-03-29 04:20:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 04:20:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 04:20:21] Production.INFO: ==18408== Releasing lock... [2025-03-29 04:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 04:20:21] Production.INFO: 35 MB #Memory Used# [2025-03-29 04:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 01:21:05 [end_date_ymd] => 2025-03-29 04:21:05 [RateCDR] => 1 ) [2025-03-29 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-29 01:21:05' and `end` < '2025-03-29 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-29 04:21:18] Production.INFO: count ==915 [2025-03-29 04:21:18] Production.ERROR: pbx CDR StartTime 2025-03-29 01:21:05 - End Time 2025-03-29 04:21:05 [2025-03-29 04:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786359', 'tblTempUsageDetail_20' ) start [2025-03-29 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786359', 'tblTempUsageDetail_20' ) end [2025-03-29 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786359', 'tblTempVendorCDR_20' ) start [2025-03-29 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786359', 'tblTempVendorCDR_20' ) end [2025-03-29 04:21:18] Production.INFO: ProcessCDR(1,14786359,1,1,2) [2025-03-29 04:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786359', 'tblTempUsageDetail_20' ) start [2025-03-29 04:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786359', 'tblTempUsageDetail_20' ) end [2025-03-29 04:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 04:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 04:21:21] Production.INFO: ==18485== Releasing lock... [2025-03-29 04:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 04:21:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-29 04:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 01:22:05 [end_date_ymd] => 2025-03-29 04:22:05 [RateCDR] => 1 ) [2025-03-29 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-29 01:22:05' and `end` < '2025-03-29 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-29 04:22:17] Production.INFO: count ==915 [2025-03-29 04:22:18] Production.ERROR: pbx CDR StartTime 2025-03-29 01:22:05 - End Time 2025-03-29 04:22:05 [2025-03-29 04:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786364', 'tblTempUsageDetail_20' ) start [2025-03-29 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786364', 'tblTempUsageDetail_20' ) end [2025-03-29 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786364', 'tblTempVendorCDR_20' ) start [2025-03-29 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786364', 'tblTempVendorCDR_20' ) end [2025-03-29 04:22:18] Production.INFO: ProcessCDR(1,14786364,1,1,2) [2025-03-29 04:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786364', 'tblTempUsageDetail_20' ) start [2025-03-29 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786364', 'tblTempUsageDetail_20' ) end [2025-03-29 04:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 04:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 04:22:21] Production.INFO: ==18559== Releasing lock... [2025-03-29 04:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 04:22:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-29 04:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 01:23:05 [end_date_ymd] => 2025-03-29 04:23:05 [RateCDR] => 1 ) [2025-03-29 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-29 01:23:05' and `end` < '2025-03-29 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-29 04:23:18] Production.INFO: count ==914 [2025-03-29 04:23:18] Production.ERROR: pbx CDR StartTime 2025-03-29 01:23:05 - End Time 2025-03-29 04:23:05 [2025-03-29 04:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786369', 'tblTempUsageDetail_20' ) start [2025-03-29 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786369', 'tblTempUsageDetail_20' ) end [2025-03-29 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786369', 'tblTempVendorCDR_20' ) start [2025-03-29 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786369', 'tblTempVendorCDR_20' ) end [2025-03-29 04:23:18] Production.INFO: ProcessCDR(1,14786369,1,1,2) [2025-03-29 04:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786369', 'tblTempUsageDetail_20' ) start [2025-03-29 04:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786369', 'tblTempUsageDetail_20' ) end [2025-03-29 04:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 04:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 04:23:21] Production.INFO: ==18632== Releasing lock... [2025-03-29 04:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 04:23:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-29 04:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 01:24:06 [end_date_ymd] => 2025-03-29 04:24:06 [RateCDR] => 1 ) [2025-03-29 04:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 01:24:06' and `end` < '2025-03-29 04:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 04:24:18] Production.INFO: count ==901 [2025-03-29 04:24:19] Production.ERROR: pbx CDR StartTime 2025-03-29 01:24:06 - End Time 2025-03-29 04:24:06 [2025-03-29 04:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 04:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786374', 'tblTempUsageDetail_20' ) start [2025-03-29 04:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786374', 'tblTempUsageDetail_20' ) end [2025-03-29 04:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786374', 'tblTempVendorCDR_20' ) start [2025-03-29 04:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786374', 'tblTempVendorCDR_20' ) end [2025-03-29 04:24:19] Production.INFO: ProcessCDR(1,14786374,1,1,2) [2025-03-29 04:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786374', 'tblTempUsageDetail_20' ) start [2025-03-29 04:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786374', 'tblTempUsageDetail_20' ) end [2025-03-29 04:24:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 04:24:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 04:24:22] Production.INFO: ==18707== Releasing lock... [2025-03-29 04:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 04:24:22] Production.INFO: 35 MB #Memory Used# [2025-03-29 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 01:25:05 [end_date_ymd] => 2025-03-29 04:25:05 [RateCDR] => 1 ) [2025-03-29 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-29 01:25:05' and `end` < '2025-03-29 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-29 04:25:18] Production.INFO: count ==894 [2025-03-29 04:25:18] Production.ERROR: pbx CDR StartTime 2025-03-29 01:25:05 - End Time 2025-03-29 04:25:05 [2025-03-29 04:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786379', 'tblTempUsageDetail_20' ) start [2025-03-29 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786379', 'tblTempUsageDetail_20' ) end [2025-03-29 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786379', 'tblTempVendorCDR_20' ) start [2025-03-29 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786379', 'tblTempVendorCDR_20' ) end [2025-03-29 04:25:18] Production.INFO: ProcessCDR(1,14786379,1,1,2) [2025-03-29 04:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786379', 'tblTempUsageDetail_20' ) start [2025-03-29 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786379', 'tblTempUsageDetail_20' ) end [2025-03-29 04:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 04:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 04:25:21] Production.INFO: ==18782== Releasing lock... [2025-03-29 04:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 04:25:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-29 04:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 01:26:06 [end_date_ymd] => 2025-03-29 04:26:06 [RateCDR] => 1 ) [2025-03-29 04: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-29 01:26:06' and `end` < '2025-03-29 04: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-29 04:26:18] Production.INFO: count ==894 [2025-03-29 04:26:18] Production.ERROR: pbx CDR StartTime 2025-03-29 01:26:06 - End Time 2025-03-29 04:26:06 [2025-03-29 04:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786384', 'tblTempUsageDetail_20' ) start [2025-03-29 04:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786384', 'tblTempUsageDetail_20' ) end [2025-03-29 04:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786384', 'tblTempVendorCDR_20' ) start [2025-03-29 04:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786384', 'tblTempVendorCDR_20' ) end [2025-03-29 04:26:19] Production.INFO: ProcessCDR(1,14786384,1,1,2) [2025-03-29 04:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786384', 'tblTempUsageDetail_20' ) start [2025-03-29 04:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786384', 'tblTempUsageDetail_20' ) end [2025-03-29 04:26:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 04:26:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 04:26:22] Production.INFO: ==18853== Releasing lock... [2025-03-29 04:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 04:26:22] Production.INFO: 34.5 MB #Memory Used# [2025-03-29 04:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 01:27:05 [end_date_ymd] => 2025-03-29 04:27:05 [RateCDR] => 1 ) [2025-03-29 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-29 01:27:05' and `end` < '2025-03-29 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-29 04:27:18] Production.INFO: count ==881 [2025-03-29 04:27:18] Production.ERROR: pbx CDR StartTime 2025-03-29 01:27:05 - End Time 2025-03-29 04:27:05 [2025-03-29 04:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786389', 'tblTempUsageDetail_20' ) start [2025-03-29 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786389', 'tblTempUsageDetail_20' ) end [2025-03-29 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786389', 'tblTempVendorCDR_20' ) start [2025-03-29 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786389', 'tblTempVendorCDR_20' ) end [2025-03-29 04:27:18] Production.INFO: ProcessCDR(1,14786389,1,1,2) [2025-03-29 04:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786389', 'tblTempUsageDetail_20' ) start [2025-03-29 04:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786389', 'tblTempUsageDetail_20' ) end [2025-03-29 04:27:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 04:27:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 04:27:22] Production.INFO: ==18927== Releasing lock... [2025-03-29 04:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 04:27:22] Production.INFO: 35 MB #Memory Used# [2025-03-29 04:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 01:28:06 [end_date_ymd] => 2025-03-29 04:28:06 [RateCDR] => 1 ) [2025-03-29 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-29 01:28:06' and `end` < '2025-03-29 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-29 04:28:18] Production.INFO: count ==872 [2025-03-29 04:28:19] Production.ERROR: pbx CDR StartTime 2025-03-29 01:28:06 - End Time 2025-03-29 04:28:06 [2025-03-29 04:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 04:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786394', 'tblTempUsageDetail_20' ) start [2025-03-29 04:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786394', 'tblTempUsageDetail_20' ) end [2025-03-29 04:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786394', 'tblTempVendorCDR_20' ) start [2025-03-29 04:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786394', 'tblTempVendorCDR_20' ) end [2025-03-29 04:28:19] Production.INFO: ProcessCDR(1,14786394,1,1,2) [2025-03-29 04:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786394', 'tblTempUsageDetail_20' ) start [2025-03-29 04:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786394', 'tblTempUsageDetail_20' ) end [2025-03-29 04:28:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 04:28:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 04:28:22] Production.INFO: ==19003== Releasing lock... [2025-03-29 04:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 04:28:22] Production.INFO: 35.5 MB #Memory Used# [2025-03-29 04:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 01:29:05 [end_date_ymd] => 2025-03-29 04:29:05 [RateCDR] => 1 ) [2025-03-29 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-29 01:29:05' and `end` < '2025-03-29 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-29 04:29:17] Production.INFO: count ==855 [2025-03-29 04:29:17] Production.ERROR: pbx CDR StartTime 2025-03-29 01:29:05 - End Time 2025-03-29 04:29:05 [2025-03-29 04:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786399', 'tblTempUsageDetail_20' ) start [2025-03-29 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786399', 'tblTempUsageDetail_20' ) end [2025-03-29 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786399', 'tblTempVendorCDR_20' ) start [2025-03-29 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786399', 'tblTempVendorCDR_20' ) end [2025-03-29 04:29:18] Production.INFO: ProcessCDR(1,14786399,1,1,2) [2025-03-29 04:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786399', 'tblTempUsageDetail_20' ) start [2025-03-29 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786399', 'tblTempUsageDetail_20' ) end [2025-03-29 04:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 04:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 04:29:21] Production.INFO: ==19073== Releasing lock... [2025-03-29 04:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 04:29:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-29 04:30:08] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 01:30:08 [end_date_ymd] => 2025-03-29 04:30:08 [RateCDR] => 1 ) [2025-03-29 04:30:08] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 01:30:08' and `end` < '2025-03-29 04:30:08' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 04:30:20] Production.INFO: count ==787 [2025-03-29 04:30:21] Production.ERROR: pbx CDR StartTime 2025-03-29 01:30:08 - End Time 2025-03-29 04:30:08 [2025-03-29 04:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 04:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786406', 'tblTempUsageDetail_20' ) start [2025-03-29 04:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786406', 'tblTempUsageDetail_20' ) end [2025-03-29 04:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786406', 'tblTempVendorCDR_20' ) start [2025-03-29 04:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786406', 'tblTempVendorCDR_20' ) end [2025-03-29 04:30:21] Production.INFO: ProcessCDR(1,14786406,1,1,2) [2025-03-29 04:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786406', 'tblTempUsageDetail_20' ) start [2025-03-29 04:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786406', 'tblTempUsageDetail_20' ) end [2025-03-29 04:30:26] Production.ERROR: pbx prc_insertCDR start [2025-03-29 04:30:26] Production.ERROR: pbx prc_insertCDR end [2025-03-29 04:30:26] Production.INFO: ==19156== Releasing lock... [2025-03-29 04:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 04:30:26] Production.INFO: 33.75 MB #Memory Used# [2025-03-29 04:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 01:31:05 [end_date_ymd] => 2025-03-29 04:31:05 [RateCDR] => 1 ) [2025-03-29 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-29 01:31:05' and `end` < '2025-03-29 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-29 04:31:18] Production.INFO: count ==753 [2025-03-29 04:31:18] Production.ERROR: pbx CDR StartTime 2025-03-29 01:31:05 - End Time 2025-03-29 04:31:05 [2025-03-29 04:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786411', 'tblTempUsageDetail_20' ) start [2025-03-29 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786411', 'tblTempUsageDetail_20' ) end [2025-03-29 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786411', 'tblTempVendorCDR_20' ) start [2025-03-29 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786411', 'tblTempVendorCDR_20' ) end [2025-03-29 04:31:18] Production.INFO: ProcessCDR(1,14786411,1,1,2) [2025-03-29 04:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786411', 'tblTempUsageDetail_20' ) start [2025-03-29 04:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786411', 'tblTempUsageDetail_20' ) end [2025-03-29 04:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 04:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 04:31:21] Production.INFO: ==19281== Releasing lock... [2025-03-29 04:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 04:31:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-29 04:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 01:32:06 [end_date_ymd] => 2025-03-29 04:32:06 [RateCDR] => 1 ) [2025-03-29 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-29 01:32:06' and `end` < '2025-03-29 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-29 04:32:18] Production.INFO: count ==749 [2025-03-29 04:32:19] Production.ERROR: pbx CDR StartTime 2025-03-29 01:32:06 - End Time 2025-03-29 04:32:06 [2025-03-29 04:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 04:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786416', 'tblTempUsageDetail_20' ) start [2025-03-29 04:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786416', 'tblTempUsageDetail_20' ) end [2025-03-29 04:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786416', 'tblTempVendorCDR_20' ) start [2025-03-29 04:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786416', 'tblTempVendorCDR_20' ) end [2025-03-29 04:32:19] Production.INFO: ProcessCDR(1,14786416,1,1,2) [2025-03-29 04:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786416', 'tblTempUsageDetail_20' ) start [2025-03-29 04:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786416', 'tblTempUsageDetail_20' ) end [2025-03-29 04:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 04:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 04:32:22] Production.INFO: ==19357== Releasing lock... [2025-03-29 04:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 04:32:22] Production.INFO: 34 MB #Memory Used# [2025-03-29 04:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 01:33:05 [end_date_ymd] => 2025-03-29 04:33:05 [RateCDR] => 1 ) [2025-03-29 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-29 01:33:05' and `end` < '2025-03-29 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-29 04:33:17] Production.INFO: count ==734 [2025-03-29 04:33:18] Production.ERROR: pbx CDR StartTime 2025-03-29 01:33:05 - End Time 2025-03-29 04:33:05 [2025-03-29 04:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786421', 'tblTempUsageDetail_20' ) start [2025-03-29 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786421', 'tblTempUsageDetail_20' ) end [2025-03-29 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786421', 'tblTempVendorCDR_20' ) start [2025-03-29 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786421', 'tblTempVendorCDR_20' ) end [2025-03-29 04:33:18] Production.INFO: ProcessCDR(1,14786421,1,1,2) [2025-03-29 04:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786421', 'tblTempUsageDetail_20' ) start [2025-03-29 04:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786421', 'tblTempUsageDetail_20' ) end [2025-03-29 04:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 04:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 04:33:21] Production.INFO: ==19475== Releasing lock... [2025-03-29 04:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 04:33:21] Production.INFO: 34 MB #Memory Used# [2025-03-29 04:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 01:34:05 [end_date_ymd] => 2025-03-29 04:34:05 [RateCDR] => 1 ) [2025-03-29 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-29 01:34:05' and `end` < '2025-03-29 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-29 04:34:18] Production.INFO: count ==712 [2025-03-29 04:34:18] Production.ERROR: pbx CDR StartTime 2025-03-29 01:34:05 - End Time 2025-03-29 04:34:05 [2025-03-29 04:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786426', 'tblTempUsageDetail_20' ) start [2025-03-29 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786426', 'tblTempUsageDetail_20' ) end [2025-03-29 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786426', 'tblTempVendorCDR_20' ) start [2025-03-29 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786426', 'tblTempVendorCDR_20' ) end [2025-03-29 04:34:18] Production.INFO: ProcessCDR(1,14786426,1,1,2) [2025-03-29 04:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786426', 'tblTempUsageDetail_20' ) start [2025-03-29 04:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786426', 'tblTempUsageDetail_20' ) end [2025-03-29 04:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 04:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 04:34:21] Production.INFO: ==19553== Releasing lock... [2025-03-29 04:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 04:34:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-29 04:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 01:35:04 [end_date_ymd] => 2025-03-29 04:35:04 [RateCDR] => 1 ) [2025-03-29 04: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-29 01:35:04' and `end` < '2025-03-29 04: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-29 04:35:17] Production.INFO: count ==678 [2025-03-29 04:35:17] Production.ERROR: pbx CDR StartTime 2025-03-29 01:35:04 - End Time 2025-03-29 04:35:04 [2025-03-29 04:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786431', 'tblTempUsageDetail_20' ) start [2025-03-29 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786431', 'tblTempUsageDetail_20' ) end [2025-03-29 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786431', 'tblTempVendorCDR_20' ) start [2025-03-29 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786431', 'tblTempVendorCDR_20' ) end [2025-03-29 04:35:17] Production.INFO: ProcessCDR(1,14786431,1,1,2) [2025-03-29 04:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786431', 'tblTempUsageDetail_20' ) start [2025-03-29 04:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786431', 'tblTempUsageDetail_20' ) end [2025-03-29 04:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 04:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 04:35:21] Production.INFO: ==19623== Releasing lock... [2025-03-29 04:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 04:35:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-29 04:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 01:36:05 [end_date_ymd] => 2025-03-29 04:36:05 [RateCDR] => 1 ) [2025-03-29 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-29 01:36:05' and `end` < '2025-03-29 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-29 04:36:18] Production.INFO: count ==654 [2025-03-29 04:36:18] Production.ERROR: pbx CDR StartTime 2025-03-29 01:36:05 - End Time 2025-03-29 04:36:05 [2025-03-29 04:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786436', 'tblTempUsageDetail_20' ) start [2025-03-29 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786436', 'tblTempUsageDetail_20' ) end [2025-03-29 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786436', 'tblTempVendorCDR_20' ) start [2025-03-29 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786436', 'tblTempVendorCDR_20' ) end [2025-03-29 04:36:18] Production.INFO: ProcessCDR(1,14786436,1,1,2) [2025-03-29 04:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786436', 'tblTempUsageDetail_20' ) start [2025-03-29 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786436', 'tblTempUsageDetail_20' ) end [2025-03-29 04:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 04:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 04:36:21] Production.INFO: ==19697== Releasing lock... [2025-03-29 04:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 04:36:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-29 04:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 01:37:05 [end_date_ymd] => 2025-03-29 04:37:05 [RateCDR] => 1 ) [2025-03-29 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-29 01:37:05' and `end` < '2025-03-29 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-29 04:37:17] Production.INFO: count ==636 [2025-03-29 04:37:18] Production.ERROR: pbx CDR StartTime 2025-03-29 01:37:05 - End Time 2025-03-29 04:37:05 [2025-03-29 04:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786441', 'tblTempUsageDetail_20' ) start [2025-03-29 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786441', 'tblTempUsageDetail_20' ) end [2025-03-29 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786441', 'tblTempVendorCDR_20' ) start [2025-03-29 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786441', 'tblTempVendorCDR_20' ) end [2025-03-29 04:37:18] Production.INFO: ProcessCDR(1,14786441,1,1,2) [2025-03-29 04:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786441', 'tblTempUsageDetail_20' ) start [2025-03-29 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786441', 'tblTempUsageDetail_20' ) end [2025-03-29 04:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 04:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 04:37:21] Production.INFO: ==19776== Releasing lock... [2025-03-29 04:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 04:37:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-29 04:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 01:38:05 [end_date_ymd] => 2025-03-29 04:38:05 [RateCDR] => 1 ) [2025-03-29 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-29 01:38:05' and `end` < '2025-03-29 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-29 04:38:17] Production.INFO: count ==622 [2025-03-29 04:38:17] Production.ERROR: pbx CDR StartTime 2025-03-29 01:38:05 - End Time 2025-03-29 04:38:05 [2025-03-29 04:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786446', 'tblTempUsageDetail_20' ) start [2025-03-29 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786446', 'tblTempUsageDetail_20' ) end [2025-03-29 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786446', 'tblTempVendorCDR_20' ) start [2025-03-29 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786446', 'tblTempVendorCDR_20' ) end [2025-03-29 04:38:18] Production.INFO: ProcessCDR(1,14786446,1,1,2) [2025-03-29 04:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786446', 'tblTempUsageDetail_20' ) start [2025-03-29 04:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786446', 'tblTempUsageDetail_20' ) end [2025-03-29 04:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 04:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 04:38:21] Production.INFO: ==19850== Releasing lock... [2025-03-29 04:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 04:38:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-29 04:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 01:39:05 [end_date_ymd] => 2025-03-29 04:39:05 [RateCDR] => 1 ) [2025-03-29 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-29 01:39:05' and `end` < '2025-03-29 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-29 04:39:17] Production.INFO: count ==620 [2025-03-29 04:39:17] Production.ERROR: pbx CDR StartTime 2025-03-29 01:39:05 - End Time 2025-03-29 04:39:05 [2025-03-29 04:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786451', 'tblTempUsageDetail_20' ) start [2025-03-29 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786451', 'tblTempUsageDetail_20' ) end [2025-03-29 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786451', 'tblTempVendorCDR_20' ) start [2025-03-29 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786451', 'tblTempVendorCDR_20' ) end [2025-03-29 04:39:17] Production.INFO: ProcessCDR(1,14786451,1,1,2) [2025-03-29 04:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786451', 'tblTempUsageDetail_20' ) start [2025-03-29 04:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786451', 'tblTempUsageDetail_20' ) end [2025-03-29 04:39:20] Production.ERROR: pbx prc_insertCDR start [2025-03-29 04:39:20] Production.ERROR: pbx prc_insertCDR end [2025-03-29 04:39:20] Production.INFO: ==19928== Releasing lock... [2025-03-29 04:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 04:39:20] Production.INFO: 33.5 MB #Memory Used# [2025-03-29 04:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 01:40:06 [end_date_ymd] => 2025-03-29 04:40:06 [RateCDR] => 1 ) [2025-03-29 04:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 01:40:06' and `end` < '2025-03-29 04:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 04:40:18] Production.INFO: count ==605 [2025-03-29 04:40:19] Production.ERROR: pbx CDR StartTime 2025-03-29 01:40:06 - End Time 2025-03-29 04:40:06 [2025-03-29 04:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786457', 'tblTempUsageDetail_20' ) start [2025-03-29 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786457', 'tblTempUsageDetail_20' ) end [2025-03-29 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786457', 'tblTempVendorCDR_20' ) start [2025-03-29 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786457', 'tblTempVendorCDR_20' ) end [2025-03-29 04:40:19] Production.INFO: ProcessCDR(1,14786457,1,1,2) [2025-03-29 04:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786457', 'tblTempUsageDetail_20' ) start [2025-03-29 04:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786457', 'tblTempUsageDetail_20' ) end [2025-03-29 04:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 04:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 04:40:22] Production.INFO: ==20005== Releasing lock... [2025-03-29 04:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 04:40:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-29 04:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 01:41:05 [end_date_ymd] => 2025-03-29 04:41:05 [RateCDR] => 1 ) [2025-03-29 04:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 01:41:05' and `end` < '2025-03-29 04:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 04:41:17] Production.INFO: count ==585 [2025-03-29 04:41:18] Production.ERROR: pbx CDR StartTime 2025-03-29 01:41:05 - End Time 2025-03-29 04:41:05 [2025-03-29 04:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786462', 'tblTempUsageDetail_20' ) start [2025-03-29 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786462', 'tblTempUsageDetail_20' ) end [2025-03-29 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786462', 'tblTempVendorCDR_20' ) start [2025-03-29 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786462', 'tblTempVendorCDR_20' ) end [2025-03-29 04:41:18] Production.INFO: ProcessCDR(1,14786462,1,1,2) [2025-03-29 04:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786462', 'tblTempUsageDetail_20' ) start [2025-03-29 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786462', 'tblTempUsageDetail_20' ) end [2025-03-29 04:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 04:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 04:41:21] Production.INFO: ==20083== Releasing lock... [2025-03-29 04:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 04:41:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-29 04:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 01:42:06 [end_date_ymd] => 2025-03-29 04:42:06 [RateCDR] => 1 ) [2025-03-29 04:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 01:42:06' and `end` < '2025-03-29 04:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 04:42:19] Production.INFO: count ==585 [2025-03-29 04:42:19] Production.ERROR: pbx CDR StartTime 2025-03-29 01:42:06 - End Time 2025-03-29 04:42:06 [2025-03-29 04:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 04:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786467', 'tblTempUsageDetail_20' ) start [2025-03-29 04:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786467', 'tblTempUsageDetail_20' ) end [2025-03-29 04:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786467', 'tblTempVendorCDR_20' ) start [2025-03-29 04:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786467', 'tblTempVendorCDR_20' ) end [2025-03-29 04:42:19] Production.INFO: ProcessCDR(1,14786467,1,1,2) [2025-03-29 04:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786467', 'tblTempUsageDetail_20' ) start [2025-03-29 04:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786467', 'tblTempUsageDetail_20' ) end [2025-03-29 04:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 04:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 04:42:22] Production.INFO: ==20154== Releasing lock... [2025-03-29 04:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 04:42:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-29 04:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 01:43:05 [end_date_ymd] => 2025-03-29 04:43:05 [RateCDR] => 1 ) [2025-03-29 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-29 01:43:05' and `end` < '2025-03-29 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-29 04:43:18] Production.INFO: count ==582 [2025-03-29 04:43:18] Production.ERROR: pbx CDR StartTime 2025-03-29 01:43:05 - End Time 2025-03-29 04:43:05 [2025-03-29 04:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786472', 'tblTempUsageDetail_20' ) start [2025-03-29 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786472', 'tblTempUsageDetail_20' ) end [2025-03-29 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786472', 'tblTempVendorCDR_20' ) start [2025-03-29 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786472', 'tblTempVendorCDR_20' ) end [2025-03-29 04:43:18] Production.INFO: ProcessCDR(1,14786472,1,1,2) [2025-03-29 04:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786472', 'tblTempUsageDetail_20' ) start [2025-03-29 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786472', 'tblTempUsageDetail_20' ) end [2025-03-29 04:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 04:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 04:43:21] Production.INFO: ==20232== Releasing lock... [2025-03-29 04:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 04:43:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-29 04:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 01:44:06 [end_date_ymd] => 2025-03-29 04:44:06 [RateCDR] => 1 ) [2025-03-29 04:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 01:44:06' and `end` < '2025-03-29 04:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 04:44:18] Production.INFO: count ==579 [2025-03-29 04:44:18] Production.ERROR: pbx CDR StartTime 2025-03-29 01:44:06 - End Time 2025-03-29 04:44:06 [2025-03-29 04:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786477', 'tblTempUsageDetail_20' ) start [2025-03-29 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786477', 'tblTempUsageDetail_20' ) end [2025-03-29 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786477', 'tblTempVendorCDR_20' ) start [2025-03-29 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786477', 'tblTempVendorCDR_20' ) end [2025-03-29 04:44:18] Production.INFO: ProcessCDR(1,14786477,1,1,2) [2025-03-29 04:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786477', 'tblTempUsageDetail_20' ) start [2025-03-29 04:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786477', 'tblTempUsageDetail_20' ) end [2025-03-29 04:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 04:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 04:44:22] Production.INFO: ==20312== Releasing lock... [2025-03-29 04:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 04:44:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-29 04:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 01:45:05 [end_date_ymd] => 2025-03-29 04:45:05 [RateCDR] => 1 ) [2025-03-29 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-29 01:45:05' and `end` < '2025-03-29 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-29 04:45:17] Production.INFO: count ==579 [2025-03-29 04:45:18] Production.ERROR: pbx CDR StartTime 2025-03-29 01:45:05 - End Time 2025-03-29 04:45:05 [2025-03-29 04:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786482', 'tblTempUsageDetail_20' ) start [2025-03-29 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786482', 'tblTempUsageDetail_20' ) end [2025-03-29 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786482', 'tblTempVendorCDR_20' ) start [2025-03-29 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786482', 'tblTempVendorCDR_20' ) end [2025-03-29 04:45:18] Production.INFO: ProcessCDR(1,14786482,1,1,2) [2025-03-29 04:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786482', 'tblTempUsageDetail_20' ) start [2025-03-29 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786482', 'tblTempUsageDetail_20' ) end [2025-03-29 04:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 04:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 04:45:21] Production.INFO: ==20386== Releasing lock... [2025-03-29 04:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 04:45:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-29 04:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 01:46:06 [end_date_ymd] => 2025-03-29 04:46:06 [RateCDR] => 1 ) [2025-03-29 04:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 01:46:06' and `end` < '2025-03-29 04:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 04:46:20] Production.INFO: count ==582 [2025-03-29 04:46:20] Production.ERROR: pbx CDR StartTime 2025-03-29 01:46:06 - End Time 2025-03-29 04:46:06 [2025-03-29 04:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 04:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786487', 'tblTempUsageDetail_20' ) start [2025-03-29 04:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786487', 'tblTempUsageDetail_20' ) end [2025-03-29 04:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786487', 'tblTempVendorCDR_20' ) start [2025-03-29 04:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786487', 'tblTempVendorCDR_20' ) end [2025-03-29 04:46:20] Production.INFO: ProcessCDR(1,14786487,1,1,2) [2025-03-29 04:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786487', 'tblTempUsageDetail_20' ) start [2025-03-29 04:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786487', 'tblTempUsageDetail_20' ) end [2025-03-29 04:46:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 04:46:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 04:46:23] Production.INFO: ==20463== Releasing lock... [2025-03-29 04:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 04:46:23] Production.INFO: 32.5 MB #Memory Used# [2025-03-29 04:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 01:47:05 [end_date_ymd] => 2025-03-29 04:47:05 [RateCDR] => 1 ) [2025-03-29 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-29 01:47:05' and `end` < '2025-03-29 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-29 04:47:19] Production.INFO: count ==580 [2025-03-29 04:47:19] Production.ERROR: pbx CDR StartTime 2025-03-29 01:47:05 - End Time 2025-03-29 04:47:05 [2025-03-29 04:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786492', 'tblTempUsageDetail_20' ) start [2025-03-29 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786492', 'tblTempUsageDetail_20' ) end [2025-03-29 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786492', 'tblTempVendorCDR_20' ) start [2025-03-29 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786492', 'tblTempVendorCDR_20' ) end [2025-03-29 04:47:19] Production.INFO: ProcessCDR(1,14786492,1,1,2) [2025-03-29 04:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786492', 'tblTempUsageDetail_20' ) start [2025-03-29 04:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786492', 'tblTempUsageDetail_20' ) end [2025-03-29 04:47:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 04:47:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 04:47:23] Production.INFO: ==20537== Releasing lock... [2025-03-29 04:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 04:47:23] Production.INFO: 33.25 MB #Memory Used# [2025-03-29 04:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 01:48:06 [end_date_ymd] => 2025-03-29 04:48:06 [RateCDR] => 1 ) [2025-03-29 04: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-29 01:48:06' and `end` < '2025-03-29 04: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-29 04:48:19] Production.INFO: count ==580 [2025-03-29 04:48:19] Production.ERROR: pbx CDR StartTime 2025-03-29 01:48:06 - End Time 2025-03-29 04:48:06 [2025-03-29 04:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786497', 'tblTempUsageDetail_20' ) start [2025-03-29 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786497', 'tblTempUsageDetail_20' ) end [2025-03-29 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786497', 'tblTempVendorCDR_20' ) start [2025-03-29 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786497', 'tblTempVendorCDR_20' ) end [2025-03-29 04:48:19] Production.INFO: ProcessCDR(1,14786497,1,1,2) [2025-03-29 04:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786497', 'tblTempUsageDetail_20' ) start [2025-03-29 04:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786497', 'tblTempUsageDetail_20' ) end [2025-03-29 04:48:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 04:48:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 04:48:23] Production.INFO: ==20655== Releasing lock... [2025-03-29 04:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 04:48:23] Production.INFO: 33.25 MB #Memory Used# [2025-03-29 04:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 01:49:05 [end_date_ymd] => 2025-03-29 04:49:05 [RateCDR] => 1 ) [2025-03-29 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-29 01:49:05' and `end` < '2025-03-29 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-29 04:49:18] Production.INFO: count ==576 [2025-03-29 04:49:19] Production.ERROR: pbx CDR StartTime 2025-03-29 01:49:05 - End Time 2025-03-29 04:49:05 [2025-03-29 04:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786502', 'tblTempUsageDetail_20' ) start [2025-03-29 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786502', 'tblTempUsageDetail_20' ) end [2025-03-29 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786502', 'tblTempVendorCDR_20' ) start [2025-03-29 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786502', 'tblTempVendorCDR_20' ) end [2025-03-29 04:49:19] Production.INFO: ProcessCDR(1,14786502,1,1,2) [2025-03-29 04:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786502', 'tblTempUsageDetail_20' ) start [2025-03-29 04:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786502', 'tblTempUsageDetail_20' ) end [2025-03-29 04:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 04:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 04:49:22] Production.INFO: ==20732== Releasing lock... [2025-03-29 04:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 04:49:22] Production.INFO: 33 MB #Memory Used# [2025-03-29 04:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 01:50:06 [end_date_ymd] => 2025-03-29 04:50:06 [RateCDR] => 1 ) [2025-03-29 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-29 01:50:06' and `end` < '2025-03-29 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-29 04:50:19] Production.INFO: count ==567 [2025-03-29 04:50:19] Production.ERROR: pbx CDR StartTime 2025-03-29 01:50:06 - End Time 2025-03-29 04:50:06 [2025-03-29 04:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786508', 'tblTempUsageDetail_20' ) start [2025-03-29 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786508', 'tblTempUsageDetail_20' ) end [2025-03-29 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786508', 'tblTempVendorCDR_20' ) start [2025-03-29 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786508', 'tblTempVendorCDR_20' ) end [2025-03-29 04:50:19] Production.INFO: ProcessCDR(1,14786508,1,1,2) [2025-03-29 04:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786508', 'tblTempUsageDetail_20' ) start [2025-03-29 04:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786508', 'tblTempUsageDetail_20' ) end [2025-03-29 04:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 04:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 04:50:22] Production.INFO: ==20810== Releasing lock... [2025-03-29 04:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 04:50:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-29 04:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 01:51:05 [end_date_ymd] => 2025-03-29 04:51:05 [RateCDR] => 1 ) [2025-03-29 04:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 01:51:05' and `end` < '2025-03-29 04:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 04:51:18] Production.INFO: count ==566 [2025-03-29 04:51:19] Production.ERROR: pbx CDR StartTime 2025-03-29 01:51:05 - End Time 2025-03-29 04:51:05 [2025-03-29 04:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786513', 'tblTempUsageDetail_20' ) start [2025-03-29 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786513', 'tblTempUsageDetail_20' ) end [2025-03-29 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786513', 'tblTempVendorCDR_20' ) start [2025-03-29 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786513', 'tblTempVendorCDR_20' ) end [2025-03-29 04:51:19] Production.INFO: ProcessCDR(1,14786513,1,1,2) [2025-03-29 04:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786513', 'tblTempUsageDetail_20' ) start [2025-03-29 04:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786513', 'tblTempUsageDetail_20' ) end [2025-03-29 04:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 04:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 04:51:22] Production.INFO: ==20886== Releasing lock... [2025-03-29 04:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 04:51:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-29 04:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 01:52:06 [end_date_ymd] => 2025-03-29 04:52:06 [RateCDR] => 1 ) [2025-03-29 04:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 01:52:06' and `end` < '2025-03-29 04:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 04:52:18] Production.INFO: count ==566 [2025-03-29 04:52:18] Production.ERROR: pbx CDR StartTime 2025-03-29 01:52:06 - End Time 2025-03-29 04:52:06 [2025-03-29 04:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786518', 'tblTempUsageDetail_20' ) start [2025-03-29 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786518', 'tblTempUsageDetail_20' ) end [2025-03-29 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786518', 'tblTempVendorCDR_20' ) start [2025-03-29 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786518', 'tblTempVendorCDR_20' ) end [2025-03-29 04:52:18] Production.INFO: ProcessCDR(1,14786518,1,1,2) [2025-03-29 04:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786518', 'tblTempUsageDetail_20' ) start [2025-03-29 04:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786518', 'tblTempUsageDetail_20' ) end [2025-03-29 04:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 04:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 04:52:22] Production.INFO: ==20962== Releasing lock... [2025-03-29 04:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 04:52:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-29 04:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 01:53:04 [end_date_ymd] => 2025-03-29 04:53:04 [RateCDR] => 1 ) [2025-03-29 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-29 01:53:04' and `end` < '2025-03-29 04:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 04:53:17] Production.INFO: count ==562 [2025-03-29 04:53:17] Production.ERROR: pbx CDR StartTime 2025-03-29 01:53:04 - End Time 2025-03-29 04:53:04 [2025-03-29 04:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 04:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786523', 'tblTempUsageDetail_20' ) start [2025-03-29 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786523', 'tblTempUsageDetail_20' ) end [2025-03-29 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786523', 'tblTempVendorCDR_20' ) start [2025-03-29 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786523', 'tblTempVendorCDR_20' ) end [2025-03-29 04:53:18] Production.INFO: ProcessCDR(1,14786523,1,1,2) [2025-03-29 04:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786523', 'tblTempUsageDetail_20' ) start [2025-03-29 04:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786523', 'tblTempUsageDetail_20' ) end [2025-03-29 04:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 04:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 04:53:21] Production.INFO: ==21059== Releasing lock... [2025-03-29 04:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 04:53:21] Production.INFO: 33 MB #Memory Used# [2025-03-29 04:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 01:54:05 [end_date_ymd] => 2025-03-29 04:54:05 [RateCDR] => 1 ) [2025-03-29 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-29 01:54:05' and `end` < '2025-03-29 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-29 04:54:18] Production.INFO: count ==558 [2025-03-29 04:54:18] Production.ERROR: pbx CDR StartTime 2025-03-29 01:54:05 - End Time 2025-03-29 04:54:05 [2025-03-29 04:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786528', 'tblTempUsageDetail_20' ) start [2025-03-29 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786528', 'tblTempUsageDetail_20' ) end [2025-03-29 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786528', 'tblTempVendorCDR_20' ) start [2025-03-29 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786528', 'tblTempVendorCDR_20' ) end [2025-03-29 04:54:18] Production.INFO: ProcessCDR(1,14786528,1,1,2) [2025-03-29 04:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786528', 'tblTempUsageDetail_20' ) start [2025-03-29 04:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786528', 'tblTempUsageDetail_20' ) end [2025-03-29 04:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 04:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 04:54:22] Production.INFO: ==21129== Releasing lock... [2025-03-29 04:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 04:54:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-29 04:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 01:55:05 [end_date_ymd] => 2025-03-29 04:55:05 [RateCDR] => 1 ) [2025-03-29 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-29 01:55:05' and `end` < '2025-03-29 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-29 04:55:18] Production.INFO: count ==558 [2025-03-29 04:55:18] Production.ERROR: pbx CDR StartTime 2025-03-29 01:55:05 - End Time 2025-03-29 04:55:05 [2025-03-29 04:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786533', 'tblTempUsageDetail_20' ) start [2025-03-29 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786533', 'tblTempUsageDetail_20' ) end [2025-03-29 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786533', 'tblTempVendorCDR_20' ) start [2025-03-29 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786533', 'tblTempVendorCDR_20' ) end [2025-03-29 04:55:18] Production.INFO: ProcessCDR(1,14786533,1,1,2) [2025-03-29 04:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786533', 'tblTempUsageDetail_20' ) start [2025-03-29 04:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786533', 'tblTempUsageDetail_20' ) end [2025-03-29 04:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 04:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 04:55:21] Production.INFO: ==21207== Releasing lock... [2025-03-29 04:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 04:55:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-29 04:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 01:56:05 [end_date_ymd] => 2025-03-29 04:56:05 [RateCDR] => 1 ) [2025-03-29 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-29 01:56:05' and `end` < '2025-03-29 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-29 04:56:20] Production.INFO: count ==561 [2025-03-29 04:56:20] Production.ERROR: pbx CDR StartTime 2025-03-29 01:56:05 - End Time 2025-03-29 04:56:05 [2025-03-29 04:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 04:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786538', 'tblTempUsageDetail_20' ) start [2025-03-29 04:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786538', 'tblTempUsageDetail_20' ) end [2025-03-29 04:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786538', 'tblTempVendorCDR_20' ) start [2025-03-29 04:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786538', 'tblTempVendorCDR_20' ) end [2025-03-29 04:56:20] Production.INFO: ProcessCDR(1,14786538,1,1,2) [2025-03-29 04:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786538', 'tblTempUsageDetail_20' ) start [2025-03-29 04:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786538', 'tblTempUsageDetail_20' ) end [2025-03-29 04:56:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 04:56:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 04:56:23] Production.INFO: ==21285== Releasing lock... [2025-03-29 04:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 04:56:23] Production.INFO: 32.75 MB #Memory Used# [2025-03-29 04:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 01:57:05 [end_date_ymd] => 2025-03-29 04:57:05 [RateCDR] => 1 ) [2025-03-29 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-29 01:57:05' and `end` < '2025-03-29 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-29 04:57:19] Production.INFO: count ==559 [2025-03-29 04:57:19] Production.ERROR: pbx CDR StartTime 2025-03-29 01:57:05 - End Time 2025-03-29 04:57:05 [2025-03-29 04:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 04:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786543', 'tblTempUsageDetail_20' ) start [2025-03-29 04:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786543', 'tblTempUsageDetail_20' ) end [2025-03-29 04:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786543', 'tblTempVendorCDR_20' ) start [2025-03-29 04:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786543', 'tblTempVendorCDR_20' ) end [2025-03-29 04:57:19] Production.INFO: ProcessCDR(1,14786543,1,1,2) [2025-03-29 04:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786543', 'tblTempUsageDetail_20' ) start [2025-03-29 04:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786543', 'tblTempUsageDetail_20' ) end [2025-03-29 04:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 04:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 04:57:22] Production.INFO: ==21359== Releasing lock... [2025-03-29 04:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 04:57:22] Production.INFO: 33 MB #Memory Used# [2025-03-29 04:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 01:58:06 [end_date_ymd] => 2025-03-29 04:58:06 [RateCDR] => 1 ) [2025-03-29 04: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-29 01:58:06' and `end` < '2025-03-29 04: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-29 04:58:20] Production.INFO: count ==547 [2025-03-29 04:58:20] Production.ERROR: pbx CDR StartTime 2025-03-29 01:58:06 - End Time 2025-03-29 04:58:06 [2025-03-29 04:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 04:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786548', 'tblTempUsageDetail_20' ) start [2025-03-29 04:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786548', 'tblTempUsageDetail_20' ) end [2025-03-29 04:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786548', 'tblTempVendorCDR_20' ) start [2025-03-29 04:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786548', 'tblTempVendorCDR_20' ) end [2025-03-29 04:58:20] Production.INFO: ProcessCDR(1,14786548,1,1,2) [2025-03-29 04:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786548', 'tblTempUsageDetail_20' ) start [2025-03-29 04:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786548', 'tblTempUsageDetail_20' ) end [2025-03-29 04:58:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 04:58:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 04:58:24] Production.INFO: ==21435== Releasing lock... [2025-03-29 04:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 04:58:24] Production.INFO: 32.75 MB #Memory Used# [2025-03-29 04:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 01:59:05 [end_date_ymd] => 2025-03-29 04:59:05 [RateCDR] => 1 ) [2025-03-29 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-29 01:59:05' and `end` < '2025-03-29 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-29 04:59:18] Production.INFO: count ==550 [2025-03-29 04:59:18] Production.ERROR: pbx CDR StartTime 2025-03-29 01:59:05 - End Time 2025-03-29 04:59:05 [2025-03-29 04:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786553', 'tblTempUsageDetail_20' ) start [2025-03-29 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786553', 'tblTempUsageDetail_20' ) end [2025-03-29 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786553', 'tblTempVendorCDR_20' ) start [2025-03-29 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786553', 'tblTempVendorCDR_20' ) end [2025-03-29 04:59:18] Production.INFO: ProcessCDR(1,14786553,1,1,2) [2025-03-29 04:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 04:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 04:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786553', 'tblTempUsageDetail_20' ) start [2025-03-29 04:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786553', 'tblTempUsageDetail_20' ) end [2025-03-29 04:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 04:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 04:59:21] Production.INFO: ==21509== Releasing lock... [2025-03-29 04:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 04:59:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-29 05:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 02:00:06 [end_date_ymd] => 2025-03-29 05:00:06 [RateCDR] => 1 ) [2025-03-29 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-29 02:00:06' and `end` < '2025-03-29 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-29 05:00:19] Production.INFO: count ==536 [2025-03-29 05:00:19] Production.ERROR: pbx CDR StartTime 2025-03-29 02:00:06 - End Time 2025-03-29 05:00:06 [2025-03-29 05:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786559', 'tblTempUsageDetail_20' ) start [2025-03-29 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786559', 'tblTempUsageDetail_20' ) end [2025-03-29 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786559', 'tblTempVendorCDR_20' ) start [2025-03-29 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786559', 'tblTempVendorCDR_20' ) end [2025-03-29 05:00:19] Production.INFO: ProcessCDR(1,14786559,1,1,2) [2025-03-29 05:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786559', 'tblTempUsageDetail_20' ) start [2025-03-29 05:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786559', 'tblTempUsageDetail_20' ) end [2025-03-29 05:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 05:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 05:00:23] Production.INFO: ==21585== Releasing lock... [2025-03-29 05:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 05:00:23] Production.INFO: 32.5 MB #Memory Used# [2025-03-29 05:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 02:01:05 [end_date_ymd] => 2025-03-29 05:01:05 [RateCDR] => 1 ) [2025-03-29 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-29 02:01:05' and `end` < '2025-03-29 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-29 05:01:19] Production.INFO: count ==523 [2025-03-29 05:01:19] Production.ERROR: pbx CDR StartTime 2025-03-29 02:01:05 - End Time 2025-03-29 05:01:05 [2025-03-29 05:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786564', 'tblTempUsageDetail_20' ) start [2025-03-29 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786564', 'tblTempUsageDetail_20' ) end [2025-03-29 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786564', 'tblTempVendorCDR_20' ) start [2025-03-29 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786564', 'tblTempVendorCDR_20' ) end [2025-03-29 05:01:19] Production.INFO: ProcessCDR(1,14786564,1,1,2) [2025-03-29 05:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786564', 'tblTempUsageDetail_20' ) start [2025-03-29 05:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786564', 'tblTempUsageDetail_20' ) end [2025-03-29 05:01:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 05:01:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 05:01:23] Production.INFO: ==21680== Releasing lock... [2025-03-29 05:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 05:01:23] Production.INFO: 32.75 MB #Memory Used# [2025-03-29 05:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 02:02:06 [end_date_ymd] => 2025-03-29 05:02:06 [RateCDR] => 1 ) [2025-03-29 05:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 02:02:06' and `end` < '2025-03-29 05:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 05:02:20] Production.INFO: count ==501 [2025-03-29 05:02:21] Production.ERROR: pbx CDR StartTime 2025-03-29 02:02:06 - End Time 2025-03-29 05:02:06 [2025-03-29 05:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 05:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786569', 'tblTempUsageDetail_20' ) start [2025-03-29 05:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786569', 'tblTempUsageDetail_20' ) end [2025-03-29 05:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786569', 'tblTempVendorCDR_20' ) start [2025-03-29 05:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786569', 'tblTempVendorCDR_20' ) end [2025-03-29 05:02:21] Production.INFO: ProcessCDR(1,14786569,1,1,2) [2025-03-29 05:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786569', 'tblTempUsageDetail_20' ) start [2025-03-29 05:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786569', 'tblTempUsageDetail_20' ) end [2025-03-29 05:02:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 05:02:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 05:02:24] Production.INFO: ==21757== Releasing lock... [2025-03-29 05:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 05:02:24] Production.INFO: 32 MB #Memory Used# [2025-03-29 05:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 02:03:05 [end_date_ymd] => 2025-03-29 05:03:05 [RateCDR] => 1 ) [2025-03-29 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-29 02:03:05' and `end` < '2025-03-29 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-29 05:03:18] Production.INFO: count ==499 [2025-03-29 05:03:18] Production.ERROR: pbx CDR StartTime 2025-03-29 02:03:05 - End Time 2025-03-29 05:03:05 [2025-03-29 05:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786574', 'tblTempUsageDetail_20' ) start [2025-03-29 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786574', 'tblTempUsageDetail_20' ) end [2025-03-29 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786574', 'tblTempVendorCDR_20' ) start [2025-03-29 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786574', 'tblTempVendorCDR_20' ) end [2025-03-29 05:03:18] Production.INFO: ProcessCDR(1,14786574,1,1,2) [2025-03-29 05:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786574', 'tblTempUsageDetail_20' ) start [2025-03-29 05:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786574', 'tblTempUsageDetail_20' ) end [2025-03-29 05:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 05:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 05:03:22] Production.INFO: ==21829== Releasing lock... [2025-03-29 05:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 05:03:22] Production.INFO: 32 MB #Memory Used# [2025-03-29 05:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 02:04:06 [end_date_ymd] => 2025-03-29 05:04:06 [RateCDR] => 1 ) [2025-03-29 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-29 02:04:06' and `end` < '2025-03-29 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-29 05:04:18] Production.INFO: count ==496 [2025-03-29 05:04:18] Production.ERROR: pbx CDR StartTime 2025-03-29 02:04:06 - End Time 2025-03-29 05:04:06 [2025-03-29 05:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786579', 'tblTempUsageDetail_20' ) start [2025-03-29 05:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786579', 'tblTempUsageDetail_20' ) end [2025-03-29 05:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786579', 'tblTempVendorCDR_20' ) start [2025-03-29 05:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786579', 'tblTempVendorCDR_20' ) end [2025-03-29 05:04:19] Production.INFO: ProcessCDR(1,14786579,1,1,2) [2025-03-29 05:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786579', 'tblTempUsageDetail_20' ) start [2025-03-29 05:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786579', 'tblTempUsageDetail_20' ) end [2025-03-29 05:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 05:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 05:04:22] Production.INFO: ==21945== Releasing lock... [2025-03-29 05:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 05:04:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-29 05:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 02:05:05 [end_date_ymd] => 2025-03-29 05:05:05 [RateCDR] => 1 ) [2025-03-29 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-29 02:05:05' and `end` < '2025-03-29 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-29 05:05:17] Production.INFO: count ==501 [2025-03-29 05:05:18] Production.ERROR: pbx CDR StartTime 2025-03-29 02:05:05 - End Time 2025-03-29 05:05:05 [2025-03-29 05:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786584', 'tblTempUsageDetail_20' ) start [2025-03-29 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786584', 'tblTempUsageDetail_20' ) end [2025-03-29 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786584', 'tblTempVendorCDR_20' ) start [2025-03-29 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786584', 'tblTempVendorCDR_20' ) end [2025-03-29 05:05:18] Production.INFO: ProcessCDR(1,14786584,1,1,2) [2025-03-29 05:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786584', 'tblTempUsageDetail_20' ) start [2025-03-29 05:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786584', 'tblTempUsageDetail_20' ) end [2025-03-29 05:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 05:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 05:05:21] Production.INFO: ==22019== Releasing lock... [2025-03-29 05:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 05:05:21] Production.INFO: 32 MB #Memory Used# [2025-03-29 05:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 02:06:05 [end_date_ymd] => 2025-03-29 05:06:05 [RateCDR] => 1 ) [2025-03-29 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-29 02:06:05' and `end` < '2025-03-29 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-29 05:06:18] Production.INFO: count ==500 [2025-03-29 05:06:18] Production.ERROR: pbx CDR StartTime 2025-03-29 02:06:05 - End Time 2025-03-29 05:06:05 [2025-03-29 05:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786589', 'tblTempUsageDetail_20' ) start [2025-03-29 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786589', 'tblTempUsageDetail_20' ) end [2025-03-29 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786589', 'tblTempVendorCDR_20' ) start [2025-03-29 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786589', 'tblTempVendorCDR_20' ) end [2025-03-29 05:06:18] Production.INFO: ProcessCDR(1,14786589,1,1,2) [2025-03-29 05:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786589', 'tblTempUsageDetail_20' ) start [2025-03-29 05:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786589', 'tblTempUsageDetail_20' ) end [2025-03-29 05:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 05:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 05:06:22] Production.INFO: ==22095== Releasing lock... [2025-03-29 05:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 05:06:22] Production.INFO: 32 MB #Memory Used# [2025-03-29 05:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 02:07:05 [end_date_ymd] => 2025-03-29 05:07:05 [RateCDR] => 1 ) [2025-03-29 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-29 02:07:05' and `end` < '2025-03-29 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-29 05:07:18] Production.INFO: count ==499 [2025-03-29 05:07:18] Production.ERROR: pbx CDR StartTime 2025-03-29 02:07:05 - End Time 2025-03-29 05:07:05 [2025-03-29 05:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786594', 'tblTempUsageDetail_20' ) start [2025-03-29 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786594', 'tblTempUsageDetail_20' ) end [2025-03-29 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786594', 'tblTempVendorCDR_20' ) start [2025-03-29 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786594', 'tblTempVendorCDR_20' ) end [2025-03-29 05:07:18] Production.INFO: ProcessCDR(1,14786594,1,1,2) [2025-03-29 05:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786594', 'tblTempUsageDetail_20' ) start [2025-03-29 05:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786594', 'tblTempUsageDetail_20' ) end [2025-03-29 05:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 05:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 05:07:21] Production.INFO: ==22169== Releasing lock... [2025-03-29 05:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 05:07:21] Production.INFO: 32 MB #Memory Used# [2025-03-29 05:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 02:08:05 [end_date_ymd] => 2025-03-29 05:08:05 [RateCDR] => 1 ) [2025-03-29 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-29 02:08:05' and `end` < '2025-03-29 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-29 05:08:17] Production.INFO: count ==501 [2025-03-29 05:08:18] Production.ERROR: pbx CDR StartTime 2025-03-29 02:08:05 - End Time 2025-03-29 05:08:05 [2025-03-29 05:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786599', 'tblTempUsageDetail_20' ) start [2025-03-29 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786599', 'tblTempUsageDetail_20' ) end [2025-03-29 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786599', 'tblTempVendorCDR_20' ) start [2025-03-29 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786599', 'tblTempVendorCDR_20' ) end [2025-03-29 05:08:18] Production.INFO: ProcessCDR(1,14786599,1,1,2) [2025-03-29 05:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786599', 'tblTempUsageDetail_20' ) start [2025-03-29 05:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786599', 'tblTempUsageDetail_20' ) end [2025-03-29 05:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 05:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 05:08:21] Production.INFO: ==22245== Releasing lock... [2025-03-29 05:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 05:08:21] Production.INFO: 32 MB #Memory Used# [2025-03-29 05:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 02:09:04 [end_date_ymd] => 2025-03-29 05:09:04 [RateCDR] => 1 ) [2025-03-29 05:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 02:09:04' and `end` < '2025-03-29 05:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 05:09:17] Production.INFO: count ==496 [2025-03-29 05:09:17] Production.ERROR: pbx CDR StartTime 2025-03-29 02:09:04 - End Time 2025-03-29 05:09:04 [2025-03-29 05:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786604', 'tblTempUsageDetail_20' ) start [2025-03-29 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786604', 'tblTempUsageDetail_20' ) end [2025-03-29 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786604', 'tblTempVendorCDR_20' ) start [2025-03-29 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786604', 'tblTempVendorCDR_20' ) end [2025-03-29 05:09:17] Production.INFO: ProcessCDR(1,14786604,1,1,2) [2025-03-29 05:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786604', 'tblTempUsageDetail_20' ) start [2025-03-29 05:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786604', 'tblTempUsageDetail_20' ) end [2025-03-29 05:09:20] Production.ERROR: pbx prc_insertCDR start [2025-03-29 05:09:20] Production.ERROR: pbx prc_insertCDR end [2025-03-29 05:09:20] Production.INFO: ==22316== Releasing lock... [2025-03-29 05:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 05:09:20] Production.INFO: 32 MB #Memory Used# [2025-03-29 05:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 02:10:06 [end_date_ymd] => 2025-03-29 05:10:06 [RateCDR] => 1 ) [2025-03-29 05:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 02:10:06' and `end` < '2025-03-29 05:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 05:10:18] Production.INFO: count ==492 [2025-03-29 05:10:18] Production.ERROR: pbx CDR StartTime 2025-03-29 02:10:06 - End Time 2025-03-29 05:10:06 [2025-03-29 05:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786610', 'tblTempUsageDetail_20' ) start [2025-03-29 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786610', 'tblTempUsageDetail_20' ) end [2025-03-29 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786610', 'tblTempVendorCDR_20' ) start [2025-03-29 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786610', 'tblTempVendorCDR_20' ) end [2025-03-29 05:10:18] Production.INFO: ProcessCDR(1,14786610,1,1,2) [2025-03-29 05:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786610', 'tblTempUsageDetail_20' ) start [2025-03-29 05:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786610', 'tblTempUsageDetail_20' ) end [2025-03-29 05:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 05:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 05:10:22] Production.INFO: ==22391== Releasing lock... [2025-03-29 05:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 05:10:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-29 05:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 02:11:05 [end_date_ymd] => 2025-03-29 05:11:05 [RateCDR] => 1 ) [2025-03-29 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-29 02:11:05' and `end` < '2025-03-29 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-29 05:11:18] Production.INFO: count ==482 [2025-03-29 05:11:18] Production.ERROR: pbx CDR StartTime 2025-03-29 02:11:05 - End Time 2025-03-29 05:11:05 [2025-03-29 05:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786615', 'tblTempUsageDetail_20' ) start [2025-03-29 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786615', 'tblTempUsageDetail_20' ) end [2025-03-29 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786615', 'tblTempVendorCDR_20' ) start [2025-03-29 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786615', 'tblTempVendorCDR_20' ) end [2025-03-29 05:11:18] Production.INFO: ProcessCDR(1,14786615,1,1,2) [2025-03-29 05:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786615', 'tblTempUsageDetail_20' ) start [2025-03-29 05:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786615', 'tblTempUsageDetail_20' ) end [2025-03-29 05:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 05:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 05:11:21] Production.INFO: ==22467== Releasing lock... [2025-03-29 05:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 05:11:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-29 05:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 02:12:05 [end_date_ymd] => 2025-03-29 05:12:05 [RateCDR] => 1 ) [2025-03-29 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-29 02:12:05' and `end` < '2025-03-29 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-29 05:12:18] Production.INFO: count ==468 [2025-03-29 05:12:18] Production.ERROR: pbx CDR StartTime 2025-03-29 02:12:05 - End Time 2025-03-29 05:12:05 [2025-03-29 05:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786620', 'tblTempUsageDetail_20' ) start [2025-03-29 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786620', 'tblTempUsageDetail_20' ) end [2025-03-29 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786620', 'tblTempVendorCDR_20' ) start [2025-03-29 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786620', 'tblTempVendorCDR_20' ) end [2025-03-29 05:12:18] Production.INFO: ProcessCDR(1,14786620,1,1,2) [2025-03-29 05:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786620', 'tblTempUsageDetail_20' ) start [2025-03-29 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786620', 'tblTempUsageDetail_20' ) end [2025-03-29 05:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 05:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 05:12:21] Production.INFO: ==22545== Releasing lock... [2025-03-29 05:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 05:12:21] Production.INFO: 32 MB #Memory Used# [2025-03-29 05:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 02:13:05 [end_date_ymd] => 2025-03-29 05:13:05 [RateCDR] => 1 ) [2025-03-29 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-29 02:13:05' and `end` < '2025-03-29 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-29 05:13:17] Production.INFO: count ==466 [2025-03-29 05:13:17] Production.ERROR: pbx CDR StartTime 2025-03-29 02:13:05 - End Time 2025-03-29 05:13:05 [2025-03-29 05:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786625', 'tblTempUsageDetail_20' ) start [2025-03-29 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786625', 'tblTempUsageDetail_20' ) end [2025-03-29 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786625', 'tblTempVendorCDR_20' ) start [2025-03-29 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786625', 'tblTempVendorCDR_20' ) end [2025-03-29 05:13:17] Production.INFO: ProcessCDR(1,14786625,1,1,2) [2025-03-29 05:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786625', 'tblTempUsageDetail_20' ) start [2025-03-29 05:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786625', 'tblTempUsageDetail_20' ) end [2025-03-29 05:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 05:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 05:13:21] Production.INFO: ==22616== Releasing lock... [2025-03-29 05:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 05:13:21] Production.INFO: 32 MB #Memory Used# [2025-03-29 05:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 02:14:05 [end_date_ymd] => 2025-03-29 05:14:05 [RateCDR] => 1 ) [2025-03-29 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-29 02:14:05' and `end` < '2025-03-29 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-29 05:14:17] Production.INFO: count ==466 [2025-03-29 05:14:17] Production.ERROR: pbx CDR StartTime 2025-03-29 02:14:05 - End Time 2025-03-29 05:14:05 [2025-03-29 05:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786630', 'tblTempUsageDetail_20' ) start [2025-03-29 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786630', 'tblTempUsageDetail_20' ) end [2025-03-29 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786630', 'tblTempVendorCDR_20' ) start [2025-03-29 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786630', 'tblTempVendorCDR_20' ) end [2025-03-29 05:14:17] Production.INFO: ProcessCDR(1,14786630,1,1,2) [2025-03-29 05:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786630', 'tblTempUsageDetail_20' ) start [2025-03-29 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786630', 'tblTempUsageDetail_20' ) end [2025-03-29 05:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 05:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 05:14:21] Production.INFO: ==22691== Releasing lock... [2025-03-29 05:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 05:14:21] Production.INFO: 32 MB #Memory Used# [2025-03-29 05:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 02:15:05 [end_date_ymd] => 2025-03-29 05:15:05 [RateCDR] => 1 ) [2025-03-29 05:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 02:15:05' and `end` < '2025-03-29 05:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 05:15:18] Production.INFO: count ==466 [2025-03-29 05:15:18] Production.ERROR: pbx CDR StartTime 2025-03-29 02:15:05 - End Time 2025-03-29 05:15:05 [2025-03-29 05:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786635', 'tblTempUsageDetail_20' ) start [2025-03-29 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786635', 'tblTempUsageDetail_20' ) end [2025-03-29 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786635', 'tblTempVendorCDR_20' ) start [2025-03-29 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786635', 'tblTempVendorCDR_20' ) end [2025-03-29 05:15:18] Production.INFO: ProcessCDR(1,14786635,1,1,2) [2025-03-29 05:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786635', 'tblTempUsageDetail_20' ) start [2025-03-29 05:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786635', 'tblTempUsageDetail_20' ) end [2025-03-29 05:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 05:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 05:15:21] Production.INFO: ==22772== Releasing lock... [2025-03-29 05:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 05:15:21] Production.INFO: 32 MB #Memory Used# [2025-03-29 05:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 02:16:05 [end_date_ymd] => 2025-03-29 05:16:05 [RateCDR] => 1 ) [2025-03-29 05:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 02:16:05' and `end` < '2025-03-29 05:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 05:16:18] Production.INFO: count ==466 [2025-03-29 05:16:18] Production.ERROR: pbx CDR StartTime 2025-03-29 02:16:05 - End Time 2025-03-29 05:16:05 [2025-03-29 05:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786640', 'tblTempUsageDetail_20' ) start [2025-03-29 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786640', 'tblTempUsageDetail_20' ) end [2025-03-29 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786640', 'tblTempVendorCDR_20' ) start [2025-03-29 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786640', 'tblTempVendorCDR_20' ) end [2025-03-29 05:16:18] Production.INFO: ProcessCDR(1,14786640,1,1,2) [2025-03-29 05:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786640', 'tblTempUsageDetail_20' ) start [2025-03-29 05:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786640', 'tblTempUsageDetail_20' ) end [2025-03-29 05:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 05:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 05:16:21] Production.INFO: ==22848== Releasing lock... [2025-03-29 05:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 05:16:21] Production.INFO: 32 MB #Memory Used# [2025-03-29 05:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 02:17:06 [end_date_ymd] => 2025-03-29 05:17:06 [RateCDR] => 1 ) [2025-03-29 05: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-29 02:17:06' and `end` < '2025-03-29 05: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-29 05:17:18] Production.INFO: count ==466 [2025-03-29 05:17:18] Production.ERROR: pbx CDR StartTime 2025-03-29 02:17:06 - End Time 2025-03-29 05:17:06 [2025-03-29 05:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786645', 'tblTempUsageDetail_20' ) start [2025-03-29 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786645', 'tblTempUsageDetail_20' ) end [2025-03-29 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786645', 'tblTempVendorCDR_20' ) start [2025-03-29 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786645', 'tblTempVendorCDR_20' ) end [2025-03-29 05:17:18] Production.INFO: ProcessCDR(1,14786645,1,1,2) [2025-03-29 05:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786645', 'tblTempUsageDetail_20' ) start [2025-03-29 05:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786645', 'tblTempUsageDetail_20' ) end [2025-03-29 05:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 05:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 05:17:21] Production.INFO: ==22925== Releasing lock... [2025-03-29 05:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 05:17:21] Production.INFO: 32 MB #Memory Used# [2025-03-29 05:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 02:18:05 [end_date_ymd] => 2025-03-29 05:18:05 [RateCDR] => 1 ) [2025-03-29 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-29 02:18:05' and `end` < '2025-03-29 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-29 05:18:18] Production.INFO: count ==466 [2025-03-29 05:18:18] Production.ERROR: pbx CDR StartTime 2025-03-29 02:18:05 - End Time 2025-03-29 05:18:05 [2025-03-29 05:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786650', 'tblTempUsageDetail_20' ) start [2025-03-29 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786650', 'tblTempUsageDetail_20' ) end [2025-03-29 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786650', 'tblTempVendorCDR_20' ) start [2025-03-29 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786650', 'tblTempVendorCDR_20' ) end [2025-03-29 05:18:18] Production.INFO: ProcessCDR(1,14786650,1,1,2) [2025-03-29 05:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786650', 'tblTempUsageDetail_20' ) start [2025-03-29 05:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786650', 'tblTempUsageDetail_20' ) end [2025-03-29 05:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 05:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 05:18:21] Production.INFO: ==23013== Releasing lock... [2025-03-29 05:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 05:18:21] Production.INFO: 32 MB #Memory Used# [2025-03-29 05:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 02:19:05 [end_date_ymd] => 2025-03-29 05:19:05 [RateCDR] => 1 ) [2025-03-29 05:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 02:19:05' and `end` < '2025-03-29 05:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 05:19:18] Production.INFO: count ==466 [2025-03-29 05:19:18] Production.ERROR: pbx CDR StartTime 2025-03-29 02:19:05 - End Time 2025-03-29 05:19:05 [2025-03-29 05:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786655', 'tblTempUsageDetail_20' ) start [2025-03-29 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786655', 'tblTempUsageDetail_20' ) end [2025-03-29 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786655', 'tblTempVendorCDR_20' ) start [2025-03-29 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786655', 'tblTempVendorCDR_20' ) end [2025-03-29 05:19:18] Production.INFO: ProcessCDR(1,14786655,1,1,2) [2025-03-29 05:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786655', 'tblTempUsageDetail_20' ) start [2025-03-29 05:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786655', 'tblTempUsageDetail_20' ) end [2025-03-29 05:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 05:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 05:19:21] Production.INFO: ==23123== Releasing lock... [2025-03-29 05:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 05:19:21] Production.INFO: 32 MB #Memory Used# [2025-03-29 05:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 02:20:06 [end_date_ymd] => 2025-03-29 05:20:06 [RateCDR] => 1 ) [2025-03-29 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-29 02:20:06' and `end` < '2025-03-29 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-29 05:20:18] Production.INFO: count ==466 [2025-03-29 05:20:19] Production.ERROR: pbx CDR StartTime 2025-03-29 02:20:06 - End Time 2025-03-29 05:20:06 [2025-03-29 05:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786660', 'tblTempUsageDetail_20' ) start [2025-03-29 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786660', 'tblTempUsageDetail_20' ) end [2025-03-29 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786660', 'tblTempVendorCDR_20' ) start [2025-03-29 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786660', 'tblTempVendorCDR_20' ) end [2025-03-29 05:20:19] Production.INFO: ProcessCDR(1,14786660,1,1,2) [2025-03-29 05:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786660', 'tblTempUsageDetail_20' ) start [2025-03-29 05:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786660', 'tblTempUsageDetail_20' ) end [2025-03-29 05:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 05:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 05:20:22] Production.INFO: ==23200== Releasing lock... [2025-03-29 05:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 05:20:22] Production.INFO: 32 MB #Memory Used# [2025-03-29 05:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 02:21:05 [end_date_ymd] => 2025-03-29 05:21:05 [RateCDR] => 1 ) [2025-03-29 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-29 02:21:05' and `end` < '2025-03-29 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-29 05:21:17] Production.INFO: count ==466 [2025-03-29 05:21:17] Production.ERROR: pbx CDR StartTime 2025-03-29 02:21:05 - End Time 2025-03-29 05:21:05 [2025-03-29 05:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786666', 'tblTempUsageDetail_20' ) start [2025-03-29 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786666', 'tblTempUsageDetail_20' ) end [2025-03-29 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786666', 'tblTempVendorCDR_20' ) start [2025-03-29 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786666', 'tblTempVendorCDR_20' ) end [2025-03-29 05:21:17] Production.INFO: ProcessCDR(1,14786666,1,1,2) [2025-03-29 05:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786666', 'tblTempUsageDetail_20' ) start [2025-03-29 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786666', 'tblTempUsageDetail_20' ) end [2025-03-29 05:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 05:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 05:21:21] Production.INFO: ==23277== Releasing lock... [2025-03-29 05:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 05:21:21] Production.INFO: 32 MB #Memory Used# [2025-03-29 05:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 02:22:06 [end_date_ymd] => 2025-03-29 05:22:06 [RateCDR] => 1 ) [2025-03-29 05:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 02:22:06' and `end` < '2025-03-29 05:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 05:22:18] Production.INFO: count ==466 [2025-03-29 05:22:18] Production.ERROR: pbx CDR StartTime 2025-03-29 02:22:06 - End Time 2025-03-29 05:22:06 [2025-03-29 05:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786671', 'tblTempUsageDetail_20' ) start [2025-03-29 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786671', 'tblTempUsageDetail_20' ) end [2025-03-29 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786671', 'tblTempVendorCDR_20' ) start [2025-03-29 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786671', 'tblTempVendorCDR_20' ) end [2025-03-29 05:22:18] Production.INFO: ProcessCDR(1,14786671,1,1,2) [2025-03-29 05:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786671', 'tblTempUsageDetail_20' ) start [2025-03-29 05:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786671', 'tblTempUsageDetail_20' ) end [2025-03-29 05:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 05:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 05:22:22] Production.INFO: ==23348== Releasing lock... [2025-03-29 05:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 05:22:22] Production.INFO: 32 MB #Memory Used# [2025-03-29 05:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 02:23:05 [end_date_ymd] => 2025-03-29 05:23:05 [RateCDR] => 1 ) [2025-03-29 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-29 02:23:05' and `end` < '2025-03-29 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-29 05:23:17] Production.INFO: count ==466 [2025-03-29 05:23:17] Production.ERROR: pbx CDR StartTime 2025-03-29 02:23:05 - End Time 2025-03-29 05:23:05 [2025-03-29 05:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786676', 'tblTempUsageDetail_20' ) start [2025-03-29 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786676', 'tblTempUsageDetail_20' ) end [2025-03-29 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786676', 'tblTempVendorCDR_20' ) start [2025-03-29 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786676', 'tblTempVendorCDR_20' ) end [2025-03-29 05:23:18] Production.INFO: ProcessCDR(1,14786676,1,1,2) [2025-03-29 05:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786676', 'tblTempUsageDetail_20' ) start [2025-03-29 05:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786676', 'tblTempUsageDetail_20' ) end [2025-03-29 05:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 05:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 05:23:21] Production.INFO: ==23422== Releasing lock... [2025-03-29 05:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 05:23:21] Production.INFO: 32 MB #Memory Used# [2025-03-29 05:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 02:24:06 [end_date_ymd] => 2025-03-29 05:24:06 [RateCDR] => 1 ) [2025-03-29 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-29 02:24:06' and `end` < '2025-03-29 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-29 05:24:18] Production.INFO: count ==452 [2025-03-29 05:24:18] Production.ERROR: pbx CDR StartTime 2025-03-29 02:24:06 - End Time 2025-03-29 05:24:06 [2025-03-29 05:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786681', 'tblTempUsageDetail_20' ) start [2025-03-29 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786681', 'tblTempUsageDetail_20' ) end [2025-03-29 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786681', 'tblTempVendorCDR_20' ) start [2025-03-29 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786681', 'tblTempVendorCDR_20' ) end [2025-03-29 05:24:18] Production.INFO: ProcessCDR(1,14786681,1,1,2) [2025-03-29 05:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786681', 'tblTempUsageDetail_20' ) start [2025-03-29 05:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786681', 'tblTempUsageDetail_20' ) end [2025-03-29 05:24:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 05:24:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 05:24:22] Production.INFO: ==23496== Releasing lock... [2025-03-29 05:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 05:24:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-29 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 02:25:05 [end_date_ymd] => 2025-03-29 05:25:05 [RateCDR] => 1 ) [2025-03-29 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-29 02:25:05' and `end` < '2025-03-29 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-29 05:25:17] Production.INFO: count ==449 [2025-03-29 05:25:18] Production.ERROR: pbx CDR StartTime 2025-03-29 02:25:05 - End Time 2025-03-29 05:25:05 [2025-03-29 05:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786686', 'tblTempUsageDetail_20' ) start [2025-03-29 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786686', 'tblTempUsageDetail_20' ) end [2025-03-29 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786686', 'tblTempVendorCDR_20' ) start [2025-03-29 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786686', 'tblTempVendorCDR_20' ) end [2025-03-29 05:25:18] Production.INFO: ProcessCDR(1,14786686,1,1,2) [2025-03-29 05:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786686', 'tblTempUsageDetail_20' ) start [2025-03-29 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786686', 'tblTempUsageDetail_20' ) end [2025-03-29 05:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 05:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 05:25:21] Production.INFO: ==23568== Releasing lock... [2025-03-29 05:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 05:25:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-29 05:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 02:26:06 [end_date_ymd] => 2025-03-29 05:26:06 [RateCDR] => 1 ) [2025-03-29 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-29 02:26:06' and `end` < '2025-03-29 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-29 05:26:18] Production.INFO: count ==447 [2025-03-29 05:26:18] Production.ERROR: pbx CDR StartTime 2025-03-29 02:26:06 - End Time 2025-03-29 05:26:06 [2025-03-29 05:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786691', 'tblTempUsageDetail_20' ) start [2025-03-29 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786691', 'tblTempUsageDetail_20' ) end [2025-03-29 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786691', 'tblTempVendorCDR_20' ) start [2025-03-29 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786691', 'tblTempVendorCDR_20' ) end [2025-03-29 05:26:18] Production.INFO: ProcessCDR(1,14786691,1,1,2) [2025-03-29 05:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786691', 'tblTempUsageDetail_20' ) start [2025-03-29 05:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786691', 'tblTempUsageDetail_20' ) end [2025-03-29 05:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 05:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 05:26:21] Production.INFO: ==23643== Releasing lock... [2025-03-29 05:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 05:26:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-29 05:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 02:27:05 [end_date_ymd] => 2025-03-29 05:27:05 [RateCDR] => 1 ) [2025-03-29 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-29 02:27:05' and `end` < '2025-03-29 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-29 05:27:17] Production.INFO: count ==447 [2025-03-29 05:27:17] Production.ERROR: pbx CDR StartTime 2025-03-29 02:27:05 - End Time 2025-03-29 05:27:05 [2025-03-29 05:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786696', 'tblTempUsageDetail_20' ) start [2025-03-29 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786696', 'tblTempUsageDetail_20' ) end [2025-03-29 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786696', 'tblTempVendorCDR_20' ) start [2025-03-29 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786696', 'tblTempVendorCDR_20' ) end [2025-03-29 05:27:17] Production.INFO: ProcessCDR(1,14786696,1,1,2) [2025-03-29 05:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786696', 'tblTempUsageDetail_20' ) start [2025-03-29 05:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786696', 'tblTempUsageDetail_20' ) end [2025-03-29 05:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 05:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 05:27:21] Production.INFO: ==23715== Releasing lock... [2025-03-29 05:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 05:27:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-29 05:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 02:28:06 [end_date_ymd] => 2025-03-29 05:28:06 [RateCDR] => 1 ) [2025-03-29 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-29 02:28:06' and `end` < '2025-03-29 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-29 05:28:18] Production.INFO: count ==446 [2025-03-29 05:28:18] Production.ERROR: pbx CDR StartTime 2025-03-29 02:28:06 - End Time 2025-03-29 05:28:06 [2025-03-29 05:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786701', 'tblTempUsageDetail_20' ) start [2025-03-29 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786701', 'tblTempUsageDetail_20' ) end [2025-03-29 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786701', 'tblTempVendorCDR_20' ) start [2025-03-29 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786701', 'tblTempVendorCDR_20' ) end [2025-03-29 05:28:18] Production.INFO: ProcessCDR(1,14786701,1,1,2) [2025-03-29 05:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786701', 'tblTempUsageDetail_20' ) start [2025-03-29 05:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786701', 'tblTempUsageDetail_20' ) end [2025-03-29 05:28:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 05:28:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 05:28:22] Production.INFO: ==23793== Releasing lock... [2025-03-29 05:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 05:28:22] Production.INFO: 32 MB #Memory Used# [2025-03-29 05:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 02:29:05 [end_date_ymd] => 2025-03-29 05:29:05 [RateCDR] => 1 ) [2025-03-29 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-29 02:29:05' and `end` < '2025-03-29 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-29 05:29:17] Production.INFO: count ==433 [2025-03-29 05:29:18] Production.ERROR: pbx CDR StartTime 2025-03-29 02:29:05 - End Time 2025-03-29 05:29:05 [2025-03-29 05:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786706', 'tblTempUsageDetail_20' ) start [2025-03-29 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786706', 'tblTempUsageDetail_20' ) end [2025-03-29 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786706', 'tblTempVendorCDR_20' ) start [2025-03-29 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786706', 'tblTempVendorCDR_20' ) end [2025-03-29 05:29:18] Production.INFO: ProcessCDR(1,14786706,1,1,2) [2025-03-29 05:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786706', 'tblTempUsageDetail_20' ) start [2025-03-29 05:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786706', 'tblTempUsageDetail_20' ) end [2025-03-29 05:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 05:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 05:29:21] Production.INFO: ==23868== Releasing lock... [2025-03-29 05:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 05:29:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-29 05:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 02:30:06 [end_date_ymd] => 2025-03-29 05:30:06 [RateCDR] => 1 ) [2025-03-29 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-29 02:30:06' and `end` < '2025-03-29 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-29 05:30:18] Production.INFO: count ==414 [2025-03-29 05:30:19] Production.ERROR: pbx CDR StartTime 2025-03-29 02:30:06 - End Time 2025-03-29 05:30:06 [2025-03-29 05:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786712', 'tblTempUsageDetail_20' ) start [2025-03-29 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786712', 'tblTempUsageDetail_20' ) end [2025-03-29 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786712', 'tblTempVendorCDR_20' ) start [2025-03-29 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786712', 'tblTempVendorCDR_20' ) end [2025-03-29 05:30:19] Production.INFO: ProcessCDR(1,14786712,1,1,2) [2025-03-29 05:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786712', 'tblTempUsageDetail_20' ) start [2025-03-29 05:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786712', 'tblTempUsageDetail_20' ) end [2025-03-29 05:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 05:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 05:30:22] Production.INFO: ==23945== Releasing lock... [2025-03-29 05:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 05:30:22] Production.INFO: 32 MB #Memory Used# [2025-03-29 05:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 02:31:05 [end_date_ymd] => 2025-03-29 05:31:05 [RateCDR] => 1 ) [2025-03-29 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-29 02:31:05' and `end` < '2025-03-29 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-29 05:31:18] Production.INFO: count ==402 [2025-03-29 05:31:18] Production.ERROR: pbx CDR StartTime 2025-03-29 02:31:05 - End Time 2025-03-29 05:31:05 [2025-03-29 05:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786717', 'tblTempUsageDetail_20' ) start [2025-03-29 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786717', 'tblTempUsageDetail_20' ) end [2025-03-29 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786717', 'tblTempVendorCDR_20' ) start [2025-03-29 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786717', 'tblTempVendorCDR_20' ) end [2025-03-29 05:31:18] Production.INFO: ProcessCDR(1,14786717,1,1,2) [2025-03-29 05:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786717', 'tblTempUsageDetail_20' ) start [2025-03-29 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786717', 'tblTempUsageDetail_20' ) end [2025-03-29 05:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 05:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 05:31:21] Production.INFO: ==24017== Releasing lock... [2025-03-29 05:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 05:31:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-29 05:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 02:32:06 [end_date_ymd] => 2025-03-29 05:32:06 [RateCDR] => 1 ) [2025-03-29 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-29 02:32:06' and `end` < '2025-03-29 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-29 05:32:18] Production.INFO: count ==400 [2025-03-29 05:32:18] Production.ERROR: pbx CDR StartTime 2025-03-29 02:32:06 - End Time 2025-03-29 05:32:06 [2025-03-29 05:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786722', 'tblTempUsageDetail_20' ) start [2025-03-29 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786722', 'tblTempUsageDetail_20' ) end [2025-03-29 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786722', 'tblTempVendorCDR_20' ) start [2025-03-29 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786722', 'tblTempVendorCDR_20' ) end [2025-03-29 05:32:18] Production.INFO: ProcessCDR(1,14786722,1,1,2) [2025-03-29 05:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786722', 'tblTempUsageDetail_20' ) start [2025-03-29 05:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786722', 'tblTempUsageDetail_20' ) end [2025-03-29 05:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 05:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 05:32:22] Production.INFO: ==24095== Releasing lock... [2025-03-29 05:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 05:32:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-29 05:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 02:33:05 [end_date_ymd] => 2025-03-29 05:33:05 [RateCDR] => 1 ) [2025-03-29 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-29 02:33:05' and `end` < '2025-03-29 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-29 05:33:17] Production.INFO: count ==398 [2025-03-29 05:33:17] Production.ERROR: pbx CDR StartTime 2025-03-29 02:33:05 - End Time 2025-03-29 05:33:05 [2025-03-29 05:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786727', 'tblTempUsageDetail_20' ) start [2025-03-29 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786727', 'tblTempUsageDetail_20' ) end [2025-03-29 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786727', 'tblTempVendorCDR_20' ) start [2025-03-29 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786727', 'tblTempVendorCDR_20' ) end [2025-03-29 05:33:17] Production.INFO: ProcessCDR(1,14786727,1,1,2) [2025-03-29 05:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786727', 'tblTempUsageDetail_20' ) start [2025-03-29 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786727', 'tblTempUsageDetail_20' ) end [2025-03-29 05:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 05:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 05:33:21] Production.INFO: ==24172== Releasing lock... [2025-03-29 05:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 05:33:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-29 05:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 02:34:05 [end_date_ymd] => 2025-03-29 05:34:05 [RateCDR] => 1 ) [2025-03-29 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-29 02:34:05' and `end` < '2025-03-29 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-29 05:34:17] Production.INFO: count ==398 [2025-03-29 05:34:18] Production.ERROR: pbx CDR StartTime 2025-03-29 02:34:05 - End Time 2025-03-29 05:34:05 [2025-03-29 05:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786732', 'tblTempUsageDetail_20' ) start [2025-03-29 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786732', 'tblTempUsageDetail_20' ) end [2025-03-29 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786732', 'tblTempVendorCDR_20' ) start [2025-03-29 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786732', 'tblTempVendorCDR_20' ) end [2025-03-29 05:34:18] Production.INFO: ProcessCDR(1,14786732,1,1,2) [2025-03-29 05:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786732', 'tblTempUsageDetail_20' ) start [2025-03-29 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786732', 'tblTempUsageDetail_20' ) end [2025-03-29 05:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 05:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 05:34:21] Production.INFO: ==24247== Releasing lock... [2025-03-29 05:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 05:34:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-29 05:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 02:35:05 [end_date_ymd] => 2025-03-29 05:35:05 [RateCDR] => 1 ) [2025-03-29 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-29 02:35:05' and `end` < '2025-03-29 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-29 05:35:17] Production.INFO: count ==398 [2025-03-29 05:35:17] Production.ERROR: pbx CDR StartTime 2025-03-29 02:35:05 - End Time 2025-03-29 05:35:05 [2025-03-29 05:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786737', 'tblTempUsageDetail_20' ) start [2025-03-29 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786737', 'tblTempUsageDetail_20' ) end [2025-03-29 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786737', 'tblTempVendorCDR_20' ) start [2025-03-29 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786737', 'tblTempVendorCDR_20' ) end [2025-03-29 05:35:18] Production.INFO: ProcessCDR(1,14786737,1,1,2) [2025-03-29 05:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786737', 'tblTempUsageDetail_20' ) start [2025-03-29 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786737', 'tblTempUsageDetail_20' ) end [2025-03-29 05:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 05:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 05:35:21] Production.INFO: ==24360== Releasing lock... [2025-03-29 05:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 05:35:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-29 05:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 02:36:05 [end_date_ymd] => 2025-03-29 05:36:05 [RateCDR] => 1 ) [2025-03-29 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-29 02:36:05' and `end` < '2025-03-29 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-29 05:36:18] Production.INFO: count ==397 [2025-03-29 05:36:18] Production.ERROR: pbx CDR StartTime 2025-03-29 02:36:05 - End Time 2025-03-29 05:36:05 [2025-03-29 05:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786742', 'tblTempUsageDetail_20' ) start [2025-03-29 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786742', 'tblTempUsageDetail_20' ) end [2025-03-29 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786742', 'tblTempVendorCDR_20' ) start [2025-03-29 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786742', 'tblTempVendorCDR_20' ) end [2025-03-29 05:36:18] Production.INFO: ProcessCDR(1,14786742,1,1,2) [2025-03-29 05:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786742', 'tblTempUsageDetail_20' ) start [2025-03-29 05:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786742', 'tblTempUsageDetail_20' ) end [2025-03-29 05:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 05:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 05:36:21] Production.INFO: ==24440== Releasing lock... [2025-03-29 05:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 05:36:21] Production.INFO: 32 MB #Memory Used# [2025-03-29 05:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 02:37:06 [end_date_ymd] => 2025-03-29 05:37:06 [RateCDR] => 1 ) [2025-03-29 05:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 02:37:06' and `end` < '2025-03-29 05:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 05:37:19] Production.INFO: count ==397 [2025-03-29 05:37:19] Production.ERROR: pbx CDR StartTime 2025-03-29 02:37:06 - End Time 2025-03-29 05:37:06 [2025-03-29 05:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 05:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786747', 'tblTempUsageDetail_20' ) start [2025-03-29 05:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786747', 'tblTempUsageDetail_20' ) end [2025-03-29 05:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786747', 'tblTempVendorCDR_20' ) start [2025-03-29 05:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786747', 'tblTempVendorCDR_20' ) end [2025-03-29 05:37:19] Production.INFO: ProcessCDR(1,14786747,1,1,2) [2025-03-29 05:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786747', 'tblTempUsageDetail_20' ) start [2025-03-29 05:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786747', 'tblTempUsageDetail_20' ) end [2025-03-29 05:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 05:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 05:37:22] Production.INFO: ==24516== Releasing lock... [2025-03-29 05:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 05:37:22] Production.INFO: 32 MB #Memory Used# [2025-03-29 05:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 02:38:06 [end_date_ymd] => 2025-03-29 05:38:06 [RateCDR] => 1 ) [2025-03-29 05: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-29 02:38:06' and `end` < '2025-03-29 05: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-29 05:38:18] Production.INFO: count ==400 [2025-03-29 05:38:18] Production.ERROR: pbx CDR StartTime 2025-03-29 02:38:06 - End Time 2025-03-29 05:38:06 [2025-03-29 05:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786752', 'tblTempUsageDetail_20' ) start [2025-03-29 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786752', 'tblTempUsageDetail_20' ) end [2025-03-29 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786752', 'tblTempVendorCDR_20' ) start [2025-03-29 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786752', 'tblTempVendorCDR_20' ) end [2025-03-29 05:38:18] Production.INFO: ProcessCDR(1,14786752,1,1,2) [2025-03-29 05:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786752', 'tblTempUsageDetail_20' ) start [2025-03-29 05:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786752', 'tblTempUsageDetail_20' ) end [2025-03-29 05:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 05:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 05:38:22] Production.INFO: ==24592== Releasing lock... [2025-03-29 05:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 05:38:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-29 05:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 02:39:06 [end_date_ymd] => 2025-03-29 05:39:06 [RateCDR] => 1 ) [2025-03-29 05: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-29 02:39:06' and `end` < '2025-03-29 05: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-29 05:39:18] Production.INFO: count ==403 [2025-03-29 05:39:19] Production.ERROR: pbx CDR StartTime 2025-03-29 02:39:06 - End Time 2025-03-29 05:39:06 [2025-03-29 05:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 05:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786757', 'tblTempUsageDetail_20' ) start [2025-03-29 05:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786757', 'tblTempUsageDetail_20' ) end [2025-03-29 05:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786757', 'tblTempVendorCDR_20' ) start [2025-03-29 05:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786757', 'tblTempVendorCDR_20' ) end [2025-03-29 05:39:19] Production.INFO: ProcessCDR(1,14786757,1,1,2) [2025-03-29 05:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786757', 'tblTempUsageDetail_20' ) start [2025-03-29 05:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786757', 'tblTempUsageDetail_20' ) end [2025-03-29 05:39:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 05:39:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 05:39:22] Production.INFO: ==24669== Releasing lock... [2025-03-29 05:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 05:39:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-29 05:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 02:40:05 [end_date_ymd] => 2025-03-29 05:40:05 [RateCDR] => 1 ) [2025-03-29 05:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 02:40:05' and `end` < '2025-03-29 05:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 05:40:18] Production.INFO: count ==409 [2025-03-29 05:40:18] Production.ERROR: pbx CDR StartTime 2025-03-29 02:40:05 - End Time 2025-03-29 05:40:05 [2025-03-29 05:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786761', 'tblTempUsageDetail_20' ) start [2025-03-29 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786761', 'tblTempUsageDetail_20' ) end [2025-03-29 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786761', 'tblTempVendorCDR_20' ) start [2025-03-29 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786761', 'tblTempVendorCDR_20' ) end [2025-03-29 05:40:18] Production.INFO: ProcessCDR(1,14786761,1,1,2) [2025-03-29 05:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786761', 'tblTempUsageDetail_20' ) start [2025-03-29 05:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786761', 'tblTempUsageDetail_20' ) end [2025-03-29 05:40:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 05:40:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 05:40:21] Production.INFO: ==24746== Releasing lock... [2025-03-29 05:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 05:40:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-29 05:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 02:41:05 [end_date_ymd] => 2025-03-29 05:41:05 [RateCDR] => 1 ) [2025-03-29 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-29 02:41:05' and `end` < '2025-03-29 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-29 05:41:18] Production.INFO: count ==400 [2025-03-29 05:41:18] Production.ERROR: pbx CDR StartTime 2025-03-29 02:41:05 - End Time 2025-03-29 05:41:05 [2025-03-29 05:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786768', 'tblTempUsageDetail_20' ) start [2025-03-29 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786768', 'tblTempUsageDetail_20' ) end [2025-03-29 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786768', 'tblTempVendorCDR_20' ) start [2025-03-29 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786768', 'tblTempVendorCDR_20' ) end [2025-03-29 05:41:18] Production.INFO: ProcessCDR(1,14786768,1,1,2) [2025-03-29 05:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786768', 'tblTempUsageDetail_20' ) start [2025-03-29 05:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786768', 'tblTempUsageDetail_20' ) end [2025-03-29 05:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 05:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 05:41:22] Production.INFO: ==24830== Releasing lock... [2025-03-29 05:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 05:41:22] Production.INFO: 32 MB #Memory Used# [2025-03-29 05:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 02:42:05 [end_date_ymd] => 2025-03-29 05:42:05 [RateCDR] => 1 ) [2025-03-29 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-29 02:42:05' and `end` < '2025-03-29 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-29 05:42:18] Production.INFO: count ==406 [2025-03-29 05:42:18] Production.ERROR: pbx CDR StartTime 2025-03-29 02:42:05 - End Time 2025-03-29 05:42:05 [2025-03-29 05:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786773', 'tblTempUsageDetail_20' ) start [2025-03-29 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786773', 'tblTempUsageDetail_20' ) end [2025-03-29 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786773', 'tblTempVendorCDR_20' ) start [2025-03-29 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786773', 'tblTempVendorCDR_20' ) end [2025-03-29 05:42:18] Production.INFO: ProcessCDR(1,14786773,1,1,2) [2025-03-29 05:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786773', 'tblTempUsageDetail_20' ) start [2025-03-29 05:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786773', 'tblTempUsageDetail_20' ) end [2025-03-29 05:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 05:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 05:42:21] Production.INFO: ==24904== Releasing lock... [2025-03-29 05:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 05:42:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-29 05:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 02:43:05 [end_date_ymd] => 2025-03-29 05:43:05 [RateCDR] => 1 ) [2025-03-29 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-29 02:43:05' and `end` < '2025-03-29 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-29 05:43:18] Production.INFO: count ==412 [2025-03-29 05:43:18] Production.ERROR: pbx CDR StartTime 2025-03-29 02:43:05 - End Time 2025-03-29 05:43:05 [2025-03-29 05:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786778', 'tblTempUsageDetail_20' ) start [2025-03-29 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786778', 'tblTempUsageDetail_20' ) end [2025-03-29 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786778', 'tblTempVendorCDR_20' ) start [2025-03-29 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786778', 'tblTempVendorCDR_20' ) end [2025-03-29 05:43:18] Production.INFO: ProcessCDR(1,14786778,1,1,2) [2025-03-29 05:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786778', 'tblTempUsageDetail_20' ) start [2025-03-29 05:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786778', 'tblTempUsageDetail_20' ) end [2025-03-29 05:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 05:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 05:43:22] Production.INFO: ==24983== Releasing lock... [2025-03-29 05:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 05:43:22] Production.INFO: 32 MB #Memory Used# [2025-03-29 05:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 02:44:05 [end_date_ymd] => 2025-03-29 05:44:05 [RateCDR] => 1 ) [2025-03-29 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-29 02:44:05' and `end` < '2025-03-29 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-29 05:44:18] Production.INFO: count ==415 [2025-03-29 05:44:18] Production.ERROR: pbx CDR StartTime 2025-03-29 02:44:05 - End Time 2025-03-29 05:44:05 [2025-03-29 05:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786783', 'tblTempUsageDetail_20' ) start [2025-03-29 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786783', 'tblTempUsageDetail_20' ) end [2025-03-29 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786783', 'tblTempVendorCDR_20' ) start [2025-03-29 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786783', 'tblTempVendorCDR_20' ) end [2025-03-29 05:44:18] Production.INFO: ProcessCDR(1,14786783,1,1,2) [2025-03-29 05:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786783', 'tblTempUsageDetail_20' ) start [2025-03-29 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786783', 'tblTempUsageDetail_20' ) end [2025-03-29 05:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 05:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 05:44:21] Production.INFO: ==25061== Releasing lock... [2025-03-29 05:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 05:44:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-29 05:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 02:45:06 [end_date_ymd] => 2025-03-29 05:45:06 [RateCDR] => 1 ) [2025-03-29 05: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-29 02:45:06' and `end` < '2025-03-29 05: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-29 05:45:18] Production.INFO: count ==437 [2025-03-29 05:45:19] Production.ERROR: pbx CDR StartTime 2025-03-29 02:45:06 - End Time 2025-03-29 05:45:06 [2025-03-29 05:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 05:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786788', 'tblTempUsageDetail_20' ) start [2025-03-29 05:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786788', 'tblTempUsageDetail_20' ) end [2025-03-29 05:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786788', 'tblTempVendorCDR_20' ) start [2025-03-29 05:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786788', 'tblTempVendorCDR_20' ) end [2025-03-29 05:45:19] Production.INFO: ProcessCDR(1,14786788,1,1,2) [2025-03-29 05:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786788', 'tblTempUsageDetail_20' ) start [2025-03-29 05:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786788', 'tblTempUsageDetail_20' ) end [2025-03-29 05:45:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 05:45:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 05:45:22] Production.INFO: ==25144== Releasing lock... [2025-03-29 05:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 05:45:22] Production.INFO: 32 MB #Memory Used# [2025-03-29 05:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 02:46:05 [end_date_ymd] => 2025-03-29 05:46:05 [RateCDR] => 1 ) [2025-03-29 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-29 02:46:05' and `end` < '2025-03-29 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-29 05:46:17] Production.INFO: count ==436 [2025-03-29 05:46:18] Production.ERROR: pbx CDR StartTime 2025-03-29 02:46:05 - End Time 2025-03-29 05:46:05 [2025-03-29 05:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786793', 'tblTempUsageDetail_20' ) start [2025-03-29 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786793', 'tblTempUsageDetail_20' ) end [2025-03-29 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786793', 'tblTempVendorCDR_20' ) start [2025-03-29 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786793', 'tblTempVendorCDR_20' ) end [2025-03-29 05:46:18] Production.INFO: ProcessCDR(1,14786793,1,1,2) [2025-03-29 05:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786793', 'tblTempUsageDetail_20' ) start [2025-03-29 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786793', 'tblTempUsageDetail_20' ) end [2025-03-29 05:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 05:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 05:46:21] Production.INFO: ==25231== Releasing lock... [2025-03-29 05:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 05:46:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-29 05:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 02:47:05 [end_date_ymd] => 2025-03-29 05:47:05 [RateCDR] => 1 ) [2025-03-29 05:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 02:47:05' and `end` < '2025-03-29 05:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 05:47:17] Production.INFO: count ==436 [2025-03-29 05:47:18] Production.ERROR: pbx CDR StartTime 2025-03-29 02:47:05 - End Time 2025-03-29 05:47:05 [2025-03-29 05:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786798', 'tblTempUsageDetail_20' ) start [2025-03-29 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786798', 'tblTempUsageDetail_20' ) end [2025-03-29 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786798', 'tblTempVendorCDR_20' ) start [2025-03-29 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786798', 'tblTempVendorCDR_20' ) end [2025-03-29 05:47:18] Production.INFO: ProcessCDR(1,14786798,1,1,2) [2025-03-29 05:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786798', 'tblTempUsageDetail_20' ) start [2025-03-29 05:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786798', 'tblTempUsageDetail_20' ) end [2025-03-29 05:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 05:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 05:47:21] Production.INFO: ==25316== Releasing lock... [2025-03-29 05:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 05:47:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-29 05:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 02:48:05 [end_date_ymd] => 2025-03-29 05:48:05 [RateCDR] => 1 ) [2025-03-29 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-29 02:48:05' and `end` < '2025-03-29 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-29 05:48:18] Production.INFO: count ==436 [2025-03-29 05:48:18] Production.ERROR: pbx CDR StartTime 2025-03-29 02:48:05 - End Time 2025-03-29 05:48:05 [2025-03-29 05:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786803', 'tblTempUsageDetail_20' ) start [2025-03-29 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786803', 'tblTempUsageDetail_20' ) end [2025-03-29 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786803', 'tblTempVendorCDR_20' ) start [2025-03-29 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786803', 'tblTempVendorCDR_20' ) end [2025-03-29 05:48:18] Production.INFO: ProcessCDR(1,14786803,1,1,2) [2025-03-29 05:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786803', 'tblTempUsageDetail_20' ) start [2025-03-29 05:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786803', 'tblTempUsageDetail_20' ) end [2025-03-29 05:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 05:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 05:48:22] Production.INFO: ==25392== Releasing lock... [2025-03-29 05:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 05:48:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-29 05:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 02:49:05 [end_date_ymd] => 2025-03-29 05:49:05 [RateCDR] => 1 ) [2025-03-29 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-29 02:49:05' and `end` < '2025-03-29 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-29 05:49:18] Production.INFO: count ==436 [2025-03-29 05:49:18] Production.ERROR: pbx CDR StartTime 2025-03-29 02:49:05 - End Time 2025-03-29 05:49:05 [2025-03-29 05:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786808', 'tblTempUsageDetail_20' ) start [2025-03-29 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786808', 'tblTempUsageDetail_20' ) end [2025-03-29 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786808', 'tblTempVendorCDR_20' ) start [2025-03-29 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786808', 'tblTempVendorCDR_20' ) end [2025-03-29 05:49:18] Production.INFO: ProcessCDR(1,14786808,1,1,2) [2025-03-29 05:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786808', 'tblTempUsageDetail_20' ) start [2025-03-29 05:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786808', 'tblTempUsageDetail_20' ) end [2025-03-29 05:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 05:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 05:49:21] Production.INFO: ==25481== Releasing lock... [2025-03-29 05:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 05:49:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-29 05:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 02:50:05 [end_date_ymd] => 2025-03-29 05:50:05 [RateCDR] => 1 ) [2025-03-29 05:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 02:50:05' and `end` < '2025-03-29 05:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 05:50:18] Production.INFO: count ==432 [2025-03-29 05:50:18] Production.ERROR: pbx CDR StartTime 2025-03-29 02:50:05 - End Time 2025-03-29 05:50:05 [2025-03-29 05:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786813', 'tblTempUsageDetail_20' ) start [2025-03-29 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786813', 'tblTempUsageDetail_20' ) end [2025-03-29 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786813', 'tblTempVendorCDR_20' ) start [2025-03-29 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786813', 'tblTempVendorCDR_20' ) end [2025-03-29 05:50:18] Production.INFO: ProcessCDR(1,14786813,1,1,2) [2025-03-29 05:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786813', 'tblTempUsageDetail_20' ) start [2025-03-29 05:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786813', 'tblTempUsageDetail_20' ) end [2025-03-29 05:50:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 05:50:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 05:50:21] Production.INFO: ==25617== Releasing lock... [2025-03-29 05:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 05:50:21] Production.INFO: 32 MB #Memory Used# [2025-03-29 05:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 02:51:05 [end_date_ymd] => 2025-03-29 05:51:05 [RateCDR] => 1 ) [2025-03-29 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-29 02:51:05' and `end` < '2025-03-29 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-29 05:51:18] Production.INFO: count ==434 [2025-03-29 05:51:18] Production.ERROR: pbx CDR StartTime 2025-03-29 02:51:05 - End Time 2025-03-29 05:51:05 [2025-03-29 05:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786819', 'tblTempUsageDetail_20' ) start [2025-03-29 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786819', 'tblTempUsageDetail_20' ) end [2025-03-29 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786819', 'tblTempVendorCDR_20' ) start [2025-03-29 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786819', 'tblTempVendorCDR_20' ) end [2025-03-29 05:51:18] Production.INFO: ProcessCDR(1,14786819,1,1,2) [2025-03-29 05:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786819', 'tblTempUsageDetail_20' ) start [2025-03-29 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786819', 'tblTempUsageDetail_20' ) end [2025-03-29 05:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 05:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 05:51:21] Production.INFO: ==25752== Releasing lock... [2025-03-29 05:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 05:51:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-29 05:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 02:52:06 [end_date_ymd] => 2025-03-29 05:52:06 [RateCDR] => 1 ) [2025-03-29 05:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 02:52:06' and `end` < '2025-03-29 05:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 05:52:18] Production.INFO: count ==436 [2025-03-29 05:52:18] Production.ERROR: pbx CDR StartTime 2025-03-29 02:52:06 - End Time 2025-03-29 05:52:06 [2025-03-29 05:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786824', 'tblTempUsageDetail_20' ) start [2025-03-29 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786824', 'tblTempUsageDetail_20' ) end [2025-03-29 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786824', 'tblTempVendorCDR_20' ) start [2025-03-29 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786824', 'tblTempVendorCDR_20' ) end [2025-03-29 05:52:18] Production.INFO: ProcessCDR(1,14786824,1,1,2) [2025-03-29 05:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786824', 'tblTempUsageDetail_20' ) start [2025-03-29 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786824', 'tblTempUsageDetail_20' ) end [2025-03-29 05:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 05:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 05:52:22] Production.INFO: ==25893== Releasing lock... [2025-03-29 05:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 05:52:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-29 05:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 02:53:05 [end_date_ymd] => 2025-03-29 05:53:05 [RateCDR] => 1 ) [2025-03-29 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-29 02:53:05' and `end` < '2025-03-29 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-29 05:53:18] Production.INFO: count ==436 [2025-03-29 05:53:18] Production.ERROR: pbx CDR StartTime 2025-03-29 02:53:05 - End Time 2025-03-29 05:53:05 [2025-03-29 05:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786829', 'tblTempUsageDetail_20' ) start [2025-03-29 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786829', 'tblTempUsageDetail_20' ) end [2025-03-29 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786829', 'tblTempVendorCDR_20' ) start [2025-03-29 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786829', 'tblTempVendorCDR_20' ) end [2025-03-29 05:53:18] Production.INFO: ProcessCDR(1,14786829,1,1,2) [2025-03-29 05:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786829', 'tblTempUsageDetail_20' ) start [2025-03-29 05:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786829', 'tblTempUsageDetail_20' ) end [2025-03-29 05:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 05:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 05:53:21] Production.INFO: ==26026== Releasing lock... [2025-03-29 05:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 05:53:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-29 05:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 02:54:05 [end_date_ymd] => 2025-03-29 05:54:05 [RateCDR] => 1 ) [2025-03-29 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-29 02:54:05' and `end` < '2025-03-29 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-29 05:54:18] Production.INFO: count ==434 [2025-03-29 05:54:18] Production.ERROR: pbx CDR StartTime 2025-03-29 02:54:05 - End Time 2025-03-29 05:54:05 [2025-03-29 05:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786834', 'tblTempUsageDetail_20' ) start [2025-03-29 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786834', 'tblTempUsageDetail_20' ) end [2025-03-29 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786834', 'tblTempVendorCDR_20' ) start [2025-03-29 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786834', 'tblTempVendorCDR_20' ) end [2025-03-29 05:54:18] Production.INFO: ProcessCDR(1,14786834,1,1,2) [2025-03-29 05:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786834', 'tblTempUsageDetail_20' ) start [2025-03-29 05:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786834', 'tblTempUsageDetail_20' ) end [2025-03-29 05:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 05:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 05:54:21] Production.INFO: ==26163== Releasing lock... [2025-03-29 05:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 05:54:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-29 05:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 02:55:05 [end_date_ymd] => 2025-03-29 05:55:05 [RateCDR] => 1 ) [2025-03-29 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-29 02:55:05' and `end` < '2025-03-29 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-29 05:55:17] Production.INFO: count ==433 [2025-03-29 05:55:18] Production.ERROR: pbx CDR StartTime 2025-03-29 02:55:05 - End Time 2025-03-29 05:55:05 [2025-03-29 05:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786839', 'tblTempUsageDetail_20' ) start [2025-03-29 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786839', 'tblTempUsageDetail_20' ) end [2025-03-29 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786839', 'tblTempVendorCDR_20' ) start [2025-03-29 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786839', 'tblTempVendorCDR_20' ) end [2025-03-29 05:55:18] Production.INFO: ProcessCDR(1,14786839,1,1,2) [2025-03-29 05:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786839', 'tblTempUsageDetail_20' ) start [2025-03-29 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786839', 'tblTempUsageDetail_20' ) end [2025-03-29 05:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 05:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 05:55:21] Production.INFO: ==26300== Releasing lock... [2025-03-29 05:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 05:55:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-29 05:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 02:56:05 [end_date_ymd] => 2025-03-29 05:56:05 [RateCDR] => 1 ) [2025-03-29 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-29 02:56:05' and `end` < '2025-03-29 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-29 05:56:18] Production.INFO: count ==432 [2025-03-29 05:56:18] Production.ERROR: pbx CDR StartTime 2025-03-29 02:56:05 - End Time 2025-03-29 05:56:05 [2025-03-29 05:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786844', 'tblTempUsageDetail_20' ) start [2025-03-29 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786844', 'tblTempUsageDetail_20' ) end [2025-03-29 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786844', 'tblTempVendorCDR_20' ) start [2025-03-29 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786844', 'tblTempVendorCDR_20' ) end [2025-03-29 05:56:18] Production.INFO: ProcessCDR(1,14786844,1,1,2) [2025-03-29 05:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786844', 'tblTempUsageDetail_20' ) start [2025-03-29 05:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786844', 'tblTempUsageDetail_20' ) end [2025-03-29 05:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 05:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 05:56:21] Production.INFO: ==26446== Releasing lock... [2025-03-29 05:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 05:56:21] Production.INFO: 32 MB #Memory Used# [2025-03-29 05:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 02:57:05 [end_date_ymd] => 2025-03-29 05:57:05 [RateCDR] => 1 ) [2025-03-29 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-29 02:57:05' and `end` < '2025-03-29 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-29 05:57:17] Production.INFO: count ==432 [2025-03-29 05:57:17] Production.ERROR: pbx CDR StartTime 2025-03-29 02:57:05 - End Time 2025-03-29 05:57:05 [2025-03-29 05:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786849', 'tblTempUsageDetail_20' ) start [2025-03-29 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786849', 'tblTempUsageDetail_20' ) end [2025-03-29 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786849', 'tblTempVendorCDR_20' ) start [2025-03-29 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786849', 'tblTempVendorCDR_20' ) end [2025-03-29 05:57:17] Production.INFO: ProcessCDR(1,14786849,1,1,2) [2025-03-29 05:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786849', 'tblTempUsageDetail_20' ) start [2025-03-29 05:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786849', 'tblTempUsageDetail_20' ) end [2025-03-29 05:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 05:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 05:57:21] Production.INFO: ==26576== Releasing lock... [2025-03-29 05:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 05:57:21] Production.INFO: 32 MB #Memory Used# [2025-03-29 05:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 02:58:06 [end_date_ymd] => 2025-03-29 05:58:06 [RateCDR] => 1 ) [2025-03-29 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-29 02:58:06' and `end` < '2025-03-29 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-29 05:58:18] Production.INFO: count ==432 [2025-03-29 05:58:18] Production.ERROR: pbx CDR StartTime 2025-03-29 02:58:06 - End Time 2025-03-29 05:58:06 [2025-03-29 05:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786854', 'tblTempUsageDetail_20' ) start [2025-03-29 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786854', 'tblTempUsageDetail_20' ) end [2025-03-29 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786854', 'tblTempVendorCDR_20' ) start [2025-03-29 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786854', 'tblTempVendorCDR_20' ) end [2025-03-29 05:58:18] Production.INFO: ProcessCDR(1,14786854,1,1,2) [2025-03-29 05:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786854', 'tblTempUsageDetail_20' ) start [2025-03-29 05:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786854', 'tblTempUsageDetail_20' ) end [2025-03-29 05:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 05:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 05:58:22] Production.INFO: ==26716== Releasing lock... [2025-03-29 05:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 05:58:22] Production.INFO: 32 MB #Memory Used# [2025-03-29 05:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 02:59:05 [end_date_ymd] => 2025-03-29 05:59:05 [RateCDR] => 1 ) [2025-03-29 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-29 02:59:05' and `end` < '2025-03-29 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-29 05:59:17] Production.INFO: count ==434 [2025-03-29 05:59:17] Production.ERROR: pbx CDR StartTime 2025-03-29 02:59:05 - End Time 2025-03-29 05:59:05 [2025-03-29 05:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786859', 'tblTempUsageDetail_20' ) start [2025-03-29 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786859', 'tblTempUsageDetail_20' ) end [2025-03-29 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786859', 'tblTempVendorCDR_20' ) start [2025-03-29 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786859', 'tblTempVendorCDR_20' ) end [2025-03-29 05:59:18] Production.INFO: ProcessCDR(1,14786859,1,1,2) [2025-03-29 05:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 05:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 05:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786859', 'tblTempUsageDetail_20' ) start [2025-03-29 05:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786859', 'tblTempUsageDetail_20' ) end [2025-03-29 05:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 05:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 05:59:21] Production.INFO: ==26855== Releasing lock... [2025-03-29 05:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 05:59:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-29 06:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 03:00:06 [end_date_ymd] => 2025-03-29 06:00:06 [RateCDR] => 1 ) [2025-03-29 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-29 03:00:06' and `end` < '2025-03-29 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-29 06:00:18] Production.INFO: count ==429 [2025-03-29 06:00:19] Production.ERROR: pbx CDR StartTime 2025-03-29 03:00:06 - End Time 2025-03-29 06:00:06 [2025-03-29 06:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786865', 'tblTempUsageDetail_20' ) start [2025-03-29 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786865', 'tblTempUsageDetail_20' ) end [2025-03-29 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786865', 'tblTempVendorCDR_20' ) start [2025-03-29 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786865', 'tblTempVendorCDR_20' ) end [2025-03-29 06:00:19] Production.INFO: ProcessCDR(1,14786865,1,1,2) [2025-03-29 06:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786865', 'tblTempUsageDetail_20' ) start [2025-03-29 06:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786865', 'tblTempUsageDetail_20' ) end [2025-03-29 06:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 06:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 06:00:22] Production.INFO: ==26994== Releasing lock... [2025-03-29 06:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 06:00:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-29 06:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 03:01:06 [end_date_ymd] => 2025-03-29 06:01:06 [RateCDR] => 1 ) [2025-03-29 06:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 03:01:06' and `end` < '2025-03-29 06:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 06:01:18] Production.INFO: count ==427 [2025-03-29 06:01:19] Production.ERROR: pbx CDR StartTime 2025-03-29 03:01:06 - End Time 2025-03-29 06:01:06 [2025-03-29 06:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 06:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786870', 'tblTempUsageDetail_20' ) start [2025-03-29 06:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786870', 'tblTempUsageDetail_20' ) end [2025-03-29 06:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786870', 'tblTempVendorCDR_20' ) start [2025-03-29 06:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786870', 'tblTempVendorCDR_20' ) end [2025-03-29 06:01:19] Production.INFO: ProcessCDR(1,14786870,1,1,2) [2025-03-29 06:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786870', 'tblTempUsageDetail_20' ) start [2025-03-29 06:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786870', 'tblTempUsageDetail_20' ) end [2025-03-29 06:01:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 06:01:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 06:01:22] Production.INFO: ==27149== Releasing lock... [2025-03-29 06:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 06:01:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-29 06:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 03:02:06 [end_date_ymd] => 2025-03-29 06:02:06 [RateCDR] => 1 ) [2025-03-29 06: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-29 03:02:06' and `end` < '2025-03-29 06: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-29 06:02:18] Production.INFO: count ==421 [2025-03-29 06:02:18] Production.ERROR: pbx CDR StartTime 2025-03-29 03:02:06 - End Time 2025-03-29 06:02:06 [2025-03-29 06:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786875', 'tblTempUsageDetail_20' ) start [2025-03-29 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786875', 'tblTempUsageDetail_20' ) end [2025-03-29 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786875', 'tblTempVendorCDR_20' ) start [2025-03-29 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786875', 'tblTempVendorCDR_20' ) end [2025-03-29 06:02:18] Production.INFO: ProcessCDR(1,14786875,1,1,2) [2025-03-29 06:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786875', 'tblTempUsageDetail_20' ) start [2025-03-29 06:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786875', 'tblTempUsageDetail_20' ) end [2025-03-29 06:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 06:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 06:02:22] Production.INFO: ==27278== Releasing lock... [2025-03-29 06:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 06:02:22] Production.INFO: 32 MB #Memory Used# [2025-03-29 06:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 03:03:06 [end_date_ymd] => 2025-03-29 06:03:06 [RateCDR] => 1 ) [2025-03-29 06:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 03:03:06' and `end` < '2025-03-29 06:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 06:03:18] Production.INFO: count ==421 [2025-03-29 06:03:18] Production.ERROR: pbx CDR StartTime 2025-03-29 03:03:06 - End Time 2025-03-29 06:03:06 [2025-03-29 06:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786880', 'tblTempUsageDetail_20' ) start [2025-03-29 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786880', 'tblTempUsageDetail_20' ) end [2025-03-29 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786880', 'tblTempVendorCDR_20' ) start [2025-03-29 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786880', 'tblTempVendorCDR_20' ) end [2025-03-29 06:03:18] Production.INFO: ProcessCDR(1,14786880,1,1,2) [2025-03-29 06:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786880', 'tblTempUsageDetail_20' ) start [2025-03-29 06:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786880', 'tblTempUsageDetail_20' ) end [2025-03-29 06:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 06:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 06:03:22] Production.INFO: ==27416== Releasing lock... [2025-03-29 06:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 06:03:22] Production.INFO: 32 MB #Memory Used# [2025-03-29 06:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 03:04:05 [end_date_ymd] => 2025-03-29 06:04:05 [RateCDR] => 1 ) [2025-03-29 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-29 03:04:05' and `end` < '2025-03-29 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-29 06:04:18] Production.INFO: count ==421 [2025-03-29 06:04:18] Production.ERROR: pbx CDR StartTime 2025-03-29 03:04:05 - End Time 2025-03-29 06:04:05 [2025-03-29 06:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786885', 'tblTempUsageDetail_20' ) start [2025-03-29 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786885', 'tblTempUsageDetail_20' ) end [2025-03-29 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786885', 'tblTempVendorCDR_20' ) start [2025-03-29 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786885', 'tblTempVendorCDR_20' ) end [2025-03-29 06:04:18] Production.INFO: ProcessCDR(1,14786885,1,1,2) [2025-03-29 06:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786885', 'tblTempUsageDetail_20' ) start [2025-03-29 06:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786885', 'tblTempUsageDetail_20' ) end [2025-03-29 06:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 06:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 06:04:21] Production.INFO: ==27553== Releasing lock... [2025-03-29 06:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 06:04:21] Production.INFO: 32 MB #Memory Used# [2025-03-29 06:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 03:05:05 [end_date_ymd] => 2025-03-29 06:05:05 [RateCDR] => 1 ) [2025-03-29 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-29 03:05:05' and `end` < '2025-03-29 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-29 06:05:18] Production.INFO: count ==426 [2025-03-29 06:05:18] Production.ERROR: pbx CDR StartTime 2025-03-29 03:05:05 - End Time 2025-03-29 06:05:05 [2025-03-29 06:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786890', 'tblTempUsageDetail_20' ) start [2025-03-29 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786890', 'tblTempUsageDetail_20' ) end [2025-03-29 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786890', 'tblTempVendorCDR_20' ) start [2025-03-29 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786890', 'tblTempVendorCDR_20' ) end [2025-03-29 06:05:18] Production.INFO: ProcessCDR(1,14786890,1,1,2) [2025-03-29 06:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786890', 'tblTempUsageDetail_20' ) start [2025-03-29 06:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786890', 'tblTempUsageDetail_20' ) end [2025-03-29 06:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 06:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 06:05:21] Production.INFO: ==27688== Releasing lock... [2025-03-29 06:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 06:05:21] Production.INFO: 32 MB #Memory Used# [2025-03-29 06:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 03:06:05 [end_date_ymd] => 2025-03-29 06:06:05 [RateCDR] => 1 ) [2025-03-29 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-29 03:06:05' and `end` < '2025-03-29 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-29 06:06:17] Production.INFO: count ==426 [2025-03-29 06:06:17] Production.ERROR: pbx CDR StartTime 2025-03-29 03:06:05 - End Time 2025-03-29 06:06:05 [2025-03-29 06:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786895', 'tblTempUsageDetail_20' ) start [2025-03-29 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786895', 'tblTempUsageDetail_20' ) end [2025-03-29 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786895', 'tblTempVendorCDR_20' ) start [2025-03-29 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786895', 'tblTempVendorCDR_20' ) end [2025-03-29 06:06:17] Production.INFO: ProcessCDR(1,14786895,1,1,2) [2025-03-29 06:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786895', 'tblTempUsageDetail_20' ) start [2025-03-29 06:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786895', 'tblTempUsageDetail_20' ) end [2025-03-29 06:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 06:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 06:06:21] Production.INFO: ==27863== Releasing lock... [2025-03-29 06:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 06:06:21] Production.INFO: 32 MB #Memory Used# [2025-03-29 06:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 03:07:06 [end_date_ymd] => 2025-03-29 06:07:06 [RateCDR] => 1 ) [2025-03-29 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-29 03:07:06' and `end` < '2025-03-29 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-29 06:07:18] Production.INFO: count ==426 [2025-03-29 06:07:18] Production.ERROR: pbx CDR StartTime 2025-03-29 03:07:06 - End Time 2025-03-29 06:07:06 [2025-03-29 06:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786900', 'tblTempUsageDetail_20' ) start [2025-03-29 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786900', 'tblTempUsageDetail_20' ) end [2025-03-29 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786900', 'tblTempVendorCDR_20' ) start [2025-03-29 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786900', 'tblTempVendorCDR_20' ) end [2025-03-29 06:07:18] Production.INFO: ProcessCDR(1,14786900,1,1,2) [2025-03-29 06:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786900', 'tblTempUsageDetail_20' ) start [2025-03-29 06:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786900', 'tblTempUsageDetail_20' ) end [2025-03-29 06:07:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 06:07:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 06:07:22] Production.INFO: ==27990== Releasing lock... [2025-03-29 06:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 06:07:22] Production.INFO: 32 MB #Memory Used# [2025-03-29 06:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 03:08:04 [end_date_ymd] => 2025-03-29 06:08:04 [RateCDR] => 1 ) [2025-03-29 06:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 03:08:04' and `end` < '2025-03-29 06:08:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 06:08:17] Production.INFO: count ==426 [2025-03-29 06:08:17] Production.ERROR: pbx CDR StartTime 2025-03-29 03:08:04 - End Time 2025-03-29 06:08:04 [2025-03-29 06:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786905', 'tblTempUsageDetail_20' ) start [2025-03-29 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786905', 'tblTempUsageDetail_20' ) end [2025-03-29 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786905', 'tblTempVendorCDR_20' ) start [2025-03-29 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786905', 'tblTempVendorCDR_20' ) end [2025-03-29 06:08:17] Production.INFO: ProcessCDR(1,14786905,1,1,2) [2025-03-29 06:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786905', 'tblTempUsageDetail_20' ) start [2025-03-29 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786905', 'tblTempUsageDetail_20' ) end [2025-03-29 06:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 06:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 06:08:21] Production.INFO: ==28121== Releasing lock... [2025-03-29 06:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 06:08:21] Production.INFO: 32 MB #Memory Used# [2025-03-29 06:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 03:09:05 [end_date_ymd] => 2025-03-29 06:09:05 [RateCDR] => 1 ) [2025-03-29 06:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 03:09:05' and `end` < '2025-03-29 06:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 06:09:17] Production.INFO: count ==426 [2025-03-29 06:09:17] Production.ERROR: pbx CDR StartTime 2025-03-29 03:09:05 - End Time 2025-03-29 06:09:05 [2025-03-29 06:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786910', 'tblTempUsageDetail_20' ) start [2025-03-29 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786910', 'tblTempUsageDetail_20' ) end [2025-03-29 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786910', 'tblTempVendorCDR_20' ) start [2025-03-29 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786910', 'tblTempVendorCDR_20' ) end [2025-03-29 06:09:17] Production.INFO: ProcessCDR(1,14786910,1,1,2) [2025-03-29 06:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786910', 'tblTempUsageDetail_20' ) start [2025-03-29 06:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786910', 'tblTempUsageDetail_20' ) end [2025-03-29 06:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 06:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 06:09:21] Production.INFO: ==28260== Releasing lock... [2025-03-29 06:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 06:09:21] Production.INFO: 32 MB #Memory Used# [2025-03-29 06:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 03:10:05 [end_date_ymd] => 2025-03-29 06:10:05 [RateCDR] => 1 ) [2025-03-29 06:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 03:10:05' and `end` < '2025-03-29 06:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 06:10:18] Production.INFO: count ==427 [2025-03-29 06:10:18] Production.ERROR: pbx CDR StartTime 2025-03-29 03:10:05 - End Time 2025-03-29 06:10:05 [2025-03-29 06:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786916', 'tblTempUsageDetail_20' ) start [2025-03-29 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786916', 'tblTempUsageDetail_20' ) end [2025-03-29 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786916', 'tblTempVendorCDR_20' ) start [2025-03-29 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786916', 'tblTempVendorCDR_20' ) end [2025-03-29 06:10:18] Production.INFO: ProcessCDR(1,14786916,1,1,2) [2025-03-29 06:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786916', 'tblTempUsageDetail_20' ) start [2025-03-29 06:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786916', 'tblTempUsageDetail_20' ) end [2025-03-29 06:10:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 06:10:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 06:10:23] Production.INFO: ==28396== Releasing lock... [2025-03-29 06:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 06:10:23] Production.INFO: 31.5 MB #Memory Used# [2025-03-29 06:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 03:11:06 [end_date_ymd] => 2025-03-29 06:11:06 [RateCDR] => 1 ) [2025-03-29 06: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-29 03:11:06' and `end` < '2025-03-29 06: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-29 06:11:18] Production.INFO: count ==420 [2025-03-29 06:11:18] Production.ERROR: pbx CDR StartTime 2025-03-29 03:11:06 - End Time 2025-03-29 06:11:06 [2025-03-29 06:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786921', 'tblTempUsageDetail_20' ) start [2025-03-29 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786921', 'tblTempUsageDetail_20' ) end [2025-03-29 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786921', 'tblTempVendorCDR_20' ) start [2025-03-29 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786921', 'tblTempVendorCDR_20' ) end [2025-03-29 06:11:18] Production.INFO: ProcessCDR(1,14786921,1,1,2) [2025-03-29 06:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786921', 'tblTempUsageDetail_20' ) start [2025-03-29 06:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786921', 'tblTempUsageDetail_20' ) end [2025-03-29 06:11:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 06:11:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 06:11:22] Production.INFO: ==28531== Releasing lock... [2025-03-29 06:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 06:11:22] Production.INFO: 32 MB #Memory Used# [2025-03-29 06:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 03:12:05 [end_date_ymd] => 2025-03-29 06:12:05 [RateCDR] => 1 ) [2025-03-29 06:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 03:12:05' and `end` < '2025-03-29 06:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 06:12:17] Production.INFO: count ==417 [2025-03-29 06:12:17] Production.ERROR: pbx CDR StartTime 2025-03-29 03:12:05 - End Time 2025-03-29 06:12:05 [2025-03-29 06:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786926', 'tblTempUsageDetail_20' ) start [2025-03-29 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786926', 'tblTempUsageDetail_20' ) end [2025-03-29 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786926', 'tblTempVendorCDR_20' ) start [2025-03-29 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786926', 'tblTempVendorCDR_20' ) end [2025-03-29 06:12:17] Production.INFO: ProcessCDR(1,14786926,1,1,2) [2025-03-29 06:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786926', 'tblTempUsageDetail_20' ) start [2025-03-29 06:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786926', 'tblTempUsageDetail_20' ) end [2025-03-29 06:12:20] Production.ERROR: pbx prc_insertCDR start [2025-03-29 06:12:20] Production.ERROR: pbx prc_insertCDR end [2025-03-29 06:12:20] Production.INFO: ==28647== Releasing lock... [2025-03-29 06:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 06:12:20] Production.INFO: 31.75 MB #Memory Used# [2025-03-29 06:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 03:13:05 [end_date_ymd] => 2025-03-29 06:13:05 [RateCDR] => 1 ) [2025-03-29 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-29 03:13:05' and `end` < '2025-03-29 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-29 06:13:18] Production.INFO: count ==415 [2025-03-29 06:13:18] Production.ERROR: pbx CDR StartTime 2025-03-29 03:13:05 - End Time 2025-03-29 06:13:05 [2025-03-29 06:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786931', 'tblTempUsageDetail_20' ) start [2025-03-29 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786931', 'tblTempUsageDetail_20' ) end [2025-03-29 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786931', 'tblTempVendorCDR_20' ) start [2025-03-29 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786931', 'tblTempVendorCDR_20' ) end [2025-03-29 06:13:18] Production.INFO: ProcessCDR(1,14786931,1,1,2) [2025-03-29 06:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786931', 'tblTempUsageDetail_20' ) start [2025-03-29 06:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786931', 'tblTempUsageDetail_20' ) end [2025-03-29 06:13:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 06:13:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 06:13:23] Production.INFO: ==28738== Releasing lock... [2025-03-29 06:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 06:13:23] Production.INFO: 31.75 MB #Memory Used# [2025-03-29 06:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 03:14:06 [end_date_ymd] => 2025-03-29 06:14:06 [RateCDR] => 1 ) [2025-03-29 06:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 03:14:06' and `end` < '2025-03-29 06:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 06:14:18] Production.INFO: count ==415 [2025-03-29 06:14:19] Production.ERROR: pbx CDR StartTime 2025-03-29 03:14:06 - End Time 2025-03-29 06:14:06 [2025-03-29 06:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 06:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786936', 'tblTempUsageDetail_20' ) start [2025-03-29 06:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786936', 'tblTempUsageDetail_20' ) end [2025-03-29 06:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786936', 'tblTempVendorCDR_20' ) start [2025-03-29 06:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786936', 'tblTempVendorCDR_20' ) end [2025-03-29 06:14:19] Production.INFO: ProcessCDR(1,14786936,1,1,2) [2025-03-29 06:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786936', 'tblTempUsageDetail_20' ) start [2025-03-29 06:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786936', 'tblTempUsageDetail_20' ) end [2025-03-29 06:14:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 06:14:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 06:14:22] Production.INFO: ==28825== Releasing lock... [2025-03-29 06:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 06:14:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-29 06:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 03:15:05 [end_date_ymd] => 2025-03-29 06:15:05 [RateCDR] => 1 ) [2025-03-29 06:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 03:15:05' and `end` < '2025-03-29 06:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 06:15:17] Production.INFO: count ==415 [2025-03-29 06:15:17] Production.ERROR: pbx CDR StartTime 2025-03-29 03:15:05 - End Time 2025-03-29 06:15:05 [2025-03-29 06:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786941', 'tblTempUsageDetail_20' ) start [2025-03-29 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786941', 'tblTempUsageDetail_20' ) end [2025-03-29 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786941', 'tblTempVendorCDR_20' ) start [2025-03-29 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786941', 'tblTempVendorCDR_20' ) end [2025-03-29 06:15:17] Production.INFO: ProcessCDR(1,14786941,1,1,2) [2025-03-29 06:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786941', 'tblTempUsageDetail_20' ) start [2025-03-29 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786941', 'tblTempUsageDetail_20' ) end [2025-03-29 06:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 06:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 06:15:21] Production.INFO: ==28918== Releasing lock... [2025-03-29 06:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 06:15:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-29 06:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 03:16:05 [end_date_ymd] => 2025-03-29 06:16:05 [RateCDR] => 1 ) [2025-03-29 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-29 03:16:05' and `end` < '2025-03-29 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-29 06:16:18] Production.INFO: count ==415 [2025-03-29 06:16:18] Production.ERROR: pbx CDR StartTime 2025-03-29 03:16:05 - End Time 2025-03-29 06:16:05 [2025-03-29 06:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786946', 'tblTempUsageDetail_20' ) start [2025-03-29 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786946', 'tblTempUsageDetail_20' ) end [2025-03-29 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786946', 'tblTempVendorCDR_20' ) start [2025-03-29 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786946', 'tblTempVendorCDR_20' ) end [2025-03-29 06:16:18] Production.INFO: ProcessCDR(1,14786946,1,1,2) [2025-03-29 06:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786946', 'tblTempUsageDetail_20' ) start [2025-03-29 06:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786946', 'tblTempUsageDetail_20' ) end [2025-03-29 06:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 06:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 06:16:21] Production.INFO: ==29007== Releasing lock... [2025-03-29 06:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 06:16:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-29 06:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 03:17:05 [end_date_ymd] => 2025-03-29 06:17:05 [RateCDR] => 1 ) [2025-03-29 06:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 03:17:05' and `end` < '2025-03-29 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-29 06:17:18] Production.INFO: count ==414 [2025-03-29 06:17:18] Production.ERROR: pbx CDR StartTime 2025-03-29 03:17:05 - End Time 2025-03-29 06:17:05 [2025-03-29 06:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786951', 'tblTempUsageDetail_20' ) start [2025-03-29 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786951', 'tblTempUsageDetail_20' ) end [2025-03-29 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786951', 'tblTempVendorCDR_20' ) start [2025-03-29 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786951', 'tblTempVendorCDR_20' ) end [2025-03-29 06:17:18] Production.INFO: ProcessCDR(1,14786951,1,1,2) [2025-03-29 06:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786951', 'tblTempUsageDetail_20' ) start [2025-03-29 06:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786951', 'tblTempUsageDetail_20' ) end [2025-03-29 06:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 06:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 06:17:21] Production.INFO: ==29101== Releasing lock... [2025-03-29 06:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 06:17:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-29 06:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 03:18:06 [end_date_ymd] => 2025-03-29 06:18:06 [RateCDR] => 1 ) [2025-03-29 06: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-29 03:18:06' and `end` < '2025-03-29 06: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-29 06:18:18] Production.INFO: count ==414 [2025-03-29 06:18:19] Production.ERROR: pbx CDR StartTime 2025-03-29 03:18:06 - End Time 2025-03-29 06:18:06 [2025-03-29 06:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 06:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786956', 'tblTempUsageDetail_20' ) start [2025-03-29 06:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786956', 'tblTempUsageDetail_20' ) end [2025-03-29 06:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786956', 'tblTempVendorCDR_20' ) start [2025-03-29 06:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786956', 'tblTempVendorCDR_20' ) end [2025-03-29 06:18:19] Production.INFO: ProcessCDR(1,14786956,1,1,2) [2025-03-29 06:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786956', 'tblTempUsageDetail_20' ) start [2025-03-29 06:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786956', 'tblTempUsageDetail_20' ) end [2025-03-29 06:18:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 06:18:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 06:18:22] Production.INFO: ==29197== Releasing lock... [2025-03-29 06:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 06:18:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-29 06:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 03:19:05 [end_date_ymd] => 2025-03-29 06:19:05 [RateCDR] => 1 ) [2025-03-29 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-29 03:19:05' and `end` < '2025-03-29 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-29 06:19:17] Production.INFO: count ==414 [2025-03-29 06:19:18] Production.ERROR: pbx CDR StartTime 2025-03-29 03:19:05 - End Time 2025-03-29 06:19:05 [2025-03-29 06:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786961', 'tblTempUsageDetail_20' ) start [2025-03-29 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786961', 'tblTempUsageDetail_20' ) end [2025-03-29 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786961', 'tblTempVendorCDR_20' ) start [2025-03-29 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786961', 'tblTempVendorCDR_20' ) end [2025-03-29 06:19:18] Production.INFO: ProcessCDR(1,14786961,1,1,2) [2025-03-29 06:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786961', 'tblTempUsageDetail_20' ) start [2025-03-29 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786961', 'tblTempUsageDetail_20' ) end [2025-03-29 06:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 06:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 06:19:21] Production.INFO: ==29285== Releasing lock... [2025-03-29 06:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 06:19:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-29 06:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 03:20:06 [end_date_ymd] => 2025-03-29 06:20:06 [RateCDR] => 1 ) [2025-03-29 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-29 03:20:06' and `end` < '2025-03-29 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-29 06:20:18] Production.INFO: count ==404 [2025-03-29 06:20:18] Production.ERROR: pbx CDR StartTime 2025-03-29 03:20:06 - End Time 2025-03-29 06:20:06 [2025-03-29 06:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786966', 'tblTempUsageDetail_20' ) start [2025-03-29 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786966', 'tblTempUsageDetail_20' ) end [2025-03-29 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786966', 'tblTempVendorCDR_20' ) start [2025-03-29 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786966', 'tblTempVendorCDR_20' ) end [2025-03-29 06:20:18] Production.INFO: ProcessCDR(1,14786966,1,1,2) [2025-03-29 06:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786966', 'tblTempUsageDetail_20' ) start [2025-03-29 06:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786966', 'tblTempUsageDetail_20' ) end [2025-03-29 06:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 06:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 06:20:22] Production.INFO: ==29375== Releasing lock... [2025-03-29 06:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 06:20:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-29 06:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 03:21:05 [end_date_ymd] => 2025-03-29 06:21:05 [RateCDR] => 1 ) [2025-03-29 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-29 03:21:05' and `end` < '2025-03-29 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-29 06:21:18] Production.INFO: count ==394 [2025-03-29 06:21:18] Production.ERROR: pbx CDR StartTime 2025-03-29 03:21:05 - End Time 2025-03-29 06:21:05 [2025-03-29 06:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786972', 'tblTempUsageDetail_20' ) start [2025-03-29 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786972', 'tblTempUsageDetail_20' ) end [2025-03-29 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786972', 'tblTempVendorCDR_20' ) start [2025-03-29 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786972', 'tblTempVendorCDR_20' ) end [2025-03-29 06:21:18] Production.INFO: ProcessCDR(1,14786972,1,1,2) [2025-03-29 06:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786972', 'tblTempUsageDetail_20' ) start [2025-03-29 06:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786972', 'tblTempUsageDetail_20' ) end [2025-03-29 06:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 06:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 06:21:21] Production.INFO: ==29502== Releasing lock... [2025-03-29 06:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 06:21:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-29 06:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 03:22:05 [end_date_ymd] => 2025-03-29 06:22:05 [RateCDR] => 1 ) [2025-03-29 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-29 03:22:05' and `end` < '2025-03-29 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-29 06:22:17] Production.INFO: count ==394 [2025-03-29 06:22:18] Production.ERROR: pbx CDR StartTime 2025-03-29 03:22:05 - End Time 2025-03-29 06:22:05 [2025-03-29 06:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786977', 'tblTempUsageDetail_20' ) start [2025-03-29 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786977', 'tblTempUsageDetail_20' ) end [2025-03-29 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786977', 'tblTempVendorCDR_20' ) start [2025-03-29 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786977', 'tblTempVendorCDR_20' ) end [2025-03-29 06:22:18] Production.INFO: ProcessCDR(1,14786977,1,1,2) [2025-03-29 06:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786977', 'tblTempUsageDetail_20' ) start [2025-03-29 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786977', 'tblTempUsageDetail_20' ) end [2025-03-29 06:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 06:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 06:22:21] Production.INFO: ==29590== Releasing lock... [2025-03-29 06:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 06:22:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-29 06:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 03:23:04 [end_date_ymd] => 2025-03-29 06:23:04 [RateCDR] => 1 ) [2025-03-29 06:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 03:23:04' and `end` < '2025-03-29 06:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 06:23:17] Production.INFO: count ==394 [2025-03-29 06:23:17] Production.ERROR: pbx CDR StartTime 2025-03-29 03:23:04 - End Time 2025-03-29 06:23:04 [2025-03-29 06:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786982', 'tblTempUsageDetail_20' ) start [2025-03-29 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786982', 'tblTempUsageDetail_20' ) end [2025-03-29 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786982', 'tblTempVendorCDR_20' ) start [2025-03-29 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786982', 'tblTempVendorCDR_20' ) end [2025-03-29 06:23:17] Production.INFO: ProcessCDR(1,14786982,1,1,2) [2025-03-29 06:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786982', 'tblTempUsageDetail_20' ) start [2025-03-29 06:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786982', 'tblTempUsageDetail_20' ) end [2025-03-29 06:23:20] Production.ERROR: pbx prc_insertCDR start [2025-03-29 06:23:20] Production.ERROR: pbx prc_insertCDR end [2025-03-29 06:23:20] Production.INFO: ==29669== Releasing lock... [2025-03-29 06:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 06:23:20] Production.INFO: 31.75 MB #Memory Used# [2025-03-29 06:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 03:24:05 [end_date_ymd] => 2025-03-29 06:24:05 [RateCDR] => 1 ) [2025-03-29 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-29 03:24:05' and `end` < '2025-03-29 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-29 06:24:18] Production.INFO: count ==391 [2025-03-29 06:24:18] Production.ERROR: pbx CDR StartTime 2025-03-29 03:24:05 - End Time 2025-03-29 06:24:05 [2025-03-29 06:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786987', 'tblTempUsageDetail_20' ) start [2025-03-29 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786987', 'tblTempUsageDetail_20' ) end [2025-03-29 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786987', 'tblTempVendorCDR_20' ) start [2025-03-29 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786987', 'tblTempVendorCDR_20' ) end [2025-03-29 06:24:18] Production.INFO: ProcessCDR(1,14786987,1,1,2) [2025-03-29 06:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786987', 'tblTempUsageDetail_20' ) start [2025-03-29 06:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786987', 'tblTempUsageDetail_20' ) end [2025-03-29 06:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 06:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 06:24:21] Production.INFO: ==29745== Releasing lock... [2025-03-29 06:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 06:24:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-29 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 03:25:05 [end_date_ymd] => 2025-03-29 06:25:05 [RateCDR] => 1 ) [2025-03-29 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-29 03:25:05' and `end` < '2025-03-29 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-29 06:25:17] Production.INFO: count ==388 [2025-03-29 06:25:17] Production.ERROR: pbx CDR StartTime 2025-03-29 03:25:05 - End Time 2025-03-29 06:25:05 [2025-03-29 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786992', 'tblTempUsageDetail_20' ) start [2025-03-29 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786992', 'tblTempUsageDetail_20' ) end [2025-03-29 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786992', 'tblTempVendorCDR_20' ) start [2025-03-29 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786992', 'tblTempVendorCDR_20' ) end [2025-03-29 06:25:17] Production.INFO: ProcessCDR(1,14786992,1,1,2) [2025-03-29 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786992', 'tblTempUsageDetail_20' ) start [2025-03-29 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786992', 'tblTempUsageDetail_20' ) end [2025-03-29 06:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 06:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 06:25:21] Production.INFO: ==29820== Releasing lock... [2025-03-29 06:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 06:25:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-29 06:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 03:26:05 [end_date_ymd] => 2025-03-29 06:26:05 [RateCDR] => 1 ) [2025-03-29 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-29 03:26:05' and `end` < '2025-03-29 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-29 06:26:18] Production.INFO: count ==375 [2025-03-29 06:26:18] Production.ERROR: pbx CDR StartTime 2025-03-29 03:26:05 - End Time 2025-03-29 06:26:05 [2025-03-29 06:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786997', 'tblTempUsageDetail_20' ) start [2025-03-29 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14786997', 'tblTempUsageDetail_20' ) end [2025-03-29 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786997', 'tblTempVendorCDR_20' ) start [2025-03-29 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14786997', 'tblTempVendorCDR_20' ) end [2025-03-29 06:26:18] Production.INFO: ProcessCDR(1,14786997,1,1,2) [2025-03-29 06:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14786997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14786997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14786997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14786997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786997', 'tblTempUsageDetail_20' ) start [2025-03-29 06:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14786997', 'tblTempUsageDetail_20' ) end [2025-03-29 06:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 06:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 06:26:21] Production.INFO: ==29897== Releasing lock... [2025-03-29 06:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 06:26:21] Production.INFO: 31 MB #Memory Used# [2025-03-29 06:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 03:27:06 [end_date_ymd] => 2025-03-29 06:27:06 [RateCDR] => 1 ) [2025-03-29 06: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-29 03:27:06' and `end` < '2025-03-29 06: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-29 06:27:19] Production.INFO: count ==373 [2025-03-29 06:27:19] Production.ERROR: pbx CDR StartTime 2025-03-29 03:27:06 - End Time 2025-03-29 06:27:06 [2025-03-29 06:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 06:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787002', 'tblTempUsageDetail_20' ) start [2025-03-29 06:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787002', 'tblTempUsageDetail_20' ) end [2025-03-29 06:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787002', 'tblTempVendorCDR_20' ) start [2025-03-29 06:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787002', 'tblTempVendorCDR_20' ) end [2025-03-29 06:27:19] Production.INFO: ProcessCDR(1,14787002,1,1,2) [2025-03-29 06:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787002', 'tblTempUsageDetail_20' ) start [2025-03-29 06:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787002', 'tblTempUsageDetail_20' ) end [2025-03-29 06:27:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 06:27:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 06:27:22] Production.INFO: ==29972== Releasing lock... [2025-03-29 06:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 06:27:22] Production.INFO: 31 MB #Memory Used# [2025-03-29 06:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 03:28:05 [end_date_ymd] => 2025-03-29 06:28:05 [RateCDR] => 1 ) [2025-03-29 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-29 03:28:05' and `end` < '2025-03-29 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-29 06:28:18] Production.INFO: count ==373 [2025-03-29 06:28:18] Production.ERROR: pbx CDR StartTime 2025-03-29 03:28:05 - End Time 2025-03-29 06:28:05 [2025-03-29 06:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787007', 'tblTempUsageDetail_20' ) start [2025-03-29 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787007', 'tblTempUsageDetail_20' ) end [2025-03-29 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787007', 'tblTempVendorCDR_20' ) start [2025-03-29 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787007', 'tblTempVendorCDR_20' ) end [2025-03-29 06:28:18] Production.INFO: ProcessCDR(1,14787007,1,1,2) [2025-03-29 06:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787007', 'tblTempUsageDetail_20' ) start [2025-03-29 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787007', 'tblTempUsageDetail_20' ) end [2025-03-29 06:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 06:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 06:28:21] Production.INFO: ==30044== Releasing lock... [2025-03-29 06:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 06:28:21] Production.INFO: 31 MB #Memory Used# [2025-03-29 06:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 03:29:05 [end_date_ymd] => 2025-03-29 06:29:05 [RateCDR] => 1 ) [2025-03-29 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-29 03:29:05' and `end` < '2025-03-29 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-29 06:29:18] Production.INFO: count ==370 [2025-03-29 06:29:18] Production.ERROR: pbx CDR StartTime 2025-03-29 03:29:05 - End Time 2025-03-29 06:29:05 [2025-03-29 06:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787012', 'tblTempUsageDetail_20' ) start [2025-03-29 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787012', 'tblTempUsageDetail_20' ) end [2025-03-29 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787012', 'tblTempVendorCDR_20' ) start [2025-03-29 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787012', 'tblTempVendorCDR_20' ) end [2025-03-29 06:29:18] Production.INFO: ProcessCDR(1,14787012,1,1,2) [2025-03-29 06:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787012', 'tblTempUsageDetail_20' ) start [2025-03-29 06:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787012', 'tblTempUsageDetail_20' ) end [2025-03-29 06:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 06:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 06:29:21] Production.INFO: ==30115== Releasing lock... [2025-03-29 06:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 06:29:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-29 06:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 03:30:06 [end_date_ymd] => 2025-03-29 06:30:06 [RateCDR] => 1 ) [2025-03-29 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-29 03:30:06' and `end` < '2025-03-29 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-29 06:30:18] Production.INFO: count ==364 [2025-03-29 06:30:18] Production.ERROR: pbx CDR StartTime 2025-03-29 03:30:06 - End Time 2025-03-29 06:30:06 [2025-03-29 06:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787018', 'tblTempUsageDetail_20' ) start [2025-03-29 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787018', 'tblTempUsageDetail_20' ) end [2025-03-29 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787018', 'tblTempVendorCDR_20' ) start [2025-03-29 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787018', 'tblTempVendorCDR_20' ) end [2025-03-29 06:30:18] Production.INFO: ProcessCDR(1,14787018,1,1,2) [2025-03-29 06:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787018', 'tblTempUsageDetail_20' ) start [2025-03-29 06:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787018', 'tblTempUsageDetail_20' ) end [2025-03-29 06:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 06:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 06:30:22] Production.INFO: ==30197== Releasing lock... [2025-03-29 06:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 06:30:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-29 06:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 03:31:05 [end_date_ymd] => 2025-03-29 06:31:05 [RateCDR] => 1 ) [2025-03-29 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-29 03:31:05' and `end` < '2025-03-29 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-29 06:31:18] Production.INFO: count ==364 [2025-03-29 06:31:18] Production.ERROR: pbx CDR StartTime 2025-03-29 03:31:05 - End Time 2025-03-29 06:31:05 [2025-03-29 06:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787023', 'tblTempUsageDetail_20' ) start [2025-03-29 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787023', 'tblTempUsageDetail_20' ) end [2025-03-29 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787023', 'tblTempVendorCDR_20' ) start [2025-03-29 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787023', 'tblTempVendorCDR_20' ) end [2025-03-29 06:31:18] Production.INFO: ProcessCDR(1,14787023,1,1,2) [2025-03-29 06:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787023', 'tblTempUsageDetail_20' ) start [2025-03-29 06:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787023', 'tblTempUsageDetail_20' ) end [2025-03-29 06:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 06:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 06:31:21] Production.INFO: ==30271== Releasing lock... [2025-03-29 06:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 06:31:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-29 06:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 03:32:05 [end_date_ymd] => 2025-03-29 06:32:05 [RateCDR] => 1 ) [2025-03-29 06:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 03:32:05' and `end` < '2025-03-29 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-29 06:32:17] Production.INFO: count ==362 [2025-03-29 06:32:17] Production.ERROR: pbx CDR StartTime 2025-03-29 03:32:05 - End Time 2025-03-29 06:32:05 [2025-03-29 06:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787028', 'tblTempUsageDetail_20' ) start [2025-03-29 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787028', 'tblTempUsageDetail_20' ) end [2025-03-29 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787028', 'tblTempVendorCDR_20' ) start [2025-03-29 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787028', 'tblTempVendorCDR_20' ) end [2025-03-29 06:32:17] Production.INFO: ProcessCDR(1,14787028,1,1,2) [2025-03-29 06:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787028', 'tblTempUsageDetail_20' ) start [2025-03-29 06:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787028', 'tblTempUsageDetail_20' ) end [2025-03-29 06:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 06:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 06:32:21] Production.INFO: ==30341== Releasing lock... [2025-03-29 06:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 06:32:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-29 06:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 03:33:05 [end_date_ymd] => 2025-03-29 06:33:05 [RateCDR] => 1 ) [2025-03-29 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-29 03:33:05' and `end` < '2025-03-29 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-29 06:33:18] Production.INFO: count ==357 [2025-03-29 06:33:18] Production.ERROR: pbx CDR StartTime 2025-03-29 03:33:05 - End Time 2025-03-29 06:33:05 [2025-03-29 06:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787033', 'tblTempUsageDetail_20' ) start [2025-03-29 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787033', 'tblTempUsageDetail_20' ) end [2025-03-29 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787033', 'tblTempVendorCDR_20' ) start [2025-03-29 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787033', 'tblTempVendorCDR_20' ) end [2025-03-29 06:33:18] Production.INFO: ProcessCDR(1,14787033,1,1,2) [2025-03-29 06:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787033', 'tblTempUsageDetail_20' ) start [2025-03-29 06:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787033', 'tblTempUsageDetail_20' ) end [2025-03-29 06:33:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 06:33:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 06:33:22] Production.INFO: ==30413== Releasing lock... [2025-03-29 06:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 06:33:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-29 06:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 03:34:05 [end_date_ymd] => 2025-03-29 06:34:05 [RateCDR] => 1 ) [2025-03-29 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-29 03:34:05' and `end` < '2025-03-29 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-29 06:34:18] Production.INFO: count ==356 [2025-03-29 06:34:18] Production.ERROR: pbx CDR StartTime 2025-03-29 03:34:05 - End Time 2025-03-29 06:34:05 [2025-03-29 06:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787038', 'tblTempUsageDetail_20' ) start [2025-03-29 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787038', 'tblTempUsageDetail_20' ) end [2025-03-29 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787038', 'tblTempVendorCDR_20' ) start [2025-03-29 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787038', 'tblTempVendorCDR_20' ) end [2025-03-29 06:34:18] Production.INFO: ProcessCDR(1,14787038,1,1,2) [2025-03-29 06:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787038', 'tblTempUsageDetail_20' ) start [2025-03-29 06:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787038', 'tblTempUsageDetail_20' ) end [2025-03-29 06:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 06:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 06:34:21] Production.INFO: ==30486== Releasing lock... [2025-03-29 06:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 06:34:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-29 06:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 03:35:05 [end_date_ymd] => 2025-03-29 06:35:05 [RateCDR] => 1 ) [2025-03-29 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-29 03:35:05' and `end` < '2025-03-29 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-29 06:35:17] Production.INFO: count ==356 [2025-03-29 06:35:17] Production.ERROR: pbx CDR StartTime 2025-03-29 03:35:05 - End Time 2025-03-29 06:35:05 [2025-03-29 06:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787043', 'tblTempUsageDetail_20' ) start [2025-03-29 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787043', 'tblTempUsageDetail_20' ) end [2025-03-29 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787043', 'tblTempVendorCDR_20' ) start [2025-03-29 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787043', 'tblTempVendorCDR_20' ) end [2025-03-29 06:35:17] Production.INFO: ProcessCDR(1,14787043,1,1,2) [2025-03-29 06:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787043', 'tblTempUsageDetail_20' ) start [2025-03-29 06:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787043', 'tblTempUsageDetail_20' ) end [2025-03-29 06:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 06:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 06:35:21] Production.INFO: ==30563== Releasing lock... [2025-03-29 06:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 06:35:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-29 06:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 03:36:05 [end_date_ymd] => 2025-03-29 06:36:05 [RateCDR] => 1 ) [2025-03-29 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-29 03:36:05' and `end` < '2025-03-29 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-29 06:36:17] Production.INFO: count ==356 [2025-03-29 06:36:17] Production.ERROR: pbx CDR StartTime 2025-03-29 03:36:05 - End Time 2025-03-29 06:36:05 [2025-03-29 06:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787048', 'tblTempUsageDetail_20' ) start [2025-03-29 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787048', 'tblTempUsageDetail_20' ) end [2025-03-29 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787048', 'tblTempVendorCDR_20' ) start [2025-03-29 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787048', 'tblTempVendorCDR_20' ) end [2025-03-29 06:36:17] Production.INFO: ProcessCDR(1,14787048,1,1,2) [2025-03-29 06:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787048', 'tblTempUsageDetail_20' ) start [2025-03-29 06:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787048', 'tblTempUsageDetail_20' ) end [2025-03-29 06:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 06:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 06:36:21] Production.INFO: ==30637== Releasing lock... [2025-03-29 06:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 06:36:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-29 06:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 03:37:05 [end_date_ymd] => 2025-03-29 06:37:05 [RateCDR] => 1 ) [2025-03-29 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-29 03:37:05' and `end` < '2025-03-29 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-29 06:37:18] Production.INFO: count ==356 [2025-03-29 06:37:18] Production.ERROR: pbx CDR StartTime 2025-03-29 03:37:05 - End Time 2025-03-29 06:37:05 [2025-03-29 06:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787053', 'tblTempUsageDetail_20' ) start [2025-03-29 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787053', 'tblTempUsageDetail_20' ) end [2025-03-29 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787053', 'tblTempVendorCDR_20' ) start [2025-03-29 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787053', 'tblTempVendorCDR_20' ) end [2025-03-29 06:37:18] Production.INFO: ProcessCDR(1,14787053,1,1,2) [2025-03-29 06:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787053', 'tblTempUsageDetail_20' ) start [2025-03-29 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787053', 'tblTempUsageDetail_20' ) end [2025-03-29 06:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 06:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 06:37:21] Production.INFO: ==30751== Releasing lock... [2025-03-29 06:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 06:37:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-29 06:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 03:38:04 [end_date_ymd] => 2025-03-29 06:38:04 [RateCDR] => 1 ) [2025-03-29 06: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-29 03:38:04' and `end` < '2025-03-29 06: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-29 06:38:17] Production.INFO: count ==355 [2025-03-29 06:38:17] Production.ERROR: pbx CDR StartTime 2025-03-29 03:38:04 - End Time 2025-03-29 06:38:04 [2025-03-29 06:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787058', 'tblTempUsageDetail_20' ) start [2025-03-29 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787058', 'tblTempUsageDetail_20' ) end [2025-03-29 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787058', 'tblTempVendorCDR_20' ) start [2025-03-29 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787058', 'tblTempVendorCDR_20' ) end [2025-03-29 06:38:17] Production.INFO: ProcessCDR(1,14787058,1,1,2) [2025-03-29 06:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787058', 'tblTempUsageDetail_20' ) start [2025-03-29 06:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787058', 'tblTempUsageDetail_20' ) end [2025-03-29 06:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 06:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 06:38:21] Production.INFO: ==30824== Releasing lock... [2025-03-29 06:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 06:38:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-29 06:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 03:39:05 [end_date_ymd] => 2025-03-29 06:39:05 [RateCDR] => 1 ) [2025-03-29 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-29 03:39:05' and `end` < '2025-03-29 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-29 06:39:18] Production.INFO: count ==354 [2025-03-29 06:39:18] Production.ERROR: pbx CDR StartTime 2025-03-29 03:39:05 - End Time 2025-03-29 06:39:05 [2025-03-29 06:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787063', 'tblTempUsageDetail_20' ) start [2025-03-29 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787063', 'tblTempUsageDetail_20' ) end [2025-03-29 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787063', 'tblTempVendorCDR_20' ) start [2025-03-29 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787063', 'tblTempVendorCDR_20' ) end [2025-03-29 06:39:18] Production.INFO: ProcessCDR(1,14787063,1,1,2) [2025-03-29 06:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787063', 'tblTempUsageDetail_20' ) start [2025-03-29 06:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787063', 'tblTempUsageDetail_20' ) end [2025-03-29 06:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 06:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 06:39:21] Production.INFO: ==30899== Releasing lock... [2025-03-29 06:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 06:39:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-29 06:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 03:40:06 [end_date_ymd] => 2025-03-29 06:40:06 [RateCDR] => 1 ) [2025-03-29 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-29 03:40:06' and `end` < '2025-03-29 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-29 06:40:18] Production.INFO: count ==335 [2025-03-29 06:40:18] Production.ERROR: pbx CDR StartTime 2025-03-29 03:40:06 - End Time 2025-03-29 06:40:06 [2025-03-29 06:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787069', 'tblTempUsageDetail_20' ) start [2025-03-29 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787069', 'tblTempUsageDetail_20' ) end [2025-03-29 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787069', 'tblTempVendorCDR_20' ) start [2025-03-29 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787069', 'tblTempVendorCDR_20' ) end [2025-03-29 06:40:18] Production.INFO: ProcessCDR(1,14787069,1,1,2) [2025-03-29 06:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787069', 'tblTempUsageDetail_20' ) start [2025-03-29 06:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787069', 'tblTempUsageDetail_20' ) end [2025-03-29 06:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 06:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 06:40:22] Production.INFO: ==30974== Releasing lock... [2025-03-29 06:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 06:40:22] Production.INFO: 31 MB #Memory Used# [2025-03-29 06:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 03:41:05 [end_date_ymd] => 2025-03-29 06:41:05 [RateCDR] => 1 ) [2025-03-29 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-29 03:41:05' and `end` < '2025-03-29 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-29 06:41:17] Production.INFO: count ==314 [2025-03-29 06:41:17] Production.ERROR: pbx CDR StartTime 2025-03-29 03:41:05 - End Time 2025-03-29 06:41:05 [2025-03-29 06:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787074', 'tblTempUsageDetail_20' ) start [2025-03-29 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787074', 'tblTempUsageDetail_20' ) end [2025-03-29 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787074', 'tblTempVendorCDR_20' ) start [2025-03-29 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787074', 'tblTempVendorCDR_20' ) end [2025-03-29 06:41:17] Production.INFO: ProcessCDR(1,14787074,1,1,2) [2025-03-29 06:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787074', 'tblTempUsageDetail_20' ) start [2025-03-29 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787074', 'tblTempUsageDetail_20' ) end [2025-03-29 06:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 06:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 06:41:21] Production.INFO: ==31049== Releasing lock... [2025-03-29 06:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 06:41:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-29 06:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 03:42:05 [end_date_ymd] => 2025-03-29 06:42:05 [RateCDR] => 1 ) [2025-03-29 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-29 03:42:05' and `end` < '2025-03-29 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-29 06:42:18] Production.INFO: count ==299 [2025-03-29 06:42:18] Production.ERROR: pbx CDR StartTime 2025-03-29 03:42:05 - End Time 2025-03-29 06:42:05 [2025-03-29 06:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787079', 'tblTempUsageDetail_20' ) start [2025-03-29 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787079', 'tblTempUsageDetail_20' ) end [2025-03-29 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787079', 'tblTempVendorCDR_20' ) start [2025-03-29 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787079', 'tblTempVendorCDR_20' ) end [2025-03-29 06:42:18] Production.INFO: ProcessCDR(1,14787079,1,1,2) [2025-03-29 06:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787079', 'tblTempUsageDetail_20' ) start [2025-03-29 06:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787079', 'tblTempUsageDetail_20' ) end [2025-03-29 06:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 06:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 06:42:21] Production.INFO: ==31122== Releasing lock... [2025-03-29 06:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 06:42:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-29 06:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 03:43:05 [end_date_ymd] => 2025-03-29 06:43:05 [RateCDR] => 1 ) [2025-03-29 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-29 03:43:05' and `end` < '2025-03-29 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-29 06:43:18] Production.INFO: count ==286 [2025-03-29 06:43:18] Production.ERROR: pbx CDR StartTime 2025-03-29 03:43:05 - End Time 2025-03-29 06:43:05 [2025-03-29 06:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787084', 'tblTempUsageDetail_20' ) start [2025-03-29 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787084', 'tblTempUsageDetail_20' ) end [2025-03-29 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787084', 'tblTempVendorCDR_20' ) start [2025-03-29 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787084', 'tblTempVendorCDR_20' ) end [2025-03-29 06:43:18] Production.INFO: ProcessCDR(1,14787084,1,1,2) [2025-03-29 06:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787084', 'tblTempUsageDetail_20' ) start [2025-03-29 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787084', 'tblTempUsageDetail_20' ) end [2025-03-29 06:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 06:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 06:43:21] Production.INFO: ==31196== Releasing lock... [2025-03-29 06:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 06:43:21] Production.INFO: 31 MB #Memory Used# [2025-03-29 06:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 03:44:05 [end_date_ymd] => 2025-03-29 06:44:05 [RateCDR] => 1 ) [2025-03-29 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-29 03:44:05' and `end` < '2025-03-29 06:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 06:44:18] Production.INFO: count ==282 [2025-03-29 06:44:18] Production.ERROR: pbx CDR StartTime 2025-03-29 03:44:05 - End Time 2025-03-29 06:44:05 [2025-03-29 06:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787089', 'tblTempUsageDetail_20' ) start [2025-03-29 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787089', 'tblTempUsageDetail_20' ) end [2025-03-29 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787089', 'tblTempVendorCDR_20' ) start [2025-03-29 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787089', 'tblTempVendorCDR_20' ) end [2025-03-29 06:44:18] Production.INFO: ProcessCDR(1,14787089,1,1,2) [2025-03-29 06:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787089', 'tblTempUsageDetail_20' ) start [2025-03-29 06:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787089', 'tblTempUsageDetail_20' ) end [2025-03-29 06:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 06:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 06:44:21] Production.INFO: ==31269== Releasing lock... [2025-03-29 06:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 06:44:21] Production.INFO: 31 MB #Memory Used# [2025-03-29 06:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 03:45:05 [end_date_ymd] => 2025-03-29 06:45:05 [RateCDR] => 1 ) [2025-03-29 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-29 03:45:05' and `end` < '2025-03-29 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-29 06:45:17] Production.INFO: count ==282 [2025-03-29 06:45:18] Production.ERROR: pbx CDR StartTime 2025-03-29 03:45:05 - End Time 2025-03-29 06:45:05 [2025-03-29 06:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787094', 'tblTempUsageDetail_20' ) start [2025-03-29 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787094', 'tblTempUsageDetail_20' ) end [2025-03-29 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787094', 'tblTempVendorCDR_20' ) start [2025-03-29 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787094', 'tblTempVendorCDR_20' ) end [2025-03-29 06:45:18] Production.INFO: ProcessCDR(1,14787094,1,1,2) [2025-03-29 06:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787094', 'tblTempUsageDetail_20' ) start [2025-03-29 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787094', 'tblTempUsageDetail_20' ) end [2025-03-29 06:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 06:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 06:45:21] Production.INFO: ==31341== Releasing lock... [2025-03-29 06:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 06:45:21] Production.INFO: 31 MB #Memory Used# [2025-03-29 06:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 03:46:06 [end_date_ymd] => 2025-03-29 06:46:06 [RateCDR] => 1 ) [2025-03-29 06:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 03:46:06' and `end` < '2025-03-29 06:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 06:46:18] Production.INFO: count ==282 [2025-03-29 06:46:18] Production.ERROR: pbx CDR StartTime 2025-03-29 03:46:06 - End Time 2025-03-29 06:46:06 [2025-03-29 06:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787099', 'tblTempUsageDetail_20' ) start [2025-03-29 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787099', 'tblTempUsageDetail_20' ) end [2025-03-29 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787099', 'tblTempVendorCDR_20' ) start [2025-03-29 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787099', 'tblTempVendorCDR_20' ) end [2025-03-29 06:46:18] Production.INFO: ProcessCDR(1,14787099,1,1,2) [2025-03-29 06:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787099', 'tblTempUsageDetail_20' ) start [2025-03-29 06:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787099', 'tblTempUsageDetail_20' ) end [2025-03-29 06:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 06:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 06:46:22] Production.INFO: ==31413== Releasing lock... [2025-03-29 06:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 06:46:22] Production.INFO: 31 MB #Memory Used# [2025-03-29 06:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 03:47:05 [end_date_ymd] => 2025-03-29 06:47:05 [RateCDR] => 1 ) [2025-03-29 06:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 03:47:05' and `end` < '2025-03-29 06:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 06:47:18] Production.INFO: count ==282 [2025-03-29 06:47:18] Production.ERROR: pbx CDR StartTime 2025-03-29 03:47:05 - End Time 2025-03-29 06:47:05 [2025-03-29 06:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787104', 'tblTempUsageDetail_20' ) start [2025-03-29 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787104', 'tblTempUsageDetail_20' ) end [2025-03-29 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787104', 'tblTempVendorCDR_20' ) start [2025-03-29 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787104', 'tblTempVendorCDR_20' ) end [2025-03-29 06:47:18] Production.INFO: ProcessCDR(1,14787104,1,1,2) [2025-03-29 06:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787104', 'tblTempUsageDetail_20' ) start [2025-03-29 06:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787104', 'tblTempUsageDetail_20' ) end [2025-03-29 06:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 06:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 06:47:21] Production.INFO: ==31490== Releasing lock... [2025-03-29 06:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 06:47:21] Production.INFO: 31 MB #Memory Used# [2025-03-29 06:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 03:48:06 [end_date_ymd] => 2025-03-29 06:48:06 [RateCDR] => 1 ) [2025-03-29 06:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 03:48:06' and `end` < '2025-03-29 06:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 06:48:18] Production.INFO: count ==282 [2025-03-29 06:48:18] Production.ERROR: pbx CDR StartTime 2025-03-29 03:48:06 - End Time 2025-03-29 06:48:06 [2025-03-29 06:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787109', 'tblTempUsageDetail_20' ) start [2025-03-29 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787109', 'tblTempUsageDetail_20' ) end [2025-03-29 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787109', 'tblTempVendorCDR_20' ) start [2025-03-29 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787109', 'tblTempVendorCDR_20' ) end [2025-03-29 06:48:18] Production.INFO: ProcessCDR(1,14787109,1,1,2) [2025-03-29 06:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787109', 'tblTempUsageDetail_20' ) start [2025-03-29 06:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787109', 'tblTempUsageDetail_20' ) end [2025-03-29 06:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 06:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 06:48:22] Production.INFO: ==31561== Releasing lock... [2025-03-29 06:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 06:48:22] Production.INFO: 31 MB #Memory Used# [2025-03-29 06:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 03:49:05 [end_date_ymd] => 2025-03-29 06:49:05 [RateCDR] => 1 ) [2025-03-29 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-29 03:49:05' and `end` < '2025-03-29 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-29 06:49:18] Production.INFO: count ==281 [2025-03-29 06:49:18] Production.ERROR: pbx CDR StartTime 2025-03-29 03:49:05 - End Time 2025-03-29 06:49:05 [2025-03-29 06:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787114', 'tblTempUsageDetail_20' ) start [2025-03-29 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787114', 'tblTempUsageDetail_20' ) end [2025-03-29 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787114', 'tblTempVendorCDR_20' ) start [2025-03-29 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787114', 'tblTempVendorCDR_20' ) end [2025-03-29 06:49:18] Production.INFO: ProcessCDR(1,14787114,1,1,2) [2025-03-29 06:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787114', 'tblTempUsageDetail_20' ) start [2025-03-29 06:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787114', 'tblTempUsageDetail_20' ) end [2025-03-29 06:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 06:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 06:49:21] Production.INFO: ==31646== Releasing lock... [2025-03-29 06:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 06:49:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-29 06:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 03:50:06 [end_date_ymd] => 2025-03-29 06:50:06 [RateCDR] => 1 ) [2025-03-29 06:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 03:50:06' and `end` < '2025-03-29 06:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 06:50:18] Production.INFO: count ==273 [2025-03-29 06:50:19] Production.ERROR: pbx CDR StartTime 2025-03-29 03:50:06 - End Time 2025-03-29 06:50:06 [2025-03-29 06:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787120', 'tblTempUsageDetail_20' ) start [2025-03-29 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787120', 'tblTempUsageDetail_20' ) end [2025-03-29 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787120', 'tblTempVendorCDR_20' ) start [2025-03-29 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787120', 'tblTempVendorCDR_20' ) end [2025-03-29 06:50:19] Production.INFO: ProcessCDR(1,14787120,1,1,2) [2025-03-29 06:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787120', 'tblTempUsageDetail_20' ) start [2025-03-29 06:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787120', 'tblTempUsageDetail_20' ) end [2025-03-29 06:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 06:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 06:50:22] Production.INFO: ==31721== Releasing lock... [2025-03-29 06:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 06:50:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-29 06:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 03:51:05 [end_date_ymd] => 2025-03-29 06:51:05 [RateCDR] => 1 ) [2025-03-29 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-29 03:51:05' and `end` < '2025-03-29 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-29 06:51:17] Production.INFO: count ==273 [2025-03-29 06:51:17] Production.ERROR: pbx CDR StartTime 2025-03-29 03:51:05 - End Time 2025-03-29 06:51:05 [2025-03-29 06:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787125', 'tblTempUsageDetail_20' ) start [2025-03-29 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787125', 'tblTempUsageDetail_20' ) end [2025-03-29 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787125', 'tblTempVendorCDR_20' ) start [2025-03-29 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787125', 'tblTempVendorCDR_20' ) end [2025-03-29 06:51:17] Production.INFO: ProcessCDR(1,14787125,1,1,2) [2025-03-29 06:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787125', 'tblTempUsageDetail_20' ) start [2025-03-29 06:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787125', 'tblTempUsageDetail_20' ) end [2025-03-29 06:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 06:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 06:51:21] Production.INFO: ==31793== Releasing lock... [2025-03-29 06:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 06:51:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-29 06:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 03:52:06 [end_date_ymd] => 2025-03-29 06:52:06 [RateCDR] => 1 ) [2025-03-29 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-29 03:52:06' and `end` < '2025-03-29 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-29 06:52:18] Production.INFO: count ==273 [2025-03-29 06:52:18] Production.ERROR: pbx CDR StartTime 2025-03-29 03:52:06 - End Time 2025-03-29 06:52:06 [2025-03-29 06:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787130', 'tblTempUsageDetail_20' ) start [2025-03-29 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787130', 'tblTempUsageDetail_20' ) end [2025-03-29 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787130', 'tblTempVendorCDR_20' ) start [2025-03-29 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787130', 'tblTempVendorCDR_20' ) end [2025-03-29 06:52:18] Production.INFO: ProcessCDR(1,14787130,1,1,2) [2025-03-29 06:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787130', 'tblTempUsageDetail_20' ) start [2025-03-29 06:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787130', 'tblTempUsageDetail_20' ) end [2025-03-29 06:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 06:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 06:52:22] Production.INFO: ==31904== Releasing lock... [2025-03-29 06:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 06:52:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-29 06:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 03:53:05 [end_date_ymd] => 2025-03-29 06:53:05 [RateCDR] => 1 ) [2025-03-29 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-29 03:53:05' and `end` < '2025-03-29 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-29 06:53:18] Production.INFO: count ==274 [2025-03-29 06:53:18] Production.ERROR: pbx CDR StartTime 2025-03-29 03:53:05 - End Time 2025-03-29 06:53:05 [2025-03-29 06:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787135', 'tblTempUsageDetail_20' ) start [2025-03-29 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787135', 'tblTempUsageDetail_20' ) end [2025-03-29 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787135', 'tblTempVendorCDR_20' ) start [2025-03-29 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787135', 'tblTempVendorCDR_20' ) end [2025-03-29 06:53:18] Production.INFO: ProcessCDR(1,14787135,1,1,2) [2025-03-29 06:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787135', 'tblTempUsageDetail_20' ) start [2025-03-29 06:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787135', 'tblTempUsageDetail_20' ) end [2025-03-29 06:53:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 06:53:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 06:53:23] Production.INFO: ==31980== Releasing lock... [2025-03-29 06:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 06:53:23] Production.INFO: 30.5 MB #Memory Used# [2025-03-29 06:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 03:54:06 [end_date_ymd] => 2025-03-29 06:54:06 [RateCDR] => 1 ) [2025-03-29 06:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 03:54:06' and `end` < '2025-03-29 06:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 06:54:18] Production.INFO: count ==274 [2025-03-29 06:54:18] Production.ERROR: pbx CDR StartTime 2025-03-29 03:54:06 - End Time 2025-03-29 06:54:06 [2025-03-29 06:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787140', 'tblTempUsageDetail_20' ) start [2025-03-29 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787140', 'tblTempUsageDetail_20' ) end [2025-03-29 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787140', 'tblTempVendorCDR_20' ) start [2025-03-29 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787140', 'tblTempVendorCDR_20' ) end [2025-03-29 06:54:18] Production.INFO: ProcessCDR(1,14787140,1,1,2) [2025-03-29 06:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787140', 'tblTempUsageDetail_20' ) start [2025-03-29 06:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787140', 'tblTempUsageDetail_20' ) end [2025-03-29 06:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 06:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 06:54:22] Production.INFO: ==32052== Releasing lock... [2025-03-29 06:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 06:54:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-29 06:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 03:55:05 [end_date_ymd] => 2025-03-29 06:55:05 [RateCDR] => 1 ) [2025-03-29 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-29 03:55:05' and `end` < '2025-03-29 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-29 06:55:17] Production.INFO: count ==278 [2025-03-29 06:55:17] Production.ERROR: pbx CDR StartTime 2025-03-29 03:55:05 - End Time 2025-03-29 06:55:05 [2025-03-29 06:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787145', 'tblTempUsageDetail_20' ) start [2025-03-29 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787145', 'tblTempUsageDetail_20' ) end [2025-03-29 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787145', 'tblTempVendorCDR_20' ) start [2025-03-29 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787145', 'tblTempVendorCDR_20' ) end [2025-03-29 06:55:17] Production.INFO: ProcessCDR(1,14787145,1,1,2) [2025-03-29 06:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787145', 'tblTempUsageDetail_20' ) start [2025-03-29 06:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787145', 'tblTempUsageDetail_20' ) end [2025-03-29 06:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 06:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 06:55:21] Production.INFO: ==32126== Releasing lock... [2025-03-29 06:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 06:55:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-29 06:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 03:56:05 [end_date_ymd] => 2025-03-29 06:56:05 [RateCDR] => 1 ) [2025-03-29 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-29 03:56:05' and `end` < '2025-03-29 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-29 06:56:18] Production.INFO: count ==283 [2025-03-29 06:56:18] Production.ERROR: pbx CDR StartTime 2025-03-29 03:56:05 - End Time 2025-03-29 06:56:05 [2025-03-29 06:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787150', 'tblTempUsageDetail_20' ) start [2025-03-29 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787150', 'tblTempUsageDetail_20' ) end [2025-03-29 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787150', 'tblTempVendorCDR_20' ) start [2025-03-29 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787150', 'tblTempVendorCDR_20' ) end [2025-03-29 06:56:18] Production.INFO: ProcessCDR(1,14787150,1,1,2) [2025-03-29 06:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787150', 'tblTempUsageDetail_20' ) start [2025-03-29 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787150', 'tblTempUsageDetail_20' ) end [2025-03-29 06:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 06:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 06:56:22] Production.INFO: ==32201== Releasing lock... [2025-03-29 06:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 06:56:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-29 06:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 03:57:05 [end_date_ymd] => 2025-03-29 06:57:05 [RateCDR] => 1 ) [2025-03-29 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-29 03:57:05' and `end` < '2025-03-29 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-29 06:57:18] Production.INFO: count ==283 [2025-03-29 06:57:18] Production.ERROR: pbx CDR StartTime 2025-03-29 03:57:05 - End Time 2025-03-29 06:57:05 [2025-03-29 06:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787155', 'tblTempUsageDetail_20' ) start [2025-03-29 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787155', 'tblTempUsageDetail_20' ) end [2025-03-29 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787155', 'tblTempVendorCDR_20' ) start [2025-03-29 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787155', 'tblTempVendorCDR_20' ) end [2025-03-29 06:57:18] Production.INFO: ProcessCDR(1,14787155,1,1,2) [2025-03-29 06:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787155', 'tblTempUsageDetail_20' ) start [2025-03-29 06:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787155', 'tblTempUsageDetail_20' ) end [2025-03-29 06:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 06:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 06:57:21] Production.INFO: ==32271== Releasing lock... [2025-03-29 06:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 06:57:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-29 06:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 03:58:05 [end_date_ymd] => 2025-03-29 06:58:05 [RateCDR] => 1 ) [2025-03-29 06:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 03:58:05' and `end` < '2025-03-29 06:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 06:58:18] Production.INFO: count ==283 [2025-03-29 06:58:18] Production.ERROR: pbx CDR StartTime 2025-03-29 03:58:05 - End Time 2025-03-29 06:58:05 [2025-03-29 06:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787160', 'tblTempUsageDetail_20' ) start [2025-03-29 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787160', 'tblTempUsageDetail_20' ) end [2025-03-29 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787160', 'tblTempVendorCDR_20' ) start [2025-03-29 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787160', 'tblTempVendorCDR_20' ) end [2025-03-29 06:58:18] Production.INFO: ProcessCDR(1,14787160,1,1,2) [2025-03-29 06:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787160', 'tblTempUsageDetail_20' ) start [2025-03-29 06:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787160', 'tblTempUsageDetail_20' ) end [2025-03-29 06:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 06:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 06:58:21] Production.INFO: ==32345== Releasing lock... [2025-03-29 06:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 06:58:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-29 06:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 03:59:04 [end_date_ymd] => 2025-03-29 06:59:04 [RateCDR] => 1 ) [2025-03-29 06:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 03:59:04' and `end` < '2025-03-29 06:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 06:59:17] Production.INFO: count ==225 [2025-03-29 06:59:17] Production.ERROR: pbx CDR StartTime 2025-03-29 03:59:04 - End Time 2025-03-29 06:59:04 [2025-03-29 06:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787165', 'tblTempUsageDetail_20' ) start [2025-03-29 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787165', 'tblTempUsageDetail_20' ) end [2025-03-29 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787165', 'tblTempVendorCDR_20' ) start [2025-03-29 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787165', 'tblTempVendorCDR_20' ) end [2025-03-29 06:59:17] Production.INFO: ProcessCDR(1,14787165,1,1,2) [2025-03-29 06:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 06:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 06:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787165', 'tblTempUsageDetail_20' ) start [2025-03-29 06:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787165', 'tblTempUsageDetail_20' ) end [2025-03-29 06:59:20] Production.ERROR: pbx prc_insertCDR start [2025-03-29 06:59:20] Production.ERROR: pbx prc_insertCDR end [2025-03-29 06:59:20] Production.INFO: ==32416== Releasing lock... [2025-03-29 06:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 06:59:20] Production.INFO: 30 MB #Memory Used# [2025-03-29 07:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 04:00:06 [end_date_ymd] => 2025-03-29 07:00:06 [RateCDR] => 1 ) [2025-03-29 07:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 04:00:06' and `end` < '2025-03-29 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-29 07:00:19] Production.INFO: count ==174 [2025-03-29 07:00:19] Production.ERROR: pbx CDR StartTime 2025-03-29 04:00:06 - End Time 2025-03-29 07:00:06 [2025-03-29 07:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787171', 'tblTempUsageDetail_20' ) start [2025-03-29 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787171', 'tblTempUsageDetail_20' ) end [2025-03-29 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787171', 'tblTempVendorCDR_20' ) start [2025-03-29 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787171', 'tblTempVendorCDR_20' ) end [2025-03-29 07:00:19] Production.INFO: ProcessCDR(1,14787171,1,1,2) [2025-03-29 07:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787171', 'tblTempUsageDetail_20' ) start [2025-03-29 07:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787171', 'tblTempUsageDetail_20' ) end [2025-03-29 07:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 07:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 07:00:23] Production.INFO: ==32490== Releasing lock... [2025-03-29 07:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 07:00:23] Production.INFO: 29.75 MB #Memory Used# [2025-03-29 07:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 04:01:05 [end_date_ymd] => 2025-03-29 07:01:05 [RateCDR] => 1 ) [2025-03-29 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-29 04:01:05' and `end` < '2025-03-29 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-29 07:01:19] Production.INFO: count ==172 [2025-03-29 07:01:19] Production.ERROR: pbx CDR StartTime 2025-03-29 04:01:05 - End Time 2025-03-29 07:01:05 [2025-03-29 07:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 07:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787176', 'tblTempUsageDetail_20' ) start [2025-03-29 07:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787176', 'tblTempUsageDetail_20' ) end [2025-03-29 07:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787176', 'tblTempVendorCDR_20' ) start [2025-03-29 07:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787176', 'tblTempVendorCDR_20' ) end [2025-03-29 07:01:19] Production.INFO: ProcessCDR(1,14787176,1,1,2) [2025-03-29 07:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787176', 'tblTempUsageDetail_20' ) start [2025-03-29 07:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787176', 'tblTempUsageDetail_20' ) end [2025-03-29 07:01:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 07:01:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 07:01:22] Production.INFO: ==32619== Releasing lock... [2025-03-29 07:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 07:01:22] Production.INFO: 30 MB #Memory Used# [2025-03-29 07:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 04:02:05 [end_date_ymd] => 2025-03-29 07:02:05 [RateCDR] => 1 ) [2025-03-29 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-29 04:02:05' and `end` < '2025-03-29 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-29 07:02:19] Production.INFO: count ==170 [2025-03-29 07:02:19] Production.ERROR: pbx CDR StartTime 2025-03-29 04:02:05 - End Time 2025-03-29 07:02:05 [2025-03-29 07:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787181', 'tblTempUsageDetail_20' ) start [2025-03-29 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787181', 'tblTempUsageDetail_20' ) end [2025-03-29 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787181', 'tblTempVendorCDR_20' ) start [2025-03-29 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787181', 'tblTempVendorCDR_20' ) end [2025-03-29 07:02:19] Production.INFO: ProcessCDR(1,14787181,1,1,2) [2025-03-29 07:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787181', 'tblTempUsageDetail_20' ) start [2025-03-29 07:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787181', 'tblTempUsageDetail_20' ) end [2025-03-29 07:02:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 07:02:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 07:02:23] Production.INFO: ==32733== Releasing lock... [2025-03-29 07:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 07:02:23] Production.INFO: 29.75 MB #Memory Used# [2025-03-29 07:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 04:03:05 [end_date_ymd] => 2025-03-29 07:03:05 [RateCDR] => 1 ) [2025-03-29 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-29 04:03:05' and `end` < '2025-03-29 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-29 07:03:18] Production.INFO: count ==170 [2025-03-29 07:03:18] Production.ERROR: pbx CDR StartTime 2025-03-29 04:03:05 - End Time 2025-03-29 07:03:05 [2025-03-29 07:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787186', 'tblTempUsageDetail_20' ) start [2025-03-29 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787186', 'tblTempUsageDetail_20' ) end [2025-03-29 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787186', 'tblTempVendorCDR_20' ) start [2025-03-29 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787186', 'tblTempVendorCDR_20' ) end [2025-03-29 07:03:18] Production.INFO: ProcessCDR(1,14787186,1,1,2) [2025-03-29 07:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787186', 'tblTempUsageDetail_20' ) start [2025-03-29 07:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787186', 'tblTempUsageDetail_20' ) end [2025-03-29 07:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 07:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 07:03:22] Production.INFO: ==357== Releasing lock... [2025-03-29 07:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 07:03:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-29 07:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 04:04:06 [end_date_ymd] => 2025-03-29 07:04:06 [RateCDR] => 1 ) [2025-03-29 07:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 04:04:06' and `end` < '2025-03-29 07:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 07:04:19] Production.INFO: count ==170 [2025-03-29 07:04:19] Production.ERROR: pbx CDR StartTime 2025-03-29 04:04:06 - End Time 2025-03-29 07:04:06 [2025-03-29 07:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787191', 'tblTempUsageDetail_20' ) start [2025-03-29 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787191', 'tblTempUsageDetail_20' ) end [2025-03-29 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787191', 'tblTempVendorCDR_20' ) start [2025-03-29 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787191', 'tblTempVendorCDR_20' ) end [2025-03-29 07:04:19] Production.INFO: ProcessCDR(1,14787191,1,1,2) [2025-03-29 07:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787191', 'tblTempUsageDetail_20' ) start [2025-03-29 07:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787191', 'tblTempUsageDetail_20' ) end [2025-03-29 07:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 07:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 07:04:22] Production.INFO: ==431== Releasing lock... [2025-03-29 07:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 07:04:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-29 07:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 04:05:05 [end_date_ymd] => 2025-03-29 07:05:05 [RateCDR] => 1 ) [2025-03-29 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-29 04:05:05' and `end` < '2025-03-29 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-29 07:05:18] Production.INFO: count ==170 [2025-03-29 07:05:18] Production.ERROR: pbx CDR StartTime 2025-03-29 04:05:05 - End Time 2025-03-29 07:05:05 [2025-03-29 07:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787196', 'tblTempUsageDetail_20' ) start [2025-03-29 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787196', 'tblTempUsageDetail_20' ) end [2025-03-29 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787196', 'tblTempVendorCDR_20' ) start [2025-03-29 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787196', 'tblTempVendorCDR_20' ) end [2025-03-29 07:05:18] Production.INFO: ProcessCDR(1,14787196,1,1,2) [2025-03-29 07:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787196', 'tblTempUsageDetail_20' ) start [2025-03-29 07:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787196', 'tblTempUsageDetail_20' ) end [2025-03-29 07:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 07:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 07:05:21] Production.INFO: ==585== Releasing lock... [2025-03-29 07:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 07:05:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-29 07:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 04:06:05 [end_date_ymd] => 2025-03-29 07:06:05 [RateCDR] => 1 ) [2025-03-29 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-29 04:06:05' and `end` < '2025-03-29 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-29 07:06:19] Production.INFO: count ==170 [2025-03-29 07:06:19] Production.ERROR: pbx CDR StartTime 2025-03-29 04:06:05 - End Time 2025-03-29 07:06:05 [2025-03-29 07:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787201', 'tblTempUsageDetail_20' ) start [2025-03-29 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787201', 'tblTempUsageDetail_20' ) end [2025-03-29 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787201', 'tblTempVendorCDR_20' ) start [2025-03-29 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787201', 'tblTempVendorCDR_20' ) end [2025-03-29 07:06:19] Production.INFO: ProcessCDR(1,14787201,1,1,2) [2025-03-29 07:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787201', 'tblTempUsageDetail_20' ) start [2025-03-29 07:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787201', 'tblTempUsageDetail_20' ) end [2025-03-29 07:06:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 07:06:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 07:06:23] Production.INFO: ==676== Releasing lock... [2025-03-29 07:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 07:06:23] Production.INFO: 29.75 MB #Memory Used# [2025-03-29 07:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 04:07:05 [end_date_ymd] => 2025-03-29 07:07:05 [RateCDR] => 1 ) [2025-03-29 07:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 04:07:05' and `end` < '2025-03-29 07:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 07:07:19] Production.INFO: count ==170 [2025-03-29 07:07:19] Production.ERROR: pbx CDR StartTime 2025-03-29 04:07:05 - End Time 2025-03-29 07:07:05 [2025-03-29 07:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787206', 'tblTempUsageDetail_20' ) start [2025-03-29 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787206', 'tblTempUsageDetail_20' ) end [2025-03-29 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787206', 'tblTempVendorCDR_20' ) start [2025-03-29 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787206', 'tblTempVendorCDR_20' ) end [2025-03-29 07:07:19] Production.INFO: ProcessCDR(1,14787206,1,1,2) [2025-03-29 07:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787206', 'tblTempUsageDetail_20' ) start [2025-03-29 07:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787206', 'tblTempUsageDetail_20' ) end [2025-03-29 07:07:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 07:07:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 07:07:23] Production.INFO: ==802== Releasing lock... [2025-03-29 07:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 07:07:23] Production.INFO: 29.75 MB #Memory Used# [2025-03-29 07:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 04:08:06 [end_date_ymd] => 2025-03-29 07:08:06 [RateCDR] => 1 ) [2025-03-29 07: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-29 04:08:06' and `end` < '2025-03-29 07: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-29 07:08:18] Production.INFO: count ==169 [2025-03-29 07:08:18] Production.ERROR: pbx CDR StartTime 2025-03-29 04:08:06 - End Time 2025-03-29 07:08:06 [2025-03-29 07:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787211', 'tblTempUsageDetail_20' ) start [2025-03-29 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787211', 'tblTempUsageDetail_20' ) end [2025-03-29 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787211', 'tblTempVendorCDR_20' ) start [2025-03-29 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787211', 'tblTempVendorCDR_20' ) end [2025-03-29 07:08:18] Production.INFO: ProcessCDR(1,14787211,1,1,2) [2025-03-29 07:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787211', 'tblTempUsageDetail_20' ) start [2025-03-29 07:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787211', 'tblTempUsageDetail_20' ) end [2025-03-29 07:08:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 07:08:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 07:08:22] Production.INFO: ==959== Releasing lock... [2025-03-29 07:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 07:08:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-29 07:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 04:09:05 [end_date_ymd] => 2025-03-29 07:09:05 [RateCDR] => 1 ) [2025-03-29 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-29 04:09:05' and `end` < '2025-03-29 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-29 07:09:18] Production.INFO: count ==169 [2025-03-29 07:09:18] Production.ERROR: pbx CDR StartTime 2025-03-29 04:09:05 - End Time 2025-03-29 07:09:05 [2025-03-29 07:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787216', 'tblTempUsageDetail_20' ) start [2025-03-29 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787216', 'tblTempUsageDetail_20' ) end [2025-03-29 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787216', 'tblTempVendorCDR_20' ) start [2025-03-29 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787216', 'tblTempVendorCDR_20' ) end [2025-03-29 07:09:18] Production.INFO: ProcessCDR(1,14787216,1,1,2) [2025-03-29 07:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787216', 'tblTempUsageDetail_20' ) start [2025-03-29 07:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787216', 'tblTempUsageDetail_20' ) end [2025-03-29 07:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 07:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 07:09:21] Production.INFO: ==1033== Releasing lock... [2025-03-29 07:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 07:09:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-29 07:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 04:10:06 [end_date_ymd] => 2025-03-29 07:10:06 [RateCDR] => 1 ) [2025-03-29 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-29 04:10:06' and `end` < '2025-03-29 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-29 07:10:19] Production.INFO: count ==170 [2025-03-29 07:10:20] Production.ERROR: pbx CDR StartTime 2025-03-29 04:10:06 - End Time 2025-03-29 07:10:06 [2025-03-29 07:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 07:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787222', 'tblTempUsageDetail_20' ) start [2025-03-29 07:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787222', 'tblTempUsageDetail_20' ) end [2025-03-29 07:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787222', 'tblTempVendorCDR_20' ) start [2025-03-29 07:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787222', 'tblTempVendorCDR_20' ) end [2025-03-29 07:10:20] Production.INFO: ProcessCDR(1,14787222,1,1,2) [2025-03-29 07:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787222', 'tblTempUsageDetail_20' ) start [2025-03-29 07:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787222', 'tblTempUsageDetail_20' ) end [2025-03-29 07:10:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 07:10:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 07:10:23] Production.INFO: ==1106== Releasing lock... [2025-03-29 07:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 07:10:23] Production.INFO: 29.75 MB #Memory Used# [2025-03-29 07:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 04:11:05 [end_date_ymd] => 2025-03-29 07:11:05 [RateCDR] => 1 ) [2025-03-29 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-29 04:11:05' and `end` < '2025-03-29 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-29 07:11:18] Production.INFO: count ==174 [2025-03-29 07:11:19] Production.ERROR: pbx CDR StartTime 2025-03-29 04:11:05 - End Time 2025-03-29 07:11:05 [2025-03-29 07:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787227', 'tblTempUsageDetail_20' ) start [2025-03-29 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787227', 'tblTempUsageDetail_20' ) end [2025-03-29 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787227', 'tblTempVendorCDR_20' ) start [2025-03-29 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787227', 'tblTempVendorCDR_20' ) end [2025-03-29 07:11:19] Production.INFO: ProcessCDR(1,14787227,1,1,2) [2025-03-29 07:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787227', 'tblTempUsageDetail_20' ) start [2025-03-29 07:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787227', 'tblTempUsageDetail_20' ) end [2025-03-29 07:11:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 07:11:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 07:11:22] Production.INFO: ==1191== Releasing lock... [2025-03-29 07:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 07:11:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-29 07:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 04:12:05 [end_date_ymd] => 2025-03-29 07:12:05 [RateCDR] => 1 ) [2025-03-29 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-29 04:12:05' and `end` < '2025-03-29 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-29 07:12:18] Production.INFO: count ==173 [2025-03-29 07:12:18] Production.ERROR: pbx CDR StartTime 2025-03-29 04:12:05 - End Time 2025-03-29 07:12:05 [2025-03-29 07:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787232', 'tblTempUsageDetail_20' ) start [2025-03-29 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787232', 'tblTempUsageDetail_20' ) end [2025-03-29 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787232', 'tblTempVendorCDR_20' ) start [2025-03-29 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787232', 'tblTempVendorCDR_20' ) end [2025-03-29 07:12:18] Production.INFO: ProcessCDR(1,14787232,1,1,2) [2025-03-29 07:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787232', 'tblTempUsageDetail_20' ) start [2025-03-29 07:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787232', 'tblTempUsageDetail_20' ) end [2025-03-29 07:12:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 07:12:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 07:12:22] Production.INFO: ==1353== Releasing lock... [2025-03-29 07:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 07:12:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-29 07:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 04:13:06 [end_date_ymd] => 2025-03-29 07:13:06 [RateCDR] => 1 ) [2025-03-29 07:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 04:13:06' and `end` < '2025-03-29 07:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 07:13:19] Production.INFO: count ==174 [2025-03-29 07:13:19] Production.ERROR: pbx CDR StartTime 2025-03-29 04:13:06 - End Time 2025-03-29 07:13:06 [2025-03-29 07:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 07:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787237', 'tblTempUsageDetail_20' ) start [2025-03-29 07:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787237', 'tblTempUsageDetail_20' ) end [2025-03-29 07:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787237', 'tblTempVendorCDR_20' ) start [2025-03-29 07:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787237', 'tblTempVendorCDR_20' ) end [2025-03-29 07:13:19] Production.INFO: ProcessCDR(1,14787237,1,1,2) [2025-03-29 07:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787237', 'tblTempUsageDetail_20' ) start [2025-03-29 07:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787237', 'tblTempUsageDetail_20' ) end [2025-03-29 07:13:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 07:13:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 07:13:24] Production.INFO: ==1424== Releasing lock... [2025-03-29 07:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 07:13:24] Production.INFO: 29.75 MB #Memory Used# [2025-03-29 07:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 04:14:05 [end_date_ymd] => 2025-03-29 07:14:05 [RateCDR] => 1 ) [2025-03-29 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-29 04:14:05' and `end` < '2025-03-29 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-29 07:14:19] Production.INFO: count ==174 [2025-03-29 07:14:19] Production.ERROR: pbx CDR StartTime 2025-03-29 04:14:05 - End Time 2025-03-29 07:14:05 [2025-03-29 07:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787242', 'tblTempUsageDetail_20' ) start [2025-03-29 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787242', 'tblTempUsageDetail_20' ) end [2025-03-29 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787242', 'tblTempVendorCDR_20' ) start [2025-03-29 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787242', 'tblTempVendorCDR_20' ) end [2025-03-29 07:14:19] Production.INFO: ProcessCDR(1,14787242,1,1,2) [2025-03-29 07:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787242', 'tblTempUsageDetail_20' ) start [2025-03-29 07:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787242', 'tblTempUsageDetail_20' ) end [2025-03-29 07:14:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 07:14:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 07:14:22] Production.INFO: ==1499== Releasing lock... [2025-03-29 07:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 07:14:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-29 07:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 04:15:06 [end_date_ymd] => 2025-03-29 07:15:06 [RateCDR] => 1 ) [2025-03-29 07:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 04:15:06' and `end` < '2025-03-29 07:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 07:15:18] Production.INFO: count ==173 [2025-03-29 07:15:18] Production.ERROR: pbx CDR StartTime 2025-03-29 04:15:06 - End Time 2025-03-29 07:15:06 [2025-03-29 07:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787247', 'tblTempUsageDetail_20' ) start [2025-03-29 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787247', 'tblTempUsageDetail_20' ) end [2025-03-29 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787247', 'tblTempVendorCDR_20' ) start [2025-03-29 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787247', 'tblTempVendorCDR_20' ) end [2025-03-29 07:15:18] Production.INFO: ProcessCDR(1,14787247,1,1,2) [2025-03-29 07:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787247', 'tblTempUsageDetail_20' ) start [2025-03-29 07:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787247', 'tblTempUsageDetail_20' ) end [2025-03-29 07:15:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 07:15:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 07:15:22] Production.INFO: ==1689== Releasing lock... [2025-03-29 07:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 07:15:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-29 07:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 04:16:05 [end_date_ymd] => 2025-03-29 07:16:05 [RateCDR] => 1 ) [2025-03-29 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-29 04:16:05' and `end` < '2025-03-29 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-29 07:16:17] Production.INFO: count ==173 [2025-03-29 07:16:18] Production.ERROR: pbx CDR StartTime 2025-03-29 04:16:05 - End Time 2025-03-29 07:16:05 [2025-03-29 07:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787252', 'tblTempUsageDetail_20' ) start [2025-03-29 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787252', 'tblTempUsageDetail_20' ) end [2025-03-29 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787252', 'tblTempVendorCDR_20' ) start [2025-03-29 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787252', 'tblTempVendorCDR_20' ) end [2025-03-29 07:16:18] Production.INFO: ProcessCDR(1,14787252,1,1,2) [2025-03-29 07:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787252', 'tblTempUsageDetail_20' ) start [2025-03-29 07:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787252', 'tblTempUsageDetail_20' ) end [2025-03-29 07:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 07:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 07:16:21] Production.INFO: ==1759== Releasing lock... [2025-03-29 07:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 07:16:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-29 07:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 04:17:06 [end_date_ymd] => 2025-03-29 07:17:06 [RateCDR] => 1 ) [2025-03-29 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-29 04:17:06' and `end` < '2025-03-29 07: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-29 07:17:21] Production.INFO: count ==173 [2025-03-29 07:17:21] Production.ERROR: pbx CDR StartTime 2025-03-29 04:17:06 - End Time 2025-03-29 07:17:06 [2025-03-29 07:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 07:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787257', 'tblTempUsageDetail_20' ) start [2025-03-29 07:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787257', 'tblTempUsageDetail_20' ) end [2025-03-29 07:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787257', 'tblTempVendorCDR_20' ) start [2025-03-29 07:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787257', 'tblTempVendorCDR_20' ) end [2025-03-29 07:17:21] Production.INFO: ProcessCDR(1,14787257,1,1,2) [2025-03-29 07:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787257', 'tblTempUsageDetail_20' ) start [2025-03-29 07:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787257', 'tblTempUsageDetail_20' ) end [2025-03-29 07:17:25] Production.ERROR: pbx prc_insertCDR start [2025-03-29 07:17:25] Production.ERROR: pbx prc_insertCDR end [2025-03-29 07:17:25] Production.INFO: ==1836== Releasing lock... [2025-03-29 07:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 07:17:25] Production.INFO: 29.5 MB #Memory Used# [2025-03-29 07:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 04:18:06 [end_date_ymd] => 2025-03-29 07:18:06 [RateCDR] => 1 ) [2025-03-29 07:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 04:18:06' and `end` < '2025-03-29 07:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 07:18:18] Production.INFO: count ==172 [2025-03-29 07:18:18] Production.ERROR: pbx CDR StartTime 2025-03-29 04:18:06 - End Time 2025-03-29 07:18:06 [2025-03-29 07:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787262', 'tblTempUsageDetail_20' ) start [2025-03-29 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787262', 'tblTempUsageDetail_20' ) end [2025-03-29 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787262', 'tblTempVendorCDR_20' ) start [2025-03-29 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787262', 'tblTempVendorCDR_20' ) end [2025-03-29 07:18:18] Production.INFO: ProcessCDR(1,14787262,1,1,2) [2025-03-29 07:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787262', 'tblTempUsageDetail_20' ) start [2025-03-29 07:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787262', 'tblTempUsageDetail_20' ) end [2025-03-29 07:18:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 07:18:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 07:18:22] Production.INFO: ==1910== Releasing lock... [2025-03-29 07:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 07:18:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-29 07:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 04:19:06 [end_date_ymd] => 2025-03-29 07:19:06 [RateCDR] => 1 ) [2025-03-29 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-29 04:19:06' and `end` < '2025-03-29 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-29 07:19:18] Production.INFO: count ==172 [2025-03-29 07:19:18] Production.ERROR: pbx CDR StartTime 2025-03-29 04:19:06 - End Time 2025-03-29 07:19:06 [2025-03-29 07:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787267', 'tblTempUsageDetail_20' ) start [2025-03-29 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787267', 'tblTempUsageDetail_20' ) end [2025-03-29 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787267', 'tblTempVendorCDR_20' ) start [2025-03-29 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787267', 'tblTempVendorCDR_20' ) end [2025-03-29 07:19:18] Production.INFO: ProcessCDR(1,14787267,1,1,2) [2025-03-29 07:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787267', 'tblTempUsageDetail_20' ) start [2025-03-29 07:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787267', 'tblTempUsageDetail_20' ) end [2025-03-29 07:19:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 07:19:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 07:19:22] Production.INFO: ==2006== Releasing lock... [2025-03-29 07:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 07:19:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-29 07:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 04:20:06 [end_date_ymd] => 2025-03-29 07:20:06 [RateCDR] => 1 ) [2025-03-29 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-29 04:20:06' and `end` < '2025-03-29 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-29 07:20:19] Production.INFO: count ==172 [2025-03-29 07:20:19] Production.ERROR: pbx CDR StartTime 2025-03-29 04:20:06 - End Time 2025-03-29 07:20:06 [2025-03-29 07:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787273', 'tblTempUsageDetail_20' ) start [2025-03-29 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787273', 'tblTempUsageDetail_20' ) end [2025-03-29 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787273', 'tblTempVendorCDR_20' ) start [2025-03-29 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787273', 'tblTempVendorCDR_20' ) end [2025-03-29 07:20:19] Production.INFO: ProcessCDR(1,14787273,1,1,2) [2025-03-29 07:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787273', 'tblTempUsageDetail_20' ) start [2025-03-29 07:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787273', 'tblTempUsageDetail_20' ) end [2025-03-29 07:20:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 07:20:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 07:20:23] Production.INFO: ==2126== Releasing lock... [2025-03-29 07:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 07:20:23] Production.INFO: 29.5 MB #Memory Used# [2025-03-29 07:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 04:21:06 [end_date_ymd] => 2025-03-29 07:21:06 [RateCDR] => 1 ) [2025-03-29 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-29 04:21:06' and `end` < '2025-03-29 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-29 07:21:19] Production.INFO: count ==172 [2025-03-29 07:21:19] Production.ERROR: pbx CDR StartTime 2025-03-29 04:21:06 - End Time 2025-03-29 07:21:06 [2025-03-29 07:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 07:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787278', 'tblTempUsageDetail_20' ) start [2025-03-29 07:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787278', 'tblTempUsageDetail_20' ) end [2025-03-29 07:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787278', 'tblTempVendorCDR_20' ) start [2025-03-29 07:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787278', 'tblTempVendorCDR_20' ) end [2025-03-29 07:21:19] Production.INFO: ProcessCDR(1,14787278,1,1,2) [2025-03-29 07:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787278', 'tblTempUsageDetail_20' ) start [2025-03-29 07:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787278', 'tblTempUsageDetail_20' ) end [2025-03-29 07:21:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 07:21:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 07:21:23] Production.INFO: ==2247== Releasing lock... [2025-03-29 07:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 07:21:23] Production.INFO: 29.5 MB #Memory Used# [2025-03-29 07:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 04:22:05 [end_date_ymd] => 2025-03-29 07:22:05 [RateCDR] => 1 ) [2025-03-29 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-29 04:22:05' and `end` < '2025-03-29 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-29 07:22:18] Production.INFO: count ==172 [2025-03-29 07:22:18] Production.ERROR: pbx CDR StartTime 2025-03-29 04:22:05 - End Time 2025-03-29 07:22:05 [2025-03-29 07:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787283', 'tblTempUsageDetail_20' ) start [2025-03-29 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787283', 'tblTempUsageDetail_20' ) end [2025-03-29 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787283', 'tblTempVendorCDR_20' ) start [2025-03-29 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787283', 'tblTempVendorCDR_20' ) end [2025-03-29 07:22:18] Production.INFO: ProcessCDR(1,14787283,1,1,2) [2025-03-29 07:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787283', 'tblTempUsageDetail_20' ) start [2025-03-29 07:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787283', 'tblTempUsageDetail_20' ) end [2025-03-29 07:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 07:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 07:22:22] Production.INFO: ==2362== Releasing lock... [2025-03-29 07:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 07:22:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-29 07:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 04:23:06 [end_date_ymd] => 2025-03-29 07:23:06 [RateCDR] => 1 ) [2025-03-29 07:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 04:23:06' and `end` < '2025-03-29 07:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 07:23:18] Production.INFO: count ==172 [2025-03-29 07:23:18] Production.ERROR: pbx CDR StartTime 2025-03-29 04:23:06 - End Time 2025-03-29 07:23:06 [2025-03-29 07:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787287', 'tblTempUsageDetail_20' ) start [2025-03-29 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787287', 'tblTempUsageDetail_20' ) end [2025-03-29 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787287', 'tblTempVendorCDR_20' ) start [2025-03-29 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787287', 'tblTempVendorCDR_20' ) end [2025-03-29 07:23:18] Production.INFO: ProcessCDR(1,14787287,1,1,2) [2025-03-29 07:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787287', 'tblTempUsageDetail_20' ) start [2025-03-29 07:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787287', 'tblTempUsageDetail_20' ) end [2025-03-29 07:23:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 07:23:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 07:23:22] Production.INFO: ==2517== Releasing lock... [2025-03-29 07:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 07:23:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-29 07:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 04:24:05 [end_date_ymd] => 2025-03-29 07:24:05 [RateCDR] => 1 ) [2025-03-29 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-29 04:24:05' and `end` < '2025-03-29 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-29 07:24:18] Production.INFO: count ==172 [2025-03-29 07:24:18] Production.ERROR: pbx CDR StartTime 2025-03-29 04:24:05 - End Time 2025-03-29 07:24:05 [2025-03-29 07:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787293', 'tblTempUsageDetail_20' ) start [2025-03-29 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787293', 'tblTempUsageDetail_20' ) end [2025-03-29 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787293', 'tblTempVendorCDR_20' ) start [2025-03-29 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787293', 'tblTempVendorCDR_20' ) end [2025-03-29 07:24:18] Production.INFO: ProcessCDR(1,14787293,1,1,2) [2025-03-29 07:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787293', 'tblTempUsageDetail_20' ) start [2025-03-29 07:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787293', 'tblTempUsageDetail_20' ) end [2025-03-29 07:24:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 07:24:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 07:24:22] Production.INFO: ==2636== Releasing lock... [2025-03-29 07:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 07:24:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-29 07:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 04:25:06 [end_date_ymd] => 2025-03-29 07:25:06 [RateCDR] => 1 ) [2025-03-29 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-29 04:25:06' and `end` < '2025-03-29 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-29 07:25:18] Production.INFO: count ==172 [2025-03-29 07:25:18] Production.ERROR: pbx CDR StartTime 2025-03-29 04:25:06 - End Time 2025-03-29 07:25:06 [2025-03-29 07:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787298', 'tblTempUsageDetail_20' ) start [2025-03-29 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787298', 'tblTempUsageDetail_20' ) end [2025-03-29 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787298', 'tblTempVendorCDR_20' ) start [2025-03-29 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787298', 'tblTempVendorCDR_20' ) end [2025-03-29 07:25:18] Production.INFO: ProcessCDR(1,14787298,1,1,2) [2025-03-29 07:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787298', 'tblTempUsageDetail_20' ) start [2025-03-29 07:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787298', 'tblTempUsageDetail_20' ) end [2025-03-29 07:25:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 07:25:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 07:25:22] Production.INFO: ==2751== Releasing lock... [2025-03-29 07:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 07:25:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-29 07:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 04:26:05 [end_date_ymd] => 2025-03-29 07:26:05 [RateCDR] => 1 ) [2025-03-29 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-29 04:26:05' and `end` < '2025-03-29 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-29 07:26:18] Production.INFO: count ==172 [2025-03-29 07:26:18] Production.ERROR: pbx CDR StartTime 2025-03-29 04:26:05 - End Time 2025-03-29 07:26:05 [2025-03-29 07:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787303', 'tblTempUsageDetail_20' ) start [2025-03-29 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787303', 'tblTempUsageDetail_20' ) end [2025-03-29 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787303', 'tblTempVendorCDR_20' ) start [2025-03-29 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787303', 'tblTempVendorCDR_20' ) end [2025-03-29 07:26:18] Production.INFO: ProcessCDR(1,14787303,1,1,2) [2025-03-29 07:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787303', 'tblTempUsageDetail_20' ) start [2025-03-29 07:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787303', 'tblTempUsageDetail_20' ) end [2025-03-29 07:26:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 07:26:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 07:26:22] Production.INFO: ==2868== Releasing lock... [2025-03-29 07:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 07:26:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-29 07:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 04:27:06 [end_date_ymd] => 2025-03-29 07:27:06 [RateCDR] => 1 ) [2025-03-29 07: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-29 04:27:06' and `end` < '2025-03-29 07: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-29 07:27:18] Production.INFO: count ==173 [2025-03-29 07:27:18] Production.ERROR: pbx CDR StartTime 2025-03-29 04:27:06 - End Time 2025-03-29 07:27:06 [2025-03-29 07:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787308', 'tblTempUsageDetail_20' ) start [2025-03-29 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787308', 'tblTempUsageDetail_20' ) end [2025-03-29 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787308', 'tblTempVendorCDR_20' ) start [2025-03-29 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787308', 'tblTempVendorCDR_20' ) end [2025-03-29 07:27:18] Production.INFO: ProcessCDR(1,14787308,1,1,2) [2025-03-29 07:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787308', 'tblTempUsageDetail_20' ) start [2025-03-29 07:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787308', 'tblTempUsageDetail_20' ) end [2025-03-29 07:27:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 07:27:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 07:27:24] Production.INFO: ==2988== Releasing lock... [2025-03-29 07:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 07:27:24] Production.INFO: 29.75 MB #Memory Used# [2025-03-29 07:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 04:28:05 [end_date_ymd] => 2025-03-29 07:28:05 [RateCDR] => 1 ) [2025-03-29 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-29 04:28:05' and `end` < '2025-03-29 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-29 07:28:18] Production.INFO: count ==174 [2025-03-29 07:28:18] Production.ERROR: pbx CDR StartTime 2025-03-29 04:28:05 - End Time 2025-03-29 07:28:05 [2025-03-29 07:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787313', 'tblTempUsageDetail_20' ) start [2025-03-29 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787313', 'tblTempUsageDetail_20' ) end [2025-03-29 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787313', 'tblTempVendorCDR_20' ) start [2025-03-29 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787313', 'tblTempVendorCDR_20' ) end [2025-03-29 07:28:18] Production.INFO: ProcessCDR(1,14787313,1,1,2) [2025-03-29 07:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787313', 'tblTempUsageDetail_20' ) start [2025-03-29 07:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787313', 'tblTempUsageDetail_20' ) end [2025-03-29 07:28:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 07:28:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 07:28:22] Production.INFO: ==3114== Releasing lock... [2025-03-29 07:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 07:28:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-29 07:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 04:29:06 [end_date_ymd] => 2025-03-29 07:29:06 [RateCDR] => 1 ) [2025-03-29 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-29 04:29:06' and `end` < '2025-03-29 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-29 07:29:18] Production.INFO: count ==174 [2025-03-29 07:29:18] Production.ERROR: pbx CDR StartTime 2025-03-29 04:29:06 - End Time 2025-03-29 07:29:06 [2025-03-29 07:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787318', 'tblTempUsageDetail_20' ) start [2025-03-29 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787318', 'tblTempUsageDetail_20' ) end [2025-03-29 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787318', 'tblTempVendorCDR_20' ) start [2025-03-29 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787318', 'tblTempVendorCDR_20' ) end [2025-03-29 07:29:18] Production.INFO: ProcessCDR(1,14787318,1,1,2) [2025-03-29 07:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787318', 'tblTempUsageDetail_20' ) start [2025-03-29 07:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787318', 'tblTempUsageDetail_20' ) end [2025-03-29 07:29:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 07:29:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 07:29:22] Production.INFO: ==3231== Releasing lock... [2025-03-29 07:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 07:29:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-29 07:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 04:30:06 [end_date_ymd] => 2025-03-29 07:30:06 [RateCDR] => 1 ) [2025-03-29 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-29 04:30:06' and `end` < '2025-03-29 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-29 07:30:19] Production.INFO: count ==172 [2025-03-29 07:30:19] Production.ERROR: pbx CDR StartTime 2025-03-29 04:30:06 - End Time 2025-03-29 07:30:06 [2025-03-29 07:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787324', 'tblTempUsageDetail_20' ) start [2025-03-29 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787324', 'tblTempUsageDetail_20' ) end [2025-03-29 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787324', 'tblTempVendorCDR_20' ) start [2025-03-29 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787324', 'tblTempVendorCDR_20' ) end [2025-03-29 07:30:19] Production.INFO: ProcessCDR(1,14787324,1,1,2) [2025-03-29 07:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787324', 'tblTempUsageDetail_20' ) start [2025-03-29 07:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787324', 'tblTempUsageDetail_20' ) end [2025-03-29 07:30:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 07:30:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 07:30:23] Production.INFO: ==3347== Releasing lock... [2025-03-29 07:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 07:30:23] Production.INFO: 30 MB #Memory Used# [2025-03-29 07:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 04:31:05 [end_date_ymd] => 2025-03-29 07:31:05 [RateCDR] => 1 ) [2025-03-29 07:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 04:31:05' and `end` < '2025-03-29 07:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 07:31:18] Production.INFO: count ==172 [2025-03-29 07:31:18] Production.ERROR: pbx CDR StartTime 2025-03-29 04:31:05 - End Time 2025-03-29 07:31:05 [2025-03-29 07:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787329', 'tblTempUsageDetail_20' ) start [2025-03-29 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787329', 'tblTempUsageDetail_20' ) end [2025-03-29 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787329', 'tblTempVendorCDR_20' ) start [2025-03-29 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787329', 'tblTempVendorCDR_20' ) end [2025-03-29 07:31:18] Production.INFO: ProcessCDR(1,14787329,1,1,2) [2025-03-29 07:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787329', 'tblTempUsageDetail_20' ) start [2025-03-29 07:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787329', 'tblTempUsageDetail_20' ) end [2025-03-29 07:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 07:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 07:31:22] Production.INFO: ==3464== Releasing lock... [2025-03-29 07:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 07:31:22] Production.INFO: 30 MB #Memory Used# [2025-03-29 07:32:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 04:32:07 [end_date_ymd] => 2025-03-29 07:32:07 [RateCDR] => 1 ) [2025-03-29 07:32: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-29 04:32:07' and `end` < '2025-03-29 07:32: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-29 07:32:19] Production.INFO: count ==172 [2025-03-29 07:32:19] Production.ERROR: pbx CDR StartTime 2025-03-29 04:32:07 - End Time 2025-03-29 07:32:07 [2025-03-29 07:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 07:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787334', 'tblTempUsageDetail_20' ) start [2025-03-29 07:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787334', 'tblTempUsageDetail_20' ) end [2025-03-29 07:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787334', 'tblTempVendorCDR_20' ) start [2025-03-29 07:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787334', 'tblTempVendorCDR_20' ) end [2025-03-29 07:32:19] Production.INFO: ProcessCDR(1,14787334,1,1,2) [2025-03-29 07:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787334', 'tblTempUsageDetail_20' ) start [2025-03-29 07:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787334', 'tblTempUsageDetail_20' ) end [2025-03-29 07:32:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 07:32:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 07:32:23] Production.INFO: ==3580== Releasing lock... [2025-03-29 07:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 07:32:23] Production.INFO: 30 MB #Memory Used# [2025-03-29 07:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 04:33:05 [end_date_ymd] => 2025-03-29 07:33:05 [RateCDR] => 1 ) [2025-03-29 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-29 04:33:05' and `end` < '2025-03-29 07:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 07:33:18] Production.INFO: count ==172 [2025-03-29 07:33:18] Production.ERROR: pbx CDR StartTime 2025-03-29 04:33:05 - End Time 2025-03-29 07:33:05 [2025-03-29 07:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787339', 'tblTempUsageDetail_20' ) start [2025-03-29 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787339', 'tblTempUsageDetail_20' ) end [2025-03-29 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787339', 'tblTempVendorCDR_20' ) start [2025-03-29 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787339', 'tblTempVendorCDR_20' ) end [2025-03-29 07:33:18] Production.INFO: ProcessCDR(1,14787339,1,1,2) [2025-03-29 07:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787339', 'tblTempUsageDetail_20' ) start [2025-03-29 07:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787339', 'tblTempUsageDetail_20' ) end [2025-03-29 07:33:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 07:33:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 07:33:22] Production.INFO: ==3698== Releasing lock... [2025-03-29 07:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 07:33:22] Production.INFO: 30 MB #Memory Used# [2025-03-29 07:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 04:34:06 [end_date_ymd] => 2025-03-29 07:34:06 [RateCDR] => 1 ) [2025-03-29 07:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 04:34:06' and `end` < '2025-03-29 07:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 07:34:19] Production.INFO: count ==172 [2025-03-29 07:34:19] Production.ERROR: pbx CDR StartTime 2025-03-29 04:34:06 - End Time 2025-03-29 07:34:06 [2025-03-29 07:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 07:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787344', 'tblTempUsageDetail_20' ) start [2025-03-29 07:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787344', 'tblTempUsageDetail_20' ) end [2025-03-29 07:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787344', 'tblTempVendorCDR_20' ) start [2025-03-29 07:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787344', 'tblTempVendorCDR_20' ) end [2025-03-29 07:34:19] Production.INFO: ProcessCDR(1,14787344,1,1,2) [2025-03-29 07:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787344', 'tblTempUsageDetail_20' ) start [2025-03-29 07:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787344', 'tblTempUsageDetail_20' ) end [2025-03-29 07:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 07:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 07:34:22] Production.INFO: ==3819== Releasing lock... [2025-03-29 07:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 07:34:22] Production.INFO: 30 MB #Memory Used# [2025-03-29 07:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 04:35:05 [end_date_ymd] => 2025-03-29 07:35:05 [RateCDR] => 1 ) [2025-03-29 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-29 04:35:05' and `end` < '2025-03-29 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-29 07:35:18] Production.INFO: count ==172 [2025-03-29 07:35:18] Production.ERROR: pbx CDR StartTime 2025-03-29 04:35:05 - End Time 2025-03-29 07:35:05 [2025-03-29 07:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787349', 'tblTempUsageDetail_20' ) start [2025-03-29 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787349', 'tblTempUsageDetail_20' ) end [2025-03-29 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787349', 'tblTempVendorCDR_20' ) start [2025-03-29 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787349', 'tblTempVendorCDR_20' ) end [2025-03-29 07:35:18] Production.INFO: ProcessCDR(1,14787349,1,1,2) [2025-03-29 07:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787349', 'tblTempUsageDetail_20' ) start [2025-03-29 07:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787349', 'tblTempUsageDetail_20' ) end [2025-03-29 07:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 07:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 07:35:21] Production.INFO: ==3936== Releasing lock... [2025-03-29 07:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 07:35:21] Production.INFO: 30 MB #Memory Used# [2025-03-29 07:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 04:36:06 [end_date_ymd] => 2025-03-29 07:36:06 [RateCDR] => 1 ) [2025-03-29 07:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 04:36:06' and `end` < '2025-03-29 07:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 07:36:18] Production.INFO: count ==173 [2025-03-29 07:36:18] Production.ERROR: pbx CDR StartTime 2025-03-29 04:36:06 - End Time 2025-03-29 07:36:06 [2025-03-29 07:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787354', 'tblTempUsageDetail_20' ) start [2025-03-29 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787354', 'tblTempUsageDetail_20' ) end [2025-03-29 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787354', 'tblTempVendorCDR_20' ) start [2025-03-29 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787354', 'tblTempVendorCDR_20' ) end [2025-03-29 07:36:18] Production.INFO: ProcessCDR(1,14787354,1,1,2) [2025-03-29 07:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787354', 'tblTempUsageDetail_20' ) start [2025-03-29 07:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787354', 'tblTempUsageDetail_20' ) end [2025-03-29 07:36:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 07:36:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 07:36:23] Production.INFO: ==4055== Releasing lock... [2025-03-29 07:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 07:36:23] Production.INFO: 30 MB #Memory Used# [2025-03-29 07:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 04:37:05 [end_date_ymd] => 2025-03-29 07:37:05 [RateCDR] => 1 ) [2025-03-29 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-29 04:37:05' and `end` < '2025-03-29 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-29 07:37:18] Production.INFO: count ==173 [2025-03-29 07:37:18] Production.ERROR: pbx CDR StartTime 2025-03-29 04:37:05 - End Time 2025-03-29 07:37:05 [2025-03-29 07:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787359', 'tblTempUsageDetail_20' ) start [2025-03-29 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787359', 'tblTempUsageDetail_20' ) end [2025-03-29 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787359', 'tblTempVendorCDR_20' ) start [2025-03-29 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787359', 'tblTempVendorCDR_20' ) end [2025-03-29 07:37:18] Production.INFO: ProcessCDR(1,14787359,1,1,2) [2025-03-29 07:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787359', 'tblTempUsageDetail_20' ) start [2025-03-29 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787359', 'tblTempUsageDetail_20' ) end [2025-03-29 07:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 07:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 07:37:21] Production.INFO: ==4168== Releasing lock... [2025-03-29 07:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 07:37:21] Production.INFO: 30 MB #Memory Used# [2025-03-29 07:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 04:38:05 [end_date_ymd] => 2025-03-29 07:38:05 [RateCDR] => 1 ) [2025-03-29 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-29 04:38:05' and `end` < '2025-03-29 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-29 07:38:17] Production.INFO: count ==173 [2025-03-29 07:38:17] Production.ERROR: pbx CDR StartTime 2025-03-29 04:38:05 - End Time 2025-03-29 07:38:05 [2025-03-29 07:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 07:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787364', 'tblTempUsageDetail_20' ) start [2025-03-29 07:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787364', 'tblTempUsageDetail_20' ) end [2025-03-29 07:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787364', 'tblTempVendorCDR_20' ) start [2025-03-29 07:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787364', 'tblTempVendorCDR_20' ) end [2025-03-29 07:38:17] Production.INFO: ProcessCDR(1,14787364,1,1,2) [2025-03-29 07:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787364', 'tblTempUsageDetail_20' ) start [2025-03-29 07:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787364', 'tblTempUsageDetail_20' ) end [2025-03-29 07:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 07:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 07:38:21] Production.INFO: ==4321== Releasing lock... [2025-03-29 07:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 07:38:21] Production.INFO: 30 MB #Memory Used# [2025-03-29 07:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 04:39:05 [end_date_ymd] => 2025-03-29 07:39:05 [RateCDR] => 1 ) [2025-03-29 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-29 04:39:05' and `end` < '2025-03-29 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-29 07:39:17] Production.INFO: count ==173 [2025-03-29 07:39:17] Production.ERROR: pbx CDR StartTime 2025-03-29 04:39:05 - End Time 2025-03-29 07:39:05 [2025-03-29 07:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787369', 'tblTempUsageDetail_20' ) start [2025-03-29 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787369', 'tblTempUsageDetail_20' ) end [2025-03-29 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787369', 'tblTempVendorCDR_20' ) start [2025-03-29 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787369', 'tblTempVendorCDR_20' ) end [2025-03-29 07:39:17] Production.INFO: ProcessCDR(1,14787369,1,1,2) [2025-03-29 07:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787369', 'tblTempUsageDetail_20' ) start [2025-03-29 07:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787369', 'tblTempUsageDetail_20' ) end [2025-03-29 07:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 07:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 07:39:21] Production.INFO: ==4438== Releasing lock... [2025-03-29 07:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 07:39:21] Production.INFO: 30 MB #Memory Used# [2025-03-29 07:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 04:40:07 [end_date_ymd] => 2025-03-29 07:40:07 [RateCDR] => 1 ) [2025-03-29 07: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-29 04:40:07' and `end` < '2025-03-29 07: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-29 07:40:19] Production.INFO: count ==174 [2025-03-29 07:40:19] Production.ERROR: pbx CDR StartTime 2025-03-29 04:40:07 - End Time 2025-03-29 07:40:07 [2025-03-29 07:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787375', 'tblTempUsageDetail_20' ) start [2025-03-29 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787375', 'tblTempUsageDetail_20' ) end [2025-03-29 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787375', 'tblTempVendorCDR_20' ) start [2025-03-29 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787375', 'tblTempVendorCDR_20' ) end [2025-03-29 07:40:19] Production.INFO: ProcessCDR(1,14787375,1,1,2) [2025-03-29 07:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787375', 'tblTempUsageDetail_20' ) start [2025-03-29 07:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787375', 'tblTempUsageDetail_20' ) end [2025-03-29 07:40:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 07:40:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 07:40:24] Production.INFO: ==4560== Releasing lock... [2025-03-29 07:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 07:40:24] Production.INFO: 30 MB #Memory Used# [2025-03-29 07:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 04:41:05 [end_date_ymd] => 2025-03-29 07:41:05 [RateCDR] => 1 ) [2025-03-29 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-29 04:41:05' and `end` < '2025-03-29 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-29 07:41:18] Production.INFO: count ==174 [2025-03-29 07:41:18] Production.ERROR: pbx CDR StartTime 2025-03-29 04:41:05 - End Time 2025-03-29 07:41:05 [2025-03-29 07:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787380', 'tblTempUsageDetail_20' ) start [2025-03-29 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787380', 'tblTempUsageDetail_20' ) end [2025-03-29 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787380', 'tblTempVendorCDR_20' ) start [2025-03-29 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787380', 'tblTempVendorCDR_20' ) end [2025-03-29 07:41:18] Production.INFO: ProcessCDR(1,14787380,1,1,2) [2025-03-29 07:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787380', 'tblTempUsageDetail_20' ) start [2025-03-29 07:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787380', 'tblTempUsageDetail_20' ) end [2025-03-29 07:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 07:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 07:41:21] Production.INFO: ==4686== Releasing lock... [2025-03-29 07:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 07:41:21] Production.INFO: 30 MB #Memory Used# [2025-03-29 07:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 04:42:05 [end_date_ymd] => 2025-03-29 07:42:05 [RateCDR] => 1 ) [2025-03-29 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-29 04:42:05' and `end` < '2025-03-29 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-29 07:42:18] Production.INFO: count ==175 [2025-03-29 07:42:18] Production.ERROR: pbx CDR StartTime 2025-03-29 04:42:05 - End Time 2025-03-29 07:42:05 [2025-03-29 07:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787385', 'tblTempUsageDetail_20' ) start [2025-03-29 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787385', 'tblTempUsageDetail_20' ) end [2025-03-29 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787385', 'tblTempVendorCDR_20' ) start [2025-03-29 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787385', 'tblTempVendorCDR_20' ) end [2025-03-29 07:42:18] Production.INFO: ProcessCDR(1,14787385,1,1,2) [2025-03-29 07:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787385', 'tblTempUsageDetail_20' ) start [2025-03-29 07:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787385', 'tblTempUsageDetail_20' ) end [2025-03-29 07:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 07:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 07:42:21] Production.INFO: ==4807== Releasing lock... [2025-03-29 07:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 07:42:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-29 07:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 04:43:05 [end_date_ymd] => 2025-03-29 07:43:05 [RateCDR] => 1 ) [2025-03-29 07:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 04:43:05' and `end` < '2025-03-29 07:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 07:43:17] Production.INFO: count ==178 [2025-03-29 07:43:17] Production.ERROR: pbx CDR StartTime 2025-03-29 04:43:05 - End Time 2025-03-29 07:43:05 [2025-03-29 07:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787390', 'tblTempUsageDetail_20' ) start [2025-03-29 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787390', 'tblTempUsageDetail_20' ) end [2025-03-29 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787390', 'tblTempVendorCDR_20' ) start [2025-03-29 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787390', 'tblTempVendorCDR_20' ) end [2025-03-29 07:43:17] Production.INFO: ProcessCDR(1,14787390,1,1,2) [2025-03-29 07:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787390', 'tblTempUsageDetail_20' ) start [2025-03-29 07:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787390', 'tblTempUsageDetail_20' ) end [2025-03-29 07:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 07:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 07:43:21] Production.INFO: ==4926== Releasing lock... [2025-03-29 07:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 07:43:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-29 07:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 04:44:06 [end_date_ymd] => 2025-03-29 07:44:06 [RateCDR] => 1 ) [2025-03-29 07: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-29 04:44:06' and `end` < '2025-03-29 07: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-29 07:44:18] Production.INFO: count ==178 [2025-03-29 07:44:18] Production.ERROR: pbx CDR StartTime 2025-03-29 04:44:06 - End Time 2025-03-29 07:44:06 [2025-03-29 07:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787395', 'tblTempUsageDetail_20' ) start [2025-03-29 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787395', 'tblTempUsageDetail_20' ) end [2025-03-29 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787395', 'tblTempVendorCDR_20' ) start [2025-03-29 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787395', 'tblTempVendorCDR_20' ) end [2025-03-29 07:44:18] Production.INFO: ProcessCDR(1,14787395,1,1,2) [2025-03-29 07:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787395', 'tblTempUsageDetail_20' ) start [2025-03-29 07:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787395', 'tblTempUsageDetail_20' ) end [2025-03-29 07:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 07:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 07:44:22] Production.INFO: ==5051== Releasing lock... [2025-03-29 07:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 07:44:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-29 07:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 04:45:05 [end_date_ymd] => 2025-03-29 07:45:05 [RateCDR] => 1 ) [2025-03-29 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-29 04:45:05' and `end` < '2025-03-29 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-29 07:45:17] Production.INFO: count ==175 [2025-03-29 07:45:18] Production.ERROR: pbx CDR StartTime 2025-03-29 04:45:05 - End Time 2025-03-29 07:45:05 [2025-03-29 07:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787400', 'tblTempUsageDetail_20' ) start [2025-03-29 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787400', 'tblTempUsageDetail_20' ) end [2025-03-29 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787400', 'tblTempVendorCDR_20' ) start [2025-03-29 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787400', 'tblTempVendorCDR_20' ) end [2025-03-29 07:45:18] Production.INFO: ProcessCDR(1,14787400,1,1,2) [2025-03-29 07:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787400', 'tblTempUsageDetail_20' ) start [2025-03-29 07:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787400', 'tblTempUsageDetail_20' ) end [2025-03-29 07:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 07:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 07:45:21] Production.INFO: ==5170== Releasing lock... [2025-03-29 07:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 07:45:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-29 07:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 04:46:06 [end_date_ymd] => 2025-03-29 07:46:06 [RateCDR] => 1 ) [2025-03-29 07:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 04:46:06' and `end` < '2025-03-29 07:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 07:46:18] Production.INFO: count ==175 [2025-03-29 07:46:18] Production.ERROR: pbx CDR StartTime 2025-03-29 04:46:06 - End Time 2025-03-29 07:46:06 [2025-03-29 07:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787405', 'tblTempUsageDetail_20' ) start [2025-03-29 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787405', 'tblTempUsageDetail_20' ) end [2025-03-29 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787405', 'tblTempVendorCDR_20' ) start [2025-03-29 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787405', 'tblTempVendorCDR_20' ) end [2025-03-29 07:46:18] Production.INFO: ProcessCDR(1,14787405,1,1,2) [2025-03-29 07:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787405', 'tblTempUsageDetail_20' ) start [2025-03-29 07:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787405', 'tblTempUsageDetail_20' ) end [2025-03-29 07:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 07:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 07:46:22] Production.INFO: ==5293== Releasing lock... [2025-03-29 07:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 07:46:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-29 07:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 04:47:05 [end_date_ymd] => 2025-03-29 07:47:05 [RateCDR] => 1 ) [2025-03-29 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-29 04:47:05' and `end` < '2025-03-29 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-29 07:47:17] Production.INFO: count ==175 [2025-03-29 07:47:17] Production.ERROR: pbx CDR StartTime 2025-03-29 04:47:05 - End Time 2025-03-29 07:47:05 [2025-03-29 07:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787410', 'tblTempUsageDetail_20' ) start [2025-03-29 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787410', 'tblTempUsageDetail_20' ) end [2025-03-29 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787410', 'tblTempVendorCDR_20' ) start [2025-03-29 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787410', 'tblTempVendorCDR_20' ) end [2025-03-29 07:47:17] Production.INFO: ProcessCDR(1,14787410,1,1,2) [2025-03-29 07:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787410', 'tblTempUsageDetail_20' ) start [2025-03-29 07:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787410', 'tblTempUsageDetail_20' ) end [2025-03-29 07:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 07:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 07:47:21] Production.INFO: ==5432== Releasing lock... [2025-03-29 07:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 07:47:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-29 07:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 04:48:05 [end_date_ymd] => 2025-03-29 07:48:05 [RateCDR] => 1 ) [2025-03-29 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-29 04:48:05' and `end` < '2025-03-29 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-29 07:48:18] Production.INFO: count ==175 [2025-03-29 07:48:18] Production.ERROR: pbx CDR StartTime 2025-03-29 04:48:05 - End Time 2025-03-29 07:48:05 [2025-03-29 07:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787415', 'tblTempUsageDetail_20' ) start [2025-03-29 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787415', 'tblTempUsageDetail_20' ) end [2025-03-29 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787415', 'tblTempVendorCDR_20' ) start [2025-03-29 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787415', 'tblTempVendorCDR_20' ) end [2025-03-29 07:48:18] Production.INFO: ProcessCDR(1,14787415,1,1,2) [2025-03-29 07:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787415', 'tblTempUsageDetail_20' ) start [2025-03-29 07:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787415', 'tblTempUsageDetail_20' ) end [2025-03-29 07:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 07:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 07:48:21] Production.INFO: ==5511== Releasing lock... [2025-03-29 07:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 07:48:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-29 07:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 04:49:05 [end_date_ymd] => 2025-03-29 07:49:05 [RateCDR] => 1 ) [2025-03-29 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-29 04:49:05' and `end` < '2025-03-29 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-29 07:49:17] Production.INFO: count ==175 [2025-03-29 07:49:17] Production.ERROR: pbx CDR StartTime 2025-03-29 04:49:05 - End Time 2025-03-29 07:49:05 [2025-03-29 07:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787420', 'tblTempUsageDetail_20' ) start [2025-03-29 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787420', 'tblTempUsageDetail_20' ) end [2025-03-29 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787420', 'tblTempVendorCDR_20' ) start [2025-03-29 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787420', 'tblTempVendorCDR_20' ) end [2025-03-29 07:49:17] Production.INFO: ProcessCDR(1,14787420,1,1,2) [2025-03-29 07:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787420', 'tblTempUsageDetail_20' ) start [2025-03-29 07:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787420', 'tblTempUsageDetail_20' ) end [2025-03-29 07:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 07:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 07:49:21] Production.INFO: ==5600== Releasing lock... [2025-03-29 07:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 07:49:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-29 07:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 04:50:06 [end_date_ymd] => 2025-03-29 07:50:06 [RateCDR] => 1 ) [2025-03-29 07:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 04:50:06' and `end` < '2025-03-29 07:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 07:50:19] Production.INFO: count ==175 [2025-03-29 07:50:19] Production.ERROR: pbx CDR StartTime 2025-03-29 04:50:06 - End Time 2025-03-29 07:50:06 [2025-03-29 07:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787426', 'tblTempUsageDetail_20' ) start [2025-03-29 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787426', 'tblTempUsageDetail_20' ) end [2025-03-29 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787426', 'tblTempVendorCDR_20' ) start [2025-03-29 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787426', 'tblTempVendorCDR_20' ) end [2025-03-29 07:50:19] Production.INFO: ProcessCDR(1,14787426,1,1,2) [2025-03-29 07:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787426', 'tblTempUsageDetail_20' ) start [2025-03-29 07:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787426', 'tblTempUsageDetail_20' ) end [2025-03-29 07:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 07:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 07:50:22] Production.INFO: ==5674== Releasing lock... [2025-03-29 07:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 07:50:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-29 07:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 04:51:05 [end_date_ymd] => 2025-03-29 07:51:05 [RateCDR] => 1 ) [2025-03-29 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-29 04:51:05' and `end` < '2025-03-29 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-29 07:51:17] Production.INFO: count ==175 [2025-03-29 07:51:18] Production.ERROR: pbx CDR StartTime 2025-03-29 04:51:05 - End Time 2025-03-29 07:51:05 [2025-03-29 07:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787431', 'tblTempUsageDetail_20' ) start [2025-03-29 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787431', 'tblTempUsageDetail_20' ) end [2025-03-29 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787431', 'tblTempVendorCDR_20' ) start [2025-03-29 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787431', 'tblTempVendorCDR_20' ) end [2025-03-29 07:51:18] Production.INFO: ProcessCDR(1,14787431,1,1,2) [2025-03-29 07:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787431', 'tblTempUsageDetail_20' ) start [2025-03-29 07:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787431', 'tblTempUsageDetail_20' ) end [2025-03-29 07:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 07:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 07:51:21] Production.INFO: ==5754== Releasing lock... [2025-03-29 07:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 07:51:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-29 07:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 04:52:06 [end_date_ymd] => 2025-03-29 07:52:06 [RateCDR] => 1 ) [2025-03-29 07: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-29 04:52:06' and `end` < '2025-03-29 07: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-29 07:52:18] Production.INFO: count ==175 [2025-03-29 07:52:18] Production.ERROR: pbx CDR StartTime 2025-03-29 04:52:06 - End Time 2025-03-29 07:52:06 [2025-03-29 07:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787436', 'tblTempUsageDetail_20' ) start [2025-03-29 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787436', 'tblTempUsageDetail_20' ) end [2025-03-29 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787436', 'tblTempVendorCDR_20' ) start [2025-03-29 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787436', 'tblTempVendorCDR_20' ) end [2025-03-29 07:52:18] Production.INFO: ProcessCDR(1,14787436,1,1,2) [2025-03-29 07:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787436', 'tblTempUsageDetail_20' ) start [2025-03-29 07:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787436', 'tblTempUsageDetail_20' ) end [2025-03-29 07:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 07:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 07:52:22] Production.INFO: ==5836== Releasing lock... [2025-03-29 07:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 07:52:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-29 07:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 04:53:05 [end_date_ymd] => 2025-03-29 07:53:05 [RateCDR] => 1 ) [2025-03-29 07:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 04:53:05' and `end` < '2025-03-29 07:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 07:53:17] Production.INFO: count ==175 [2025-03-29 07:53:18] Production.ERROR: pbx CDR StartTime 2025-03-29 04:53:05 - End Time 2025-03-29 07:53:05 [2025-03-29 07:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787441', 'tblTempUsageDetail_20' ) start [2025-03-29 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787441', 'tblTempUsageDetail_20' ) end [2025-03-29 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787441', 'tblTempVendorCDR_20' ) start [2025-03-29 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787441', 'tblTempVendorCDR_20' ) end [2025-03-29 07:53:18] Production.INFO: ProcessCDR(1,14787441,1,1,2) [2025-03-29 07:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787441', 'tblTempUsageDetail_20' ) start [2025-03-29 07:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787441', 'tblTempUsageDetail_20' ) end [2025-03-29 07:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 07:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 07:53:21] Production.INFO: ==5923== Releasing lock... [2025-03-29 07:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 07:53:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-29 07:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 04:54:06 [end_date_ymd] => 2025-03-29 07:54:06 [RateCDR] => 1 ) [2025-03-29 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-29 04:54:06' and `end` < '2025-03-29 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-29 07:54:18] Production.INFO: count ==179 [2025-03-29 07:54:18] Production.ERROR: pbx CDR StartTime 2025-03-29 04:54:06 - End Time 2025-03-29 07:54:06 [2025-03-29 07:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787446', 'tblTempUsageDetail_20' ) start [2025-03-29 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787446', 'tblTempUsageDetail_20' ) end [2025-03-29 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787446', 'tblTempVendorCDR_20' ) start [2025-03-29 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787446', 'tblTempVendorCDR_20' ) end [2025-03-29 07:54:18] Production.INFO: ProcessCDR(1,14787446,1,1,2) [2025-03-29 07:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787446', 'tblTempUsageDetail_20' ) start [2025-03-29 07:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787446', 'tblTempUsageDetail_20' ) end [2025-03-29 07:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 07:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 07:54:21] Production.INFO: ==6044== Releasing lock... [2025-03-29 07:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 07:54:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-29 07:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 04:55:05 [end_date_ymd] => 2025-03-29 07:55:05 [RateCDR] => 1 ) [2025-03-29 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-29 04:55:05' and `end` < '2025-03-29 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-29 07:55:17] Production.INFO: count ==179 [2025-03-29 07:55:17] Production.ERROR: pbx CDR StartTime 2025-03-29 04:55:05 - End Time 2025-03-29 07:55:05 [2025-03-29 07:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787451', 'tblTempUsageDetail_20' ) start [2025-03-29 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787451', 'tblTempUsageDetail_20' ) end [2025-03-29 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787451', 'tblTempVendorCDR_20' ) start [2025-03-29 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787451', 'tblTempVendorCDR_20' ) end [2025-03-29 07:55:17] Production.INFO: ProcessCDR(1,14787451,1,1,2) [2025-03-29 07:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787451', 'tblTempUsageDetail_20' ) start [2025-03-29 07:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787451', 'tblTempUsageDetail_20' ) end [2025-03-29 07:55:20] Production.ERROR: pbx prc_insertCDR start [2025-03-29 07:55:20] Production.ERROR: pbx prc_insertCDR end [2025-03-29 07:55:20] Production.INFO: ==6124== Releasing lock... [2025-03-29 07:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 07:55:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-29 07:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 04:56:05 [end_date_ymd] => 2025-03-29 07:56:05 [RateCDR] => 1 ) [2025-03-29 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-29 04:56:05' and `end` < '2025-03-29 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-29 07:56:18] Production.INFO: count ==176 [2025-03-29 07:56:18] Production.ERROR: pbx CDR StartTime 2025-03-29 04:56:05 - End Time 2025-03-29 07:56:05 [2025-03-29 07:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787456', 'tblTempUsageDetail_20' ) start [2025-03-29 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787456', 'tblTempUsageDetail_20' ) end [2025-03-29 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787456', 'tblTempVendorCDR_20' ) start [2025-03-29 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787456', 'tblTempVendorCDR_20' ) end [2025-03-29 07:56:18] Production.INFO: ProcessCDR(1,14787456,1,1,2) [2025-03-29 07:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787456', 'tblTempUsageDetail_20' ) start [2025-03-29 07:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787456', 'tblTempUsageDetail_20' ) end [2025-03-29 07:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 07:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 07:56:22] Production.INFO: ==6214== Releasing lock... [2025-03-29 07:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 07:56:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-29 07:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 04:57:06 [end_date_ymd] => 2025-03-29 07:57:06 [RateCDR] => 1 ) [2025-03-29 07:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 04:57:06' and `end` < '2025-03-29 07:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 07:57:18] Production.INFO: count ==176 [2025-03-29 07:57:18] Production.ERROR: pbx CDR StartTime 2025-03-29 04:57:06 - End Time 2025-03-29 07:57:06 [2025-03-29 07:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787461', 'tblTempUsageDetail_20' ) start [2025-03-29 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787461', 'tblTempUsageDetail_20' ) end [2025-03-29 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787461', 'tblTempVendorCDR_20' ) start [2025-03-29 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787461', 'tblTempVendorCDR_20' ) end [2025-03-29 07:57:18] Production.INFO: ProcessCDR(1,14787461,1,1,2) [2025-03-29 07:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787461', 'tblTempUsageDetail_20' ) start [2025-03-29 07:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787461', 'tblTempUsageDetail_20' ) end [2025-03-29 07:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 07:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 07:57:22] Production.INFO: ==6290== Releasing lock... [2025-03-29 07:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 07:57:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-29 07:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 04:58:06 [end_date_ymd] => 2025-03-29 07:58:06 [RateCDR] => 1 ) [2025-03-29 07:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 04:58:06' and `end` < '2025-03-29 07:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 07:58:18] Production.INFO: count ==174 [2025-03-29 07:58:18] Production.ERROR: pbx CDR StartTime 2025-03-29 04:58:06 - End Time 2025-03-29 07:58:06 [2025-03-29 07:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787466', 'tblTempUsageDetail_20' ) start [2025-03-29 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787466', 'tblTempUsageDetail_20' ) end [2025-03-29 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787466', 'tblTempVendorCDR_20' ) start [2025-03-29 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787466', 'tblTempVendorCDR_20' ) end [2025-03-29 07:58:18] Production.INFO: ProcessCDR(1,14787466,1,1,2) [2025-03-29 07:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787466', 'tblTempUsageDetail_20' ) start [2025-03-29 07:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787466', 'tblTempUsageDetail_20' ) end [2025-03-29 07:58:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 07:58:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 07:58:23] Production.INFO: ==6363== Releasing lock... [2025-03-29 07:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 07:58:23] Production.INFO: 30 MB #Memory Used# [2025-03-29 07:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 04:59:06 [end_date_ymd] => 2025-03-29 07:59:06 [RateCDR] => 1 ) [2025-03-29 07: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-29 04:59:06' and `end` < '2025-03-29 07: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-29 07:59:18] Production.INFO: count ==172 [2025-03-29 07:59:18] Production.ERROR: pbx CDR StartTime 2025-03-29 04:59:06 - End Time 2025-03-29 07:59:06 [2025-03-29 07:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787471', 'tblTempUsageDetail_20' ) start [2025-03-29 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787471', 'tblTempUsageDetail_20' ) end [2025-03-29 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787471', 'tblTempVendorCDR_20' ) start [2025-03-29 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787471', 'tblTempVendorCDR_20' ) end [2025-03-29 07:59:18] Production.INFO: ProcessCDR(1,14787471,1,1,2) [2025-03-29 07:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 07:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 07:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787471', 'tblTempUsageDetail_20' ) start [2025-03-29 07:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787471', 'tblTempUsageDetail_20' ) end [2025-03-29 07:59:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 07:59:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 07:59:23] Production.INFO: ==6436== Releasing lock... [2025-03-29 07:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 07:59:23] Production.INFO: 30 MB #Memory Used# [2025-03-29 08:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 05:00:06 [end_date_ymd] => 2025-03-29 08:00:06 [RateCDR] => 1 ) [2025-03-29 08:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 05:00:06' and `end` < '2025-03-29 08:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 08:00:18] Production.INFO: count ==172 [2025-03-29 08:00:18] Production.ERROR: pbx CDR StartTime 2025-03-29 05:00:06 - End Time 2025-03-29 08:00:06 [2025-03-29 08:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787476', 'tblTempUsageDetail_20' ) start [2025-03-29 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787476', 'tblTempUsageDetail_20' ) end [2025-03-29 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787476', 'tblTempVendorCDR_20' ) start [2025-03-29 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787476', 'tblTempVendorCDR_20' ) end [2025-03-29 08:00:18] Production.INFO: ProcessCDR(1,14787476,1,1,2) [2025-03-29 08:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787476', 'tblTempUsageDetail_20' ) start [2025-03-29 08:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787476', 'tblTempUsageDetail_20' ) end [2025-03-29 08:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 08:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 08:00:23] Production.INFO: ==6511== Releasing lock... [2025-03-29 08:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 08:00:23] Production.INFO: 30 MB #Memory Used# [2025-03-29 08:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 05:01:05 [end_date_ymd] => 2025-03-29 08:01:05 [RateCDR] => 1 ) [2025-03-29 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-29 05:01:05' and `end` < '2025-03-29 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-29 08:01:18] Production.INFO: count ==172 [2025-03-29 08:01:18] Production.ERROR: pbx CDR StartTime 2025-03-29 05:01:05 - End Time 2025-03-29 08:01:05 [2025-03-29 08:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787482', 'tblTempUsageDetail_20' ) start [2025-03-29 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787482', 'tblTempUsageDetail_20' ) end [2025-03-29 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787482', 'tblTempVendorCDR_20' ) start [2025-03-29 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787482', 'tblTempVendorCDR_20' ) end [2025-03-29 08:01:18] Production.INFO: ProcessCDR(1,14787482,1,1,2) [2025-03-29 08:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787482', 'tblTempUsageDetail_20' ) start [2025-03-29 08:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787482', 'tblTempUsageDetail_20' ) end [2025-03-29 08:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 08:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 08:01:21] Production.INFO: ==6597== Releasing lock... [2025-03-29 08:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 08:01:21] Production.INFO: 30 MB #Memory Used# [2025-03-29 08:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 05:02:05 [end_date_ymd] => 2025-03-29 08:02:05 [RateCDR] => 1 ) [2025-03-29 08: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-29 05:02:05' and `end` < '2025-03-29 08: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-29 08:02:18] Production.INFO: count ==171 [2025-03-29 08:02:18] Production.ERROR: pbx CDR StartTime 2025-03-29 05:02:05 - End Time 2025-03-29 08:02:05 [2025-03-29 08:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787487', 'tblTempUsageDetail_20' ) start [2025-03-29 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787487', 'tblTempUsageDetail_20' ) end [2025-03-29 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787487', 'tblTempVendorCDR_20' ) start [2025-03-29 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787487', 'tblTempVendorCDR_20' ) end [2025-03-29 08:02:18] Production.INFO: ProcessCDR(1,14787487,1,1,2) [2025-03-29 08:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787487', 'tblTempUsageDetail_20' ) start [2025-03-29 08:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787487', 'tblTempUsageDetail_20' ) end [2025-03-29 08:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 08:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 08:02:22] Production.INFO: ==6671== Releasing lock... [2025-03-29 08:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 08:02:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-29 08:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 05:03:06 [end_date_ymd] => 2025-03-29 08:03:06 [RateCDR] => 1 ) [2025-03-29 08:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 05:03:06' and `end` < '2025-03-29 08:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 08:03:19] Production.INFO: count ==171 [2025-03-29 08:03:19] Production.ERROR: pbx CDR StartTime 2025-03-29 05:03:06 - End Time 2025-03-29 08:03:06 [2025-03-29 08:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 08:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787492', 'tblTempUsageDetail_20' ) start [2025-03-29 08:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787492', 'tblTempUsageDetail_20' ) end [2025-03-29 08:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787492', 'tblTempVendorCDR_20' ) start [2025-03-29 08:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787492', 'tblTempVendorCDR_20' ) end [2025-03-29 08:03:19] Production.INFO: ProcessCDR(1,14787492,1,1,2) [2025-03-29 08:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787492', 'tblTempUsageDetail_20' ) start [2025-03-29 08:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787492', 'tblTempUsageDetail_20' ) end [2025-03-29 08:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 08:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 08:03:22] Production.INFO: ==6748== Releasing lock... [2025-03-29 08:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 08:03:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-29 08:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 05:04:05 [end_date_ymd] => 2025-03-29 08:04:05 [RateCDR] => 1 ) [2025-03-29 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-29 05:04:05' and `end` < '2025-03-29 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-29 08:04:18] Production.INFO: count ==171 [2025-03-29 08:04:18] Production.ERROR: pbx CDR StartTime 2025-03-29 05:04:05 - End Time 2025-03-29 08:04:05 [2025-03-29 08:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787497', 'tblTempUsageDetail_20' ) start [2025-03-29 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787497', 'tblTempUsageDetail_20' ) end [2025-03-29 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787497', 'tblTempVendorCDR_20' ) start [2025-03-29 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787497', 'tblTempVendorCDR_20' ) end [2025-03-29 08:04:18] Production.INFO: ProcessCDR(1,14787497,1,1,2) [2025-03-29 08:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787497', 'tblTempUsageDetail_20' ) start [2025-03-29 08:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787497', 'tblTempUsageDetail_20' ) end [2025-03-29 08:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 08:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 08:04:21] Production.INFO: ==6821== Releasing lock... [2025-03-29 08:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 08:04:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-29 08:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 05:05:06 [end_date_ymd] => 2025-03-29 08:05:06 [RateCDR] => 1 ) [2025-03-29 08:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 05:05:06' and `end` < '2025-03-29 08:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 08:05:18] Production.INFO: count ==169 [2025-03-29 08:05:18] Production.ERROR: pbx CDR StartTime 2025-03-29 05:05:06 - End Time 2025-03-29 08:05:06 [2025-03-29 08:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787502', 'tblTempUsageDetail_20' ) start [2025-03-29 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787502', 'tblTempUsageDetail_20' ) end [2025-03-29 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787502', 'tblTempVendorCDR_20' ) start [2025-03-29 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787502', 'tblTempVendorCDR_20' ) end [2025-03-29 08:05:18] Production.INFO: ProcessCDR(1,14787502,1,1,2) [2025-03-29 08:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787502', 'tblTempUsageDetail_20' ) start [2025-03-29 08:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787502', 'tblTempUsageDetail_20' ) end [2025-03-29 08:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 08:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 08:05:22] Production.INFO: ==6895== Releasing lock... [2025-03-29 08:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 08:05:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-29 08:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 05:06:05 [end_date_ymd] => 2025-03-29 08:06:05 [RateCDR] => 1 ) [2025-03-29 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-29 05:06:05' and `end` < '2025-03-29 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-29 08:06:18] Production.INFO: count ==164 [2025-03-29 08:06:18] Production.ERROR: pbx CDR StartTime 2025-03-29 05:06:05 - End Time 2025-03-29 08:06:05 [2025-03-29 08:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787507', 'tblTempUsageDetail_20' ) start [2025-03-29 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787507', 'tblTempUsageDetail_20' ) end [2025-03-29 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787507', 'tblTempVendorCDR_20' ) start [2025-03-29 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787507', 'tblTempVendorCDR_20' ) end [2025-03-29 08:06:18] Production.INFO: ProcessCDR(1,14787507,1,1,2) [2025-03-29 08:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787507', 'tblTempUsageDetail_20' ) start [2025-03-29 08:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787507', 'tblTempUsageDetail_20' ) end [2025-03-29 08:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 08:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 08:06:22] Production.INFO: ==6977== Releasing lock... [2025-03-29 08:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 08:06:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-29 08:07:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 05:07:07 [end_date_ymd] => 2025-03-29 08:07:07 [RateCDR] => 1 ) [2025-03-29 08:07: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-29 05:07:07' and `end` < '2025-03-29 08:07: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-29 08:07:20] Production.INFO: count ==164 [2025-03-29 08:07:20] Production.ERROR: pbx CDR StartTime 2025-03-29 05:07:07 - End Time 2025-03-29 08:07:07 [2025-03-29 08:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 08:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787512', 'tblTempUsageDetail_20' ) start [2025-03-29 08:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787512', 'tblTempUsageDetail_20' ) end [2025-03-29 08:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787512', 'tblTempVendorCDR_20' ) start [2025-03-29 08:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787512', 'tblTempVendorCDR_20' ) end [2025-03-29 08:07:20] Production.INFO: ProcessCDR(1,14787512,1,1,2) [2025-03-29 08:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787512', 'tblTempUsageDetail_20' ) start [2025-03-29 08:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787512', 'tblTempUsageDetail_20' ) end [2025-03-29 08:07:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 08:07:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 08:07:23] Production.INFO: ==7052== Releasing lock... [2025-03-29 08:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 08:07:23] Production.INFO: 29.5 MB #Memory Used# [2025-03-29 08:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 05:08:06 [end_date_ymd] => 2025-03-29 08:08:06 [RateCDR] => 1 ) [2025-03-29 08:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 05:08:06' and `end` < '2025-03-29 08:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 08:08:18] Production.INFO: count ==161 [2025-03-29 08:08:19] Production.ERROR: pbx CDR StartTime 2025-03-29 05:08:06 - End Time 2025-03-29 08:08:06 [2025-03-29 08:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 08:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787517', 'tblTempUsageDetail_20' ) start [2025-03-29 08:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787517', 'tblTempUsageDetail_20' ) end [2025-03-29 08:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787517', 'tblTempVendorCDR_20' ) start [2025-03-29 08:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787517', 'tblTempVendorCDR_20' ) end [2025-03-29 08:08:19] Production.INFO: ProcessCDR(1,14787517,1,1,2) [2025-03-29 08:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787517', 'tblTempUsageDetail_20' ) start [2025-03-29 08:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787517', 'tblTempUsageDetail_20' ) end [2025-03-29 08:08:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 08:08:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 08:08:22] Production.INFO: ==7130== Releasing lock... [2025-03-29 08:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 08:08:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-29 08:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 05:09:06 [end_date_ymd] => 2025-03-29 08:09:06 [RateCDR] => 1 ) [2025-03-29 08: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-29 05:09:06' and `end` < '2025-03-29 08: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-29 08:09:18] Production.INFO: count ==159 [2025-03-29 08:09:18] Production.ERROR: pbx CDR StartTime 2025-03-29 05:09:06 - End Time 2025-03-29 08:09:06 [2025-03-29 08:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787522', 'tblTempUsageDetail_20' ) start [2025-03-29 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787522', 'tblTempUsageDetail_20' ) end [2025-03-29 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787522', 'tblTempVendorCDR_20' ) start [2025-03-29 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787522', 'tblTempVendorCDR_20' ) end [2025-03-29 08:09:18] Production.INFO: ProcessCDR(1,14787522,1,1,2) [2025-03-29 08:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787522', 'tblTempUsageDetail_20' ) start [2025-03-29 08:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787522', 'tblTempUsageDetail_20' ) end [2025-03-29 08:09:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 08:09:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 08:09:22] Production.INFO: ==7248== Releasing lock... [2025-03-29 08:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 08:09:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-29 08:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 05:10:06 [end_date_ymd] => 2025-03-29 08:10:06 [RateCDR] => 1 ) [2025-03-29 08:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 05:10:06' and `end` < '2025-03-29 08:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 08:10:19] Production.INFO: count ==160 [2025-03-29 08:10:19] Production.ERROR: pbx CDR StartTime 2025-03-29 05:10:06 - End Time 2025-03-29 08:10:06 [2025-03-29 08:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787528', 'tblTempUsageDetail_20' ) start [2025-03-29 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787528', 'tblTempUsageDetail_20' ) end [2025-03-29 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787528', 'tblTempVendorCDR_20' ) start [2025-03-29 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787528', 'tblTempVendorCDR_20' ) end [2025-03-29 08:10:19] Production.INFO: ProcessCDR(1,14787528,1,1,2) [2025-03-29 08:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787528', 'tblTempUsageDetail_20' ) start [2025-03-29 08:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787528', 'tblTempUsageDetail_20' ) end [2025-03-29 08:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 08:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 08:10:22] Production.INFO: ==7321== Releasing lock... [2025-03-29 08:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 08:10:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-29 08:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 05:11:04 [end_date_ymd] => 2025-03-29 08:11:04 [RateCDR] => 1 ) [2025-03-29 08:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 05:11:04' and `end` < '2025-03-29 08:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 08:11:17] Production.INFO: count ==155 [2025-03-29 08:11:17] Production.ERROR: pbx CDR StartTime 2025-03-29 05:11:04 - End Time 2025-03-29 08:11:04 [2025-03-29 08:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787533', 'tblTempUsageDetail_20' ) start [2025-03-29 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787533', 'tblTempUsageDetail_20' ) end [2025-03-29 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787533', 'tblTempVendorCDR_20' ) start [2025-03-29 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787533', 'tblTempVendorCDR_20' ) end [2025-03-29 08:11:17] Production.INFO: ProcessCDR(1,14787533,1,1,2) [2025-03-29 08:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787533', 'tblTempUsageDetail_20' ) start [2025-03-29 08:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787533', 'tblTempUsageDetail_20' ) end [2025-03-29 08:11:20] Production.ERROR: pbx prc_insertCDR start [2025-03-29 08:11:20] Production.ERROR: pbx prc_insertCDR end [2025-03-29 08:11:20] Production.INFO: ==7400== Releasing lock... [2025-03-29 08:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 08:11:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-29 08:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 05:12:06 [end_date_ymd] => 2025-03-29 08:12:06 [RateCDR] => 1 ) [2025-03-29 08:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 05:12:06' and `end` < '2025-03-29 08:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 08:12:18] Production.INFO: count ==155 [2025-03-29 08:12:18] Production.ERROR: pbx CDR StartTime 2025-03-29 05:12:06 - End Time 2025-03-29 08:12:06 [2025-03-29 08:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787538', 'tblTempUsageDetail_20' ) start [2025-03-29 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787538', 'tblTempUsageDetail_20' ) end [2025-03-29 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787538', 'tblTempVendorCDR_20' ) start [2025-03-29 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787538', 'tblTempVendorCDR_20' ) end [2025-03-29 08:12:18] Production.INFO: ProcessCDR(1,14787538,1,1,2) [2025-03-29 08:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787538', 'tblTempUsageDetail_20' ) start [2025-03-29 08:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787538', 'tblTempUsageDetail_20' ) end [2025-03-29 08:12:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 08:12:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 08:12:22] Production.INFO: ==7476== Releasing lock... [2025-03-29 08:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 08:12:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-29 08:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 05:13:06 [end_date_ymd] => 2025-03-29 08:13:06 [RateCDR] => 1 ) [2025-03-29 08:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 05:13:06' and `end` < '2025-03-29 08:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 08:13:18] Production.INFO: count ==160 [2025-03-29 08:13:18] Production.ERROR: pbx CDR StartTime 2025-03-29 05:13:06 - End Time 2025-03-29 08:13:06 [2025-03-29 08:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787543', 'tblTempUsageDetail_20' ) start [2025-03-29 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787543', 'tblTempUsageDetail_20' ) end [2025-03-29 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787543', 'tblTempVendorCDR_20' ) start [2025-03-29 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787543', 'tblTempVendorCDR_20' ) end [2025-03-29 08:13:18] Production.INFO: ProcessCDR(1,14787543,1,1,2) [2025-03-29 08:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787543', 'tblTempUsageDetail_20' ) start [2025-03-29 08:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787543', 'tblTempUsageDetail_20' ) end [2025-03-29 08:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 08:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 08:13:21] Production.INFO: ==7552== Releasing lock... [2025-03-29 08:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 08:13:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-29 08:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 05:14:05 [end_date_ymd] => 2025-03-29 08:14:05 [RateCDR] => 1 ) [2025-03-29 08:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 05:14:05' and `end` < '2025-03-29 08:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 08:14:18] Production.INFO: count ==160 [2025-03-29 08:14:18] Production.ERROR: pbx CDR StartTime 2025-03-29 05:14:05 - End Time 2025-03-29 08:14:05 [2025-03-29 08:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787548', 'tblTempUsageDetail_20' ) start [2025-03-29 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787548', 'tblTempUsageDetail_20' ) end [2025-03-29 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787548', 'tblTempVendorCDR_20' ) start [2025-03-29 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787548', 'tblTempVendorCDR_20' ) end [2025-03-29 08:14:18] Production.INFO: ProcessCDR(1,14787548,1,1,2) [2025-03-29 08:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787548', 'tblTempUsageDetail_20' ) start [2025-03-29 08:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787548', 'tblTempUsageDetail_20' ) end [2025-03-29 08:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 08:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 08:14:21] Production.INFO: ==7628== Releasing lock... [2025-03-29 08:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 08:14:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-29 08:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 05:15:05 [end_date_ymd] => 2025-03-29 08:15:05 [RateCDR] => 1 ) [2025-03-29 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-29 05:15:05' and `end` < '2025-03-29 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-29 08:15:18] Production.INFO: count ==160 [2025-03-29 08:15:18] Production.ERROR: pbx CDR StartTime 2025-03-29 05:15:05 - End Time 2025-03-29 08:15:05 [2025-03-29 08:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787553', 'tblTempUsageDetail_20' ) start [2025-03-29 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787553', 'tblTempUsageDetail_20' ) end [2025-03-29 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787553', 'tblTempVendorCDR_20' ) start [2025-03-29 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787553', 'tblTempVendorCDR_20' ) end [2025-03-29 08:15:18] Production.INFO: ProcessCDR(1,14787553,1,1,2) [2025-03-29 08:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787553', 'tblTempUsageDetail_20' ) start [2025-03-29 08:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787553', 'tblTempUsageDetail_20' ) end [2025-03-29 08:15:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 08:15:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 08:15:22] Production.INFO: ==7708== Releasing lock... [2025-03-29 08:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 08:15:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-29 08:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 05:16:05 [end_date_ymd] => 2025-03-29 08:16:05 [RateCDR] => 1 ) [2025-03-29 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-29 05:16:05' and `end` < '2025-03-29 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-29 08:16:17] Production.INFO: count ==160 [2025-03-29 08:16:17] Production.ERROR: pbx CDR StartTime 2025-03-29 05:16:05 - End Time 2025-03-29 08:16:05 [2025-03-29 08:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 08:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787558', 'tblTempUsageDetail_20' ) start [2025-03-29 08:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787558', 'tblTempUsageDetail_20' ) end [2025-03-29 08:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787558', 'tblTempVendorCDR_20' ) start [2025-03-29 08:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787558', 'tblTempVendorCDR_20' ) end [2025-03-29 08:16:17] Production.INFO: ProcessCDR(1,14787558,1,1,2) [2025-03-29 08:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787558', 'tblTempUsageDetail_20' ) start [2025-03-29 08:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787558', 'tblTempUsageDetail_20' ) end [2025-03-29 08:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 08:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 08:16:21] Production.INFO: ==7786== Releasing lock... [2025-03-29 08:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 08:16:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-29 08:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 05:17:06 [end_date_ymd] => 2025-03-29 08:17:06 [RateCDR] => 1 ) [2025-03-29 08: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-29 05:17:06' and `end` < '2025-03-29 08: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-29 08:17:18] Production.INFO: count ==160 [2025-03-29 08:17:18] Production.ERROR: pbx CDR StartTime 2025-03-29 05:17:06 - End Time 2025-03-29 08:17:06 [2025-03-29 08:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787563', 'tblTempUsageDetail_20' ) start [2025-03-29 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787563', 'tblTempUsageDetail_20' ) end [2025-03-29 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787563', 'tblTempVendorCDR_20' ) start [2025-03-29 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787563', 'tblTempVendorCDR_20' ) end [2025-03-29 08:17:18] Production.INFO: ProcessCDR(1,14787563,1,1,2) [2025-03-29 08:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787563', 'tblTempUsageDetail_20' ) start [2025-03-29 08:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787563', 'tblTempUsageDetail_20' ) end [2025-03-29 08:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 08:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 08:17:22] Production.INFO: ==7864== Releasing lock... [2025-03-29 08:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 08:17:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-29 08:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 05:18:05 [end_date_ymd] => 2025-03-29 08:18:05 [RateCDR] => 1 ) [2025-03-29 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-29 05:18:05' and `end` < '2025-03-29 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-29 08:18:17] Production.INFO: count ==160 [2025-03-29 08:18:17] Production.ERROR: pbx CDR StartTime 2025-03-29 05:18:05 - End Time 2025-03-29 08:18:05 [2025-03-29 08:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787568', 'tblTempUsageDetail_20' ) start [2025-03-29 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787568', 'tblTempUsageDetail_20' ) end [2025-03-29 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787568', 'tblTempVendorCDR_20' ) start [2025-03-29 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787568', 'tblTempVendorCDR_20' ) end [2025-03-29 08:18:18] Production.INFO: ProcessCDR(1,14787568,1,1,2) [2025-03-29 08:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787568', 'tblTempUsageDetail_20' ) start [2025-03-29 08:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787568', 'tblTempUsageDetail_20' ) end [2025-03-29 08:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 08:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 08:18:21] Production.INFO: ==7940== Releasing lock... [2025-03-29 08:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 08:18:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-29 08:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 05:19:05 [end_date_ymd] => 2025-03-29 08:19:05 [RateCDR] => 1 ) [2025-03-29 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-29 05:19:05' and `end` < '2025-03-29 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-29 08:19:18] Production.INFO: count ==160 [2025-03-29 08:19:18] Production.ERROR: pbx CDR StartTime 2025-03-29 05:19:05 - End Time 2025-03-29 08:19:05 [2025-03-29 08:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787573', 'tblTempUsageDetail_20' ) start [2025-03-29 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787573', 'tblTempUsageDetail_20' ) end [2025-03-29 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787573', 'tblTempVendorCDR_20' ) start [2025-03-29 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787573', 'tblTempVendorCDR_20' ) end [2025-03-29 08:19:18] Production.INFO: ProcessCDR(1,14787573,1,1,2) [2025-03-29 08:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787573', 'tblTempUsageDetail_20' ) start [2025-03-29 08:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787573', 'tblTempUsageDetail_20' ) end [2025-03-29 08:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 08:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 08:19:21] Production.INFO: ==8017== Releasing lock... [2025-03-29 08:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 08:19:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-29 08:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 05:20:06 [end_date_ymd] => 2025-03-29 08:20:06 [RateCDR] => 1 ) [2025-03-29 08:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 05:20:06' and `end` < '2025-03-29 08:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 08:20:18] Production.INFO: count ==164 [2025-03-29 08:20:18] Production.ERROR: pbx CDR StartTime 2025-03-29 05:20:06 - End Time 2025-03-29 08:20:06 [2025-03-29 08:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787578', 'tblTempUsageDetail_20' ) start [2025-03-29 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787578', 'tblTempUsageDetail_20' ) end [2025-03-29 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787578', 'tblTempVendorCDR_20' ) start [2025-03-29 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787578', 'tblTempVendorCDR_20' ) end [2025-03-29 08:20:18] Production.INFO: ProcessCDR(1,14787578,1,1,2) [2025-03-29 08:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787578', 'tblTempUsageDetail_20' ) start [2025-03-29 08:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787578', 'tblTempUsageDetail_20' ) end [2025-03-29 08:20:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 08:20:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 08:20:21] Production.INFO: ==8103== Releasing lock... [2025-03-29 08:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 08:20:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-29 08:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 05:21:05 [end_date_ymd] => 2025-03-29 08:21:05 [RateCDR] => 1 ) [2025-03-29 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-29 05:21:05' and `end` < '2025-03-29 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-29 08:21:18] Production.INFO: count ==168 [2025-03-29 08:21:18] Production.ERROR: pbx CDR StartTime 2025-03-29 05:21:05 - End Time 2025-03-29 08:21:05 [2025-03-29 08:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787584', 'tblTempUsageDetail_20' ) start [2025-03-29 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787584', 'tblTempUsageDetail_20' ) end [2025-03-29 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787584', 'tblTempVendorCDR_20' ) start [2025-03-29 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787584', 'tblTempVendorCDR_20' ) end [2025-03-29 08:21:18] Production.INFO: ProcessCDR(1,14787584,1,1,2) [2025-03-29 08:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787584', 'tblTempUsageDetail_20' ) start [2025-03-29 08:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787584', 'tblTempUsageDetail_20' ) end [2025-03-29 08:21:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 08:21:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 08:21:22] Production.INFO: ==8186== Releasing lock... [2025-03-29 08:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 08:21:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-29 08:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 05:22:06 [end_date_ymd] => 2025-03-29 08:22:06 [RateCDR] => 1 ) [2025-03-29 08:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 05:22:06' and `end` < '2025-03-29 08:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 08:22:18] Production.INFO: count ==168 [2025-03-29 08:22:18] Production.ERROR: pbx CDR StartTime 2025-03-29 05:22:06 - End Time 2025-03-29 08:22:06 [2025-03-29 08:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787589', 'tblTempUsageDetail_20' ) start [2025-03-29 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787589', 'tblTempUsageDetail_20' ) end [2025-03-29 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787589', 'tblTempVendorCDR_20' ) start [2025-03-29 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787589', 'tblTempVendorCDR_20' ) end [2025-03-29 08:22:18] Production.INFO: ProcessCDR(1,14787589,1,1,2) [2025-03-29 08:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787589', 'tblTempUsageDetail_20' ) start [2025-03-29 08:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787589', 'tblTempUsageDetail_20' ) end [2025-03-29 08:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 08:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 08:22:22] Production.INFO: ==8273== Releasing lock... [2025-03-29 08:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 08:22:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-29 08:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 05:23:05 [end_date_ymd] => 2025-03-29 08:23:05 [RateCDR] => 1 ) [2025-03-29 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-29 05:23:05' and `end` < '2025-03-29 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-29 08:23:18] Production.INFO: count ==168 [2025-03-29 08:23:18] Production.ERROR: pbx CDR StartTime 2025-03-29 05:23:05 - End Time 2025-03-29 08:23:05 [2025-03-29 08:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787594', 'tblTempUsageDetail_20' ) start [2025-03-29 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787594', 'tblTempUsageDetail_20' ) end [2025-03-29 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787594', 'tblTempVendorCDR_20' ) start [2025-03-29 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787594', 'tblTempVendorCDR_20' ) end [2025-03-29 08:23:18] Production.INFO: ProcessCDR(1,14787594,1,1,2) [2025-03-29 08:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787594', 'tblTempUsageDetail_20' ) start [2025-03-29 08:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787594', 'tblTempUsageDetail_20' ) end [2025-03-29 08:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 08:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 08:23:21] Production.INFO: ==8351== Releasing lock... [2025-03-29 08:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 08:23:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-29 08:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 05:24:06 [end_date_ymd] => 2025-03-29 08:24:06 [RateCDR] => 1 ) [2025-03-29 08:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 05:24:06' and `end` < '2025-03-29 08:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 08:24:18] Production.INFO: count ==168 [2025-03-29 08:24:18] Production.ERROR: pbx CDR StartTime 2025-03-29 05:24:06 - End Time 2025-03-29 08:24:06 [2025-03-29 08:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787599', 'tblTempUsageDetail_20' ) start [2025-03-29 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787599', 'tblTempUsageDetail_20' ) end [2025-03-29 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787599', 'tblTempVendorCDR_20' ) start [2025-03-29 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787599', 'tblTempVendorCDR_20' ) end [2025-03-29 08:24:18] Production.INFO: ProcessCDR(1,14787599,1,1,2) [2025-03-29 08:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787599', 'tblTempUsageDetail_20' ) start [2025-03-29 08:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787599', 'tblTempUsageDetail_20' ) end [2025-03-29 08:24:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 08:24:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 08:24:22] Production.INFO: ==8434== Releasing lock... [2025-03-29 08:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 08:24:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-29 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 05:25:05 [end_date_ymd] => 2025-03-29 08:25:05 [RateCDR] => 1 ) [2025-03-29 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-29 05:25:05' and `end` < '2025-03-29 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-29 08:25:18] Production.INFO: count ==168 [2025-03-29 08:25:18] Production.ERROR: pbx CDR StartTime 2025-03-29 05:25:05 - End Time 2025-03-29 08:25:05 [2025-03-29 08:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787604', 'tblTempUsageDetail_20' ) start [2025-03-29 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787604', 'tblTempUsageDetail_20' ) end [2025-03-29 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787604', 'tblTempVendorCDR_20' ) start [2025-03-29 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787604', 'tblTempVendorCDR_20' ) end [2025-03-29 08:25:18] Production.INFO: ProcessCDR(1,14787604,1,1,2) [2025-03-29 08:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787604', 'tblTempUsageDetail_20' ) start [2025-03-29 08:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787604', 'tblTempUsageDetail_20' ) end [2025-03-29 08:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 08:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 08:25:21] Production.INFO: ==8558== Releasing lock... [2025-03-29 08:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 08:25:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-29 08:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 05:26:06 [end_date_ymd] => 2025-03-29 08:26:06 [RateCDR] => 1 ) [2025-03-29 08:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 05:26:06' and `end` < '2025-03-29 08:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 08:26:18] Production.INFO: count ==168 [2025-03-29 08:26:18] Production.ERROR: pbx CDR StartTime 2025-03-29 05:26:06 - End Time 2025-03-29 08:26:06 [2025-03-29 08:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787609', 'tblTempUsageDetail_20' ) start [2025-03-29 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787609', 'tblTempUsageDetail_20' ) end [2025-03-29 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787609', 'tblTempVendorCDR_20' ) start [2025-03-29 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787609', 'tblTempVendorCDR_20' ) end [2025-03-29 08:26:18] Production.INFO: ProcessCDR(1,14787609,1,1,2) [2025-03-29 08:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787609', 'tblTempUsageDetail_20' ) start [2025-03-29 08:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787609', 'tblTempUsageDetail_20' ) end [2025-03-29 08:26:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 08:26:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 08:26:22] Production.INFO: ==8644== Releasing lock... [2025-03-29 08:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 08:26:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-29 08:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 05:27:05 [end_date_ymd] => 2025-03-29 08:27:05 [RateCDR] => 1 ) [2025-03-29 08:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 05:27:05' and `end` < '2025-03-29 08:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 08:27:17] Production.INFO: count ==169 [2025-03-29 08:27:17] Production.ERROR: pbx CDR StartTime 2025-03-29 05:27:05 - End Time 2025-03-29 08:27:05 [2025-03-29 08:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787614', 'tblTempUsageDetail_20' ) start [2025-03-29 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787614', 'tblTempUsageDetail_20' ) end [2025-03-29 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787614', 'tblTempVendorCDR_20' ) start [2025-03-29 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787614', 'tblTempVendorCDR_20' ) end [2025-03-29 08:27:17] Production.INFO: ProcessCDR(1,14787614,1,1,2) [2025-03-29 08:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787614', 'tblTempUsageDetail_20' ) start [2025-03-29 08:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787614', 'tblTempUsageDetail_20' ) end [2025-03-29 08:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 08:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 08:27:21] Production.INFO: ==8728== Releasing lock... [2025-03-29 08:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 08:27:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-29 08:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 05:28:05 [end_date_ymd] => 2025-03-29 08:28:05 [RateCDR] => 1 ) [2025-03-29 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-29 05:28:05' and `end` < '2025-03-29 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-29 08:28:17] Production.INFO: count ==179 [2025-03-29 08:28:17] Production.ERROR: pbx CDR StartTime 2025-03-29 05:28:05 - End Time 2025-03-29 08:28:05 [2025-03-29 08:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787619', 'tblTempUsageDetail_20' ) start [2025-03-29 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787619', 'tblTempUsageDetail_20' ) end [2025-03-29 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787619', 'tblTempVendorCDR_20' ) start [2025-03-29 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787619', 'tblTempVendorCDR_20' ) end [2025-03-29 08:28:17] Production.INFO: ProcessCDR(1,14787619,1,1,2) [2025-03-29 08:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787619', 'tblTempUsageDetail_20' ) start [2025-03-29 08:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787619', 'tblTempUsageDetail_20' ) end [2025-03-29 08:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 08:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 08:28:21] Production.INFO: ==8810== Releasing lock... [2025-03-29 08:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 08:28:21] Production.INFO: 30 MB #Memory Used# [2025-03-29 08:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 05:29:05 [end_date_ymd] => 2025-03-29 08:29:05 [RateCDR] => 1 ) [2025-03-29 08:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 05:29:05' and `end` < '2025-03-29 08:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 08:29:17] Production.INFO: count ==186 [2025-03-29 08:29:18] Production.ERROR: pbx CDR StartTime 2025-03-29 05:29:05 - End Time 2025-03-29 08:29:05 [2025-03-29 08:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787624', 'tblTempUsageDetail_20' ) start [2025-03-29 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787624', 'tblTempUsageDetail_20' ) end [2025-03-29 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787624', 'tblTempVendorCDR_20' ) start [2025-03-29 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787624', 'tblTempVendorCDR_20' ) end [2025-03-29 08:29:18] Production.INFO: ProcessCDR(1,14787624,1,1,2) [2025-03-29 08:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787624', 'tblTempUsageDetail_20' ) start [2025-03-29 08:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787624', 'tblTempUsageDetail_20' ) end [2025-03-29 08:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 08:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 08:29:21] Production.INFO: ==8889== Releasing lock... [2025-03-29 08:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 08:29:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-29 08:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 05:30:06 [end_date_ymd] => 2025-03-29 08:30:06 [RateCDR] => 1 ) [2025-03-29 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-29 05:30:06' and `end` < '2025-03-29 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-29 08:30:19] Production.INFO: count ==215 [2025-03-29 08:30:19] Production.ERROR: pbx CDR StartTime 2025-03-29 05:30:06 - End Time 2025-03-29 08:30:06 [2025-03-29 08:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787630', 'tblTempUsageDetail_20' ) start [2025-03-29 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787630', 'tblTempUsageDetail_20' ) end [2025-03-29 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787630', 'tblTempVendorCDR_20' ) start [2025-03-29 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787630', 'tblTempVendorCDR_20' ) end [2025-03-29 08:30:19] Production.INFO: ProcessCDR(1,14787630,1,1,2) [2025-03-29 08:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787630', 'tblTempUsageDetail_20' ) start [2025-03-29 08:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787630', 'tblTempUsageDetail_20' ) end [2025-03-29 08:30:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 08:30:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 08:30:23] Production.INFO: ==8975== Releasing lock... [2025-03-29 08:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 08:30:23] Production.INFO: 30.25 MB #Memory Used# [2025-03-29 08:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 05:31:05 [end_date_ymd] => 2025-03-29 08:31:05 [RateCDR] => 1 ) [2025-03-29 08:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 05:31:05' and `end` < '2025-03-29 08:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 08:31:17] Production.INFO: count ==223 [2025-03-29 08:31:17] Production.ERROR: pbx CDR StartTime 2025-03-29 05:31:05 - End Time 2025-03-29 08:31:05 [2025-03-29 08:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 08:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787635', 'tblTempUsageDetail_20' ) start [2025-03-29 08:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787635', 'tblTempUsageDetail_20' ) end [2025-03-29 08:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787635', 'tblTempVendorCDR_20' ) start [2025-03-29 08:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787635', 'tblTempVendorCDR_20' ) end [2025-03-29 08:31:17] Production.INFO: ProcessCDR(1,14787635,1,1,2) [2025-03-29 08:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787635', 'tblTempUsageDetail_20' ) start [2025-03-29 08:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787635', 'tblTempUsageDetail_20' ) end [2025-03-29 08:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 08:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 08:31:21] Production.INFO: ==9059== Releasing lock... [2025-03-29 08:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 08:31:21] Production.INFO: 30 MB #Memory Used# [2025-03-29 08:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 05:32:06 [end_date_ymd] => 2025-03-29 08:32:06 [RateCDR] => 1 ) [2025-03-29 08: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-29 05:32:06' and `end` < '2025-03-29 08: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-29 08:32:19] Production.INFO: count ==223 [2025-03-29 08:32:19] Production.ERROR: pbx CDR StartTime 2025-03-29 05:32:06 - End Time 2025-03-29 08:32:06 [2025-03-29 08:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 08:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787640', 'tblTempUsageDetail_20' ) start [2025-03-29 08:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787640', 'tblTempUsageDetail_20' ) end [2025-03-29 08:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787640', 'tblTempVendorCDR_20' ) start [2025-03-29 08:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787640', 'tblTempVendorCDR_20' ) end [2025-03-29 08:32:19] Production.INFO: ProcessCDR(1,14787640,1,1,2) [2025-03-29 08:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787640', 'tblTempUsageDetail_20' ) start [2025-03-29 08:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787640', 'tblTempUsageDetail_20' ) end [2025-03-29 08:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 08:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 08:32:22] Production.INFO: ==9138== Releasing lock... [2025-03-29 08:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 08:32:22] Production.INFO: 30 MB #Memory Used# [2025-03-29 08:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 05:33:05 [end_date_ymd] => 2025-03-29 08:33:05 [RateCDR] => 1 ) [2025-03-29 08:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 05:33:05' and `end` < '2025-03-29 08:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 08:33:18] Production.INFO: count ==227 [2025-03-29 08:33:18] Production.ERROR: pbx CDR StartTime 2025-03-29 05:33:05 - End Time 2025-03-29 08:33:05 [2025-03-29 08:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787645', 'tblTempUsageDetail_20' ) start [2025-03-29 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787645', 'tblTempUsageDetail_20' ) end [2025-03-29 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787645', 'tblTempVendorCDR_20' ) start [2025-03-29 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787645', 'tblTempVendorCDR_20' ) end [2025-03-29 08:33:18] Production.INFO: ProcessCDR(1,14787645,1,1,2) [2025-03-29 08:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787645', 'tblTempUsageDetail_20' ) start [2025-03-29 08:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787645', 'tblTempUsageDetail_20' ) end [2025-03-29 08:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 08:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 08:33:21] Production.INFO: ==9222== Releasing lock... [2025-03-29 08:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 08:33:21] Production.INFO: 30 MB #Memory Used# [2025-03-29 08:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 05:34:06 [end_date_ymd] => 2025-03-29 08:34:06 [RateCDR] => 1 ) [2025-03-29 08:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 05:34:06' and `end` < '2025-03-29 08:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 08:34:18] Production.INFO: count ==227 [2025-03-29 08:34:18] Production.ERROR: pbx CDR StartTime 2025-03-29 05:34:06 - End Time 2025-03-29 08:34:06 [2025-03-29 08:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787650', 'tblTempUsageDetail_20' ) start [2025-03-29 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787650', 'tblTempUsageDetail_20' ) end [2025-03-29 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787650', 'tblTempVendorCDR_20' ) start [2025-03-29 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787650', 'tblTempVendorCDR_20' ) end [2025-03-29 08:34:18] Production.INFO: ProcessCDR(1,14787650,1,1,2) [2025-03-29 08:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787650', 'tblTempUsageDetail_20' ) start [2025-03-29 08:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787650', 'tblTempUsageDetail_20' ) end [2025-03-29 08:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 08:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 08:34:21] Production.INFO: ==9309== Releasing lock... [2025-03-29 08:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 08:34:21] Production.INFO: 30 MB #Memory Used# [2025-03-29 08:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 05:35:05 [end_date_ymd] => 2025-03-29 08:35:05 [RateCDR] => 1 ) [2025-03-29 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-29 05:35:05' and `end` < '2025-03-29 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-29 08:35:17] Production.INFO: count ==238 [2025-03-29 08:35:18] Production.ERROR: pbx CDR StartTime 2025-03-29 05:35:05 - End Time 2025-03-29 08:35:05 [2025-03-29 08:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787655', 'tblTempUsageDetail_20' ) start [2025-03-29 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787655', 'tblTempUsageDetail_20' ) end [2025-03-29 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787655', 'tblTempVendorCDR_20' ) start [2025-03-29 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787655', 'tblTempVendorCDR_20' ) end [2025-03-29 08:35:18] Production.INFO: ProcessCDR(1,14787655,1,1,2) [2025-03-29 08:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787655', 'tblTempUsageDetail_20' ) start [2025-03-29 08:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787655', 'tblTempUsageDetail_20' ) end [2025-03-29 08:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 08:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 08:35:21] Production.INFO: ==9387== Releasing lock... [2025-03-29 08:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 08:35:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-29 08:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 05:36:06 [end_date_ymd] => 2025-03-29 08:36:06 [RateCDR] => 1 ) [2025-03-29 08:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 05:36:06' and `end` < '2025-03-29 08:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 08:36:18] Production.INFO: count ==243 [2025-03-29 08:36:18] Production.ERROR: pbx CDR StartTime 2025-03-29 05:36:06 - End Time 2025-03-29 08:36:06 [2025-03-29 08:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787660', 'tblTempUsageDetail_20' ) start [2025-03-29 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787660', 'tblTempUsageDetail_20' ) end [2025-03-29 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787660', 'tblTempVendorCDR_20' ) start [2025-03-29 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787660', 'tblTempVendorCDR_20' ) end [2025-03-29 08:36:18] Production.INFO: ProcessCDR(1,14787660,1,1,2) [2025-03-29 08:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787660', 'tblTempUsageDetail_20' ) start [2025-03-29 08:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787660', 'tblTempUsageDetail_20' ) end [2025-03-29 08:36:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 08:36:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 08:36:22] Production.INFO: ==9469== Releasing lock... [2025-03-29 08:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 08:36:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-29 08:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 05:37:05 [end_date_ymd] => 2025-03-29 08:37:05 [RateCDR] => 1 ) [2025-03-29 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-29 05:37:05' and `end` < '2025-03-29 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-29 08:37:18] Production.INFO: count ==254 [2025-03-29 08:37:18] Production.ERROR: pbx CDR StartTime 2025-03-29 05:37:05 - End Time 2025-03-29 08:37:05 [2025-03-29 08:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787665', 'tblTempUsageDetail_20' ) start [2025-03-29 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787665', 'tblTempUsageDetail_20' ) end [2025-03-29 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787665', 'tblTempVendorCDR_20' ) start [2025-03-29 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787665', 'tblTempVendorCDR_20' ) end [2025-03-29 08:37:18] Production.INFO: ProcessCDR(1,14787665,1,1,2) [2025-03-29 08:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787665', 'tblTempUsageDetail_20' ) start [2025-03-29 08:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787665', 'tblTempUsageDetail_20' ) end [2025-03-29 08:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 08:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 08:37:21] Production.INFO: ==9550== Releasing lock... [2025-03-29 08:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 08:37:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-29 08:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 05:38:06 [end_date_ymd] => 2025-03-29 08:38:06 [RateCDR] => 1 ) [2025-03-29 08:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 05:38:06' and `end` < '2025-03-29 08:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 08:38:18] Production.INFO: count ==257 [2025-03-29 08:38:18] Production.ERROR: pbx CDR StartTime 2025-03-29 05:38:06 - End Time 2025-03-29 08:38:06 [2025-03-29 08:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787670', 'tblTempUsageDetail_20' ) start [2025-03-29 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787670', 'tblTempUsageDetail_20' ) end [2025-03-29 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787670', 'tblTempVendorCDR_20' ) start [2025-03-29 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787670', 'tblTempVendorCDR_20' ) end [2025-03-29 08:38:18] Production.INFO: ProcessCDR(1,14787670,1,1,2) [2025-03-29 08:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787670', 'tblTempUsageDetail_20' ) start [2025-03-29 08:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787670', 'tblTempUsageDetail_20' ) end [2025-03-29 08:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 08:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 08:38:22] Production.INFO: ==9624== Releasing lock... [2025-03-29 08:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 08:38:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-29 08:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 05:39:05 [end_date_ymd] => 2025-03-29 08:39:05 [RateCDR] => 1 ) [2025-03-29 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-29 05:39:05' and `end` < '2025-03-29 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-29 08:39:17] Production.INFO: count ==254 [2025-03-29 08:39:17] Production.ERROR: pbx CDR StartTime 2025-03-29 05:39:05 - End Time 2025-03-29 08:39:05 [2025-03-29 08:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787675', 'tblTempUsageDetail_20' ) start [2025-03-29 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787675', 'tblTempUsageDetail_20' ) end [2025-03-29 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787675', 'tblTempVendorCDR_20' ) start [2025-03-29 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787675', 'tblTempVendorCDR_20' ) end [2025-03-29 08:39:17] Production.INFO: ProcessCDR(1,14787675,1,1,2) [2025-03-29 08:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787675', 'tblTempUsageDetail_20' ) start [2025-03-29 08:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787675', 'tblTempUsageDetail_20' ) end [2025-03-29 08:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 08:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 08:39:21] Production.INFO: ==9705== Releasing lock... [2025-03-29 08:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 08:39:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-29 08:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 05:40:06 [end_date_ymd] => 2025-03-29 08:40:06 [RateCDR] => 1 ) [2025-03-29 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-29 05:40:06' and `end` < '2025-03-29 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-29 08:40:19] Production.INFO: count ==242 [2025-03-29 08:40:19] Production.ERROR: pbx CDR StartTime 2025-03-29 05:40:06 - End Time 2025-03-29 08:40:06 [2025-03-29 08:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787681', 'tblTempUsageDetail_20' ) start [2025-03-29 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787681', 'tblTempUsageDetail_20' ) end [2025-03-29 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787681', 'tblTempVendorCDR_20' ) start [2025-03-29 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787681', 'tblTempVendorCDR_20' ) end [2025-03-29 08:40:19] Production.INFO: ProcessCDR(1,14787681,1,1,2) [2025-03-29 08:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787681', 'tblTempUsageDetail_20' ) start [2025-03-29 08:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787681', 'tblTempUsageDetail_20' ) end [2025-03-29 08:40:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 08:40:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 08:40:23] Production.INFO: ==9824== Releasing lock... [2025-03-29 08:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 08:40:23] Production.INFO: 29.75 MB #Memory Used# [2025-03-29 08:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 05:41:05 [end_date_ymd] => 2025-03-29 08:41:05 [RateCDR] => 1 ) [2025-03-29 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-29 05:41:05' and `end` < '2025-03-29 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-29 08:41:18] Production.INFO: count ==234 [2025-03-29 08:41:18] Production.ERROR: pbx CDR StartTime 2025-03-29 05:41:05 - End Time 2025-03-29 08:41:05 [2025-03-29 08:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787686', 'tblTempUsageDetail_20' ) start [2025-03-29 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787686', 'tblTempUsageDetail_20' ) end [2025-03-29 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787686', 'tblTempVendorCDR_20' ) start [2025-03-29 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787686', 'tblTempVendorCDR_20' ) end [2025-03-29 08:41:18] Production.INFO: ProcessCDR(1,14787686,1,1,2) [2025-03-29 08:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787686', 'tblTempUsageDetail_20' ) start [2025-03-29 08:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787686', 'tblTempUsageDetail_20' ) end [2025-03-29 08:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 08:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 08:41:21] Production.INFO: ==9906== Releasing lock... [2025-03-29 08:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 08:41:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-29 08:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 05:42:06 [end_date_ymd] => 2025-03-29 08:42:06 [RateCDR] => 1 ) [2025-03-29 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-29 05:42:06' and `end` < '2025-03-29 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-29 08:42:18] Production.INFO: count ==226 [2025-03-29 08:42:18] Production.ERROR: pbx CDR StartTime 2025-03-29 05:42:06 - End Time 2025-03-29 08:42:06 [2025-03-29 08:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787691', 'tblTempUsageDetail_20' ) start [2025-03-29 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787691', 'tblTempUsageDetail_20' ) end [2025-03-29 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787691', 'tblTempVendorCDR_20' ) start [2025-03-29 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787691', 'tblTempVendorCDR_20' ) end [2025-03-29 08:42:18] Production.INFO: ProcessCDR(1,14787691,1,1,2) [2025-03-29 08:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787691', 'tblTempUsageDetail_20' ) start [2025-03-29 08:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787691', 'tblTempUsageDetail_20' ) end [2025-03-29 08:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 08:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 08:42:22] Production.INFO: ==9988== Releasing lock... [2025-03-29 08:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 08:42:22] Production.INFO: 30 MB #Memory Used# [2025-03-29 08:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 05:43:06 [end_date_ymd] => 2025-03-29 08:43:06 [RateCDR] => 1 ) [2025-03-29 08:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 05:43:06' and `end` < '2025-03-29 08:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 08:43:18] Production.INFO: count ==225 [2025-03-29 08:43:18] Production.ERROR: pbx CDR StartTime 2025-03-29 05:43:06 - End Time 2025-03-29 08:43:06 [2025-03-29 08:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787696', 'tblTempUsageDetail_20' ) start [2025-03-29 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787696', 'tblTempUsageDetail_20' ) end [2025-03-29 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787696', 'tblTempVendorCDR_20' ) start [2025-03-29 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787696', 'tblTempVendorCDR_20' ) end [2025-03-29 08:43:18] Production.INFO: ProcessCDR(1,14787696,1,1,2) [2025-03-29 08:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787696', 'tblTempUsageDetail_20' ) start [2025-03-29 08:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787696', 'tblTempUsageDetail_20' ) end [2025-03-29 08:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 08:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 08:43:22] Production.INFO: ==10068== Releasing lock... [2025-03-29 08:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 08:43:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-29 08:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 05:44:06 [end_date_ymd] => 2025-03-29 08:44:06 [RateCDR] => 1 ) [2025-03-29 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-29 05:44:06' and `end` < '2025-03-29 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-29 08:44:18] Production.INFO: count ==232 [2025-03-29 08:44:18] Production.ERROR: pbx CDR StartTime 2025-03-29 05:44:06 - End Time 2025-03-29 08:44:06 [2025-03-29 08:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787701', 'tblTempUsageDetail_20' ) start [2025-03-29 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787701', 'tblTempUsageDetail_20' ) end [2025-03-29 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787701', 'tblTempVendorCDR_20' ) start [2025-03-29 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787701', 'tblTempVendorCDR_20' ) end [2025-03-29 08:44:18] Production.INFO: ProcessCDR(1,14787701,1,1,2) [2025-03-29 08:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787701', 'tblTempUsageDetail_20' ) start [2025-03-29 08:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787701', 'tblTempUsageDetail_20' ) end [2025-03-29 08:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 08:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 08:44:22] Production.INFO: ==10147== Releasing lock... [2025-03-29 08:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 08:44:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-29 08:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 05:45:05 [end_date_ymd] => 2025-03-29 08:45:05 [RateCDR] => 1 ) [2025-03-29 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-29 05:45:05' and `end` < '2025-03-29 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-29 08:45:17] Production.INFO: count ==222 [2025-03-29 08:45:18] Production.ERROR: pbx CDR StartTime 2025-03-29 05:45:05 - End Time 2025-03-29 08:45:05 [2025-03-29 08:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787706', 'tblTempUsageDetail_20' ) start [2025-03-29 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787706', 'tblTempUsageDetail_20' ) end [2025-03-29 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787706', 'tblTempVendorCDR_20' ) start [2025-03-29 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787706', 'tblTempVendorCDR_20' ) end [2025-03-29 08:45:18] Production.INFO: ProcessCDR(1,14787706,1,1,2) [2025-03-29 08:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787706', 'tblTempUsageDetail_20' ) start [2025-03-29 08:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787706', 'tblTempUsageDetail_20' ) end [2025-03-29 08:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 08:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 08:45:21] Production.INFO: ==10230== Releasing lock... [2025-03-29 08:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 08:45:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-29 08:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 05:46:06 [end_date_ymd] => 2025-03-29 08:46:06 [RateCDR] => 1 ) [2025-03-29 08: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-29 05:46:06' and `end` < '2025-03-29 08: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-29 08:46:18] Production.INFO: count ==228 [2025-03-29 08:46:18] Production.ERROR: pbx CDR StartTime 2025-03-29 05:46:06 - End Time 2025-03-29 08:46:06 [2025-03-29 08:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787711', 'tblTempUsageDetail_20' ) start [2025-03-29 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787711', 'tblTempUsageDetail_20' ) end [2025-03-29 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787711', 'tblTempVendorCDR_20' ) start [2025-03-29 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787711', 'tblTempVendorCDR_20' ) end [2025-03-29 08:46:18] Production.INFO: ProcessCDR(1,14787711,1,1,2) [2025-03-29 08:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787711', 'tblTempUsageDetail_20' ) start [2025-03-29 08:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787711', 'tblTempUsageDetail_20' ) end [2025-03-29 08:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 08:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 08:46:22] Production.INFO: ==10310== Releasing lock... [2025-03-29 08:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 08:46:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-29 08:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 05:47:05 [end_date_ymd] => 2025-03-29 08:47:05 [RateCDR] => 1 ) [2025-03-29 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-29 05:47:05' and `end` < '2025-03-29 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-29 08:47:17] Production.INFO: count ==231 [2025-03-29 08:47:18] Production.ERROR: pbx CDR StartTime 2025-03-29 05:47:05 - End Time 2025-03-29 08:47:05 [2025-03-29 08:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787716', 'tblTempUsageDetail_20' ) start [2025-03-29 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787716', 'tblTempUsageDetail_20' ) end [2025-03-29 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787716', 'tblTempVendorCDR_20' ) start [2025-03-29 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787716', 'tblTempVendorCDR_20' ) end [2025-03-29 08:47:18] Production.INFO: ProcessCDR(1,14787716,1,1,2) [2025-03-29 08:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787716', 'tblTempUsageDetail_20' ) start [2025-03-29 08:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787716', 'tblTempUsageDetail_20' ) end [2025-03-29 08:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 08:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 08:47:21] Production.INFO: ==10388== Releasing lock... [2025-03-29 08:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 08:47:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-29 08:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 05:48:06 [end_date_ymd] => 2025-03-29 08:48:06 [RateCDR] => 1 ) [2025-03-29 08:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 05:48:06' and `end` < '2025-03-29 08:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 08:48:18] Production.INFO: count ==231 [2025-03-29 08:48:18] Production.ERROR: pbx CDR StartTime 2025-03-29 05:48:06 - End Time 2025-03-29 08:48:06 [2025-03-29 08:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787721', 'tblTempUsageDetail_20' ) start [2025-03-29 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787721', 'tblTempUsageDetail_20' ) end [2025-03-29 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787721', 'tblTempVendorCDR_20' ) start [2025-03-29 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787721', 'tblTempVendorCDR_20' ) end [2025-03-29 08:48:18] Production.INFO: ProcessCDR(1,14787721,1,1,2) [2025-03-29 08:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787721', 'tblTempUsageDetail_20' ) start [2025-03-29 08:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787721', 'tblTempUsageDetail_20' ) end [2025-03-29 08:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 08:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 08:48:22] Production.INFO: ==10470== Releasing lock... [2025-03-29 08:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 08:48:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-29 08:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 05:49:06 [end_date_ymd] => 2025-03-29 08:49:06 [RateCDR] => 1 ) [2025-03-29 08: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-29 05:49:06' and `end` < '2025-03-29 08: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-29 08:49:18] Production.INFO: count ==231 [2025-03-29 08:49:18] Production.ERROR: pbx CDR StartTime 2025-03-29 05:49:06 - End Time 2025-03-29 08:49:06 [2025-03-29 08:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787726', 'tblTempUsageDetail_20' ) start [2025-03-29 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787726', 'tblTempUsageDetail_20' ) end [2025-03-29 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787726', 'tblTempVendorCDR_20' ) start [2025-03-29 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787726', 'tblTempVendorCDR_20' ) end [2025-03-29 08:49:18] Production.INFO: ProcessCDR(1,14787726,1,1,2) [2025-03-29 08:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787726', 'tblTempUsageDetail_20' ) start [2025-03-29 08:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787726', 'tblTempUsageDetail_20' ) end [2025-03-29 08:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 08:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 08:49:22] Production.INFO: ==10546== Releasing lock... [2025-03-29 08:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 08:49:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-29 08:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 05:50:06 [end_date_ymd] => 2025-03-29 08:50:06 [RateCDR] => 1 ) [2025-03-29 08:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 05:50:06' and `end` < '2025-03-29 08:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 08:50:19] Production.INFO: count ==231 [2025-03-29 08:50:19] Production.ERROR: pbx CDR StartTime 2025-03-29 05:50:06 - End Time 2025-03-29 08:50:06 [2025-03-29 08:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787732', 'tblTempUsageDetail_20' ) start [2025-03-29 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787732', 'tblTempUsageDetail_20' ) end [2025-03-29 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787732', 'tblTempVendorCDR_20' ) start [2025-03-29 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787732', 'tblTempVendorCDR_20' ) end [2025-03-29 08:50:19] Production.INFO: ProcessCDR(1,14787732,1,1,2) [2025-03-29 08:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787732', 'tblTempUsageDetail_20' ) start [2025-03-29 08:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787732', 'tblTempUsageDetail_20' ) end [2025-03-29 08:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 08:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 08:50:22] Production.INFO: ==10627== Releasing lock... [2025-03-29 08:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 08:50:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-29 08:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 05:51:05 [end_date_ymd] => 2025-03-29 08:51:05 [RateCDR] => 1 ) [2025-03-29 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-29 05:51:05' and `end` < '2025-03-29 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-29 08:51:18] Production.INFO: count ==226 [2025-03-29 08:51:18] Production.ERROR: pbx CDR StartTime 2025-03-29 05:51:05 - End Time 2025-03-29 08:51:05 [2025-03-29 08:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787737', 'tblTempUsageDetail_20' ) start [2025-03-29 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787737', 'tblTempUsageDetail_20' ) end [2025-03-29 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787737', 'tblTempVendorCDR_20' ) start [2025-03-29 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787737', 'tblTempVendorCDR_20' ) end [2025-03-29 08:51:18] Production.INFO: ProcessCDR(1,14787737,1,1,2) [2025-03-29 08:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787737', 'tblTempUsageDetail_20' ) start [2025-03-29 08:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787737', 'tblTempUsageDetail_20' ) end [2025-03-29 08:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 08:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 08:51:21] Production.INFO: ==10704== Releasing lock... [2025-03-29 08:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 08:51:21] Production.INFO: 30 MB #Memory Used# [2025-03-29 08:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 05:52:05 [end_date_ymd] => 2025-03-29 08:52:05 [RateCDR] => 1 ) [2025-03-29 08:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 05:52:05' and `end` < '2025-03-29 08:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 08:52:18] Production.INFO: count ==221 [2025-03-29 08:52:18] Production.ERROR: pbx CDR StartTime 2025-03-29 05:52:05 - End Time 2025-03-29 08:52:05 [2025-03-29 08:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787742', 'tblTempUsageDetail_20' ) start [2025-03-29 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787742', 'tblTempUsageDetail_20' ) end [2025-03-29 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787742', 'tblTempVendorCDR_20' ) start [2025-03-29 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787742', 'tblTempVendorCDR_20' ) end [2025-03-29 08:52:18] Production.INFO: ProcessCDR(1,14787742,1,1,2) [2025-03-29 08:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787742', 'tblTempUsageDetail_20' ) start [2025-03-29 08:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787742', 'tblTempUsageDetail_20' ) end [2025-03-29 08:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 08:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 08:52:21] Production.INFO: ==10777== Releasing lock... [2025-03-29 08:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 08:52:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-29 08:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 05:53:05 [end_date_ymd] => 2025-03-29 08:53:05 [RateCDR] => 1 ) [2025-03-29 08:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 05:53:05' and `end` < '2025-03-29 08:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 08:53:17] Production.INFO: count ==226 [2025-03-29 08:53:17] Production.ERROR: pbx CDR StartTime 2025-03-29 05:53:05 - End Time 2025-03-29 08:53:05 [2025-03-29 08:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 08:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787747', 'tblTempUsageDetail_20' ) start [2025-03-29 08:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787747', 'tblTempUsageDetail_20' ) end [2025-03-29 08:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787747', 'tblTempVendorCDR_20' ) start [2025-03-29 08:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787747', 'tblTempVendorCDR_20' ) end [2025-03-29 08:53:17] Production.INFO: ProcessCDR(1,14787747,1,1,2) [2025-03-29 08:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787747', 'tblTempUsageDetail_20' ) start [2025-03-29 08:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787747', 'tblTempUsageDetail_20' ) end [2025-03-29 08:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 08:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 08:53:22] Production.INFO: ==10854== Releasing lock... [2025-03-29 08:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 08:53:22] Production.INFO: 30 MB #Memory Used# [2025-03-29 08:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 05:54:05 [end_date_ymd] => 2025-03-29 08:54:05 [RateCDR] => 1 ) [2025-03-29 08:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 05:54:05' and `end` < '2025-03-29 08:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 08:54:17] Production.INFO: count ==227 [2025-03-29 08:54:17] Production.ERROR: pbx CDR StartTime 2025-03-29 05:54:05 - End Time 2025-03-29 08:54:05 [2025-03-29 08:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787752', 'tblTempUsageDetail_20' ) start [2025-03-29 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787752', 'tblTempUsageDetail_20' ) end [2025-03-29 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787752', 'tblTempVendorCDR_20' ) start [2025-03-29 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787752', 'tblTempVendorCDR_20' ) end [2025-03-29 08:54:17] Production.INFO: ProcessCDR(1,14787752,1,1,2) [2025-03-29 08:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787752', 'tblTempUsageDetail_20' ) start [2025-03-29 08:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787752', 'tblTempUsageDetail_20' ) end [2025-03-29 08:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 08:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 08:54:21] Production.INFO: ==10926== Releasing lock... [2025-03-29 08:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 08:54:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-29 08:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 05:55:05 [end_date_ymd] => 2025-03-29 08:55:05 [RateCDR] => 1 ) [2025-03-29 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-29 05:55:05' and `end` < '2025-03-29 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-29 08:55:18] Production.INFO: count ==230 [2025-03-29 08:55:18] Production.ERROR: pbx CDR StartTime 2025-03-29 05:55:05 - End Time 2025-03-29 08:55:05 [2025-03-29 08:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787757', 'tblTempUsageDetail_20' ) start [2025-03-29 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787757', 'tblTempUsageDetail_20' ) end [2025-03-29 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787757', 'tblTempVendorCDR_20' ) start [2025-03-29 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787757', 'tblTempVendorCDR_20' ) end [2025-03-29 08:55:18] Production.INFO: ProcessCDR(1,14787757,1,1,2) [2025-03-29 08:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787757', 'tblTempUsageDetail_20' ) start [2025-03-29 08:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787757', 'tblTempUsageDetail_20' ) end [2025-03-29 08:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 08:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 08:55:21] Production.INFO: ==11003== Releasing lock... [2025-03-29 08:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 08:55:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-29 08:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 05:56:05 [end_date_ymd] => 2025-03-29 08:56:05 [RateCDR] => 1 ) [2025-03-29 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-29 05:56:05' and `end` < '2025-03-29 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-29 08:56:17] Production.INFO: count ==230 [2025-03-29 08:56:17] Production.ERROR: pbx CDR StartTime 2025-03-29 05:56:05 - End Time 2025-03-29 08:56:05 [2025-03-29 08:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 08:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787762', 'tblTempUsageDetail_20' ) start [2025-03-29 08:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787762', 'tblTempUsageDetail_20' ) end [2025-03-29 08:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787762', 'tblTempVendorCDR_20' ) start [2025-03-29 08:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787762', 'tblTempVendorCDR_20' ) end [2025-03-29 08:56:17] Production.INFO: ProcessCDR(1,14787762,1,1,2) [2025-03-29 08:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787762', 'tblTempUsageDetail_20' ) start [2025-03-29 08:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787762', 'tblTempUsageDetail_20' ) end [2025-03-29 08:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 08:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 08:56:21] Production.INFO: ==11118== Releasing lock... [2025-03-29 08:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 08:56:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-29 08:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 05:57:05 [end_date_ymd] => 2025-03-29 08:57:05 [RateCDR] => 1 ) [2025-03-29 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-29 05:57:05' and `end` < '2025-03-29 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-29 08:57:18] Production.INFO: count ==230 [2025-03-29 08:57:18] Production.ERROR: pbx CDR StartTime 2025-03-29 05:57:05 - End Time 2025-03-29 08:57:05 [2025-03-29 08:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787767', 'tblTempUsageDetail_20' ) start [2025-03-29 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787767', 'tblTempUsageDetail_20' ) end [2025-03-29 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787767', 'tblTempVendorCDR_20' ) start [2025-03-29 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787767', 'tblTempVendorCDR_20' ) end [2025-03-29 08:57:18] Production.INFO: ProcessCDR(1,14787767,1,1,2) [2025-03-29 08:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787767', 'tblTempUsageDetail_20' ) start [2025-03-29 08:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787767', 'tblTempUsageDetail_20' ) end [2025-03-29 08:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 08:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 08:57:21] Production.INFO: ==11192== Releasing lock... [2025-03-29 08:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 08:57:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-29 08:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 05:58:06 [end_date_ymd] => 2025-03-29 08:58:06 [RateCDR] => 1 ) [2025-03-29 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-29 05:58:06' and `end` < '2025-03-29 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-29 08:58:18] Production.INFO: count ==230 [2025-03-29 08:58:18] Production.ERROR: pbx CDR StartTime 2025-03-29 05:58:06 - End Time 2025-03-29 08:58:06 [2025-03-29 08:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787772', 'tblTempUsageDetail_20' ) start [2025-03-29 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787772', 'tblTempUsageDetail_20' ) end [2025-03-29 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787772', 'tblTempVendorCDR_20' ) start [2025-03-29 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787772', 'tblTempVendorCDR_20' ) end [2025-03-29 08:58:18] Production.INFO: ProcessCDR(1,14787772,1,1,2) [2025-03-29 08:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787772', 'tblTempUsageDetail_20' ) start [2025-03-29 08:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787772', 'tblTempUsageDetail_20' ) end [2025-03-29 08:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 08:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 08:58:22] Production.INFO: ==11269== Releasing lock... [2025-03-29 08:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 08:58:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-29 08:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 05:59:05 [end_date_ymd] => 2025-03-29 08:59:05 [RateCDR] => 1 ) [2025-03-29 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-29 05:59:05' and `end` < '2025-03-29 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-29 08:59:18] Production.INFO: count ==227 [2025-03-29 08:59:18] Production.ERROR: pbx CDR StartTime 2025-03-29 05:59:05 - End Time 2025-03-29 08:59:05 [2025-03-29 08:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787777', 'tblTempUsageDetail_20' ) start [2025-03-29 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787777', 'tblTempUsageDetail_20' ) end [2025-03-29 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787777', 'tblTempVendorCDR_20' ) start [2025-03-29 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787777', 'tblTempVendorCDR_20' ) end [2025-03-29 08:59:18] Production.INFO: ProcessCDR(1,14787777,1,1,2) [2025-03-29 08:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 08:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 08:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787777', 'tblTempUsageDetail_20' ) start [2025-03-29 08:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787777', 'tblTempUsageDetail_20' ) end [2025-03-29 08:59:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 08:59:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 08:59:22] Production.INFO: ==11348== Releasing lock... [2025-03-29 08:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 08:59:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-29 09:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 06:00:07 [end_date_ymd] => 2025-03-29 09:00:07 [RateCDR] => 1 ) [2025-03-29 09: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-29 06:00:07' and `end` < '2025-03-29 09: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-29 09:00:19] Production.INFO: count ==229 [2025-03-29 09:00:20] Production.ERROR: pbx CDR StartTime 2025-03-29 06:00:07 - End Time 2025-03-29 09:00:07 [2025-03-29 09:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 09:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787783', 'tblTempUsageDetail_20' ) start [2025-03-29 09:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787783', 'tblTempUsageDetail_20' ) end [2025-03-29 09:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787783', 'tblTempVendorCDR_20' ) start [2025-03-29 09:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787783', 'tblTempVendorCDR_20' ) end [2025-03-29 09:00:20] Production.INFO: ProcessCDR(1,14787783,1,1,2) [2025-03-29 09:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787783', 'tblTempUsageDetail_20' ) start [2025-03-29 09:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787783', 'tblTempUsageDetail_20' ) end [2025-03-29 09:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 09:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 09:00:23] Production.INFO: ==11427== Releasing lock... [2025-03-29 09:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 09:00:23] Production.INFO: 30.25 MB #Memory Used# [2025-03-29 09:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 06:01:05 [end_date_ymd] => 2025-03-29 09:01:05 [RateCDR] => 1 ) [2025-03-29 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-29 06:01:05' and `end` < '2025-03-29 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-29 09:01:18] Production.INFO: count ==229 [2025-03-29 09:01:18] Production.ERROR: pbx CDR StartTime 2025-03-29 06:01:05 - End Time 2025-03-29 09:01:05 [2025-03-29 09:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787788', 'tblTempUsageDetail_20' ) start [2025-03-29 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787788', 'tblTempUsageDetail_20' ) end [2025-03-29 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787788', 'tblTempVendorCDR_20' ) start [2025-03-29 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787788', 'tblTempVendorCDR_20' ) end [2025-03-29 09:01:18] Production.INFO: ProcessCDR(1,14787788,1,1,2) [2025-03-29 09:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787788', 'tblTempUsageDetail_20' ) start [2025-03-29 09:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787788', 'tblTempUsageDetail_20' ) end [2025-03-29 09:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 09:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 09:01:21] Production.INFO: ==11518== Releasing lock... [2025-03-29 09:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 09:01:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-29 09:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 06:02:06 [end_date_ymd] => 2025-03-29 09:02:06 [RateCDR] => 1 ) [2025-03-29 09:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 06:02:06' and `end` < '2025-03-29 09:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 09:02:18] Production.INFO: count ==229 [2025-03-29 09:02:18] Production.ERROR: pbx CDR StartTime 2025-03-29 06:02:06 - End Time 2025-03-29 09:02:06 [2025-03-29 09:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787793', 'tblTempUsageDetail_20' ) start [2025-03-29 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787793', 'tblTempUsageDetail_20' ) end [2025-03-29 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787793', 'tblTempVendorCDR_20' ) start [2025-03-29 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787793', 'tblTempVendorCDR_20' ) end [2025-03-29 09:02:18] Production.INFO: ProcessCDR(1,14787793,1,1,2) [2025-03-29 09:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787793', 'tblTempUsageDetail_20' ) start [2025-03-29 09:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787793', 'tblTempUsageDetail_20' ) end [2025-03-29 09:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 09:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 09:02:22] Production.INFO: ==11594== Releasing lock... [2025-03-29 09:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 09:02:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-29 09:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 06:03:05 [end_date_ymd] => 2025-03-29 09:03:05 [RateCDR] => 1 ) [2025-03-29 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-29 06:03:05' and `end` < '2025-03-29 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-29 09:03:17] Production.INFO: count ==230 [2025-03-29 09:03:17] Production.ERROR: pbx CDR StartTime 2025-03-29 06:03:05 - End Time 2025-03-29 09:03:05 [2025-03-29 09:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 09:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787798', 'tblTempUsageDetail_20' ) start [2025-03-29 09:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787798', 'tblTempUsageDetail_20' ) end [2025-03-29 09:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787798', 'tblTempVendorCDR_20' ) start [2025-03-29 09:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787798', 'tblTempVendorCDR_20' ) end [2025-03-29 09:03:17] Production.INFO: ProcessCDR(1,14787798,1,1,2) [2025-03-29 09:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787798', 'tblTempUsageDetail_20' ) start [2025-03-29 09:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787798', 'tblTempUsageDetail_20' ) end [2025-03-29 09:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 09:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 09:03:21] Production.INFO: ==11668== Releasing lock... [2025-03-29 09:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 09:03:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-29 09:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 06:04:06 [end_date_ymd] => 2025-03-29 09:04:06 [RateCDR] => 1 ) [2025-03-29 09:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 06:04:06' and `end` < '2025-03-29 09:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 09:04:18] Production.INFO: count ==233 [2025-03-29 09:04:18] Production.ERROR: pbx CDR StartTime 2025-03-29 06:04:06 - End Time 2025-03-29 09:04:06 [2025-03-29 09:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787803', 'tblTempUsageDetail_20' ) start [2025-03-29 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787803', 'tblTempUsageDetail_20' ) end [2025-03-29 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787803', 'tblTempVendorCDR_20' ) start [2025-03-29 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787803', 'tblTempVendorCDR_20' ) end [2025-03-29 09:04:18] Production.INFO: ProcessCDR(1,14787803,1,1,2) [2025-03-29 09:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787803', 'tblTempUsageDetail_20' ) start [2025-03-29 09:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787803', 'tblTempUsageDetail_20' ) end [2025-03-29 09:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 09:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 09:04:22] Production.INFO: ==11745== Releasing lock... [2025-03-29 09:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 09:04:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-29 09:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 06:05:05 [end_date_ymd] => 2025-03-29 09:05:05 [RateCDR] => 1 ) [2025-03-29 09:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 06:05:05' and `end` < '2025-03-29 09:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 09:05:17] Production.INFO: count ==234 [2025-03-29 09:05:18] Production.ERROR: pbx CDR StartTime 2025-03-29 06:05:05 - End Time 2025-03-29 09:05:05 [2025-03-29 09:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787808', 'tblTempUsageDetail_20' ) start [2025-03-29 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787808', 'tblTempUsageDetail_20' ) end [2025-03-29 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787808', 'tblTempVendorCDR_20' ) start [2025-03-29 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787808', 'tblTempVendorCDR_20' ) end [2025-03-29 09:05:18] Production.INFO: ProcessCDR(1,14787808,1,1,2) [2025-03-29 09:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787808', 'tblTempUsageDetail_20' ) start [2025-03-29 09:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787808', 'tblTempUsageDetail_20' ) end [2025-03-29 09:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 09:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 09:05:21] Production.INFO: ==11832== Releasing lock... [2025-03-29 09:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 09:05:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-29 09:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 06:06:05 [end_date_ymd] => 2025-03-29 09:06:05 [RateCDR] => 1 ) [2025-03-29 09:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 06:06:05' and `end` < '2025-03-29 09:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 09:06:18] Production.INFO: count ==246 [2025-03-29 09:06:18] Production.ERROR: pbx CDR StartTime 2025-03-29 06:06:05 - End Time 2025-03-29 09:06:05 [2025-03-29 09:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787813', 'tblTempUsageDetail_20' ) start [2025-03-29 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787813', 'tblTempUsageDetail_20' ) end [2025-03-29 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787813', 'tblTempVendorCDR_20' ) start [2025-03-29 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787813', 'tblTempVendorCDR_20' ) end [2025-03-29 09:06:18] Production.INFO: ProcessCDR(1,14787813,1,1,2) [2025-03-29 09:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787813', 'tblTempUsageDetail_20' ) start [2025-03-29 09:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787813', 'tblTempUsageDetail_20' ) end [2025-03-29 09:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 09:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 09:06:21] Production.INFO: ==11905== Releasing lock... [2025-03-29 09:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 09:06:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-29 09:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 06:07:05 [end_date_ymd] => 2025-03-29 09:07:05 [RateCDR] => 1 ) [2025-03-29 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-29 06:07:05' and `end` < '2025-03-29 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-29 09:07:17] Production.INFO: count ==246 [2025-03-29 09:07:17] Production.ERROR: pbx CDR StartTime 2025-03-29 06:07:05 - End Time 2025-03-29 09:07:05 [2025-03-29 09:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 09:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787818', 'tblTempUsageDetail_20' ) start [2025-03-29 09:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787818', 'tblTempUsageDetail_20' ) end [2025-03-29 09:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787818', 'tblTempVendorCDR_20' ) start [2025-03-29 09:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787818', 'tblTempVendorCDR_20' ) end [2025-03-29 09:07:17] Production.INFO: ProcessCDR(1,14787818,1,1,2) [2025-03-29 09:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787818', 'tblTempUsageDetail_20' ) start [2025-03-29 09:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787818', 'tblTempUsageDetail_20' ) end [2025-03-29 09:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 09:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 09:07:21] Production.INFO: ==11978== Releasing lock... [2025-03-29 09:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 09:07:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-29 09:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 06:08:05 [end_date_ymd] => 2025-03-29 09:08:05 [RateCDR] => 1 ) [2025-03-29 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-29 06:08:05' and `end` < '2025-03-29 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-29 09:08:18] Production.INFO: count ==246 [2025-03-29 09:08:18] Production.ERROR: pbx CDR StartTime 2025-03-29 06:08:05 - End Time 2025-03-29 09:08:05 [2025-03-29 09:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787823', 'tblTempUsageDetail_20' ) start [2025-03-29 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787823', 'tblTempUsageDetail_20' ) end [2025-03-29 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787823', 'tblTempVendorCDR_20' ) start [2025-03-29 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787823', 'tblTempVendorCDR_20' ) end [2025-03-29 09:08:18] Production.INFO: ProcessCDR(1,14787823,1,1,2) [2025-03-29 09:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787823', 'tblTempUsageDetail_20' ) start [2025-03-29 09:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787823', 'tblTempUsageDetail_20' ) end [2025-03-29 09:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 09:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 09:08:21] Production.INFO: ==12052== Releasing lock... [2025-03-29 09:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 09:08:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-29 09:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 06:09:05 [end_date_ymd] => 2025-03-29 09:09:05 [RateCDR] => 1 ) [2025-03-29 09:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 06:09:05' and `end` < '2025-03-29 09:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 09:09:18] Production.INFO: count ==246 [2025-03-29 09:09:18] Production.ERROR: pbx CDR StartTime 2025-03-29 06:09:05 - End Time 2025-03-29 09:09:05 [2025-03-29 09:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787828', 'tblTempUsageDetail_20' ) start [2025-03-29 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787828', 'tblTempUsageDetail_20' ) end [2025-03-29 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787828', 'tblTempVendorCDR_20' ) start [2025-03-29 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787828', 'tblTempVendorCDR_20' ) end [2025-03-29 09:09:18] Production.INFO: ProcessCDR(1,14787828,1,1,2) [2025-03-29 09:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787828', 'tblTempUsageDetail_20' ) start [2025-03-29 09:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787828', 'tblTempUsageDetail_20' ) end [2025-03-29 09:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 09:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 09:09:21] Production.INFO: ==12131== Releasing lock... [2025-03-29 09:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 09:09:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-29 09:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 06:10:06 [end_date_ymd] => 2025-03-29 09:10:06 [RateCDR] => 1 ) [2025-03-29 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-29 06:10:06' and `end` < '2025-03-29 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-29 09:10:18] Production.INFO: count ==259 [2025-03-29 09:10:19] Production.ERROR: pbx CDR StartTime 2025-03-29 06:10:06 - End Time 2025-03-29 09:10:06 [2025-03-29 09:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787834', 'tblTempUsageDetail_20' ) start [2025-03-29 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787834', 'tblTempUsageDetail_20' ) end [2025-03-29 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787834', 'tblTempVendorCDR_20' ) start [2025-03-29 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787834', 'tblTempVendorCDR_20' ) end [2025-03-29 09:10:19] Production.INFO: ProcessCDR(1,14787834,1,1,2) [2025-03-29 09:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787834', 'tblTempUsageDetail_20' ) start [2025-03-29 09:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787834', 'tblTempUsageDetail_20' ) end [2025-03-29 09:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 09:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 09:10:22] Production.INFO: ==12206== Releasing lock... [2025-03-29 09:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 09:10:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-29 09:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 06:11:05 [end_date_ymd] => 2025-03-29 09:11:05 [RateCDR] => 1 ) [2025-03-29 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-29 06:11:05' and `end` < '2025-03-29 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-29 09:11:17] Production.INFO: count ==260 [2025-03-29 09:11:17] Production.ERROR: pbx CDR StartTime 2025-03-29 06:11:05 - End Time 2025-03-29 09:11:05 [2025-03-29 09:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 09:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787839', 'tblTempUsageDetail_20' ) start [2025-03-29 09:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787839', 'tblTempUsageDetail_20' ) end [2025-03-29 09:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787839', 'tblTempVendorCDR_20' ) start [2025-03-29 09:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787839', 'tblTempVendorCDR_20' ) end [2025-03-29 09:11:17] Production.INFO: ProcessCDR(1,14787839,1,1,2) [2025-03-29 09:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787839', 'tblTempUsageDetail_20' ) start [2025-03-29 09:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787839', 'tblTempUsageDetail_20' ) end [2025-03-29 09:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 09:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 09:11:21] Production.INFO: ==12319== Releasing lock... [2025-03-29 09:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 09:11:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-29 09:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 06:12:05 [end_date_ymd] => 2025-03-29 09:12:05 [RateCDR] => 1 ) [2025-03-29 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-29 06:12:05' and `end` < '2025-03-29 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-29 09:12:18] Production.INFO: count ==269 [2025-03-29 09:12:18] Production.ERROR: pbx CDR StartTime 2025-03-29 06:12:05 - End Time 2025-03-29 09:12:05 [2025-03-29 09:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787844', 'tblTempUsageDetail_20' ) start [2025-03-29 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787844', 'tblTempUsageDetail_20' ) end [2025-03-29 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787844', 'tblTempVendorCDR_20' ) start [2025-03-29 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787844', 'tblTempVendorCDR_20' ) end [2025-03-29 09:12:18] Production.INFO: ProcessCDR(1,14787844,1,1,2) [2025-03-29 09:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787844', 'tblTempUsageDetail_20' ) start [2025-03-29 09:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787844', 'tblTempUsageDetail_20' ) end [2025-03-29 09:12:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 09:12:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 09:12:23] Production.INFO: ==12395== Releasing lock... [2025-03-29 09:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 09:12:23] Production.INFO: 31 MB #Memory Used# [2025-03-29 09:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 06:13:06 [end_date_ymd] => 2025-03-29 09:13:06 [RateCDR] => 1 ) [2025-03-29 09: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-29 06:13:06' and `end` < '2025-03-29 09: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-29 09:13:18] Production.INFO: count ==269 [2025-03-29 09:13:18] Production.ERROR: pbx CDR StartTime 2025-03-29 06:13:06 - End Time 2025-03-29 09:13:06 [2025-03-29 09:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787849', 'tblTempUsageDetail_20' ) start [2025-03-29 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787849', 'tblTempUsageDetail_20' ) end [2025-03-29 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787849', 'tblTempVendorCDR_20' ) start [2025-03-29 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787849', 'tblTempVendorCDR_20' ) end [2025-03-29 09:13:18] Production.INFO: ProcessCDR(1,14787849,1,1,2) [2025-03-29 09:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787849', 'tblTempUsageDetail_20' ) start [2025-03-29 09:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787849', 'tblTempUsageDetail_20' ) end [2025-03-29 09:13:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 09:13:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 09:13:24] Production.INFO: ==12466== Releasing lock... [2025-03-29 09:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 09:13:24] Production.INFO: 30.75 MB #Memory Used# [2025-03-29 09:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 06:14:05 [end_date_ymd] => 2025-03-29 09:14:05 [RateCDR] => 1 ) [2025-03-29 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-29 06:14:05' and `end` < '2025-03-29 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-29 09:14:18] Production.INFO: count ==269 [2025-03-29 09:14:18] Production.ERROR: pbx CDR StartTime 2025-03-29 06:14:05 - End Time 2025-03-29 09:14:05 [2025-03-29 09:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787854', 'tblTempUsageDetail_20' ) start [2025-03-29 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787854', 'tblTempUsageDetail_20' ) end [2025-03-29 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787854', 'tblTempVendorCDR_20' ) start [2025-03-29 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787854', 'tblTempVendorCDR_20' ) end [2025-03-29 09:14:18] Production.INFO: ProcessCDR(1,14787854,1,1,2) [2025-03-29 09:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787854', 'tblTempUsageDetail_20' ) start [2025-03-29 09:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787854', 'tblTempUsageDetail_20' ) end [2025-03-29 09:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 09:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 09:14:21] Production.INFO: ==12546== Releasing lock... [2025-03-29 09:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 09:14:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-29 09:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 06:15:05 [end_date_ymd] => 2025-03-29 09:15:05 [RateCDR] => 1 ) [2025-03-29 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-29 06:15:05' and `end` < '2025-03-29 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-29 09:15:18] Production.INFO: count ==269 [2025-03-29 09:15:18] Production.ERROR: pbx CDR StartTime 2025-03-29 06:15:05 - End Time 2025-03-29 09:15:05 [2025-03-29 09:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787859', 'tblTempUsageDetail_20' ) start [2025-03-29 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787859', 'tblTempUsageDetail_20' ) end [2025-03-29 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787859', 'tblTempVendorCDR_20' ) start [2025-03-29 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787859', 'tblTempVendorCDR_20' ) end [2025-03-29 09:15:18] Production.INFO: ProcessCDR(1,14787859,1,1,2) [2025-03-29 09:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787859', 'tblTempUsageDetail_20' ) start [2025-03-29 09:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787859', 'tblTempUsageDetail_20' ) end [2025-03-29 09:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 09:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 09:15:22] Production.INFO: ==12621== Releasing lock... [2025-03-29 09:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 09:15:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-29 09:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 06:16:05 [end_date_ymd] => 2025-03-29 09:16:05 [RateCDR] => 1 ) [2025-03-29 09:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 06:16:05' and `end` < '2025-03-29 09:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 09:16:18] Production.INFO: count ==273 [2025-03-29 09:16:18] Production.ERROR: pbx CDR StartTime 2025-03-29 06:16:05 - End Time 2025-03-29 09:16:05 [2025-03-29 09:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787864', 'tblTempUsageDetail_20' ) start [2025-03-29 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787864', 'tblTempUsageDetail_20' ) end [2025-03-29 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787864', 'tblTempVendorCDR_20' ) start [2025-03-29 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787864', 'tblTempVendorCDR_20' ) end [2025-03-29 09:16:18] Production.INFO: ProcessCDR(1,14787864,1,1,2) [2025-03-29 09:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787864', 'tblTempUsageDetail_20' ) start [2025-03-29 09:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787864', 'tblTempUsageDetail_20' ) end [2025-03-29 09:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 09:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 09:16:21] Production.INFO: ==12691== Releasing lock... [2025-03-29 09:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 09:16:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-29 09:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 06:17:06 [end_date_ymd] => 2025-03-29 09:17:06 [RateCDR] => 1 ) [2025-03-29 09:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 06:17:06' and `end` < '2025-03-29 09:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 09:17:18] Production.INFO: count ==275 [2025-03-29 09:17:18] Production.ERROR: pbx CDR StartTime 2025-03-29 06:17:06 - End Time 2025-03-29 09:17:06 [2025-03-29 09:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787869', 'tblTempUsageDetail_20' ) start [2025-03-29 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787869', 'tblTempUsageDetail_20' ) end [2025-03-29 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787869', 'tblTempVendorCDR_20' ) start [2025-03-29 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787869', 'tblTempVendorCDR_20' ) end [2025-03-29 09:17:18] Production.INFO: ProcessCDR(1,14787869,1,1,2) [2025-03-29 09:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787869', 'tblTempUsageDetail_20' ) start [2025-03-29 09:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787869', 'tblTempUsageDetail_20' ) end [2025-03-29 09:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 09:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 09:17:22] Production.INFO: ==12768== Releasing lock... [2025-03-29 09:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 09:17:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-29 09:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 06:18:06 [end_date_ymd] => 2025-03-29 09:18:06 [RateCDR] => 1 ) [2025-03-29 09: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-29 06:18:06' and `end` < '2025-03-29 09: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-29 09:18:18] Production.INFO: count ==278 [2025-03-29 09:18:18] Production.ERROR: pbx CDR StartTime 2025-03-29 06:18:06 - End Time 2025-03-29 09:18:06 [2025-03-29 09:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787874', 'tblTempUsageDetail_20' ) start [2025-03-29 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787874', 'tblTempUsageDetail_20' ) end [2025-03-29 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787874', 'tblTempVendorCDR_20' ) start [2025-03-29 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787874', 'tblTempVendorCDR_20' ) end [2025-03-29 09:18:18] Production.INFO: ProcessCDR(1,14787874,1,1,2) [2025-03-29 09:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787874', 'tblTempUsageDetail_20' ) start [2025-03-29 09:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787874', 'tblTempUsageDetail_20' ) end [2025-03-29 09:18:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 09:18:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 09:18:22] Production.INFO: ==12853== Releasing lock... [2025-03-29 09:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 09:18:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-29 09:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 06:19:05 [end_date_ymd] => 2025-03-29 09:19:05 [RateCDR] => 1 ) [2025-03-29 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-29 06:19:05' and `end` < '2025-03-29 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-29 09:19:18] Production.INFO: count ==279 [2025-03-29 09:19:18] Production.ERROR: pbx CDR StartTime 2025-03-29 06:19:05 - End Time 2025-03-29 09:19:05 [2025-03-29 09:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787879', 'tblTempUsageDetail_20' ) start [2025-03-29 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787879', 'tblTempUsageDetail_20' ) end [2025-03-29 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787879', 'tblTempVendorCDR_20' ) start [2025-03-29 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787879', 'tblTempVendorCDR_20' ) end [2025-03-29 09:19:18] Production.INFO: ProcessCDR(1,14787879,1,1,2) [2025-03-29 09:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787879', 'tblTempUsageDetail_20' ) start [2025-03-29 09:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787879', 'tblTempUsageDetail_20' ) end [2025-03-29 09:19:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 09:19:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 09:19:22] Production.INFO: ==12926== Releasing lock... [2025-03-29 09:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 09:19:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-29 09:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 06:20:06 [end_date_ymd] => 2025-03-29 09:20:06 [RateCDR] => 1 ) [2025-03-29 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-29 06:20:06' and `end` < '2025-03-29 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-29 09:20:19] Production.INFO: count ==296 [2025-03-29 09:20:19] Production.ERROR: pbx CDR StartTime 2025-03-29 06:20:06 - End Time 2025-03-29 09:20:06 [2025-03-29 09:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787885', 'tblTempUsageDetail_20' ) start [2025-03-29 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787885', 'tblTempUsageDetail_20' ) end [2025-03-29 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787885', 'tblTempVendorCDR_20' ) start [2025-03-29 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787885', 'tblTempVendorCDR_20' ) end [2025-03-29 09:20:19] Production.INFO: ProcessCDR(1,14787885,1,1,2) [2025-03-29 09:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787885', 'tblTempUsageDetail_20' ) start [2025-03-29 09:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787885', 'tblTempUsageDetail_20' ) end [2025-03-29 09:20:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 09:20:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 09:20:24] Production.INFO: ==13003== Releasing lock... [2025-03-29 09:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 09:20:24] Production.INFO: 30.5 MB #Memory Used# [2025-03-29 09:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 06:21:05 [end_date_ymd] => 2025-03-29 09:21:05 [RateCDR] => 1 ) [2025-03-29 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-29 06:21:05' and `end` < '2025-03-29 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-29 09:21:18] Production.INFO: count ==309 [2025-03-29 09:21:18] Production.ERROR: pbx CDR StartTime 2025-03-29 06:21:05 - End Time 2025-03-29 09:21:05 [2025-03-29 09:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787890', 'tblTempUsageDetail_20' ) start [2025-03-29 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787890', 'tblTempUsageDetail_20' ) end [2025-03-29 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787890', 'tblTempVendorCDR_20' ) start [2025-03-29 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787890', 'tblTempVendorCDR_20' ) end [2025-03-29 09:21:18] Production.INFO: ProcessCDR(1,14787890,1,1,2) [2025-03-29 09:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787890', 'tblTempUsageDetail_20' ) start [2025-03-29 09:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787890', 'tblTempUsageDetail_20' ) end [2025-03-29 09:21:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 09:21:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 09:21:23] Production.INFO: ==13081== Releasing lock... [2025-03-29 09:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 09:21:23] Production.INFO: 31 MB #Memory Used# [2025-03-29 09:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 06:22:05 [end_date_ymd] => 2025-03-29 09:22:05 [RateCDR] => 1 ) [2025-03-29 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-29 06:22:05' and `end` < '2025-03-29 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-29 09:22:17] Production.INFO: count ==320 [2025-03-29 09:22:18] Production.ERROR: pbx CDR StartTime 2025-03-29 06:22:05 - End Time 2025-03-29 09:22:05 [2025-03-29 09:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787895', 'tblTempUsageDetail_20' ) start [2025-03-29 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787895', 'tblTempUsageDetail_20' ) end [2025-03-29 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787895', 'tblTempVendorCDR_20' ) start [2025-03-29 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787895', 'tblTempVendorCDR_20' ) end [2025-03-29 09:22:18] Production.INFO: ProcessCDR(1,14787895,1,1,2) [2025-03-29 09:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787895', 'tblTempUsageDetail_20' ) start [2025-03-29 09:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787895', 'tblTempUsageDetail_20' ) end [2025-03-29 09:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 09:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 09:22:22] Production.INFO: ==13154== Releasing lock... [2025-03-29 09:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 09:22:22] Production.INFO: 31 MB #Memory Used# [2025-03-29 09:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 06:23:05 [end_date_ymd] => 2025-03-29 09:23:05 [RateCDR] => 1 ) [2025-03-29 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-29 06:23:05' and `end` < '2025-03-29 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-29 09:23:17] Production.INFO: count ==326 [2025-03-29 09:23:18] Production.ERROR: pbx CDR StartTime 2025-03-29 06:23:05 - End Time 2025-03-29 09:23:05 [2025-03-29 09:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787900', 'tblTempUsageDetail_20' ) start [2025-03-29 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787900', 'tblTempUsageDetail_20' ) end [2025-03-29 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787900', 'tblTempVendorCDR_20' ) start [2025-03-29 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787900', 'tblTempVendorCDR_20' ) end [2025-03-29 09:23:18] Production.INFO: ProcessCDR(1,14787900,1,1,2) [2025-03-29 09:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787900', 'tblTempUsageDetail_20' ) start [2025-03-29 09:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787900', 'tblTempUsageDetail_20' ) end [2025-03-29 09:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 09:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 09:23:21] Production.INFO: ==13227== Releasing lock... [2025-03-29 09:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 09:23:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-29 09:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 06:24:05 [end_date_ymd] => 2025-03-29 09:24:05 [RateCDR] => 1 ) [2025-03-29 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-29 06:24:05' and `end` < '2025-03-29 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-29 09:24:18] Production.INFO: count ==340 [2025-03-29 09:24:18] Production.ERROR: pbx CDR StartTime 2025-03-29 06:24:05 - End Time 2025-03-29 09:24:05 [2025-03-29 09:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787905', 'tblTempUsageDetail_20' ) start [2025-03-29 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787905', 'tblTempUsageDetail_20' ) end [2025-03-29 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787905', 'tblTempVendorCDR_20' ) start [2025-03-29 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787905', 'tblTempVendorCDR_20' ) end [2025-03-29 09:24:18] Production.INFO: ProcessCDR(1,14787905,1,1,2) [2025-03-29 09:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787905', 'tblTempUsageDetail_20' ) start [2025-03-29 09:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787905', 'tblTempUsageDetail_20' ) end [2025-03-29 09:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 09:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 09:24:21] Production.INFO: ==13307== Releasing lock... [2025-03-29 09:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 09:24:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-29 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 06:25:05 [end_date_ymd] => 2025-03-29 09:25:05 [RateCDR] => 1 ) [2025-03-29 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-29 06:25:05' and `end` < '2025-03-29 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-29 09:25:18] Production.INFO: count ==343 [2025-03-29 09:25:18] Production.ERROR: pbx CDR StartTime 2025-03-29 06:25:05 - End Time 2025-03-29 09:25:05 [2025-03-29 09:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787910', 'tblTempUsageDetail_20' ) start [2025-03-29 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787910', 'tblTempUsageDetail_20' ) end [2025-03-29 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787910', 'tblTempVendorCDR_20' ) start [2025-03-29 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787910', 'tblTempVendorCDR_20' ) end [2025-03-29 09:25:18] Production.INFO: ProcessCDR(1,14787910,1,1,2) [2025-03-29 09:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787910', 'tblTempUsageDetail_20' ) start [2025-03-29 09:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787910', 'tblTempUsageDetail_20' ) end [2025-03-29 09:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 09:25:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 09:25:22] Production.INFO: ==13379== Releasing lock... [2025-03-29 09:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 09:25:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-29 09:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 06:26:06 [end_date_ymd] => 2025-03-29 09:26:06 [RateCDR] => 1 ) [2025-03-29 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-29 06:26:06' and `end` < '2025-03-29 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-29 09:26:18] Production.INFO: count ==350 [2025-03-29 09:26:18] Production.ERROR: pbx CDR StartTime 2025-03-29 06:26:06 - End Time 2025-03-29 09:26:06 [2025-03-29 09:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787915', 'tblTempUsageDetail_20' ) start [2025-03-29 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787915', 'tblTempUsageDetail_20' ) end [2025-03-29 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787915', 'tblTempVendorCDR_20' ) start [2025-03-29 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787915', 'tblTempVendorCDR_20' ) end [2025-03-29 09:26:18] Production.INFO: ProcessCDR(1,14787915,1,1,2) [2025-03-29 09:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787915', 'tblTempUsageDetail_20' ) start [2025-03-29 09:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787915', 'tblTempUsageDetail_20' ) end [2025-03-29 09:26:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 09:26:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 09:26:23] Production.INFO: ==13454== Releasing lock... [2025-03-29 09:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 09:26:23] Production.INFO: 31.25 MB #Memory Used# [2025-03-29 09:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 06:27:05 [end_date_ymd] => 2025-03-29 09:27:05 [RateCDR] => 1 ) [2025-03-29 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-29 06:27:05' and `end` < '2025-03-29 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-29 09:27:17] Production.INFO: count ==351 [2025-03-29 09:27:17] Production.ERROR: pbx CDR StartTime 2025-03-29 06:27:05 - End Time 2025-03-29 09:27:05 [2025-03-29 09:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 09:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787920', 'tblTempUsageDetail_20' ) start [2025-03-29 09:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787920', 'tblTempUsageDetail_20' ) end [2025-03-29 09:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787920', 'tblTempVendorCDR_20' ) start [2025-03-29 09:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787920', 'tblTempVendorCDR_20' ) end [2025-03-29 09:27:17] Production.INFO: ProcessCDR(1,14787920,1,1,2) [2025-03-29 09:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787920', 'tblTempUsageDetail_20' ) start [2025-03-29 09:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787920', 'tblTempUsageDetail_20' ) end [2025-03-29 09:27:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 09:27:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 09:27:22] Production.INFO: ==13570== Releasing lock... [2025-03-29 09:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 09:27:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-29 09:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 06:28:05 [end_date_ymd] => 2025-03-29 09:28:05 [RateCDR] => 1 ) [2025-03-29 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-29 06:28:05' and `end` < '2025-03-29 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-29 09:28:18] Production.INFO: count ==359 [2025-03-29 09:28:18] Production.ERROR: pbx CDR StartTime 2025-03-29 06:28:05 - End Time 2025-03-29 09:28:05 [2025-03-29 09:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787925', 'tblTempUsageDetail_20' ) start [2025-03-29 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787925', 'tblTempUsageDetail_20' ) end [2025-03-29 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787925', 'tblTempVendorCDR_20' ) start [2025-03-29 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787925', 'tblTempVendorCDR_20' ) end [2025-03-29 09:28:18] Production.INFO: ProcessCDR(1,14787925,1,1,2) [2025-03-29 09:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787925', 'tblTempUsageDetail_20' ) start [2025-03-29 09:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787925', 'tblTempUsageDetail_20' ) end [2025-03-29 09:28:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 09:28:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 09:28:22] Production.INFO: ==13647== Releasing lock... [2025-03-29 09:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 09:28:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-29 09:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 06:29:05 [end_date_ymd] => 2025-03-29 09:29:05 [RateCDR] => 1 ) [2025-03-29 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-29 06:29:05' and `end` < '2025-03-29 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-29 09:29:18] Production.INFO: count ==359 [2025-03-29 09:29:18] Production.ERROR: pbx CDR StartTime 2025-03-29 06:29:05 - End Time 2025-03-29 09:29:05 [2025-03-29 09:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787930', 'tblTempUsageDetail_20' ) start [2025-03-29 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787930', 'tblTempUsageDetail_20' ) end [2025-03-29 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787930', 'tblTempVendorCDR_20' ) start [2025-03-29 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787930', 'tblTempVendorCDR_20' ) end [2025-03-29 09:29:18] Production.INFO: ProcessCDR(1,14787930,1,1,2) [2025-03-29 09:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787930', 'tblTempUsageDetail_20' ) start [2025-03-29 09:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787930', 'tblTempUsageDetail_20' ) end [2025-03-29 09:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 09:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 09:29:21] Production.INFO: ==13717== Releasing lock... [2025-03-29 09:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 09:29:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-29 09:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 06:30:07 [end_date_ymd] => 2025-03-29 09:30:07 [RateCDR] => 1 ) [2025-03-29 09: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-29 06:30:07' and `end` < '2025-03-29 09: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-29 09:30:20] Production.INFO: count ==368 [2025-03-29 09:30:20] Production.ERROR: pbx CDR StartTime 2025-03-29 06:30:07 - End Time 2025-03-29 09:30:07 [2025-03-29 09:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 09:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787936', 'tblTempUsageDetail_20' ) start [2025-03-29 09:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787936', 'tblTempUsageDetail_20' ) end [2025-03-29 09:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787936', 'tblTempVendorCDR_20' ) start [2025-03-29 09:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787936', 'tblTempVendorCDR_20' ) end [2025-03-29 09:30:20] Production.INFO: ProcessCDR(1,14787936,1,1,2) [2025-03-29 09:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787936', 'tblTempUsageDetail_20' ) start [2025-03-29 09:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787936', 'tblTempUsageDetail_20' ) end [2025-03-29 09:30:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 09:30:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 09:30:23] Production.INFO: ==13794== Releasing lock... [2025-03-29 09:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 09:30:23] Production.INFO: 31.5 MB #Memory Used# [2025-03-29 09:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 06:31:05 [end_date_ymd] => 2025-03-29 09:31:05 [RateCDR] => 1 ) [2025-03-29 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-29 06:31:05' and `end` < '2025-03-29 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-29 09:31:18] Production.INFO: count ==374 [2025-03-29 09:31:18] Production.ERROR: pbx CDR StartTime 2025-03-29 06:31:05 - End Time 2025-03-29 09:31:05 [2025-03-29 09:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787941', 'tblTempUsageDetail_20' ) start [2025-03-29 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787941', 'tblTempUsageDetail_20' ) end [2025-03-29 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787941', 'tblTempVendorCDR_20' ) start [2025-03-29 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787941', 'tblTempVendorCDR_20' ) end [2025-03-29 09:31:18] Production.INFO: ProcessCDR(1,14787941,1,1,2) [2025-03-29 09:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787941', 'tblTempUsageDetail_20' ) start [2025-03-29 09:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787941', 'tblTempUsageDetail_20' ) end [2025-03-29 09:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 09:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 09:31:21] Production.INFO: ==13871== Releasing lock... [2025-03-29 09:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 09:31:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-29 09:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 06:32:06 [end_date_ymd] => 2025-03-29 09:32:06 [RateCDR] => 1 ) [2025-03-29 09:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 06:32:06' and `end` < '2025-03-29 09:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 09:32:18] Production.INFO: count ==383 [2025-03-29 09:32:19] Production.ERROR: pbx CDR StartTime 2025-03-29 06:32:06 - End Time 2025-03-29 09:32:06 [2025-03-29 09:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787946', 'tblTempUsageDetail_20' ) start [2025-03-29 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787946', 'tblTempUsageDetail_20' ) end [2025-03-29 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787946', 'tblTempVendorCDR_20' ) start [2025-03-29 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787946', 'tblTempVendorCDR_20' ) end [2025-03-29 09:32:19] Production.INFO: ProcessCDR(1,14787946,1,1,2) [2025-03-29 09:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787946', 'tblTempUsageDetail_20' ) start [2025-03-29 09:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787946', 'tblTempUsageDetail_20' ) end [2025-03-29 09:32:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 09:32:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 09:32:24] Production.INFO: ==13942== Releasing lock... [2025-03-29 09:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 09:32:24] Production.INFO: 31.5 MB #Memory Used# [2025-03-29 09:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 06:33:05 [end_date_ymd] => 2025-03-29 09:33:05 [RateCDR] => 1 ) [2025-03-29 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-29 06:33:05' and `end` < '2025-03-29 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-29 09:33:18] Production.INFO: count ==396 [2025-03-29 09:33:18] Production.ERROR: pbx CDR StartTime 2025-03-29 06:33:05 - End Time 2025-03-29 09:33:05 [2025-03-29 09:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787951', 'tblTempUsageDetail_20' ) start [2025-03-29 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787951', 'tblTempUsageDetail_20' ) end [2025-03-29 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787951', 'tblTempVendorCDR_20' ) start [2025-03-29 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787951', 'tblTempVendorCDR_20' ) end [2025-03-29 09:33:18] Production.INFO: ProcessCDR(1,14787951,1,1,2) [2025-03-29 09:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787951', 'tblTempUsageDetail_20' ) start [2025-03-29 09:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787951', 'tblTempUsageDetail_20' ) end [2025-03-29 09:33:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 09:33:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 09:33:23] Production.INFO: ==14013== Releasing lock... [2025-03-29 09:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 09:33:23] Production.INFO: 31.5 MB #Memory Used# [2025-03-29 09:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 06:34:06 [end_date_ymd] => 2025-03-29 09:34:06 [RateCDR] => 1 ) [2025-03-29 09:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 06:34:06' and `end` < '2025-03-29 09:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 09:34:18] Production.INFO: count ==409 [2025-03-29 09:34:18] Production.ERROR: pbx CDR StartTime 2025-03-29 06:34:06 - End Time 2025-03-29 09:34:06 [2025-03-29 09:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787956', 'tblTempUsageDetail_20' ) start [2025-03-29 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787956', 'tblTempUsageDetail_20' ) end [2025-03-29 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787956', 'tblTempVendorCDR_20' ) start [2025-03-29 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787956', 'tblTempVendorCDR_20' ) end [2025-03-29 09:34:18] Production.INFO: ProcessCDR(1,14787956,1,1,2) [2025-03-29 09:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787956', 'tblTempUsageDetail_20' ) start [2025-03-29 09:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787956', 'tblTempUsageDetail_20' ) end [2025-03-29 09:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 09:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 09:34:22] Production.INFO: ==14086== Releasing lock... [2025-03-29 09:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 09:34:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-29 09:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 06:35:05 [end_date_ymd] => 2025-03-29 09:35:05 [RateCDR] => 1 ) [2025-03-29 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-29 06:35:05' and `end` < '2025-03-29 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-29 09:35:18] Production.INFO: count ==416 [2025-03-29 09:35:18] Production.ERROR: pbx CDR StartTime 2025-03-29 06:35:05 - End Time 2025-03-29 09:35:05 [2025-03-29 09:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787961', 'tblTempUsageDetail_20' ) start [2025-03-29 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787961', 'tblTempUsageDetail_20' ) end [2025-03-29 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787961', 'tblTempVendorCDR_20' ) start [2025-03-29 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787961', 'tblTempVendorCDR_20' ) end [2025-03-29 09:35:18] Production.INFO: ProcessCDR(1,14787961,1,1,2) [2025-03-29 09:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787961', 'tblTempUsageDetail_20' ) start [2025-03-29 09:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787961', 'tblTempUsageDetail_20' ) end [2025-03-29 09:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 09:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 09:35:21] Production.INFO: ==14155== Releasing lock... [2025-03-29 09:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 09:35:21] Production.INFO: 32 MB #Memory Used# [2025-03-29 09:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 06:36:05 [end_date_ymd] => 2025-03-29 09:36:05 [RateCDR] => 1 ) [2025-03-29 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-29 06:36:05' and `end` < '2025-03-29 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-29 09:36:18] Production.INFO: count ==422 [2025-03-29 09:36:18] Production.ERROR: pbx CDR StartTime 2025-03-29 06:36:05 - End Time 2025-03-29 09:36:05 [2025-03-29 09:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787966', 'tblTempUsageDetail_20' ) start [2025-03-29 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787966', 'tblTempUsageDetail_20' ) end [2025-03-29 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787966', 'tblTempVendorCDR_20' ) start [2025-03-29 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787966', 'tblTempVendorCDR_20' ) end [2025-03-29 09:36:18] Production.INFO: ProcessCDR(1,14787966,1,1,2) [2025-03-29 09:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787966', 'tblTempUsageDetail_20' ) start [2025-03-29 09:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787966', 'tblTempUsageDetail_20' ) end [2025-03-29 09:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 09:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 09:36:21] Production.INFO: ==14228== Releasing lock... [2025-03-29 09:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 09:36:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-29 09:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 06:37:05 [end_date_ymd] => 2025-03-29 09:37:05 [RateCDR] => 1 ) [2025-03-29 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-29 06:37:05' and `end` < '2025-03-29 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-29 09:37:18] Production.INFO: count ==422 [2025-03-29 09:37:18] Production.ERROR: pbx CDR StartTime 2025-03-29 06:37:05 - End Time 2025-03-29 09:37:05 [2025-03-29 09:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787971', 'tblTempUsageDetail_20' ) start [2025-03-29 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787971', 'tblTempUsageDetail_20' ) end [2025-03-29 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787971', 'tblTempVendorCDR_20' ) start [2025-03-29 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787971', 'tblTempVendorCDR_20' ) end [2025-03-29 09:37:18] Production.INFO: ProcessCDR(1,14787971,1,1,2) [2025-03-29 09:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787971', 'tblTempUsageDetail_20' ) start [2025-03-29 09:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787971', 'tblTempUsageDetail_20' ) end [2025-03-29 09:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 09:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 09:37:21] Production.INFO: ==14305== Releasing lock... [2025-03-29 09:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 09:37:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-29 09:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 06:38:05 [end_date_ymd] => 2025-03-29 09:38:05 [RateCDR] => 1 ) [2025-03-29 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-29 06:38:05' and `end` < '2025-03-29 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-29 09:38:18] Production.INFO: count ==428 [2025-03-29 09:38:18] Production.ERROR: pbx CDR StartTime 2025-03-29 06:38:05 - End Time 2025-03-29 09:38:05 [2025-03-29 09:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787976', 'tblTempUsageDetail_20' ) start [2025-03-29 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787976', 'tblTempUsageDetail_20' ) end [2025-03-29 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787976', 'tblTempVendorCDR_20' ) start [2025-03-29 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787976', 'tblTempVendorCDR_20' ) end [2025-03-29 09:38:18] Production.INFO: ProcessCDR(1,14787976,1,1,2) [2025-03-29 09:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787976', 'tblTempUsageDetail_20' ) start [2025-03-29 09:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787976', 'tblTempUsageDetail_20' ) end [2025-03-29 09:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 09:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 09:38:21] Production.INFO: ==14377== Releasing lock... [2025-03-29 09:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 09:38:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-29 09:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 06:39:05 [end_date_ymd] => 2025-03-29 09:39:05 [RateCDR] => 1 ) [2025-03-29 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-29 06:39:05' and `end` < '2025-03-29 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-29 09:39:17] Production.INFO: count ==440 [2025-03-29 09:39:18] Production.ERROR: pbx CDR StartTime 2025-03-29 06:39:05 - End Time 2025-03-29 09:39:05 [2025-03-29 09:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787981', 'tblTempUsageDetail_20' ) start [2025-03-29 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787981', 'tblTempUsageDetail_20' ) end [2025-03-29 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787981', 'tblTempVendorCDR_20' ) start [2025-03-29 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787981', 'tblTempVendorCDR_20' ) end [2025-03-29 09:39:18] Production.INFO: ProcessCDR(1,14787981,1,1,2) [2025-03-29 09:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787981', 'tblTempUsageDetail_20' ) start [2025-03-29 09:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787981', 'tblTempUsageDetail_20' ) end [2025-03-29 09:39:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 09:39:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 09:39:23] Production.INFO: ==14452== Releasing lock... [2025-03-29 09:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 09:39:23] Production.INFO: 31.5 MB #Memory Used# [2025-03-29 09:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 06:40:06 [end_date_ymd] => 2025-03-29 09:40:06 [RateCDR] => 1 ) [2025-03-29 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-29 06:40:06' and `end` < '2025-03-29 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-29 09:40:18] Production.INFO: count ==456 [2025-03-29 09:40:18] Production.ERROR: pbx CDR StartTime 2025-03-29 06:40:06 - End Time 2025-03-29 09:40:06 [2025-03-29 09:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 09:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787987', 'tblTempUsageDetail_20' ) start [2025-03-29 09:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787987', 'tblTempUsageDetail_20' ) end [2025-03-29 09:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787987', 'tblTempVendorCDR_20' ) start [2025-03-29 09:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787987', 'tblTempVendorCDR_20' ) end [2025-03-29 09:40:18] Production.INFO: ProcessCDR(1,14787987,1,1,2) [2025-03-29 09:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787987', 'tblTempUsageDetail_20' ) start [2025-03-29 09:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787987', 'tblTempUsageDetail_20' ) end [2025-03-29 09:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 09:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 09:40:22] Production.INFO: ==14531== Releasing lock... [2025-03-29 09:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 09:40:22] Production.INFO: 32 MB #Memory Used# [2025-03-29 09:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 06:41:06 [end_date_ymd] => 2025-03-29 09:41:06 [RateCDR] => 1 ) [2025-03-29 09: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-29 06:41:06' and `end` < '2025-03-29 09: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-29 09:41:18] Production.INFO: count ==463 [2025-03-29 09:41:18] Production.ERROR: pbx CDR StartTime 2025-03-29 06:41:06 - End Time 2025-03-29 09:41:06 [2025-03-29 09:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787992', 'tblTempUsageDetail_20' ) start [2025-03-29 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787992', 'tblTempUsageDetail_20' ) end [2025-03-29 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787992', 'tblTempVendorCDR_20' ) start [2025-03-29 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787992', 'tblTempVendorCDR_20' ) end [2025-03-29 09:41:18] Production.INFO: ProcessCDR(1,14787992,1,1,2) [2025-03-29 09:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787992', 'tblTempUsageDetail_20' ) start [2025-03-29 09:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787992', 'tblTempUsageDetail_20' ) end [2025-03-29 09:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 09:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 09:41:22] Production.INFO: ==14631== Releasing lock... [2025-03-29 09:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 09:41:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-29 09:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 06:42:05 [end_date_ymd] => 2025-03-29 09:42:05 [RateCDR] => 1 ) [2025-03-29 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-29 06:42:05' and `end` < '2025-03-29 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-29 09:42:18] Production.INFO: count ==463 [2025-03-29 09:42:18] Production.ERROR: pbx CDR StartTime 2025-03-29 06:42:05 - End Time 2025-03-29 09:42:05 [2025-03-29 09:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 09:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787997', 'tblTempUsageDetail_20' ) start [2025-03-29 09:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14787997', 'tblTempUsageDetail_20' ) end [2025-03-29 09:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787997', 'tblTempVendorCDR_20' ) start [2025-03-29 09:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14787997', 'tblTempVendorCDR_20' ) end [2025-03-29 09:42:18] Production.INFO: ProcessCDR(1,14787997,1,1,2) [2025-03-29 09:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14787997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14787997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14787997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14787997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787997', 'tblTempUsageDetail_20' ) start [2025-03-29 09:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14787997', 'tblTempUsageDetail_20' ) end [2025-03-29 09:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 09:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 09:42:21] Production.INFO: ==14741== Releasing lock... [2025-03-29 09:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 09:42:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-29 09:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 06:43:06 [end_date_ymd] => 2025-03-29 09:43:06 [RateCDR] => 1 ) [2025-03-29 09:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 06:43:06' and `end` < '2025-03-29 09:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 09:43:18] Production.INFO: count ==475 [2025-03-29 09:43:18] Production.ERROR: pbx CDR StartTime 2025-03-29 06:43:06 - End Time 2025-03-29 09:43:06 [2025-03-29 09:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 09:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788002', 'tblTempUsageDetail_20' ) start [2025-03-29 09:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788002', 'tblTempUsageDetail_20' ) end [2025-03-29 09:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788002', 'tblTempVendorCDR_20' ) start [2025-03-29 09:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788002', 'tblTempVendorCDR_20' ) end [2025-03-29 09:43:18] Production.INFO: ProcessCDR(1,14788002,1,1,2) [2025-03-29 09:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788002', 'tblTempUsageDetail_20' ) start [2025-03-29 09:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788002', 'tblTempUsageDetail_20' ) end [2025-03-29 09:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 09:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 09:43:22] Production.INFO: ==14818== Releasing lock... [2025-03-29 09:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 09:43:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-29 09:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 06:44:05 [end_date_ymd] => 2025-03-29 09:44:05 [RateCDR] => 1 ) [2025-03-29 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-29 06:44:05' and `end` < '2025-03-29 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-29 09:44:18] Production.INFO: count ==485 [2025-03-29 09:44:18] Production.ERROR: pbx CDR StartTime 2025-03-29 06:44:05 - End Time 2025-03-29 09:44:05 [2025-03-29 09:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788007', 'tblTempUsageDetail_20' ) start [2025-03-29 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788007', 'tblTempUsageDetail_20' ) end [2025-03-29 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788007', 'tblTempVendorCDR_20' ) start [2025-03-29 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788007', 'tblTempVendorCDR_20' ) end [2025-03-29 09:44:18] Production.INFO: ProcessCDR(1,14788007,1,1,2) [2025-03-29 09:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788007', 'tblTempUsageDetail_20' ) start [2025-03-29 09:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788007', 'tblTempUsageDetail_20' ) end [2025-03-29 09:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 09:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 09:44:22] Production.INFO: ==14889== Releasing lock... [2025-03-29 09:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 09:44:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-29 09:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 06:45:06 [end_date_ymd] => 2025-03-29 09:45:06 [RateCDR] => 1 ) [2025-03-29 09: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-29 06:45:06' and `end` < '2025-03-29 09: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-29 09:45:18] Production.INFO: count ==492 [2025-03-29 09:45:18] Production.ERROR: pbx CDR StartTime 2025-03-29 06:45:06 - End Time 2025-03-29 09:45:06 [2025-03-29 09:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 09:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788012', 'tblTempUsageDetail_20' ) start [2025-03-29 09:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788012', 'tblTempUsageDetail_20' ) end [2025-03-29 09:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788012', 'tblTempVendorCDR_20' ) start [2025-03-29 09:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788012', 'tblTempVendorCDR_20' ) end [2025-03-29 09:45:18] Production.INFO: ProcessCDR(1,14788012,1,1,2) [2025-03-29 09:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788012', 'tblTempUsageDetail_20' ) start [2025-03-29 09:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788012', 'tblTempUsageDetail_20' ) end [2025-03-29 09:45:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 09:45:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 09:45:23] Production.INFO: ==14960== Releasing lock... [2025-03-29 09:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 09:45:23] Production.INFO: 32.25 MB #Memory Used# [2025-03-29 09:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 06:46:05 [end_date_ymd] => 2025-03-29 09:46:05 [RateCDR] => 1 ) [2025-03-29 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-29 06:46:05' and `end` < '2025-03-29 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-29 09:46:18] Production.INFO: count ==501 [2025-03-29 09:46:18] Production.ERROR: pbx CDR StartTime 2025-03-29 06:46:05 - End Time 2025-03-29 09:46:05 [2025-03-29 09:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 09:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788017', 'tblTempUsageDetail_20' ) start [2025-03-29 09:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788017', 'tblTempUsageDetail_20' ) end [2025-03-29 09:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788017', 'tblTempVendorCDR_20' ) start [2025-03-29 09:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788017', 'tblTempVendorCDR_20' ) end [2025-03-29 09:46:18] Production.INFO: ProcessCDR(1,14788017,1,1,2) [2025-03-29 09:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788017', 'tblTempUsageDetail_20' ) start [2025-03-29 09:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788017', 'tblTempUsageDetail_20' ) end [2025-03-29 09:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 09:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 09:46:21] Production.INFO: ==15038== Releasing lock... [2025-03-29 09:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 09:46:21] Production.INFO: 32 MB #Memory Used# [2025-03-29 09:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 06:47:06 [end_date_ymd] => 2025-03-29 09:47:06 [RateCDR] => 1 ) [2025-03-29 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-29 06:47:06' and `end` < '2025-03-29 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-29 09:47:18] Production.INFO: count ==501 [2025-03-29 09:47:18] Production.ERROR: pbx CDR StartTime 2025-03-29 06:47:06 - End Time 2025-03-29 09:47:06 [2025-03-29 09:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788022', 'tblTempUsageDetail_20' ) start [2025-03-29 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788022', 'tblTempUsageDetail_20' ) end [2025-03-29 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788022', 'tblTempVendorCDR_20' ) start [2025-03-29 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788022', 'tblTempVendorCDR_20' ) end [2025-03-29 09:47:18] Production.INFO: ProcessCDR(1,14788022,1,1,2) [2025-03-29 09:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788022', 'tblTempUsageDetail_20' ) start [2025-03-29 09:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788022', 'tblTempUsageDetail_20' ) end [2025-03-29 09:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 09:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 09:47:22] Production.INFO: ==15114== Releasing lock... [2025-03-29 09:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 09:47:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-29 09:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 06:48:05 [end_date_ymd] => 2025-03-29 09:48:05 [RateCDR] => 1 ) [2025-03-29 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-29 06:48:05' and `end` < '2025-03-29 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-29 09:48:18] Production.INFO: count ==504 [2025-03-29 09:48:18] Production.ERROR: pbx CDR StartTime 2025-03-29 06:48:05 - End Time 2025-03-29 09:48:05 [2025-03-29 09:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788027', 'tblTempUsageDetail_20' ) start [2025-03-29 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788027', 'tblTempUsageDetail_20' ) end [2025-03-29 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788027', 'tblTempVendorCDR_20' ) start [2025-03-29 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788027', 'tblTempVendorCDR_20' ) end [2025-03-29 09:48:18] Production.INFO: ProcessCDR(1,14788027,1,1,2) [2025-03-29 09:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788027', 'tblTempUsageDetail_20' ) start [2025-03-29 09:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788027', 'tblTempUsageDetail_20' ) end [2025-03-29 09:48:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 09:48:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 09:48:23] Production.INFO: ==15185== Releasing lock... [2025-03-29 09:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 09:48:23] Production.INFO: 32.25 MB #Memory Used# [2025-03-29 09:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 06:49:05 [end_date_ymd] => 2025-03-29 09:49:05 [RateCDR] => 1 ) [2025-03-29 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-29 06:49:05' and `end` < '2025-03-29 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-29 09:49:18] Production.INFO: count ==506 [2025-03-29 09:49:18] Production.ERROR: pbx CDR StartTime 2025-03-29 06:49:05 - End Time 2025-03-29 09:49:05 [2025-03-29 09:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788032', 'tblTempUsageDetail_20' ) start [2025-03-29 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788032', 'tblTempUsageDetail_20' ) end [2025-03-29 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788032', 'tblTempVendorCDR_20' ) start [2025-03-29 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788032', 'tblTempVendorCDR_20' ) end [2025-03-29 09:49:18] Production.INFO: ProcessCDR(1,14788032,1,1,2) [2025-03-29 09:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788032', 'tblTempUsageDetail_20' ) start [2025-03-29 09:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788032', 'tblTempUsageDetail_20' ) end [2025-03-29 09:49:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 09:49:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 09:49:23] Production.INFO: ==15259== Releasing lock... [2025-03-29 09:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 09:49:23] Production.INFO: 32.25 MB #Memory Used# [2025-03-29 09:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 06:50:06 [end_date_ymd] => 2025-03-29 09:50:06 [RateCDR] => 1 ) [2025-03-29 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-29 06:50:06' and `end` < '2025-03-29 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-29 09:50:19] Production.INFO: count ==522 [2025-03-29 09:50:19] Production.ERROR: pbx CDR StartTime 2025-03-29 06:50:06 - End Time 2025-03-29 09:50:06 [2025-03-29 09:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788038', 'tblTempUsageDetail_20' ) start [2025-03-29 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788038', 'tblTempUsageDetail_20' ) end [2025-03-29 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788038', 'tblTempVendorCDR_20' ) start [2025-03-29 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788038', 'tblTempVendorCDR_20' ) end [2025-03-29 09:50:19] Production.INFO: ProcessCDR(1,14788038,1,1,2) [2025-03-29 09:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788038', 'tblTempUsageDetail_20' ) start [2025-03-29 09:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788038', 'tblTempUsageDetail_20' ) end [2025-03-29 09:50:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 09:50:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 09:50:23] Production.INFO: ==15339== Releasing lock... [2025-03-29 09:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 09:50:23] Production.INFO: 32.25 MB #Memory Used# [2025-03-29 09:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 06:51:05 [end_date_ymd] => 2025-03-29 09:51:05 [RateCDR] => 1 ) [2025-03-29 09:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 06:51:05' and `end` < '2025-03-29 09:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 09:51:18] Production.INFO: count ==556 [2025-03-29 09:51:18] Production.ERROR: pbx CDR StartTime 2025-03-29 06:51:05 - End Time 2025-03-29 09:51:05 [2025-03-29 09:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 09:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788043', 'tblTempUsageDetail_20' ) start [2025-03-29 09:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788043', 'tblTempUsageDetail_20' ) end [2025-03-29 09:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788043', 'tblTempVendorCDR_20' ) start [2025-03-29 09:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788043', 'tblTempVendorCDR_20' ) end [2025-03-29 09:51:18] Production.INFO: ProcessCDR(1,14788043,1,1,2) [2025-03-29 09:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788043', 'tblTempUsageDetail_20' ) start [2025-03-29 09:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788043', 'tblTempUsageDetail_20' ) end [2025-03-29 09:51:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 09:51:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 09:51:23] Production.INFO: ==15414== Releasing lock... [2025-03-29 09:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 09:51:23] Production.INFO: 32.5 MB #Memory Used# [2025-03-29 09:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 06:52:05 [end_date_ymd] => 2025-03-29 09:52:05 [RateCDR] => 1 ) [2025-03-29 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-29 06:52:05' and `end` < '2025-03-29 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-29 09:52:18] Production.INFO: count ==563 [2025-03-29 09:52:18] Production.ERROR: pbx CDR StartTime 2025-03-29 06:52:05 - End Time 2025-03-29 09:52:05 [2025-03-29 09:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 09:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788048', 'tblTempUsageDetail_20' ) start [2025-03-29 09:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788048', 'tblTempUsageDetail_20' ) end [2025-03-29 09:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788048', 'tblTempVendorCDR_20' ) start [2025-03-29 09:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788048', 'tblTempVendorCDR_20' ) end [2025-03-29 09:52:18] Production.INFO: ProcessCDR(1,14788048,1,1,2) [2025-03-29 09:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788048', 'tblTempUsageDetail_20' ) start [2025-03-29 09:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788048', 'tblTempUsageDetail_20' ) end [2025-03-29 09:52:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 09:52:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 09:52:23] Production.INFO: ==15494== Releasing lock... [2025-03-29 09:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 09:52:23] Production.INFO: 32.75 MB #Memory Used# [2025-03-29 09:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 06:53:05 [end_date_ymd] => 2025-03-29 09:53:05 [RateCDR] => 1 ) [2025-03-29 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-29 06:53:05' and `end` < '2025-03-29 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-29 09:53:18] Production.INFO: count ==574 [2025-03-29 09:53:18] Production.ERROR: pbx CDR StartTime 2025-03-29 06:53:05 - End Time 2025-03-29 09:53:05 [2025-03-29 09:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788053', 'tblTempUsageDetail_20' ) start [2025-03-29 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788053', 'tblTempUsageDetail_20' ) end [2025-03-29 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788053', 'tblTempVendorCDR_20' ) start [2025-03-29 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788053', 'tblTempVendorCDR_20' ) end [2025-03-29 09:53:18] Production.INFO: ProcessCDR(1,14788053,1,1,2) [2025-03-29 09:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788053', 'tblTempUsageDetail_20' ) start [2025-03-29 09:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788053', 'tblTempUsageDetail_20' ) end [2025-03-29 09:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 09:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 09:53:22] Production.INFO: ==15586== Releasing lock... [2025-03-29 09:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 09:53:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-29 09:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 06:54:05 [end_date_ymd] => 2025-03-29 09:54:05 [RateCDR] => 1 ) [2025-03-29 09:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 06:54:05' and `end` < '2025-03-29 09:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 09:54:17] Production.INFO: count ==584 [2025-03-29 09:54:18] Production.ERROR: pbx CDR StartTime 2025-03-29 06:54:05 - End Time 2025-03-29 09:54:05 [2025-03-29 09:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788058', 'tblTempUsageDetail_20' ) start [2025-03-29 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788058', 'tblTempUsageDetail_20' ) end [2025-03-29 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788058', 'tblTempVendorCDR_20' ) start [2025-03-29 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788058', 'tblTempVendorCDR_20' ) end [2025-03-29 09:54:18] Production.INFO: ProcessCDR(1,14788058,1,1,2) [2025-03-29 09:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788058', 'tblTempUsageDetail_20' ) start [2025-03-29 09:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788058', 'tblTempUsageDetail_20' ) end [2025-03-29 09:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 09:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 09:54:21] Production.INFO: ==15664== Releasing lock... [2025-03-29 09:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 09:54:21] Production.INFO: 33 MB #Memory Used# [2025-03-29 09:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 06:55:05 [end_date_ymd] => 2025-03-29 09:55:05 [RateCDR] => 1 ) [2025-03-29 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-29 06:55:05' and `end` < '2025-03-29 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-29 09:55:17] Production.INFO: count ==579 [2025-03-29 09:55:18] Production.ERROR: pbx CDR StartTime 2025-03-29 06:55:05 - End Time 2025-03-29 09:55:05 [2025-03-29 09:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 09:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788063', 'tblTempUsageDetail_20' ) start [2025-03-29 09:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788063', 'tblTempUsageDetail_20' ) end [2025-03-29 09:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788063', 'tblTempVendorCDR_20' ) start [2025-03-29 09:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788063', 'tblTempVendorCDR_20' ) end [2025-03-29 09:55:18] Production.INFO: ProcessCDR(1,14788063,1,1,2) [2025-03-29 09:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788063', 'tblTempUsageDetail_20' ) start [2025-03-29 09:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788063', 'tblTempUsageDetail_20' ) end [2025-03-29 09:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 09:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 09:55:21] Production.INFO: ==15748== Releasing lock... [2025-03-29 09:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 09:55:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-29 09:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 06:56:06 [end_date_ymd] => 2025-03-29 09:56:06 [RateCDR] => 1 ) [2025-03-29 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-29 06:56:06' and `end` < '2025-03-29 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-29 09:56:18] Production.INFO: count ==579 [2025-03-29 09:56:18] Production.ERROR: pbx CDR StartTime 2025-03-29 06:56:06 - End Time 2025-03-29 09:56:06 [2025-03-29 09:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 09:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788068', 'tblTempUsageDetail_20' ) start [2025-03-29 09:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788068', 'tblTempUsageDetail_20' ) end [2025-03-29 09:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788068', 'tblTempVendorCDR_20' ) start [2025-03-29 09:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788068', 'tblTempVendorCDR_20' ) end [2025-03-29 09:56:18] Production.INFO: ProcessCDR(1,14788068,1,1,2) [2025-03-29 09:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788068', 'tblTempUsageDetail_20' ) start [2025-03-29 09:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788068', 'tblTempUsageDetail_20' ) end [2025-03-29 09:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 09:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 09:56:22] Production.INFO: ==15829== Releasing lock... [2025-03-29 09:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 09:56:22] Production.INFO: 33 MB #Memory Used# [2025-03-29 09:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 06:57:05 [end_date_ymd] => 2025-03-29 09:57:05 [RateCDR] => 1 ) [2025-03-29 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-29 06:57:05' and `end` < '2025-03-29 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-29 09:57:18] Production.INFO: count ==583 [2025-03-29 09:57:18] Production.ERROR: pbx CDR StartTime 2025-03-29 06:57:05 - End Time 2025-03-29 09:57:05 [2025-03-29 09:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 09:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788073', 'tblTempUsageDetail_20' ) start [2025-03-29 09:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788073', 'tblTempUsageDetail_20' ) end [2025-03-29 09:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788073', 'tblTempVendorCDR_20' ) start [2025-03-29 09:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788073', 'tblTempVendorCDR_20' ) end [2025-03-29 09:57:18] Production.INFO: ProcessCDR(1,14788073,1,1,2) [2025-03-29 09:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788073', 'tblTempUsageDetail_20' ) start [2025-03-29 09:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788073', 'tblTempUsageDetail_20' ) end [2025-03-29 09:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 09:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 09:57:21] Production.INFO: ==15942== Releasing lock... [2025-03-29 09:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 09:57:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-29 09:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 06:58:05 [end_date_ymd] => 2025-03-29 09:58:05 [RateCDR] => 1 ) [2025-03-29 09:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 06:58:05' and `end` < '2025-03-29 09:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 09:58:18] Production.INFO: count ==583 [2025-03-29 09:58:18] Production.ERROR: pbx CDR StartTime 2025-03-29 06:58:05 - End Time 2025-03-29 09:58:05 [2025-03-29 09:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 09:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788078', 'tblTempUsageDetail_20' ) start [2025-03-29 09:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788078', 'tblTempUsageDetail_20' ) end [2025-03-29 09:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788078', 'tblTempVendorCDR_20' ) start [2025-03-29 09:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788078', 'tblTempVendorCDR_20' ) end [2025-03-29 09:58:18] Production.INFO: ProcessCDR(1,14788078,1,1,2) [2025-03-29 09:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788078', 'tblTempUsageDetail_20' ) start [2025-03-29 09:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788078', 'tblTempUsageDetail_20' ) end [2025-03-29 09:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 09:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 09:58:22] Production.INFO: ==16027== Releasing lock... [2025-03-29 09:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 09:58:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-29 09:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 06:59:05 [end_date_ymd] => 2025-03-29 09:59:05 [RateCDR] => 1 ) [2025-03-29 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-29 06:59:05' and `end` < '2025-03-29 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-29 09:59:18] Production.INFO: count ==589 [2025-03-29 09:59:18] Production.ERROR: pbx CDR StartTime 2025-03-29 06:59:05 - End Time 2025-03-29 09:59:05 [2025-03-29 09:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 09:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788083', 'tblTempUsageDetail_20' ) start [2025-03-29 09:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788083', 'tblTempUsageDetail_20' ) end [2025-03-29 09:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788083', 'tblTempVendorCDR_20' ) start [2025-03-29 09:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788083', 'tblTempVendorCDR_20' ) end [2025-03-29 09:59:18] Production.INFO: ProcessCDR(1,14788083,1,1,2) [2025-03-29 09:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 09:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 09:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788083', 'tblTempUsageDetail_20' ) start [2025-03-29 09:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788083', 'tblTempUsageDetail_20' ) end [2025-03-29 09:59:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 09:59:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 09:59:22] Production.INFO: ==16103== Releasing lock... [2025-03-29 09:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 09:59:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-29 10:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 07:00:06 [end_date_ymd] => 2025-03-29 10:00:06 [RateCDR] => 1 ) [2025-03-29 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-29 07:00:06' and `end` < '2025-03-29 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-29 10:00:19] Production.INFO: count ==589 [2025-03-29 10:00:19] Production.ERROR: pbx CDR StartTime 2025-03-29 07:00:06 - End Time 2025-03-29 10:00:06 [2025-03-29 10:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788088', 'tblTempUsageDetail_20' ) start [2025-03-29 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788088', 'tblTempUsageDetail_20' ) end [2025-03-29 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788088', 'tblTempVendorCDR_20' ) start [2025-03-29 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788088', 'tblTempVendorCDR_20' ) end [2025-03-29 10:00:19] Production.INFO: ProcessCDR(1,14788088,1,1,2) [2025-03-29 10:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788088', 'tblTempUsageDetail_20' ) start [2025-03-29 10:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788088', 'tblTempUsageDetail_20' ) end [2025-03-29 10:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 10:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 10:00:23] Production.INFO: ==16184== Releasing lock... [2025-03-29 10:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 10:00:23] Production.INFO: 32.75 MB #Memory Used# [2025-03-29 10:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 07:01:05 [end_date_ymd] => 2025-03-29 10:01:05 [RateCDR] => 1 ) [2025-03-29 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-29 07:01:05' and `end` < '2025-03-29 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-29 10:01:17] Production.INFO: count ==589 [2025-03-29 10:01:18] Production.ERROR: pbx CDR StartTime 2025-03-29 07:01:05 - End Time 2025-03-29 10:01:05 [2025-03-29 10:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 10:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788094', 'tblTempUsageDetail_20' ) start [2025-03-29 10:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788094', 'tblTempUsageDetail_20' ) end [2025-03-29 10:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788094', 'tblTempVendorCDR_20' ) start [2025-03-29 10:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788094', 'tblTempVendorCDR_20' ) end [2025-03-29 10:01:18] Production.INFO: ProcessCDR(1,14788094,1,1,2) [2025-03-29 10:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788094', 'tblTempUsageDetail_20' ) start [2025-03-29 10:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788094', 'tblTempUsageDetail_20' ) end [2025-03-29 10:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 10:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 10:01:21] Production.INFO: ==16277== Releasing lock... [2025-03-29 10:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 10:01:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-29 10:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 07:02:05 [end_date_ymd] => 2025-03-29 10:02:05 [RateCDR] => 1 ) [2025-03-29 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-29 07:02:05' and `end` < '2025-03-29 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-29 10:02:18] Production.INFO: count ==593 [2025-03-29 10:02:18] Production.ERROR: pbx CDR StartTime 2025-03-29 07:02:05 - End Time 2025-03-29 10:02:05 [2025-03-29 10:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 10:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788099', 'tblTempUsageDetail_20' ) start [2025-03-29 10:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788099', 'tblTempUsageDetail_20' ) end [2025-03-29 10:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788099', 'tblTempVendorCDR_20' ) start [2025-03-29 10:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788099', 'tblTempVendorCDR_20' ) end [2025-03-29 10:02:18] Production.INFO: ProcessCDR(1,14788099,1,1,2) [2025-03-29 10:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788099', 'tblTempUsageDetail_20' ) start [2025-03-29 10:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788099', 'tblTempUsageDetail_20' ) end [2025-03-29 10:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 10:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 10:02:22] Production.INFO: ==16357== Releasing lock... [2025-03-29 10:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 10:02:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-29 10:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 07:03:05 [end_date_ymd] => 2025-03-29 10:03:05 [RateCDR] => 1 ) [2025-03-29 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-29 07:03:05' and `end` < '2025-03-29 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-29 10:03:17] Production.INFO: count ==599 [2025-03-29 10:03:17] Production.ERROR: pbx CDR StartTime 2025-03-29 07:03:05 - End Time 2025-03-29 10:03:05 [2025-03-29 10:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 10:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788104', 'tblTempUsageDetail_20' ) start [2025-03-29 10:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788104', 'tblTempUsageDetail_20' ) end [2025-03-29 10:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788104', 'tblTempVendorCDR_20' ) start [2025-03-29 10:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788104', 'tblTempVendorCDR_20' ) end [2025-03-29 10:03:17] Production.INFO: ProcessCDR(1,14788104,1,1,2) [2025-03-29 10:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788104', 'tblTempUsageDetail_20' ) start [2025-03-29 10:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788104', 'tblTempUsageDetail_20' ) end [2025-03-29 10:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 10:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 10:03:21] Production.INFO: ==16448== Releasing lock... [2025-03-29 10:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 10:03:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-29 10:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 07:04:06 [end_date_ymd] => 2025-03-29 10:04:06 [RateCDR] => 1 ) [2025-03-29 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-29 07:04:06' and `end` < '2025-03-29 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-29 10:04:19] Production.INFO: count ==600 [2025-03-29 10:04:19] Production.ERROR: pbx CDR StartTime 2025-03-29 07:04:06 - End Time 2025-03-29 10:04:06 [2025-03-29 10:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 10:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788109', 'tblTempUsageDetail_20' ) start [2025-03-29 10:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788109', 'tblTempUsageDetail_20' ) end [2025-03-29 10:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788109', 'tblTempVendorCDR_20' ) start [2025-03-29 10:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788109', 'tblTempVendorCDR_20' ) end [2025-03-29 10:04:19] Production.INFO: ProcessCDR(1,14788109,1,1,2) [2025-03-29 10:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788109', 'tblTempUsageDetail_20' ) start [2025-03-29 10:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788109', 'tblTempUsageDetail_20' ) end [2025-03-29 10:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 10:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 10:04:22] Production.INFO: ==16527== Releasing lock... [2025-03-29 10:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 10:04:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-29 10:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 07:05:05 [end_date_ymd] => 2025-03-29 10:05:05 [RateCDR] => 1 ) [2025-03-29 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-29 07:05:05' and `end` < '2025-03-29 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-29 10:05:18] Production.INFO: count ==601 [2025-03-29 10:05:18] Production.ERROR: pbx CDR StartTime 2025-03-29 07:05:05 - End Time 2025-03-29 10:05:05 [2025-03-29 10:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 10:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788114', 'tblTempUsageDetail_20' ) start [2025-03-29 10:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788114', 'tblTempUsageDetail_20' ) end [2025-03-29 10:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788114', 'tblTempVendorCDR_20' ) start [2025-03-29 10:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788114', 'tblTempVendorCDR_20' ) end [2025-03-29 10:05:18] Production.INFO: ProcessCDR(1,14788114,1,1,2) [2025-03-29 10:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788114', 'tblTempUsageDetail_20' ) start [2025-03-29 10:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788114', 'tblTempUsageDetail_20' ) end [2025-03-29 10:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 10:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 10:05:21] Production.INFO: ==16605== Releasing lock... [2025-03-29 10:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 10:05:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-29 10:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 07:06:05 [end_date_ymd] => 2025-03-29 10:06:05 [RateCDR] => 1 ) [2025-03-29 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-29 07:06:05' and `end` < '2025-03-29 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-29 10:06:17] Production.INFO: count ==603 [2025-03-29 10:06:18] Production.ERROR: pbx CDR StartTime 2025-03-29 07:06:05 - End Time 2025-03-29 10:06:05 [2025-03-29 10:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 10:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788119', 'tblTempUsageDetail_20' ) start [2025-03-29 10:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788119', 'tblTempUsageDetail_20' ) end [2025-03-29 10:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788119', 'tblTempVendorCDR_20' ) start [2025-03-29 10:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788119', 'tblTempVendorCDR_20' ) end [2025-03-29 10:06:18] Production.INFO: ProcessCDR(1,14788119,1,1,2) [2025-03-29 10:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788119', 'tblTempUsageDetail_20' ) start [2025-03-29 10:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788119', 'tblTempUsageDetail_20' ) end [2025-03-29 10:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 10:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 10:06:21] Production.INFO: ==16688== Releasing lock... [2025-03-29 10:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 10:06:21] Production.INFO: 33 MB #Memory Used# [2025-03-29 10:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 07:07:05 [end_date_ymd] => 2025-03-29 10:07:05 [RateCDR] => 1 ) [2025-03-29 10:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 07:07:05' and `end` < '2025-03-29 10:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 10:07:18] Production.INFO: count ==605 [2025-03-29 10:07:18] Production.ERROR: pbx CDR StartTime 2025-03-29 07:07:05 - End Time 2025-03-29 10:07:05 [2025-03-29 10:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 10:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788124', 'tblTempUsageDetail_20' ) start [2025-03-29 10:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788124', 'tblTempUsageDetail_20' ) end [2025-03-29 10:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788124', 'tblTempVendorCDR_20' ) start [2025-03-29 10:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788124', 'tblTempVendorCDR_20' ) end [2025-03-29 10:07:18] Production.INFO: ProcessCDR(1,14788124,1,1,2) [2025-03-29 10:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788124', 'tblTempUsageDetail_20' ) start [2025-03-29 10:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788124', 'tblTempUsageDetail_20' ) end [2025-03-29 10:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 10:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 10:07:21] Production.INFO: ==16771== Releasing lock... [2025-03-29 10:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 10:07:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-29 10:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 07:08:05 [end_date_ymd] => 2025-03-29 10:08:05 [RateCDR] => 1 ) [2025-03-29 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-29 07:08:05' and `end` < '2025-03-29 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-29 10:08:18] Production.INFO: count ==611 [2025-03-29 10:08:18] Production.ERROR: pbx CDR StartTime 2025-03-29 07:08:05 - End Time 2025-03-29 10:08:05 [2025-03-29 10:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 10:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788129', 'tblTempUsageDetail_20' ) start [2025-03-29 10:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788129', 'tblTempUsageDetail_20' ) end [2025-03-29 10:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788129', 'tblTempVendorCDR_20' ) start [2025-03-29 10:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788129', 'tblTempVendorCDR_20' ) end [2025-03-29 10:08:18] Production.INFO: ProcessCDR(1,14788129,1,1,2) [2025-03-29 10:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788129', 'tblTempUsageDetail_20' ) start [2025-03-29 10:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788129', 'tblTempUsageDetail_20' ) end [2025-03-29 10:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 10:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 10:08:21] Production.INFO: ==16855== Releasing lock... [2025-03-29 10:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 10:08:21] Production.INFO: 33 MB #Memory Used# [2025-03-29 10:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 07:09:04 [end_date_ymd] => 2025-03-29 10:09:04 [RateCDR] => 1 ) [2025-03-29 10: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-29 07:09:04' and `end` < '2025-03-29 10: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-29 10:09:17] Production.INFO: count ==611 [2025-03-29 10:09:17] Production.ERROR: pbx CDR StartTime 2025-03-29 07:09:04 - End Time 2025-03-29 10:09:04 [2025-03-29 10:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 10:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788134', 'tblTempUsageDetail_20' ) start [2025-03-29 10:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788134', 'tblTempUsageDetail_20' ) end [2025-03-29 10:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788134', 'tblTempVendorCDR_20' ) start [2025-03-29 10:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788134', 'tblTempVendorCDR_20' ) end [2025-03-29 10:09:17] Production.INFO: ProcessCDR(1,14788134,1,1,2) [2025-03-29 10:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788134', 'tblTempUsageDetail_20' ) start [2025-03-29 10:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788134', 'tblTempUsageDetail_20' ) end [2025-03-29 10:09:20] Production.ERROR: pbx prc_insertCDR start [2025-03-29 10:09:20] Production.ERROR: pbx prc_insertCDR end [2025-03-29 10:09:20] Production.INFO: ==16931== Releasing lock... [2025-03-29 10:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 10:09:20] Production.INFO: 33 MB #Memory Used# [2025-03-29 10:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 07:10:06 [end_date_ymd] => 2025-03-29 10:10:06 [RateCDR] => 1 ) [2025-03-29 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-29 07:10:06' and `end` < '2025-03-29 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-29 10:10:18] Production.INFO: count ==625 [2025-03-29 10:10:19] Production.ERROR: pbx CDR StartTime 2025-03-29 07:10:06 - End Time 2025-03-29 10:10:06 [2025-03-29 10:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 10:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788138', 'tblTempUsageDetail_20' ) start [2025-03-29 10:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788138', 'tblTempUsageDetail_20' ) end [2025-03-29 10:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788138', 'tblTempVendorCDR_20' ) start [2025-03-29 10:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788138', 'tblTempVendorCDR_20' ) end [2025-03-29 10:10:19] Production.INFO: ProcessCDR(1,14788138,1,1,2) [2025-03-29 10:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788138', 'tblTempUsageDetail_20' ) start [2025-03-29 10:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788138', 'tblTempUsageDetail_20' ) end [2025-03-29 10:10:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 10:10:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 10:10:23] Production.INFO: ==17014== Releasing lock... [2025-03-29 10:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 10:10:23] Production.INFO: 33 MB #Memory Used# [2025-03-29 10:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 07:11:06 [end_date_ymd] => 2025-03-29 10:11:06 [RateCDR] => 1 ) [2025-03-29 10:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 07:11:06' and `end` < '2025-03-29 10:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 10:11:18] Production.INFO: count ==677 [2025-03-29 10:11:18] Production.ERROR: pbx CDR StartTime 2025-03-29 07:11:06 - End Time 2025-03-29 10:11:06 [2025-03-29 10:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 10:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788145', 'tblTempUsageDetail_20' ) start [2025-03-29 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788145', 'tblTempUsageDetail_20' ) end [2025-03-29 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788145', 'tblTempVendorCDR_20' ) start [2025-03-29 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788145', 'tblTempVendorCDR_20' ) end [2025-03-29 10:11:19] Production.INFO: ProcessCDR(1,14788145,1,1,2) [2025-03-29 10:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788145', 'tblTempUsageDetail_20' ) start [2025-03-29 10:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788145', 'tblTempUsageDetail_20' ) end [2025-03-29 10:11:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 10:11:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 10:11:23] Production.INFO: ==17098== Releasing lock... [2025-03-29 10:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 10:11:23] Production.INFO: 33.25 MB #Memory Used# [2025-03-29 10:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 07:12:05 [end_date_ymd] => 2025-03-29 10:12:05 [RateCDR] => 1 ) [2025-03-29 10:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 07:12:05' and `end` < '2025-03-29 10:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 10:12:18] Production.INFO: count ==679 [2025-03-29 10:12:18] Production.ERROR: pbx CDR StartTime 2025-03-29 07:12:05 - End Time 2025-03-29 10:12:05 [2025-03-29 10:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 10:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788150', 'tblTempUsageDetail_20' ) start [2025-03-29 10:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788150', 'tblTempUsageDetail_20' ) end [2025-03-29 10:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788150', 'tblTempVendorCDR_20' ) start [2025-03-29 10:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788150', 'tblTempVendorCDR_20' ) end [2025-03-29 10:12:18] Production.INFO: ProcessCDR(1,14788150,1,1,2) [2025-03-29 10:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788150', 'tblTempUsageDetail_20' ) start [2025-03-29 10:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788150', 'tblTempUsageDetail_20' ) end [2025-03-29 10:12:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 10:12:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 10:12:23] Production.INFO: ==17175== Releasing lock... [2025-03-29 10:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 10:12:23] Production.INFO: 33.25 MB #Memory Used# [2025-03-29 10:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 07:13:05 [end_date_ymd] => 2025-03-29 10:13:05 [RateCDR] => 1 ) [2025-03-29 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-29 07:13:05' and `end` < '2025-03-29 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-29 10:13:18] Production.INFO: count ==681 [2025-03-29 10:13:18] Production.ERROR: pbx CDR StartTime 2025-03-29 07:13:05 - End Time 2025-03-29 10:13:05 [2025-03-29 10:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 10:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788155', 'tblTempUsageDetail_20' ) start [2025-03-29 10:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788155', 'tblTempUsageDetail_20' ) end [2025-03-29 10:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788155', 'tblTempVendorCDR_20' ) start [2025-03-29 10:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788155', 'tblTempVendorCDR_20' ) end [2025-03-29 10:13:18] Production.INFO: ProcessCDR(1,14788155,1,1,2) [2025-03-29 10:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788155', 'tblTempUsageDetail_20' ) start [2025-03-29 10:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788155', 'tblTempUsageDetail_20' ) end [2025-03-29 10:13:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 10:13:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 10:13:23] Production.INFO: ==17294== Releasing lock... [2025-03-29 10:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 10:13:23] Production.INFO: 33.75 MB #Memory Used# [2025-03-29 10:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 07:14:05 [end_date_ymd] => 2025-03-29 10:14:05 [RateCDR] => 1 ) [2025-03-29 10:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 07:14:05' and `end` < '2025-03-29 10:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 10:14:18] Production.INFO: count ==688 [2025-03-29 10:14:18] Production.ERROR: pbx CDR StartTime 2025-03-29 07:14:05 - End Time 2025-03-29 10:14:05 [2025-03-29 10:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 10:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788160', 'tblTempUsageDetail_20' ) start [2025-03-29 10:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788160', 'tblTempUsageDetail_20' ) end [2025-03-29 10:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788160', 'tblTempVendorCDR_20' ) start [2025-03-29 10:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788160', 'tblTempVendorCDR_20' ) end [2025-03-29 10:14:18] Production.INFO: ProcessCDR(1,14788160,1,1,2) [2025-03-29 10:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788160', 'tblTempUsageDetail_20' ) start [2025-03-29 10:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788160', 'tblTempUsageDetail_20' ) end [2025-03-29 10:14:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 10:14:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 10:14:23] Production.INFO: ==17371== Releasing lock... [2025-03-29 10:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 10:14:23] Production.INFO: 33.75 MB #Memory Used# [2025-03-29 10:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 07:15:06 [end_date_ymd] => 2025-03-29 10:15:06 [RateCDR] => 1 ) [2025-03-29 10:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 07:15:06' and `end` < '2025-03-29 10:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 10:15:19] Production.INFO: count ==695 [2025-03-29 10:15:19] Production.ERROR: pbx CDR StartTime 2025-03-29 07:15:06 - End Time 2025-03-29 10:15:06 [2025-03-29 10:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788165', 'tblTempUsageDetail_20' ) start [2025-03-29 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788165', 'tblTempUsageDetail_20' ) end [2025-03-29 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788165', 'tblTempVendorCDR_20' ) start [2025-03-29 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788165', 'tblTempVendorCDR_20' ) end [2025-03-29 10:15:19] Production.INFO: ProcessCDR(1,14788165,1,1,2) [2025-03-29 10:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788165', 'tblTempUsageDetail_20' ) start [2025-03-29 10:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788165', 'tblTempUsageDetail_20' ) end [2025-03-29 10:15:25] Production.ERROR: pbx prc_insertCDR start [2025-03-29 10:15:25] Production.ERROR: pbx prc_insertCDR end [2025-03-29 10:15:25] Production.INFO: ==17458== Releasing lock... [2025-03-29 10:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 10:15:25] Production.INFO: 33 MB #Memory Used# [2025-03-29 10:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 07:16:06 [end_date_ymd] => 2025-03-29 10:16:06 [RateCDR] => 1 ) [2025-03-29 10:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 07:16:06' and `end` < '2025-03-29 10:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 10:16:18] Production.INFO: count ==699 [2025-03-29 10:16:18] Production.ERROR: pbx CDR StartTime 2025-03-29 07:16:06 - End Time 2025-03-29 10:16:06 [2025-03-29 10:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 10:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788170', 'tblTempUsageDetail_20' ) start [2025-03-29 10:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788170', 'tblTempUsageDetail_20' ) end [2025-03-29 10:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788170', 'tblTempVendorCDR_20' ) start [2025-03-29 10:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788170', 'tblTempVendorCDR_20' ) end [2025-03-29 10:16:18] Production.INFO: ProcessCDR(1,14788170,1,1,2) [2025-03-29 10:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788170', 'tblTempUsageDetail_20' ) start [2025-03-29 10:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788170', 'tblTempUsageDetail_20' ) end [2025-03-29 10:16:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 10:16:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 10:16:22] Production.INFO: ==17534== Releasing lock... [2025-03-29 10:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 10:16:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-29 10:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 07:17:06 [end_date_ymd] => 2025-03-29 10:17:06 [RateCDR] => 1 ) [2025-03-29 10:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 07:17:06' and `end` < '2025-03-29 10:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 10:17:19] Production.INFO: count ==719 [2025-03-29 10:17:19] Production.ERROR: pbx CDR StartTime 2025-03-29 07:17:06 - End Time 2025-03-29 10:17:06 [2025-03-29 10:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 10:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788175', 'tblTempUsageDetail_20' ) start [2025-03-29 10:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788175', 'tblTempUsageDetail_20' ) end [2025-03-29 10:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788175', 'tblTempVendorCDR_20' ) start [2025-03-29 10:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788175', 'tblTempVendorCDR_20' ) end [2025-03-29 10:17:19] Production.INFO: ProcessCDR(1,14788175,1,1,2) [2025-03-29 10:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788175', 'tblTempUsageDetail_20' ) start [2025-03-29 10:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788175', 'tblTempUsageDetail_20' ) end [2025-03-29 10:17:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 10:17:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 10:17:24] Production.INFO: ==17615== Releasing lock... [2025-03-29 10:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 10:17:24] Production.INFO: 34 MB #Memory Used# [2025-03-29 10:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 07:18:06 [end_date_ymd] => 2025-03-29 10:18:06 [RateCDR] => 1 ) [2025-03-29 10:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 07:18:06' and `end` < '2025-03-29 10:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 10:18:18] Production.INFO: count ==721 [2025-03-29 10:18:19] Production.ERROR: pbx CDR StartTime 2025-03-29 07:18:06 - End Time 2025-03-29 10:18:06 [2025-03-29 10:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 10:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788180', 'tblTempUsageDetail_20' ) start [2025-03-29 10:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788180', 'tblTempUsageDetail_20' ) end [2025-03-29 10:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788180', 'tblTempVendorCDR_20' ) start [2025-03-29 10:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788180', 'tblTempVendorCDR_20' ) end [2025-03-29 10:18:19] Production.INFO: ProcessCDR(1,14788180,1,1,2) [2025-03-29 10:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788180', 'tblTempUsageDetail_20' ) start [2025-03-29 10:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788180', 'tblTempUsageDetail_20' ) end [2025-03-29 10:18:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 10:18:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 10:18:24] Production.INFO: ==17696== Releasing lock... [2025-03-29 10:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 10:18:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-29 10:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 07:19:06 [end_date_ymd] => 2025-03-29 10:19:06 [RateCDR] => 1 ) [2025-03-29 10:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 07:19:06' and `end` < '2025-03-29 10:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 10:19:19] Production.INFO: count ==725 [2025-03-29 10:19:19] Production.ERROR: pbx CDR StartTime 2025-03-29 07:19:06 - End Time 2025-03-29 10:19:06 [2025-03-29 10:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788185', 'tblTempUsageDetail_20' ) start [2025-03-29 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788185', 'tblTempUsageDetail_20' ) end [2025-03-29 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788185', 'tblTempVendorCDR_20' ) start [2025-03-29 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788185', 'tblTempVendorCDR_20' ) end [2025-03-29 10:19:19] Production.INFO: ProcessCDR(1,14788185,1,1,2) [2025-03-29 10:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788185', 'tblTempUsageDetail_20' ) start [2025-03-29 10:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788185', 'tblTempUsageDetail_20' ) end [2025-03-29 10:19:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 10:19:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 10:19:22] Production.INFO: ==17777== Releasing lock... [2025-03-29 10:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 10:19:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-29 10:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 07:20:06 [end_date_ymd] => 2025-03-29 10:20:06 [RateCDR] => 1 ) [2025-03-29 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-29 07:20:06' and `end` < '2025-03-29 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-29 10:20:18] Production.INFO: count ==744 [2025-03-29 10:20:19] Production.ERROR: pbx CDR StartTime 2025-03-29 07:20:06 - End Time 2025-03-29 10:20:06 [2025-03-29 10:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 10:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788191', 'tblTempUsageDetail_20' ) start [2025-03-29 10:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788191', 'tblTempUsageDetail_20' ) end [2025-03-29 10:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788191', 'tblTempVendorCDR_20' ) start [2025-03-29 10:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788191', 'tblTempVendorCDR_20' ) end [2025-03-29 10:20:19] Production.INFO: ProcessCDR(1,14788191,1,1,2) [2025-03-29 10:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788191', 'tblTempUsageDetail_20' ) start [2025-03-29 10:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788191', 'tblTempUsageDetail_20' ) end [2025-03-29 10:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 10:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 10:20:22] Production.INFO: ==17860== Releasing lock... [2025-03-29 10:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 10:20:22] Production.INFO: 34 MB #Memory Used# [2025-03-29 10:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 07:21:05 [end_date_ymd] => 2025-03-29 10:21:05 [RateCDR] => 1 ) [2025-03-29 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-29 07:21:05' and `end` < '2025-03-29 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-29 10:21:17] Production.INFO: count ==767 [2025-03-29 10:21:18] Production.ERROR: pbx CDR StartTime 2025-03-29 07:21:05 - End Time 2025-03-29 10:21:05 [2025-03-29 10:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 10:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788196', 'tblTempUsageDetail_20' ) start [2025-03-29 10:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788196', 'tblTempUsageDetail_20' ) end [2025-03-29 10:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788196', 'tblTempVendorCDR_20' ) start [2025-03-29 10:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788196', 'tblTempVendorCDR_20' ) end [2025-03-29 10:21:18] Production.INFO: ProcessCDR(1,14788196,1,1,2) [2025-03-29 10:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788196', 'tblTempUsageDetail_20' ) start [2025-03-29 10:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788196', 'tblTempUsageDetail_20' ) end [2025-03-29 10:21:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 10:21:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 10:21:23] Production.INFO: ==17941== Releasing lock... [2025-03-29 10:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 10:21:23] Production.INFO: 34.25 MB #Memory Used# [2025-03-29 10:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 07:22:05 [end_date_ymd] => 2025-03-29 10:22:05 [RateCDR] => 1 ) [2025-03-29 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-29 07:22:05' and `end` < '2025-03-29 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-29 10:22:18] Production.INFO: count ==773 [2025-03-29 10:22:18] Production.ERROR: pbx CDR StartTime 2025-03-29 07:22:05 - End Time 2025-03-29 10:22:05 [2025-03-29 10:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 10:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788201', 'tblTempUsageDetail_20' ) start [2025-03-29 10:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788201', 'tblTempUsageDetail_20' ) end [2025-03-29 10:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788201', 'tblTempVendorCDR_20' ) start [2025-03-29 10:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788201', 'tblTempVendorCDR_20' ) end [2025-03-29 10:22:18] Production.INFO: ProcessCDR(1,14788201,1,1,2) [2025-03-29 10:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788201', 'tblTempUsageDetail_20' ) start [2025-03-29 10:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788201', 'tblTempUsageDetail_20' ) end [2025-03-29 10:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 10:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 10:22:22] Production.INFO: ==18035== Releasing lock... [2025-03-29 10:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 10:22:22] Production.INFO: 34.25 MB #Memory Used# [2025-03-29 10:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 07:23:05 [end_date_ymd] => 2025-03-29 10:23:05 [RateCDR] => 1 ) [2025-03-29 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-29 07:23:05' and `end` < '2025-03-29 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-29 10:23:18] Production.INFO: count ==773 [2025-03-29 10:23:18] Production.ERROR: pbx CDR StartTime 2025-03-29 07:23:05 - End Time 2025-03-29 10:23:05 [2025-03-29 10:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 10:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788206', 'tblTempUsageDetail_20' ) start [2025-03-29 10:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788206', 'tblTempUsageDetail_20' ) end [2025-03-29 10:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788206', 'tblTempVendorCDR_20' ) start [2025-03-29 10:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788206', 'tblTempVendorCDR_20' ) end [2025-03-29 10:23:18] Production.INFO: ProcessCDR(1,14788206,1,1,2) [2025-03-29 10:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788206', 'tblTempUsageDetail_20' ) start [2025-03-29 10:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788206', 'tblTempUsageDetail_20' ) end [2025-03-29 10:23:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 10:23:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 10:23:22] Production.INFO: ==18115== Releasing lock... [2025-03-29 10:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 10:23:22] Production.INFO: 34.25 MB #Memory Used# [2025-03-29 10:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 07:24:05 [end_date_ymd] => 2025-03-29 10:24:05 [RateCDR] => 1 ) [2025-03-29 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-29 07:24:05' and `end` < '2025-03-29 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-29 10:24:18] Production.INFO: count ==780 [2025-03-29 10:24:18] Production.ERROR: pbx CDR StartTime 2025-03-29 07:24:05 - End Time 2025-03-29 10:24:05 [2025-03-29 10:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 10:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788211', 'tblTempUsageDetail_20' ) start [2025-03-29 10:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788211', 'tblTempUsageDetail_20' ) end [2025-03-29 10:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788211', 'tblTempVendorCDR_20' ) start [2025-03-29 10:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788211', 'tblTempVendorCDR_20' ) end [2025-03-29 10:24:18] Production.INFO: ProcessCDR(1,14788211,1,1,2) [2025-03-29 10:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788211', 'tblTempUsageDetail_20' ) start [2025-03-29 10:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788211', 'tblTempUsageDetail_20' ) end [2025-03-29 10:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 10:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 10:24:21] Production.INFO: ==18201== Releasing lock... [2025-03-29 10:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 10:24:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-29 10:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 07:25:06 [end_date_ymd] => 2025-03-29 10:25:06 [RateCDR] => 1 ) [2025-03-29 10: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-29 07:25:06' and `end` < '2025-03-29 10: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-29 10:25:18] Production.INFO: count ==781 [2025-03-29 10:25:19] Production.ERROR: pbx CDR StartTime 2025-03-29 07:25:06 - End Time 2025-03-29 10:25:06 [2025-03-29 10:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788216', 'tblTempUsageDetail_20' ) start [2025-03-29 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788216', 'tblTempUsageDetail_20' ) end [2025-03-29 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788216', 'tblTempVendorCDR_20' ) start [2025-03-29 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788216', 'tblTempVendorCDR_20' ) end [2025-03-29 10:25:19] Production.INFO: ProcessCDR(1,14788216,1,1,2) [2025-03-29 10:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788216', 'tblTempUsageDetail_20' ) start [2025-03-29 10:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788216', 'tblTempUsageDetail_20' ) end [2025-03-29 10:25:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 10:25:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 10:25:24] Production.INFO: ==18288== Releasing lock... [2025-03-29 10:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 10:25:24] Production.INFO: 34 MB #Memory Used# [2025-03-29 10:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 07:26:05 [end_date_ymd] => 2025-03-29 10:26:05 [RateCDR] => 1 ) [2025-03-29 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-29 07:26:05' and `end` < '2025-03-29 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-29 10:26:18] Production.INFO: count ==790 [2025-03-29 10:26:18] Production.ERROR: pbx CDR StartTime 2025-03-29 07:26:05 - End Time 2025-03-29 10:26:05 [2025-03-29 10:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 10:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788221', 'tblTempUsageDetail_20' ) start [2025-03-29 10:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788221', 'tblTempUsageDetail_20' ) end [2025-03-29 10:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788221', 'tblTempVendorCDR_20' ) start [2025-03-29 10:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788221', 'tblTempVendorCDR_20' ) end [2025-03-29 10:26:18] Production.INFO: ProcessCDR(1,14788221,1,1,2) [2025-03-29 10:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788221', 'tblTempUsageDetail_20' ) start [2025-03-29 10:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788221', 'tblTempUsageDetail_20' ) end [2025-03-29 10:26:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 10:26:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 10:26:22] Production.INFO: ==18377== Releasing lock... [2025-03-29 10:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 10:26:22] Production.INFO: 34.5 MB #Memory Used# [2025-03-29 10:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 07:27:05 [end_date_ymd] => 2025-03-29 10:27:05 [RateCDR] => 1 ) [2025-03-29 10:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 07:27:05' and `end` < '2025-03-29 10:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 10:27:18] Production.INFO: count ==808 [2025-03-29 10:27:18] Production.ERROR: pbx CDR StartTime 2025-03-29 07:27:05 - End Time 2025-03-29 10:27:05 [2025-03-29 10:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 10:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788226', 'tblTempUsageDetail_20' ) start [2025-03-29 10:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788226', 'tblTempUsageDetail_20' ) end [2025-03-29 10:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788226', 'tblTempVendorCDR_20' ) start [2025-03-29 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788226', 'tblTempVendorCDR_20' ) end [2025-03-29 10:27:19] Production.INFO: ProcessCDR(1,14788226,1,1,2) [2025-03-29 10:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788226', 'tblTempUsageDetail_20' ) start [2025-03-29 10:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788226', 'tblTempUsageDetail_20' ) end [2025-03-29 10:27:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 10:27:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 10:27:24] Production.INFO: ==18470== Releasing lock... [2025-03-29 10:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 10:27:24] Production.INFO: 34.25 MB #Memory Used# [2025-03-29 10:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 07:28:05 [end_date_ymd] => 2025-03-29 10:28:05 [RateCDR] => 1 ) [2025-03-29 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-29 07:28:05' and `end` < '2025-03-29 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-29 10:28:18] Production.INFO: count ==809 [2025-03-29 10:28:18] Production.ERROR: pbx CDR StartTime 2025-03-29 07:28:05 - End Time 2025-03-29 10:28:05 [2025-03-29 10:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 10:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788231', 'tblTempUsageDetail_20' ) start [2025-03-29 10:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788231', 'tblTempUsageDetail_20' ) end [2025-03-29 10:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788231', 'tblTempVendorCDR_20' ) start [2025-03-29 10:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788231', 'tblTempVendorCDR_20' ) end [2025-03-29 10:28:18] Production.INFO: ProcessCDR(1,14788231,1,1,2) [2025-03-29 10:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788231', 'tblTempUsageDetail_20' ) start [2025-03-29 10:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788231', 'tblTempUsageDetail_20' ) end [2025-03-29 10:28:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 10:28:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 10:28:23] Production.INFO: ==18603== Releasing lock... [2025-03-29 10:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 10:28:23] Production.INFO: 34.25 MB #Memory Used# [2025-03-29 10:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 07:29:05 [end_date_ymd] => 2025-03-29 10:29:05 [RateCDR] => 1 ) [2025-03-29 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-29 07:29:05' and `end` < '2025-03-29 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-29 10:29:18] Production.INFO: count ==810 [2025-03-29 10:29:18] Production.ERROR: pbx CDR StartTime 2025-03-29 07:29:05 - End Time 2025-03-29 10:29:05 [2025-03-29 10:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 10:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788236', 'tblTempUsageDetail_20' ) start [2025-03-29 10:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788236', 'tblTempUsageDetail_20' ) end [2025-03-29 10:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788236', 'tblTempVendorCDR_20' ) start [2025-03-29 10:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788236', 'tblTempVendorCDR_20' ) end [2025-03-29 10:29:18] Production.INFO: ProcessCDR(1,14788236,1,1,2) [2025-03-29 10:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788236', 'tblTempUsageDetail_20' ) start [2025-03-29 10:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788236', 'tblTempUsageDetail_20' ) end [2025-03-29 10:29:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 10:29:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 10:29:23] Production.INFO: ==18688== Releasing lock... [2025-03-29 10:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 10:29:23] Production.INFO: 34.25 MB #Memory Used# [2025-03-29 10:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 07:30:06 [end_date_ymd] => 2025-03-29 10:30:06 [RateCDR] => 1 ) [2025-03-29 10:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 07:30:06' and `end` < '2025-03-29 10:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 10:30:18] Production.INFO: count ==820 [2025-03-29 10:30:19] Production.ERROR: pbx CDR StartTime 2025-03-29 07:30:06 - End Time 2025-03-29 10:30:06 [2025-03-29 10:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 10:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788242', 'tblTempUsageDetail_20' ) start [2025-03-29 10:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788242', 'tblTempUsageDetail_20' ) end [2025-03-29 10:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788242', 'tblTempVendorCDR_20' ) start [2025-03-29 10:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788242', 'tblTempVendorCDR_20' ) end [2025-03-29 10:30:19] Production.INFO: ProcessCDR(1,14788242,1,1,2) [2025-03-29 10:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788242', 'tblTempUsageDetail_20' ) start [2025-03-29 10:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788242', 'tblTempUsageDetail_20' ) end [2025-03-29 10:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 10:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 10:30:22] Production.INFO: ==18791== Releasing lock... [2025-03-29 10:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 10:30:22] Production.INFO: 34 MB #Memory Used# [2025-03-29 10:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 07:31:05 [end_date_ymd] => 2025-03-29 10:31:05 [RateCDR] => 1 ) [2025-03-29 10:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 07:31:05' and `end` < '2025-03-29 10:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 10:31:17] Production.INFO: count ==821 [2025-03-29 10:31:18] Production.ERROR: pbx CDR StartTime 2025-03-29 07:31:05 - End Time 2025-03-29 10:31:05 [2025-03-29 10:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 10:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788247', 'tblTempUsageDetail_20' ) start [2025-03-29 10:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788247', 'tblTempUsageDetail_20' ) end [2025-03-29 10:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788247', 'tblTempVendorCDR_20' ) start [2025-03-29 10:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788247', 'tblTempVendorCDR_20' ) end [2025-03-29 10:31:18] Production.INFO: ProcessCDR(1,14788247,1,1,2) [2025-03-29 10:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788247', 'tblTempUsageDetail_20' ) start [2025-03-29 10:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788247', 'tblTempUsageDetail_20' ) end [2025-03-29 10:31:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 10:31:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 10:31:23] Production.INFO: ==18982== Releasing lock... [2025-03-29 10:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 10:31:23] Production.INFO: 33.75 MB #Memory Used# [2025-03-29 10:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 07:32:06 [end_date_ymd] => 2025-03-29 10:32:06 [RateCDR] => 1 ) [2025-03-29 10:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 07:32:06' and `end` < '2025-03-29 10:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 10:32:19] Production.INFO: count ==825 [2025-03-29 10:32:19] Production.ERROR: pbx CDR StartTime 2025-03-29 07:32:06 - End Time 2025-03-29 10:32:06 [2025-03-29 10:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 10:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788252', 'tblTempUsageDetail_20' ) start [2025-03-29 10:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788252', 'tblTempUsageDetail_20' ) end [2025-03-29 10:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788252', 'tblTempVendorCDR_20' ) start [2025-03-29 10:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788252', 'tblTempVendorCDR_20' ) end [2025-03-29 10:32:19] Production.INFO: ProcessCDR(1,14788252,1,1,2) [2025-03-29 10:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788252', 'tblTempUsageDetail_20' ) start [2025-03-29 10:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788252', 'tblTempUsageDetail_20' ) end [2025-03-29 10:32:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 10:32:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 10:32:24] Production.INFO: ==19168== Releasing lock... [2025-03-29 10:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 10:32:24] Production.INFO: 34 MB #Memory Used# [2025-03-29 10:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 07:33:06 [end_date_ymd] => 2025-03-29 10:33:06 [RateCDR] => 1 ) [2025-03-29 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-29 07:33:06' and `end` < '2025-03-29 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-29 10:33:18] Production.INFO: count ==825 [2025-03-29 10:33:19] Production.ERROR: pbx CDR StartTime 2025-03-29 07:33:06 - End Time 2025-03-29 10:33:06 [2025-03-29 10:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 10:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788257', 'tblTempUsageDetail_20' ) start [2025-03-29 10:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788257', 'tblTempUsageDetail_20' ) end [2025-03-29 10:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788257', 'tblTempVendorCDR_20' ) start [2025-03-29 10:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788257', 'tblTempVendorCDR_20' ) end [2025-03-29 10:33:19] Production.INFO: ProcessCDR(1,14788257,1,1,2) [2025-03-29 10:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788257', 'tblTempUsageDetail_20' ) start [2025-03-29 10:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788257', 'tblTempUsageDetail_20' ) end [2025-03-29 10:33:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 10:33:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 10:33:22] Production.INFO: ==19254== Releasing lock... [2025-03-29 10:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 10:33:22] Production.INFO: 34 MB #Memory Used# [2025-03-29 10:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 07:34:05 [end_date_ymd] => 2025-03-29 10:34:05 [RateCDR] => 1 ) [2025-03-29 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-29 07:34:05' and `end` < '2025-03-29 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-29 10:34:18] Production.INFO: count ==825 [2025-03-29 10:34:18] Production.ERROR: pbx CDR StartTime 2025-03-29 07:34:05 - End Time 2025-03-29 10:34:05 [2025-03-29 10:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 10:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788262', 'tblTempUsageDetail_20' ) start [2025-03-29 10:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788262', 'tblTempUsageDetail_20' ) end [2025-03-29 10:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788262', 'tblTempVendorCDR_20' ) start [2025-03-29 10:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788262', 'tblTempVendorCDR_20' ) end [2025-03-29 10:34:18] Production.INFO: ProcessCDR(1,14788262,1,1,2) [2025-03-29 10:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788262', 'tblTempUsageDetail_20' ) start [2025-03-29 10:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788262', 'tblTempUsageDetail_20' ) end [2025-03-29 10:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 10:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 10:34:22] Production.INFO: ==19352== Releasing lock... [2025-03-29 10:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 10:34:22] Production.INFO: 34 MB #Memory Used# [2025-03-29 10:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 07:35:05 [end_date_ymd] => 2025-03-29 10:35:05 [RateCDR] => 1 ) [2025-03-29 10:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 07:35:05' and `end` < '2025-03-29 10:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 10:35:18] Production.INFO: count ==833 [2025-03-29 10:35:18] Production.ERROR: pbx CDR StartTime 2025-03-29 07:35:05 - End Time 2025-03-29 10:35:05 [2025-03-29 10:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 10:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788267', 'tblTempUsageDetail_20' ) start [2025-03-29 10:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788267', 'tblTempUsageDetail_20' ) end [2025-03-29 10:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788267', 'tblTempVendorCDR_20' ) start [2025-03-29 10:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788267', 'tblTempVendorCDR_20' ) end [2025-03-29 10:35:18] Production.INFO: ProcessCDR(1,14788267,1,1,2) [2025-03-29 10:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788267', 'tblTempUsageDetail_20' ) start [2025-03-29 10:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788267', 'tblTempUsageDetail_20' ) end [2025-03-29 10:35:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 10:35:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 10:35:23] Production.INFO: ==19444== Releasing lock... [2025-03-29 10:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 10:35:23] Production.INFO: 34.25 MB #Memory Used# [2025-03-29 10:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 07:36:06 [end_date_ymd] => 2025-03-29 10:36:06 [RateCDR] => 1 ) [2025-03-29 10:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 07:36:06' and `end` < '2025-03-29 10:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 10:36:18] Production.INFO: count ==835 [2025-03-29 10:36:19] Production.ERROR: pbx CDR StartTime 2025-03-29 07:36:06 - End Time 2025-03-29 10:36:06 [2025-03-29 10:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 10:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788272', 'tblTempUsageDetail_20' ) start [2025-03-29 10:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788272', 'tblTempUsageDetail_20' ) end [2025-03-29 10:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788272', 'tblTempVendorCDR_20' ) start [2025-03-29 10:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788272', 'tblTempVendorCDR_20' ) end [2025-03-29 10:36:19] Production.INFO: ProcessCDR(1,14788272,1,1,2) [2025-03-29 10:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788272', 'tblTempUsageDetail_20' ) start [2025-03-29 10:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788272', 'tblTempUsageDetail_20' ) end [2025-03-29 10:36:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 10:36:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 10:36:22] Production.INFO: ==19538== Releasing lock... [2025-03-29 10:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 10:36:22] Production.INFO: 34.5 MB #Memory Used# [2025-03-29 10:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 07:37:05 [end_date_ymd] => 2025-03-29 10:37:05 [RateCDR] => 1 ) [2025-03-29 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-29 07:37:05' and `end` < '2025-03-29 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-29 10:37:18] Production.INFO: count ==841 [2025-03-29 10:37:18] Production.ERROR: pbx CDR StartTime 2025-03-29 07:37:05 - End Time 2025-03-29 10:37:05 [2025-03-29 10:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 10:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788277', 'tblTempUsageDetail_20' ) start [2025-03-29 10:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788277', 'tblTempUsageDetail_20' ) end [2025-03-29 10:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788277', 'tblTempVendorCDR_20' ) start [2025-03-29 10:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788277', 'tblTempVendorCDR_20' ) end [2025-03-29 10:37:18] Production.INFO: ProcessCDR(1,14788277,1,1,2) [2025-03-29 10:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788277', 'tblTempUsageDetail_20' ) start [2025-03-29 10:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788277', 'tblTempUsageDetail_20' ) end [2025-03-29 10:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 10:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 10:37:21] Production.INFO: ==19635== Releasing lock... [2025-03-29 10:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 10:37:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-29 10:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 07:38:06 [end_date_ymd] => 2025-03-29 10:38:06 [RateCDR] => 1 ) [2025-03-29 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-29 07:38:06' and `end` < '2025-03-29 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-29 10:38:18] Production.INFO: count ==841 [2025-03-29 10:38:18] Production.ERROR: pbx CDR StartTime 2025-03-29 07:38:06 - End Time 2025-03-29 10:38:06 [2025-03-29 10:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 10:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788282', 'tblTempUsageDetail_20' ) start [2025-03-29 10:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788282', 'tblTempUsageDetail_20' ) end [2025-03-29 10:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788282', 'tblTempVendorCDR_20' ) start [2025-03-29 10:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788282', 'tblTempVendorCDR_20' ) end [2025-03-29 10:38:19] Production.INFO: ProcessCDR(1,14788282,1,1,2) [2025-03-29 10:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788282', 'tblTempUsageDetail_20' ) start [2025-03-29 10:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788282', 'tblTempUsageDetail_20' ) end [2025-03-29 10:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 10:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 10:38:22] Production.INFO: ==19723== Releasing lock... [2025-03-29 10:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 10:38:22] Production.INFO: 34.5 MB #Memory Used# [2025-03-29 10:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 07:39:06 [end_date_ymd] => 2025-03-29 10:39:06 [RateCDR] => 1 ) [2025-03-29 10: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-29 07:39:06' and `end` < '2025-03-29 10: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-29 10:39:18] Production.INFO: count ==841 [2025-03-29 10:39:19] Production.ERROR: pbx CDR StartTime 2025-03-29 07:39:06 - End Time 2025-03-29 10:39:06 [2025-03-29 10:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 10:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788287', 'tblTempUsageDetail_20' ) start [2025-03-29 10:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788287', 'tblTempUsageDetail_20' ) end [2025-03-29 10:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788287', 'tblTempVendorCDR_20' ) start [2025-03-29 10:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788287', 'tblTempVendorCDR_20' ) end [2025-03-29 10:39:19] Production.INFO: ProcessCDR(1,14788287,1,1,2) [2025-03-29 10:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788287', 'tblTempUsageDetail_20' ) start [2025-03-29 10:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788287', 'tblTempUsageDetail_20' ) end [2025-03-29 10:39:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 10:39:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 10:39:22] Production.INFO: ==19819== Releasing lock... [2025-03-29 10:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 10:39:22] Production.INFO: 34.5 MB #Memory Used# [2025-03-29 10:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 07:40:07 [end_date_ymd] => 2025-03-29 10:40:07 [RateCDR] => 1 ) [2025-03-29 10:40:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 07:40:07' and `end` < '2025-03-29 10:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 10:40:19] Production.INFO: count ==855 [2025-03-29 10:40:20] Production.ERROR: pbx CDR StartTime 2025-03-29 07:40:07 - End Time 2025-03-29 10:40:07 [2025-03-29 10:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 10:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788293', 'tblTempUsageDetail_20' ) start [2025-03-29 10:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788293', 'tblTempUsageDetail_20' ) end [2025-03-29 10:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788293', 'tblTempVendorCDR_20' ) start [2025-03-29 10:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788293', 'tblTempVendorCDR_20' ) end [2025-03-29 10:40:20] Production.INFO: ProcessCDR(1,14788293,1,1,2) [2025-03-29 10:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788293', 'tblTempUsageDetail_20' ) start [2025-03-29 10:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788293', 'tblTempUsageDetail_20' ) end [2025-03-29 10:40:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 10:40:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 10:40:23] Production.INFO: ==19910== Releasing lock... [2025-03-29 10:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 10:40:23] Production.INFO: 34.25 MB #Memory Used# [2025-03-29 10:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 07:41:05 [end_date_ymd] => 2025-03-29 10:41:05 [RateCDR] => 1 ) [2025-03-29 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-29 07:41:05' and `end` < '2025-03-29 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-29 10:41:18] Production.INFO: count ==873 [2025-03-29 10:41:18] Production.ERROR: pbx CDR StartTime 2025-03-29 07:41:05 - End Time 2025-03-29 10:41:05 [2025-03-29 10:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 10:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788298', 'tblTempUsageDetail_20' ) start [2025-03-29 10:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788298', 'tblTempUsageDetail_20' ) end [2025-03-29 10:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788298', 'tblTempVendorCDR_20' ) start [2025-03-29 10:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788298', 'tblTempVendorCDR_20' ) end [2025-03-29 10:41:18] Production.INFO: ProcessCDR(1,14788298,1,1,2) [2025-03-29 10:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788298', 'tblTempUsageDetail_20' ) start [2025-03-29 10:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788298', 'tblTempUsageDetail_20' ) end [2025-03-29 10:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 10:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 10:41:21] Production.INFO: ==20016== Releasing lock... [2025-03-29 10:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 10:41:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-29 10:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 07:42:05 [end_date_ymd] => 2025-03-29 10:42:05 [RateCDR] => 1 ) [2025-03-29 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-29 07:42:05' and `end` < '2025-03-29 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-29 10:42:18] Production.INFO: count ==887 [2025-03-29 10:42:18] Production.ERROR: pbx CDR StartTime 2025-03-29 07:42:05 - End Time 2025-03-29 10:42:05 [2025-03-29 10:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 10:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788303', 'tblTempUsageDetail_20' ) start [2025-03-29 10:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788303', 'tblTempUsageDetail_20' ) end [2025-03-29 10:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788303', 'tblTempVendorCDR_20' ) start [2025-03-29 10:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788303', 'tblTempVendorCDR_20' ) end [2025-03-29 10:42:18] Production.INFO: ProcessCDR(1,14788303,1,1,2) [2025-03-29 10:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788303', 'tblTempUsageDetail_20' ) start [2025-03-29 10:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788303', 'tblTempUsageDetail_20' ) end [2025-03-29 10:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 10:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 10:42:22] Production.INFO: ==20103== Releasing lock... [2025-03-29 10:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 10:42:22] Production.INFO: 35 MB #Memory Used# [2025-03-29 10:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 07:43:05 [end_date_ymd] => 2025-03-29 10:43:05 [RateCDR] => 1 ) [2025-03-29 10:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 07:43:05' and `end` < '2025-03-29 10:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 10:43:17] Production.INFO: count ==885 [2025-03-29 10:43:18] Production.ERROR: pbx CDR StartTime 2025-03-29 07:43:05 - End Time 2025-03-29 10:43:05 [2025-03-29 10:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 10:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788308', 'tblTempUsageDetail_20' ) start [2025-03-29 10:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788308', 'tblTempUsageDetail_20' ) end [2025-03-29 10:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788308', 'tblTempVendorCDR_20' ) start [2025-03-29 10:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788308', 'tblTempVendorCDR_20' ) end [2025-03-29 10:43:18] Production.INFO: ProcessCDR(1,14788308,1,1,2) [2025-03-29 10:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788308', 'tblTempUsageDetail_20' ) start [2025-03-29 10:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788308', 'tblTempUsageDetail_20' ) end [2025-03-29 10:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 10:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 10:43:21] Production.INFO: ==20190== Releasing lock... [2025-03-29 10:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 10:43:21] Production.INFO: 35 MB #Memory Used# [2025-03-29 10:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 07:44:05 [end_date_ymd] => 2025-03-29 10:44:05 [RateCDR] => 1 ) [2025-03-29 10:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 07:44:05' and `end` < '2025-03-29 10:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 10:44:18] Production.INFO: count ==885 [2025-03-29 10:44:18] Production.ERROR: pbx CDR StartTime 2025-03-29 07:44:05 - End Time 2025-03-29 10:44:05 [2025-03-29 10:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 10:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788313', 'tblTempUsageDetail_20' ) start [2025-03-29 10:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788313', 'tblTempUsageDetail_20' ) end [2025-03-29 10:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788313', 'tblTempVendorCDR_20' ) start [2025-03-29 10:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788313', 'tblTempVendorCDR_20' ) end [2025-03-29 10:44:18] Production.INFO: ProcessCDR(1,14788313,1,1,2) [2025-03-29 10:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788313', 'tblTempUsageDetail_20' ) start [2025-03-29 10:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788313', 'tblTempUsageDetail_20' ) end [2025-03-29 10:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 10:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 10:44:22] Production.INFO: ==20327== Releasing lock... [2025-03-29 10:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 10:44:22] Production.INFO: 35 MB #Memory Used# [2025-03-29 10:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 07:45:05 [end_date_ymd] => 2025-03-29 10:45:05 [RateCDR] => 1 ) [2025-03-29 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-29 07:45:05' and `end` < '2025-03-29 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-29 10:45:18] Production.INFO: count ==893 [2025-03-29 10:45:18] Production.ERROR: pbx CDR StartTime 2025-03-29 07:45:05 - End Time 2025-03-29 10:45:05 [2025-03-29 10:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 10:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788318', 'tblTempUsageDetail_20' ) start [2025-03-29 10:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788318', 'tblTempUsageDetail_20' ) end [2025-03-29 10:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788318', 'tblTempVendorCDR_20' ) start [2025-03-29 10:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788318', 'tblTempVendorCDR_20' ) end [2025-03-29 10:45:18] Production.INFO: ProcessCDR(1,14788318,1,1,2) [2025-03-29 10:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788318', 'tblTempUsageDetail_20' ) start [2025-03-29 10:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788318', 'tblTempUsageDetail_20' ) end [2025-03-29 10:45:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 10:45:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 10:45:22] Production.INFO: ==20411== Releasing lock... [2025-03-29 10:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 10:45:22] Production.INFO: 35 MB #Memory Used# [2025-03-29 10:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 07:46:05 [end_date_ymd] => 2025-03-29 10:46:05 [RateCDR] => 1 ) [2025-03-29 10:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 07:46:05' and `end` < '2025-03-29 10:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 10:46:18] Production.INFO: count ==895 [2025-03-29 10:46:18] Production.ERROR: pbx CDR StartTime 2025-03-29 07:46:05 - End Time 2025-03-29 10:46:05 [2025-03-29 10:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 10:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788323', 'tblTempUsageDetail_20' ) start [2025-03-29 10:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788323', 'tblTempUsageDetail_20' ) end [2025-03-29 10:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788323', 'tblTempVendorCDR_20' ) start [2025-03-29 10:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788323', 'tblTempVendorCDR_20' ) end [2025-03-29 10:46:18] Production.INFO: ProcessCDR(1,14788323,1,1,2) [2025-03-29 10:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788323', 'tblTempUsageDetail_20' ) start [2025-03-29 10:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788323', 'tblTempUsageDetail_20' ) end [2025-03-29 10:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 10:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 10:46:21] Production.INFO: ==20512== Releasing lock... [2025-03-29 10:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 10:46:21] Production.INFO: 34.75 MB #Memory Used# [2025-03-29 10:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 07:47:05 [end_date_ymd] => 2025-03-29 10:47:05 [RateCDR] => 1 ) [2025-03-29 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-29 07:47:05' and `end` < '2025-03-29 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-29 10:47:18] Production.INFO: count ==896 [2025-03-29 10:47:18] Production.ERROR: pbx CDR StartTime 2025-03-29 07:47:05 - End Time 2025-03-29 10:47:05 [2025-03-29 10:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 10:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788328', 'tblTempUsageDetail_20' ) start [2025-03-29 10:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788328', 'tblTempUsageDetail_20' ) end [2025-03-29 10:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788328', 'tblTempVendorCDR_20' ) start [2025-03-29 10:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788328', 'tblTempVendorCDR_20' ) end [2025-03-29 10:47:18] Production.INFO: ProcessCDR(1,14788328,1,1,2) [2025-03-29 10:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788328', 'tblTempUsageDetail_20' ) start [2025-03-29 10:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788328', 'tblTempUsageDetail_20' ) end [2025-03-29 10:47:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 10:47:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 10:47:23] Production.INFO: ==20595== Releasing lock... [2025-03-29 10:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 10:47:23] Production.INFO: 34.5 MB #Memory Used# [2025-03-29 10:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 07:48:05 [end_date_ymd] => 2025-03-29 10:48:05 [RateCDR] => 1 ) [2025-03-29 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-29 07:48:05' and `end` < '2025-03-29 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-29 10:48:18] Production.INFO: count ==896 [2025-03-29 10:48:18] Production.ERROR: pbx CDR StartTime 2025-03-29 07:48:05 - End Time 2025-03-29 10:48:05 [2025-03-29 10:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 10:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788333', 'tblTempUsageDetail_20' ) start [2025-03-29 10:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788333', 'tblTempUsageDetail_20' ) end [2025-03-29 10:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788333', 'tblTempVendorCDR_20' ) start [2025-03-29 10:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788333', 'tblTempVendorCDR_20' ) end [2025-03-29 10:48:18] Production.INFO: ProcessCDR(1,14788333,1,1,2) [2025-03-29 10:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788333', 'tblTempUsageDetail_20' ) start [2025-03-29 10:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788333', 'tblTempUsageDetail_20' ) end [2025-03-29 10:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 10:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 10:48:22] Production.INFO: ==20683== Releasing lock... [2025-03-29 10:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 10:48:22] Production.INFO: 34.5 MB #Memory Used# [2025-03-29 10:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 07:49:05 [end_date_ymd] => 2025-03-29 10:49:05 [RateCDR] => 1 ) [2025-03-29 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-29 07:49:05' and `end` < '2025-03-29 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-29 10:49:17] Production.INFO: count ==896 [2025-03-29 10:49:17] Production.ERROR: pbx CDR StartTime 2025-03-29 07:49:05 - End Time 2025-03-29 10:49:05 [2025-03-29 10:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 10:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788338', 'tblTempUsageDetail_20' ) start [2025-03-29 10:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788338', 'tblTempUsageDetail_20' ) end [2025-03-29 10:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788338', 'tblTempVendorCDR_20' ) start [2025-03-29 10:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788338', 'tblTempVendorCDR_20' ) end [2025-03-29 10:49:17] Production.INFO: ProcessCDR(1,14788338,1,1,2) [2025-03-29 10:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788338', 'tblTempUsageDetail_20' ) start [2025-03-29 10:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788338', 'tblTempUsageDetail_20' ) end [2025-03-29 10:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 10:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 10:49:21] Production.INFO: ==20777== Releasing lock... [2025-03-29 10:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 10:49:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-29 10:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 07:50:06 [end_date_ymd] => 2025-03-29 10:50:06 [RateCDR] => 1 ) [2025-03-29 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-29 07:50:06' and `end` < '2025-03-29 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-29 10:50:18] Production.INFO: count ==904 [2025-03-29 10:50:19] Production.ERROR: pbx CDR StartTime 2025-03-29 07:50:06 - End Time 2025-03-29 10:50:06 [2025-03-29 10:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 10:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788344', 'tblTempUsageDetail_20' ) start [2025-03-29 10:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788344', 'tblTempUsageDetail_20' ) end [2025-03-29 10:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788344', 'tblTempVendorCDR_20' ) start [2025-03-29 10:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788344', 'tblTempVendorCDR_20' ) end [2025-03-29 10:50:19] Production.INFO: ProcessCDR(1,14788344,1,1,2) [2025-03-29 10:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788344', 'tblTempUsageDetail_20' ) start [2025-03-29 10:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788344', 'tblTempUsageDetail_20' ) end [2025-03-29 10:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 10:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 10:50:22] Production.INFO: ==20867== Releasing lock... [2025-03-29 10:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 10:50:22] Production.INFO: 34.75 MB #Memory Used# [2025-03-29 10:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 07:51:06 [end_date_ymd] => 2025-03-29 10:51:06 [RateCDR] => 1 ) [2025-03-29 10:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 07:51:06' and `end` < '2025-03-29 10:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 10:51:19] Production.INFO: count ==947 [2025-03-29 10:51:19] Production.ERROR: pbx CDR StartTime 2025-03-29 07:51:06 - End Time 2025-03-29 10:51:06 [2025-03-29 10:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 10:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788349', 'tblTempUsageDetail_20' ) start [2025-03-29 10:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788349', 'tblTempUsageDetail_20' ) end [2025-03-29 10:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788349', 'tblTempVendorCDR_20' ) start [2025-03-29 10:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788349', 'tblTempVendorCDR_20' ) end [2025-03-29 10:51:19] Production.INFO: ProcessCDR(1,14788349,1,1,2) [2025-03-29 10:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788349', 'tblTempUsageDetail_20' ) start [2025-03-29 10:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788349', 'tblTempUsageDetail_20' ) end [2025-03-29 10:51:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 10:51:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 10:51:23] Production.INFO: ==20961== Releasing lock... [2025-03-29 10:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 10:51:23] Production.INFO: 36 MB #Memory Used# [2025-03-29 10:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 07:52:05 [end_date_ymd] => 2025-03-29 10:52:05 [RateCDR] => 1 ) [2025-03-29 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-29 07:52:05' and `end` < '2025-03-29 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-29 10:52:18] Production.INFO: count ==961 [2025-03-29 10:52:18] Production.ERROR: pbx CDR StartTime 2025-03-29 07:52:05 - End Time 2025-03-29 10:52:05 [2025-03-29 10:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 10:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788354', 'tblTempUsageDetail_20' ) start [2025-03-29 10:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788354', 'tblTempUsageDetail_20' ) end [2025-03-29 10:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788354', 'tblTempVendorCDR_20' ) start [2025-03-29 10:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788354', 'tblTempVendorCDR_20' ) end [2025-03-29 10:52:18] Production.INFO: ProcessCDR(1,14788354,1,1,2) [2025-03-29 10:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788354', 'tblTempUsageDetail_20' ) start [2025-03-29 10:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788354', 'tblTempUsageDetail_20' ) end [2025-03-29 10:52:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 10:52:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 10:52:23] Production.INFO: ==21052== Releasing lock... [2025-03-29 10:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 10:52:23] Production.INFO: 36 MB #Memory Used# [2025-03-29 10:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 07:53:05 [end_date_ymd] => 2025-03-29 10:53:05 [RateCDR] => 1 ) [2025-03-29 10:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 07:53:05' and `end` < '2025-03-29 10:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 10:53:18] Production.INFO: count ==966 [2025-03-29 10:53:18] Production.ERROR: pbx CDR StartTime 2025-03-29 07:53:05 - End Time 2025-03-29 10:53:05 [2025-03-29 10:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 10:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788359', 'tblTempUsageDetail_20' ) start [2025-03-29 10:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788359', 'tblTempUsageDetail_20' ) end [2025-03-29 10:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788359', 'tblTempVendorCDR_20' ) start [2025-03-29 10:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788359', 'tblTempVendorCDR_20' ) end [2025-03-29 10:53:18] Production.INFO: ProcessCDR(1,14788359,1,1,2) [2025-03-29 10:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788359', 'tblTempUsageDetail_20' ) start [2025-03-29 10:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788359', 'tblTempUsageDetail_20' ) end [2025-03-29 10:53:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 10:53:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 10:53:23] Production.INFO: ==21139== Releasing lock... [2025-03-29 10:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 10:53:23] Production.INFO: 35.5 MB #Memory Used# [2025-03-29 10:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 07:54:05 [end_date_ymd] => 2025-03-29 10:54:05 [RateCDR] => 1 ) [2025-03-29 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-29 07:54:05' and `end` < '2025-03-29 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-29 10:54:18] Production.INFO: count ==973 [2025-03-29 10:54:18] Production.ERROR: pbx CDR StartTime 2025-03-29 07:54:05 - End Time 2025-03-29 10:54:05 [2025-03-29 10:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 10:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788364', 'tblTempUsageDetail_20' ) start [2025-03-29 10:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788364', 'tblTempUsageDetail_20' ) end [2025-03-29 10:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788364', 'tblTempVendorCDR_20' ) start [2025-03-29 10:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788364', 'tblTempVendorCDR_20' ) end [2025-03-29 10:54:18] Production.INFO: ProcessCDR(1,14788364,1,1,2) [2025-03-29 10:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788364', 'tblTempUsageDetail_20' ) start [2025-03-29 10:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788364', 'tblTempUsageDetail_20' ) end [2025-03-29 10:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 10:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 10:54:21] Production.INFO: ==21229== Releasing lock... [2025-03-29 10:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 10:54:21] Production.INFO: 35.5 MB #Memory Used# [2025-03-29 10:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 07:55:05 [end_date_ymd] => 2025-03-29 10:55:05 [RateCDR] => 1 ) [2025-03-29 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-29 07:55:05' and `end` < '2025-03-29 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-29 10:55:18] Production.INFO: count ==973 [2025-03-29 10:55:18] Production.ERROR: pbx CDR StartTime 2025-03-29 07:55:05 - End Time 2025-03-29 10:55:05 [2025-03-29 10:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 10:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788369', 'tblTempUsageDetail_20' ) start [2025-03-29 10:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788369', 'tblTempUsageDetail_20' ) end [2025-03-29 10:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788369', 'tblTempVendorCDR_20' ) start [2025-03-29 10:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788369', 'tblTempVendorCDR_20' ) end [2025-03-29 10:55:18] Production.INFO: ProcessCDR(1,14788369,1,1,2) [2025-03-29 10:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788369', 'tblTempUsageDetail_20' ) start [2025-03-29 10:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788369', 'tblTempUsageDetail_20' ) end [2025-03-29 10:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 10:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 10:55:22] Production.INFO: ==21320== Releasing lock... [2025-03-29 10:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 10:55:22] Production.INFO: 35.5 MB #Memory Used# [2025-03-29 10:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 07:56:05 [end_date_ymd] => 2025-03-29 10:56:05 [RateCDR] => 1 ) [2025-03-29 10:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 07:56:05' and `end` < '2025-03-29 10:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 10:56:18] Production.INFO: count ==974 [2025-03-29 10:56:18] Production.ERROR: pbx CDR StartTime 2025-03-29 07:56:05 - End Time 2025-03-29 10:56:05 [2025-03-29 10:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 10:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788374', 'tblTempUsageDetail_20' ) start [2025-03-29 10:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788374', 'tblTempUsageDetail_20' ) end [2025-03-29 10:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788374', 'tblTempVendorCDR_20' ) start [2025-03-29 10:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788374', 'tblTempVendorCDR_20' ) end [2025-03-29 10:56:18] Production.INFO: ProcessCDR(1,14788374,1,1,2) [2025-03-29 10:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788374', 'tblTempUsageDetail_20' ) start [2025-03-29 10:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788374', 'tblTempUsageDetail_20' ) end [2025-03-29 10:56:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 10:56:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 10:56:23] Production.INFO: ==21407== Releasing lock... [2025-03-29 10:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 10:56:23] Production.INFO: 35.25 MB #Memory Used# [2025-03-29 10:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 07:57:05 [end_date_ymd] => 2025-03-29 10:57:05 [RateCDR] => 1 ) [2025-03-29 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-29 07:57:05' and `end` < '2025-03-29 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-29 10:57:18] Production.INFO: count ==976 [2025-03-29 10:57:18] Production.ERROR: pbx CDR StartTime 2025-03-29 07:57:05 - End Time 2025-03-29 10:57:05 [2025-03-29 10:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 10:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788379', 'tblTempUsageDetail_20' ) start [2025-03-29 10:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788379', 'tblTempUsageDetail_20' ) end [2025-03-29 10:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788379', 'tblTempVendorCDR_20' ) start [2025-03-29 10:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788379', 'tblTempVendorCDR_20' ) end [2025-03-29 10:57:18] Production.INFO: ProcessCDR(1,14788379,1,1,2) [2025-03-29 10:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788379', 'tblTempUsageDetail_20' ) start [2025-03-29 10:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788379', 'tblTempUsageDetail_20' ) end [2025-03-29 10:57:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 10:57:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 10:57:23] Production.INFO: ==21499== Releasing lock... [2025-03-29 10:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 10:57:23] Production.INFO: 36 MB #Memory Used# [2025-03-29 10:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 07:58:06 [end_date_ymd] => 2025-03-29 10:58:06 [RateCDR] => 1 ) [2025-03-29 10: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-29 07:58:06' and `end` < '2025-03-29 10: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-29 10:58:18] Production.INFO: count ==978 [2025-03-29 10:58:19] Production.ERROR: pbx CDR StartTime 2025-03-29 07:58:06 - End Time 2025-03-29 10:58:06 [2025-03-29 10:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 10:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788384', 'tblTempUsageDetail_20' ) start [2025-03-29 10:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788384', 'tblTempUsageDetail_20' ) end [2025-03-29 10:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788384', 'tblTempVendorCDR_20' ) start [2025-03-29 10:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788384', 'tblTempVendorCDR_20' ) end [2025-03-29 10:58:19] Production.INFO: ProcessCDR(1,14788384,1,1,2) [2025-03-29 10:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788384', 'tblTempUsageDetail_20' ) start [2025-03-29 10:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788384', 'tblTempUsageDetail_20' ) end [2025-03-29 10:58:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 10:58:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 10:58:24] Production.INFO: ==21593== Releasing lock... [2025-03-29 10:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 10:58:24] Production.INFO: 35.5 MB #Memory Used# [2025-03-29 10:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 07:59:06 [end_date_ymd] => 2025-03-29 10:59:06 [RateCDR] => 1 ) [2025-03-29 10:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 07:59:06' and `end` < '2025-03-29 10:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 10:59:19] Production.INFO: count ==981 [2025-03-29 10:59:19] Production.ERROR: pbx CDR StartTime 2025-03-29 07:59:06 - End Time 2025-03-29 10:59:06 [2025-03-29 10:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 10:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788389', 'tblTempUsageDetail_20' ) start [2025-03-29 10:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788389', 'tblTempUsageDetail_20' ) end [2025-03-29 10:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788389', 'tblTempVendorCDR_20' ) start [2025-03-29 10:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788389', 'tblTempVendorCDR_20' ) end [2025-03-29 10:59:19] Production.INFO: ProcessCDR(1,14788389,1,1,2) [2025-03-29 10:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 10:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 10:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788389', 'tblTempUsageDetail_20' ) start [2025-03-29 10:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788389', 'tblTempUsageDetail_20' ) end [2025-03-29 10:59:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 10:59:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 10:59:24] Production.INFO: ==21724== Releasing lock... [2025-03-29 10:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 10:59:24] Production.INFO: 35.5 MB #Memory Used# [2025-03-29 11:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 08:00:06 [end_date_ymd] => 2025-03-29 11:00:06 [RateCDR] => 1 ) [2025-03-29 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-29 08:00:06' and `end` < '2025-03-29 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-29 11:00:19] Production.INFO: count ==993 [2025-03-29 11:00:19] Production.ERROR: pbx CDR StartTime 2025-03-29 08:00:06 - End Time 2025-03-29 11:00:06 [2025-03-29 11:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 11:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788395', 'tblTempUsageDetail_20' ) start [2025-03-29 11:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788395', 'tblTempUsageDetail_20' ) end [2025-03-29 11:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788395', 'tblTempVendorCDR_20' ) start [2025-03-29 11:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788395', 'tblTempVendorCDR_20' ) end [2025-03-29 11:00:19] Production.INFO: ProcessCDR(1,14788395,1,1,2) [2025-03-29 11:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788395', 'tblTempUsageDetail_20' ) start [2025-03-29 11:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788395', 'tblTempUsageDetail_20' ) end [2025-03-29 11:00:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 11:00:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 11:00:24] Production.INFO: ==21828== Releasing lock... [2025-03-29 11:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 11:00:24] Production.INFO: 35.75 MB #Memory Used# [2025-03-29 11:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 08:01:05 [end_date_ymd] => 2025-03-29 11:01:05 [RateCDR] => 1 ) [2025-03-29 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-29 08:01:05' and `end` < '2025-03-29 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-29 11:01:18] Production.INFO: count ==1012 [2025-03-29 11:01:18] Production.ERROR: pbx CDR StartTime 2025-03-29 08:01:05 - End Time 2025-03-29 11:01:05 [2025-03-29 11:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 11:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788400', 'tblTempUsageDetail_20' ) start [2025-03-29 11:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788400', 'tblTempUsageDetail_20' ) end [2025-03-29 11:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788400', 'tblTempVendorCDR_20' ) start [2025-03-29 11:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788400', 'tblTempVendorCDR_20' ) end [2025-03-29 11:01:18] Production.INFO: ProcessCDR(1,14788400,1,1,2) [2025-03-29 11:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788400', 'tblTempUsageDetail_20' ) start [2025-03-29 11:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788400', 'tblTempUsageDetail_20' ) end [2025-03-29 11:01:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 11:01:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 11:01:23] Production.INFO: ==21949== Releasing lock... [2025-03-29 11:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 11:01:23] Production.INFO: 36 MB #Memory Used# [2025-03-29 11:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 08:02:06 [end_date_ymd] => 2025-03-29 11:02:06 [RateCDR] => 1 ) [2025-03-29 11: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-29 08:02:06' and `end` < '2025-03-29 11: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-29 11:02:19] Production.INFO: count ==1009 [2025-03-29 11:02:20] Production.ERROR: pbx CDR StartTime 2025-03-29 08:02:06 - End Time 2025-03-29 11:02:06 [2025-03-29 11:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 11:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788405', 'tblTempUsageDetail_20' ) start [2025-03-29 11:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788405', 'tblTempUsageDetail_20' ) end [2025-03-29 11:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788405', 'tblTempVendorCDR_20' ) start [2025-03-29 11:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788405', 'tblTempVendorCDR_20' ) end [2025-03-29 11:02:20] Production.INFO: ProcessCDR(1,14788405,1,1,2) [2025-03-29 11:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788405', 'tblTempUsageDetail_20' ) start [2025-03-29 11:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788405', 'tblTempUsageDetail_20' ) end [2025-03-29 11:02:25] Production.ERROR: pbx prc_insertCDR start [2025-03-29 11:02:25] Production.ERROR: pbx prc_insertCDR end [2025-03-29 11:02:25] Production.INFO: ==22118== Releasing lock... [2025-03-29 11:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 11:02:25] Production.INFO: 35.75 MB #Memory Used# [2025-03-29 11:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 08:03:06 [end_date_ymd] => 2025-03-29 11:03:06 [RateCDR] => 1 ) [2025-03-29 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-29 08:03:06' and `end` < '2025-03-29 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-29 11:03:19] Production.INFO: count ==1018 [2025-03-29 11:03:19] Production.ERROR: pbx CDR StartTime 2025-03-29 08:03:06 - End Time 2025-03-29 11:03:06 [2025-03-29 11:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 11:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788410', 'tblTempUsageDetail_20' ) start [2025-03-29 11:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788410', 'tblTempUsageDetail_20' ) end [2025-03-29 11:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788410', 'tblTempVendorCDR_20' ) start [2025-03-29 11:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788410', 'tblTempVendorCDR_20' ) end [2025-03-29 11:03:19] Production.INFO: ProcessCDR(1,14788410,1,1,2) [2025-03-29 11:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788410', 'tblTempUsageDetail_20' ) start [2025-03-29 11:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788410', 'tblTempUsageDetail_20' ) end [2025-03-29 11:03:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 11:03:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 11:03:23] Production.INFO: ==22214== Releasing lock... [2025-03-29 11:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 11:03:23] Production.INFO: 36 MB #Memory Used# [2025-03-29 11:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 08:04:06 [end_date_ymd] => 2025-03-29 11:04:06 [RateCDR] => 1 ) [2025-03-29 11:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 08:04:06' and `end` < '2025-03-29 11:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 11:04:19] Production.INFO: count ==1026 [2025-03-29 11:04:19] Production.ERROR: pbx CDR StartTime 2025-03-29 08:04:06 - End Time 2025-03-29 11:04:06 [2025-03-29 11:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 11:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788415', 'tblTempUsageDetail_20' ) start [2025-03-29 11:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788415', 'tblTempUsageDetail_20' ) end [2025-03-29 11:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788415', 'tblTempVendorCDR_20' ) start [2025-03-29 11:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788415', 'tblTempVendorCDR_20' ) end [2025-03-29 11:04:19] Production.INFO: ProcessCDR(1,14788415,1,1,2) [2025-03-29 11:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788415', 'tblTempUsageDetail_20' ) start [2025-03-29 11:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788415', 'tblTempUsageDetail_20' ) end [2025-03-29 11:04:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 11:04:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 11:04:23] Production.INFO: ==22297== Releasing lock... [2025-03-29 11:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 11:04:23] Production.INFO: 36 MB #Memory Used# [2025-03-29 11:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 08:05:06 [end_date_ymd] => 2025-03-29 11:05:06 [RateCDR] => 1 ) [2025-03-29 11:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 08:05:06' and `end` < '2025-03-29 11:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 11:05:18] Production.INFO: count ==1030 [2025-03-29 11:05:19] Production.ERROR: pbx CDR StartTime 2025-03-29 08:05:06 - End Time 2025-03-29 11:05:06 [2025-03-29 11:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 11:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788420', 'tblTempUsageDetail_20' ) start [2025-03-29 11:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788420', 'tblTempUsageDetail_20' ) end [2025-03-29 11:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788420', 'tblTempVendorCDR_20' ) start [2025-03-29 11:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788420', 'tblTempVendorCDR_20' ) end [2025-03-29 11:05:19] Production.INFO: ProcessCDR(1,14788420,1,1,2) [2025-03-29 11:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788420', 'tblTempUsageDetail_20' ) start [2025-03-29 11:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788420', 'tblTempUsageDetail_20' ) end [2025-03-29 11:05:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 11:05:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 11:05:23] Production.INFO: ==22460== Releasing lock... [2025-03-29 11:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 11:05:23] Production.INFO: 36.25 MB #Memory Used# [2025-03-29 11:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 08:06:06 [end_date_ymd] => 2025-03-29 11:06:06 [RateCDR] => 1 ) [2025-03-29 11:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 08:06:06' and `end` < '2025-03-29 11:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 11:06:19] Production.INFO: count ==1030 [2025-03-29 11:06:19] Production.ERROR: pbx CDR StartTime 2025-03-29 08:06:06 - End Time 2025-03-29 11:06:06 [2025-03-29 11:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 11:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788425', 'tblTempUsageDetail_20' ) start [2025-03-29 11:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788425', 'tblTempUsageDetail_20' ) end [2025-03-29 11:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788425', 'tblTempVendorCDR_20' ) start [2025-03-29 11:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788425', 'tblTempVendorCDR_20' ) end [2025-03-29 11:06:19] Production.INFO: ProcessCDR(1,14788425,1,1,2) [2025-03-29 11:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788425', 'tblTempUsageDetail_20' ) start [2025-03-29 11:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788425', 'tblTempUsageDetail_20' ) end [2025-03-29 11:06:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 11:06:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 11:06:23] Production.INFO: ==22548== Releasing lock... [2025-03-29 11:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 11:06:23] Production.INFO: 36.25 MB #Memory Used# [2025-03-29 11:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 08:07:05 [end_date_ymd] => 2025-03-29 11:07:05 [RateCDR] => 1 ) [2025-03-29 11:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 08:07:05' and `end` < '2025-03-29 11:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 11:07:17] Production.INFO: count ==1031 [2025-03-29 11:07:18] Production.ERROR: pbx CDR StartTime 2025-03-29 08:07:05 - End Time 2025-03-29 11:07:05 [2025-03-29 11:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 11:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788430', 'tblTempUsageDetail_20' ) start [2025-03-29 11:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788430', 'tblTempUsageDetail_20' ) end [2025-03-29 11:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788430', 'tblTempVendorCDR_20' ) start [2025-03-29 11:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788430', 'tblTempVendorCDR_20' ) end [2025-03-29 11:07:18] Production.INFO: ProcessCDR(1,14788430,1,1,2) [2025-03-29 11:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788430', 'tblTempUsageDetail_20' ) start [2025-03-29 11:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788430', 'tblTempUsageDetail_20' ) end [2025-03-29 11:07:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 11:07:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 11:07:23] Production.INFO: ==22631== Releasing lock... [2025-03-29 11:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 11:07:23] Production.INFO: 35.75 MB #Memory Used# [2025-03-29 11:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 08:08:06 [end_date_ymd] => 2025-03-29 11:08:06 [RateCDR] => 1 ) [2025-03-29 11:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 08:08:06' and `end` < '2025-03-29 11:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 11:08:18] Production.INFO: count ==1038 [2025-03-29 11:08:19] Production.ERROR: pbx CDR StartTime 2025-03-29 08:08:06 - End Time 2025-03-29 11:08:06 [2025-03-29 11:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 11:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788435', 'tblTempUsageDetail_20' ) start [2025-03-29 11:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788435', 'tblTempUsageDetail_20' ) end [2025-03-29 11:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788435', 'tblTempVendorCDR_20' ) start [2025-03-29 11:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788435', 'tblTempVendorCDR_20' ) end [2025-03-29 11:08:19] Production.INFO: ProcessCDR(1,14788435,1,1,2) [2025-03-29 11:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788435', 'tblTempUsageDetail_20' ) start [2025-03-29 11:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788435', 'tblTempUsageDetail_20' ) end [2025-03-29 11:08:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 11:08:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 11:08:24] Production.INFO: ==22731== Releasing lock... [2025-03-29 11:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 11:08:24] Production.INFO: 36 MB #Memory Used# [2025-03-29 11:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 08:09:05 [end_date_ymd] => 2025-03-29 11:09:05 [RateCDR] => 1 ) [2025-03-29 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-29 08:09:05' and `end` < '2025-03-29 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-29 11:09:18] Production.INFO: count ==1038 [2025-03-29 11:09:18] Production.ERROR: pbx CDR StartTime 2025-03-29 08:09:05 - End Time 2025-03-29 11:09:05 [2025-03-29 11:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 11:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788440', 'tblTempUsageDetail_20' ) start [2025-03-29 11:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788440', 'tblTempUsageDetail_20' ) end [2025-03-29 11:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788440', 'tblTempVendorCDR_20' ) start [2025-03-29 11:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788440', 'tblTempVendorCDR_20' ) end [2025-03-29 11:09:18] Production.INFO: ProcessCDR(1,14788440,1,1,2) [2025-03-29 11:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788440', 'tblTempUsageDetail_20' ) start [2025-03-29 11:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788440', 'tblTempUsageDetail_20' ) end [2025-03-29 11:09:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 11:09:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 11:09:22] Production.INFO: ==22902== Releasing lock... [2025-03-29 11:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 11:09:22] Production.INFO: 36 MB #Memory Used# [2025-03-29 11:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 08:10:07 [end_date_ymd] => 2025-03-29 11:10:07 [RateCDR] => 1 ) [2025-03-29 11: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-29 08:10:07' and `end` < '2025-03-29 11: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-29 11:10:19] Production.INFO: count ==1039 [2025-03-29 11:10:20] Production.ERROR: pbx CDR StartTime 2025-03-29 08:10:07 - End Time 2025-03-29 11:10:07 [2025-03-29 11:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 11:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788446', 'tblTempUsageDetail_20' ) start [2025-03-29 11:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788446', 'tblTempUsageDetail_20' ) end [2025-03-29 11:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788446', 'tblTempVendorCDR_20' ) start [2025-03-29 11:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788446', 'tblTempVendorCDR_20' ) end [2025-03-29 11:10:20] Production.INFO: ProcessCDR(1,14788446,1,1,2) [2025-03-29 11:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788446', 'tblTempUsageDetail_20' ) start [2025-03-29 11:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788446', 'tblTempUsageDetail_20' ) end [2025-03-29 11:10:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 11:10:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 11:10:24] Production.INFO: ==22994== Releasing lock... [2025-03-29 11:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 11:10:24] Production.INFO: 35.75 MB #Memory Used# [2025-03-29 11:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 08:11:05 [end_date_ymd] => 2025-03-29 11:11:05 [RateCDR] => 1 ) [2025-03-29 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-29 08:11:05' and `end` < '2025-03-29 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-29 11:11:18] Production.INFO: count ==1057 [2025-03-29 11:11:18] Production.ERROR: pbx CDR StartTime 2025-03-29 08:11:05 - End Time 2025-03-29 11:11:05 [2025-03-29 11:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 11:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788451', 'tblTempUsageDetail_20' ) start [2025-03-29 11:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788451', 'tblTempUsageDetail_20' ) end [2025-03-29 11:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788451', 'tblTempVendorCDR_20' ) start [2025-03-29 11:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788451', 'tblTempVendorCDR_20' ) end [2025-03-29 11:11:18] Production.INFO: ProcessCDR(1,14788451,1,1,2) [2025-03-29 11:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788451', 'tblTempUsageDetail_20' ) start [2025-03-29 11:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788451', 'tblTempUsageDetail_20' ) end [2025-03-29 11:11:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 11:11:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 11:11:22] Production.INFO: ==23086== Releasing lock... [2025-03-29 11:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 11:11:22] Production.INFO: 36.5 MB #Memory Used# [2025-03-29 11:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 08:12:06 [end_date_ymd] => 2025-03-29 11:12:06 [RateCDR] => 1 ) [2025-03-29 11: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-29 08:12:06' and `end` < '2025-03-29 11: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-29 11:12:18] Production.INFO: count ==1057 [2025-03-29 11:12:19] Production.ERROR: pbx CDR StartTime 2025-03-29 08:12:06 - End Time 2025-03-29 11:12:06 [2025-03-29 11:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 11:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788456', 'tblTempUsageDetail_20' ) start [2025-03-29 11:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788456', 'tblTempUsageDetail_20' ) end [2025-03-29 11:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788456', 'tblTempVendorCDR_20' ) start [2025-03-29 11:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788456', 'tblTempVendorCDR_20' ) end [2025-03-29 11:12:19] Production.INFO: ProcessCDR(1,14788456,1,1,2) [2025-03-29 11:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788456', 'tblTempUsageDetail_20' ) start [2025-03-29 11:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788456', 'tblTempUsageDetail_20' ) end [2025-03-29 11:12:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 11:12:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 11:12:22] Production.INFO: ==23259== Releasing lock... [2025-03-29 11:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 11:12:22] Production.INFO: 36.5 MB #Memory Used# [2025-03-29 11:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 08:13:06 [end_date_ymd] => 2025-03-29 11:13:06 [RateCDR] => 1 ) [2025-03-29 11:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 08:13:06' and `end` < '2025-03-29 11:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 11:13:19] Production.INFO: count ==1073 [2025-03-29 11:13:19] Production.ERROR: pbx CDR StartTime 2025-03-29 08:13:06 - End Time 2025-03-29 11:13:06 [2025-03-29 11:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 11:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788461', 'tblTempUsageDetail_20' ) start [2025-03-29 11:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788461', 'tblTempUsageDetail_20' ) end [2025-03-29 11:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788461', 'tblTempVendorCDR_20' ) start [2025-03-29 11:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788461', 'tblTempVendorCDR_20' ) end [2025-03-29 11:13:19] Production.INFO: ProcessCDR(1,14788461,1,1,2) [2025-03-29 11:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788461', 'tblTempUsageDetail_20' ) start [2025-03-29 11:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788461', 'tblTempUsageDetail_20' ) end [2025-03-29 11:13:25] Production.ERROR: pbx prc_insertCDR start [2025-03-29 11:13:25] Production.ERROR: pbx prc_insertCDR end [2025-03-29 11:13:25] Production.INFO: ==23355== Releasing lock... [2025-03-29 11:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 11:13:25] Production.INFO: 36 MB #Memory Used# [2025-03-29 11:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 08:14:05 [end_date_ymd] => 2025-03-29 11:14:05 [RateCDR] => 1 ) [2025-03-29 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-29 08:14:05' and `end` < '2025-03-29 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-29 11:14:18] Production.INFO: count ==1073 [2025-03-29 11:14:18] Production.ERROR: pbx CDR StartTime 2025-03-29 08:14:05 - End Time 2025-03-29 11:14:05 [2025-03-29 11:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 11:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788466', 'tblTempUsageDetail_20' ) start [2025-03-29 11:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788466', 'tblTempUsageDetail_20' ) end [2025-03-29 11:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788466', 'tblTempVendorCDR_20' ) start [2025-03-29 11:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788466', 'tblTempVendorCDR_20' ) end [2025-03-29 11:14:18] Production.INFO: ProcessCDR(1,14788466,1,1,2) [2025-03-29 11:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788466', 'tblTempUsageDetail_20' ) start [2025-03-29 11:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788466', 'tblTempUsageDetail_20' ) end [2025-03-29 11:14:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 11:14:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 11:14:22] Production.INFO: ==23446== Releasing lock... [2025-03-29 11:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 11:14:22] Production.INFO: 36 MB #Memory Used# [2025-03-29 11:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 08:15:06 [end_date_ymd] => 2025-03-29 11:15:06 [RateCDR] => 1 ) [2025-03-29 11: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-29 08:15:06' and `end` < '2025-03-29 11: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-29 11:15:18] Production.INFO: count ==1073 [2025-03-29 11:15:19] Production.ERROR: pbx CDR StartTime 2025-03-29 08:15:06 - End Time 2025-03-29 11:15:06 [2025-03-29 11:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 11:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788471', 'tblTempUsageDetail_20' ) start [2025-03-29 11:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788471', 'tblTempUsageDetail_20' ) end [2025-03-29 11:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788471', 'tblTempVendorCDR_20' ) start [2025-03-29 11:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788471', 'tblTempVendorCDR_20' ) end [2025-03-29 11:15:19] Production.INFO: ProcessCDR(1,14788471,1,1,2) [2025-03-29 11:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788471', 'tblTempUsageDetail_20' ) start [2025-03-29 11:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788471', 'tblTempUsageDetail_20' ) end [2025-03-29 11:15:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 11:15:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 11:15:23] Production.INFO: ==23611== Releasing lock... [2025-03-29 11:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 11:15:23] Production.INFO: 36 MB #Memory Used# [2025-03-29 11:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 08:16:05 [end_date_ymd] => 2025-03-29 11:16:05 [RateCDR] => 1 ) [2025-03-29 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-29 08:16:05' and `end` < '2025-03-29 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-29 11:16:18] Production.INFO: count ==1083 [2025-03-29 11:16:19] Production.ERROR: pbx CDR StartTime 2025-03-29 08:16:05 - End Time 2025-03-29 11:16:05 [2025-03-29 11:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 11:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788476', 'tblTempUsageDetail_20' ) start [2025-03-29 11:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788476', 'tblTempUsageDetail_20' ) end [2025-03-29 11:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788476', 'tblTempVendorCDR_20' ) start [2025-03-29 11:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788476', 'tblTempVendorCDR_20' ) end [2025-03-29 11:16:19] Production.INFO: ProcessCDR(1,14788476,1,1,2) [2025-03-29 11:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788476', 'tblTempUsageDetail_20' ) start [2025-03-29 11:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788476', 'tblTempUsageDetail_20' ) end [2025-03-29 11:16:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 11:16:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 11:16:23] Production.INFO: ==23823== Releasing lock... [2025-03-29 11:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 11:16:23] Production.INFO: 36.75 MB #Memory Used# [2025-03-29 11:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 08:17:06 [end_date_ymd] => 2025-03-29 11:17:06 [RateCDR] => 1 ) [2025-03-29 11: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-29 08:17:06' and `end` < '2025-03-29 11: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-29 11:17:18] Production.INFO: count ==1100 [2025-03-29 11:17:19] Production.ERROR: pbx CDR StartTime 2025-03-29 08:17:06 - End Time 2025-03-29 11:17:06 [2025-03-29 11:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 11:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788481', 'tblTempUsageDetail_20' ) start [2025-03-29 11:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788481', 'tblTempUsageDetail_20' ) end [2025-03-29 11:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788481', 'tblTempVendorCDR_20' ) start [2025-03-29 11:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788481', 'tblTempVendorCDR_20' ) end [2025-03-29 11:17:19] Production.INFO: ProcessCDR(1,14788481,1,1,2) [2025-03-29 11:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788481', 'tblTempUsageDetail_20' ) start [2025-03-29 11:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788481', 'tblTempUsageDetail_20' ) end [2025-03-29 11:17:25] Production.ERROR: pbx prc_insertCDR start [2025-03-29 11:17:25] Production.ERROR: pbx prc_insertCDR end [2025-03-29 11:17:25] Production.INFO: ==23911== Releasing lock... [2025-03-29 11:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 11:17:25] Production.INFO: 36.25 MB #Memory Used# [2025-03-29 11:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 08:18:06 [end_date_ymd] => 2025-03-29 11:18:06 [RateCDR] => 1 ) [2025-03-29 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-29 08:18:06' and `end` < '2025-03-29 11: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-29 11:18:19] Production.INFO: count ==1101 [2025-03-29 11:18:19] Production.ERROR: pbx CDR StartTime 2025-03-29 08:18:06 - End Time 2025-03-29 11:18:06 [2025-03-29 11:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 11:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788486', 'tblTempUsageDetail_20' ) start [2025-03-29 11:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788486', 'tblTempUsageDetail_20' ) end [2025-03-29 11:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788486', 'tblTempVendorCDR_20' ) start [2025-03-29 11:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788486', 'tblTempVendorCDR_20' ) end [2025-03-29 11:18:19] Production.INFO: ProcessCDR(1,14788486,1,1,2) [2025-03-29 11:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788486', 'tblTempUsageDetail_20' ) start [2025-03-29 11:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788486', 'tblTempUsageDetail_20' ) end [2025-03-29 11:18:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 11:18:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 11:18:23] Production.INFO: ==23999== Releasing lock... [2025-03-29 11:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 11:18:23] Production.INFO: 36.25 MB #Memory Used# [2025-03-29 11:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 08:19:05 [end_date_ymd] => 2025-03-29 11:19:05 [RateCDR] => 1 ) [2025-03-29 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-29 08:19:05' and `end` < '2025-03-29 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-29 11:19:18] Production.INFO: count ==1105 [2025-03-29 11:19:18] Production.ERROR: pbx CDR StartTime 2025-03-29 08:19:05 - End Time 2025-03-29 11:19:05 [2025-03-29 11:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 11:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788491', 'tblTempUsageDetail_20' ) start [2025-03-29 11:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788491', 'tblTempUsageDetail_20' ) end [2025-03-29 11:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788491', 'tblTempVendorCDR_20' ) start [2025-03-29 11:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788491', 'tblTempVendorCDR_20' ) end [2025-03-29 11:19:18] Production.INFO: ProcessCDR(1,14788491,1,1,2) [2025-03-29 11:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788491', 'tblTempUsageDetail_20' ) start [2025-03-29 11:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788491', 'tblTempUsageDetail_20' ) end [2025-03-29 11:19:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 11:19:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 11:19:23] Production.INFO: ==24092== Releasing lock... [2025-03-29 11:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 11:19:23] Production.INFO: 36.5 MB #Memory Used# [2025-03-29 11:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 08:20:07 [end_date_ymd] => 2025-03-29 11:20:07 [RateCDR] => 1 ) [2025-03-29 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-29 08:20:07' and `end` < '2025-03-29 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-29 11:20:19] Production.INFO: count ==1111 [2025-03-29 11:20:20] Production.ERROR: pbx CDR StartTime 2025-03-29 08:20:07 - End Time 2025-03-29 11:20:07 [2025-03-29 11:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 11:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788497', 'tblTempUsageDetail_20' ) start [2025-03-29 11:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788497', 'tblTempUsageDetail_20' ) end [2025-03-29 11:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788497', 'tblTempVendorCDR_20' ) start [2025-03-29 11:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788497', 'tblTempVendorCDR_20' ) end [2025-03-29 11:20:20] Production.INFO: ProcessCDR(1,14788497,1,1,2) [2025-03-29 11:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788497', 'tblTempUsageDetail_20' ) start [2025-03-29 11:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788497', 'tblTempUsageDetail_20' ) end [2025-03-29 11:20:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 11:20:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 11:20:23] Production.INFO: ==24190== Releasing lock... [2025-03-29 11:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 11:20:23] Production.INFO: 36.75 MB #Memory Used# [2025-03-29 11:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 08:21:05 [end_date_ymd] => 2025-03-29 11:21:05 [RateCDR] => 1 ) [2025-03-29 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-29 08:21:05' and `end` < '2025-03-29 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-29 11:21:18] Production.INFO: count ==1147 [2025-03-29 11:21:18] Production.ERROR: pbx CDR StartTime 2025-03-29 08:21:05 - End Time 2025-03-29 11:21:05 [2025-03-29 11:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 11:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788502', 'tblTempUsageDetail_20' ) start [2025-03-29 11:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788502', 'tblTempUsageDetail_20' ) end [2025-03-29 11:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788502', 'tblTempVendorCDR_20' ) start [2025-03-29 11:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788502', 'tblTempVendorCDR_20' ) end [2025-03-29 11:21:18] Production.INFO: ProcessCDR(1,14788502,1,1,2) [2025-03-29 11:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788502', 'tblTempUsageDetail_20' ) start [2025-03-29 11:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788502', 'tblTempUsageDetail_20' ) end [2025-03-29 11:21:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 11:21:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 11:21:24] Production.INFO: ==24280== Releasing lock... [2025-03-29 11:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 11:21:24] Production.INFO: 37 MB #Memory Used# [2025-03-29 11:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 08:22:05 [end_date_ymd] => 2025-03-29 11:22:05 [RateCDR] => 1 ) [2025-03-29 11:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 08:22:05' and `end` < '2025-03-29 11:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 11:22:18] Production.INFO: count ==1154 [2025-03-29 11:22:18] Production.ERROR: pbx CDR StartTime 2025-03-29 08:22:05 - End Time 2025-03-29 11:22:05 [2025-03-29 11:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 11:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788507', 'tblTempUsageDetail_20' ) start [2025-03-29 11:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788507', 'tblTempUsageDetail_20' ) end [2025-03-29 11:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788507', 'tblTempVendorCDR_20' ) start [2025-03-29 11:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788507', 'tblTempVendorCDR_20' ) end [2025-03-29 11:22:18] Production.INFO: ProcessCDR(1,14788507,1,1,2) [2025-03-29 11:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788507', 'tblTempUsageDetail_20' ) start [2025-03-29 11:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788507', 'tblTempUsageDetail_20' ) end [2025-03-29 11:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 11:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 11:22:22] Production.INFO: ==24373== Releasing lock... [2025-03-29 11:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 11:22:22] Production.INFO: 37 MB #Memory Used# [2025-03-29 11:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 08:23:05 [end_date_ymd] => 2025-03-29 11:23:05 [RateCDR] => 1 ) [2025-03-29 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-29 08:23:05' and `end` < '2025-03-29 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-29 11:23:18] Production.INFO: count ==1160 [2025-03-29 11:23:19] Production.ERROR: pbx CDR StartTime 2025-03-29 08:23:05 - End Time 2025-03-29 11:23:05 [2025-03-29 11:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 11:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788512', 'tblTempUsageDetail_20' ) start [2025-03-29 11:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788512', 'tblTempUsageDetail_20' ) end [2025-03-29 11:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788512', 'tblTempVendorCDR_20' ) start [2025-03-29 11:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788512', 'tblTempVendorCDR_20' ) end [2025-03-29 11:23:19] Production.INFO: ProcessCDR(1,14788512,1,1,2) [2025-03-29 11:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788512', 'tblTempUsageDetail_20' ) start [2025-03-29 11:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788512', 'tblTempUsageDetail_20' ) end [2025-03-29 11:23:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 11:23:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 11:23:24] Production.INFO: ==24465== Releasing lock... [2025-03-29 11:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 11:23:24] Production.INFO: 37 MB #Memory Used# [2025-03-29 11:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 08:24:06 [end_date_ymd] => 2025-03-29 11:24:06 [RateCDR] => 1 ) [2025-03-29 11: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-29 08:24:06' and `end` < '2025-03-29 11: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-29 11:24:19] Production.INFO: count ==1170 [2025-03-29 11:24:19] Production.ERROR: pbx CDR StartTime 2025-03-29 08:24:06 - End Time 2025-03-29 11:24:06 [2025-03-29 11:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 11:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788517', 'tblTempUsageDetail_20' ) start [2025-03-29 11:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788517', 'tblTempUsageDetail_20' ) end [2025-03-29 11:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788517', 'tblTempVendorCDR_20' ) start [2025-03-29 11:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788517', 'tblTempVendorCDR_20' ) end [2025-03-29 11:24:19] Production.INFO: ProcessCDR(1,14788517,1,1,2) [2025-03-29 11:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788517', 'tblTempUsageDetail_20' ) start [2025-03-29 11:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788517', 'tblTempUsageDetail_20' ) end [2025-03-29 11:24:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 11:24:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 11:24:24] Production.INFO: ==24551== Releasing lock... [2025-03-29 11:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 11:24:24] Production.INFO: 37.25 MB #Memory Used# [2025-03-29 11:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 08:25:06 [end_date_ymd] => 2025-03-29 11:25:06 [RateCDR] => 1 ) [2025-03-29 11: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-29 08:25:06' and `end` < '2025-03-29 11: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-29 11:25:19] Production.INFO: count ==1171 [2025-03-29 11:25:19] Production.ERROR: pbx CDR StartTime 2025-03-29 08:25:06 - End Time 2025-03-29 11:25:06 [2025-03-29 11:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 11:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788522', 'tblTempUsageDetail_20' ) start [2025-03-29 11:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788522', 'tblTempUsageDetail_20' ) end [2025-03-29 11:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788522', 'tblTempVendorCDR_20' ) start [2025-03-29 11:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788522', 'tblTempVendorCDR_20' ) end [2025-03-29 11:25:19] Production.INFO: ProcessCDR(1,14788522,1,1,2) [2025-03-29 11:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788522', 'tblTempUsageDetail_20' ) start [2025-03-29 11:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788522', 'tblTempUsageDetail_20' ) end [2025-03-29 11:25:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 11:25:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 11:25:24] Production.INFO: ==24635== Releasing lock... [2025-03-29 11:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 11:25:24] Production.INFO: 37 MB #Memory Used# [2025-03-29 11:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 08:26:06 [end_date_ymd] => 2025-03-29 11:26:06 [RateCDR] => 1 ) [2025-03-29 11: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-29 08:26:06' and `end` < '2025-03-29 11: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-29 11:26:18] Production.INFO: count ==1194 [2025-03-29 11:26:19] Production.ERROR: pbx CDR StartTime 2025-03-29 08:26:06 - End Time 2025-03-29 11:26:06 [2025-03-29 11:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 11:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788527', 'tblTempUsageDetail_20' ) start [2025-03-29 11:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788527', 'tblTempUsageDetail_20' ) end [2025-03-29 11:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788527', 'tblTempVendorCDR_20' ) start [2025-03-29 11:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788527', 'tblTempVendorCDR_20' ) end [2025-03-29 11:26:19] Production.INFO: ProcessCDR(1,14788527,1,1,2) [2025-03-29 11:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788527', 'tblTempUsageDetail_20' ) start [2025-03-29 11:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788527', 'tblTempUsageDetail_20' ) end [2025-03-29 11:26:25] Production.ERROR: pbx prc_insertCDR start [2025-03-29 11:26:25] Production.ERROR: pbx prc_insertCDR end [2025-03-29 11:26:25] Production.INFO: ==24720== Releasing lock... [2025-03-29 11:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 11:26:25] Production.INFO: 37.5 MB #Memory Used# [2025-03-29 11:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 08:27:05 [end_date_ymd] => 2025-03-29 11:27:05 [RateCDR] => 1 ) [2025-03-29 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-29 08:27:05' and `end` < '2025-03-29 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-29 11:27:18] Production.INFO: count ==1195 [2025-03-29 11:27:18] Production.ERROR: pbx CDR StartTime 2025-03-29 08:27:05 - End Time 2025-03-29 11:27:05 [2025-03-29 11:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 11:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788532', 'tblTempUsageDetail_20' ) start [2025-03-29 11:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788532', 'tblTempUsageDetail_20' ) end [2025-03-29 11:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788532', 'tblTempVendorCDR_20' ) start [2025-03-29 11:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788532', 'tblTempVendorCDR_20' ) end [2025-03-29 11:27:18] Production.INFO: ProcessCDR(1,14788532,1,1,2) [2025-03-29 11:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788532', 'tblTempUsageDetail_20' ) start [2025-03-29 11:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788532', 'tblTempUsageDetail_20' ) end [2025-03-29 11:27:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 11:27:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 11:27:23] Production.INFO: ==24817== Releasing lock... [2025-03-29 11:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 11:27:23] Production.INFO: 37.25 MB #Memory Used# [2025-03-29 11:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 08:28:06 [end_date_ymd] => 2025-03-29 11:28:06 [RateCDR] => 1 ) [2025-03-29 11:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 08:28:06' and `end` < '2025-03-29 11:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 11:28:18] Production.INFO: count ==1188 [2025-03-29 11:28:19] Production.ERROR: pbx CDR StartTime 2025-03-29 08:28:06 - End Time 2025-03-29 11:28:06 [2025-03-29 11:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 11:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788537', 'tblTempUsageDetail_20' ) start [2025-03-29 11:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788537', 'tblTempUsageDetail_20' ) end [2025-03-29 11:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788537', 'tblTempVendorCDR_20' ) start [2025-03-29 11:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788537', 'tblTempVendorCDR_20' ) end [2025-03-29 11:28:19] Production.INFO: ProcessCDR(1,14788537,1,1,2) [2025-03-29 11:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788537', 'tblTempUsageDetail_20' ) start [2025-03-29 11:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788537', 'tblTempUsageDetail_20' ) end [2025-03-29 11:28:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 11:28:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 11:28:24] Production.INFO: ==24908== Releasing lock... [2025-03-29 11:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 11:28:24] Production.INFO: 37 MB #Memory Used# [2025-03-29 11:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 08:29:05 [end_date_ymd] => 2025-03-29 11:29:05 [RateCDR] => 1 ) [2025-03-29 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-29 08:29:05' and `end` < '2025-03-29 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-29 11:29:18] Production.INFO: count ==1176 [2025-03-29 11:29:18] Production.ERROR: pbx CDR StartTime 2025-03-29 08:29:05 - End Time 2025-03-29 11:29:05 [2025-03-29 11:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 11:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788542', 'tblTempUsageDetail_20' ) start [2025-03-29 11:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788542', 'tblTempUsageDetail_20' ) end [2025-03-29 11:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788542', 'tblTempVendorCDR_20' ) start [2025-03-29 11:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788542', 'tblTempVendorCDR_20' ) end [2025-03-29 11:29:18] Production.INFO: ProcessCDR(1,14788542,1,1,2) [2025-03-29 11:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788542', 'tblTempUsageDetail_20' ) start [2025-03-29 11:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788542', 'tblTempUsageDetail_20' ) end [2025-03-29 11:29:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 11:29:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 11:29:23] Production.INFO: ==24994== Releasing lock... [2025-03-29 11:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 11:29:23] Production.INFO: 37 MB #Memory Used# [2025-03-29 11:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 08:30:07 [end_date_ymd] => 2025-03-29 11:30:07 [RateCDR] => 1 ) [2025-03-29 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-29 08:30:07' and `end` < '2025-03-29 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-29 11:30:19] Production.INFO: count ==1160 [2025-03-29 11:30:20] Production.ERROR: pbx CDR StartTime 2025-03-29 08:30:07 - End Time 2025-03-29 11:30:07 [2025-03-29 11:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 11:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788548', 'tblTempUsageDetail_20' ) start [2025-03-29 11:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788548', 'tblTempUsageDetail_20' ) end [2025-03-29 11:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788548', 'tblTempVendorCDR_20' ) start [2025-03-29 11:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788548', 'tblTempVendorCDR_20' ) end [2025-03-29 11:30:20] Production.INFO: ProcessCDR(1,14788548,1,1,2) [2025-03-29 11:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788548', 'tblTempUsageDetail_20' ) start [2025-03-29 11:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788548', 'tblTempUsageDetail_20' ) end [2025-03-29 11:30:25] Production.ERROR: pbx prc_insertCDR start [2025-03-29 11:30:25] Production.ERROR: pbx prc_insertCDR end [2025-03-29 11:30:25] Production.INFO: ==25133== Releasing lock... [2025-03-29 11:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 11:30:25] Production.INFO: 37 MB #Memory Used# [2025-03-29 11:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 08:31:05 [end_date_ymd] => 2025-03-29 11:31:05 [RateCDR] => 1 ) [2025-03-29 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-29 08:31:05' and `end` < '2025-03-29 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-29 11:31:17] Production.INFO: count ==1169 [2025-03-29 11:31:18] Production.ERROR: pbx CDR StartTime 2025-03-29 08:31:05 - End Time 2025-03-29 11:31:05 [2025-03-29 11:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 11:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788553', 'tblTempUsageDetail_20' ) start [2025-03-29 11:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788553', 'tblTempUsageDetail_20' ) end [2025-03-29 11:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788553', 'tblTempVendorCDR_20' ) start [2025-03-29 11:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788553', 'tblTempVendorCDR_20' ) end [2025-03-29 11:31:18] Production.INFO: ProcessCDR(1,14788553,1,1,2) [2025-03-29 11:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788553', 'tblTempUsageDetail_20' ) start [2025-03-29 11:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788553', 'tblTempUsageDetail_20' ) end [2025-03-29 11:31:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 11:31:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 11:31:23] Production.INFO: ==25225== Releasing lock... [2025-03-29 11:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 11:31:23] Production.INFO: 36.75 MB #Memory Used# [2025-03-29 11:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 08:32:05 [end_date_ymd] => 2025-03-29 11:32:05 [RateCDR] => 1 ) [2025-03-29 11:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 08:32:05' and `end` < '2025-03-29 11:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 11:32:18] Production.INFO: count ==1170 [2025-03-29 11:32:18] Production.ERROR: pbx CDR StartTime 2025-03-29 08:32:05 - End Time 2025-03-29 11:32:05 [2025-03-29 11:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 11:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788558', 'tblTempUsageDetail_20' ) start [2025-03-29 11:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788558', 'tblTempUsageDetail_20' ) end [2025-03-29 11:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788558', 'tblTempVendorCDR_20' ) start [2025-03-29 11:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788558', 'tblTempVendorCDR_20' ) end [2025-03-29 11:32:18] Production.INFO: ProcessCDR(1,14788558,1,1,2) [2025-03-29 11:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788558', 'tblTempUsageDetail_20' ) start [2025-03-29 11:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788558', 'tblTempUsageDetail_20' ) end [2025-03-29 11:32:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 11:32:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 11:32:24] Production.INFO: ==25315== Releasing lock... [2025-03-29 11:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 11:32:24] Production.INFO: 36.75 MB #Memory Used# [2025-03-29 11:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 08:33:05 [end_date_ymd] => 2025-03-29 11:33:05 [RateCDR] => 1 ) [2025-03-29 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-29 08:33:05' and `end` < '2025-03-29 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-29 11:33:18] Production.INFO: count ==1169 [2025-03-29 11:33:18] Production.ERROR: pbx CDR StartTime 2025-03-29 08:33:05 - End Time 2025-03-29 11:33:05 [2025-03-29 11:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 11:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788563', 'tblTempUsageDetail_20' ) start [2025-03-29 11:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788563', 'tblTempUsageDetail_20' ) end [2025-03-29 11:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788563', 'tblTempVendorCDR_20' ) start [2025-03-29 11:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788563', 'tblTempVendorCDR_20' ) end [2025-03-29 11:33:18] Production.INFO: ProcessCDR(1,14788563,1,1,2) [2025-03-29 11:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788563', 'tblTempUsageDetail_20' ) start [2025-03-29 11:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788563', 'tblTempUsageDetail_20' ) end [2025-03-29 11:33:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 11:33:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 11:33:23] Production.INFO: ==25403== Releasing lock... [2025-03-29 11:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 11:33:23] Production.INFO: 36.75 MB #Memory Used# [2025-03-29 11:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 08:34:06 [end_date_ymd] => 2025-03-29 11:34:06 [RateCDR] => 1 ) [2025-03-29 11:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 08:34:06' and `end` < '2025-03-29 11:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 11:34:18] Production.INFO: count ==1178 [2025-03-29 11:34:19] Production.ERROR: pbx CDR StartTime 2025-03-29 08:34:06 - End Time 2025-03-29 11:34:06 [2025-03-29 11:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 11:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788568', 'tblTempUsageDetail_20' ) start [2025-03-29 11:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788568', 'tblTempUsageDetail_20' ) end [2025-03-29 11:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788568', 'tblTempVendorCDR_20' ) start [2025-03-29 11:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788568', 'tblTempVendorCDR_20' ) end [2025-03-29 11:34:19] Production.INFO: ProcessCDR(1,14788568,1,1,2) [2025-03-29 11:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788568', 'tblTempUsageDetail_20' ) start [2025-03-29 11:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788568', 'tblTempUsageDetail_20' ) end [2025-03-29 11:34:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 11:34:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 11:34:24] Production.INFO: ==25491== Releasing lock... [2025-03-29 11:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 11:34:24] Production.INFO: 37.25 MB #Memory Used# [2025-03-29 11:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 08:35:04 [end_date_ymd] => 2025-03-29 11:35:04 [RateCDR] => 1 ) [2025-03-29 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-29 08:35:04' and `end` < '2025-03-29 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-29 11:35:17] Production.INFO: count ==1179 [2025-03-29 11:35:18] Production.ERROR: pbx CDR StartTime 2025-03-29 08:35:04 - End Time 2025-03-29 11:35:04 [2025-03-29 11:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 11:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788573', 'tblTempUsageDetail_20' ) start [2025-03-29 11:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788573', 'tblTempUsageDetail_20' ) end [2025-03-29 11:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788573', 'tblTempVendorCDR_20' ) start [2025-03-29 11:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788573', 'tblTempVendorCDR_20' ) end [2025-03-29 11:35:18] Production.INFO: ProcessCDR(1,14788573,1,1,2) [2025-03-29 11:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788573', 'tblTempUsageDetail_20' ) start [2025-03-29 11:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788573', 'tblTempUsageDetail_20' ) end [2025-03-29 11:35:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 11:35:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 11:35:23] Production.INFO: ==25571== Releasing lock... [2025-03-29 11:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 11:35:23] Production.INFO: 37.25 MB #Memory Used# [2025-03-29 11:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 08:36:06 [end_date_ymd] => 2025-03-29 11:36:06 [RateCDR] => 1 ) [2025-03-29 11: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-29 08:36:06' and `end` < '2025-03-29 11: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-29 11:36:18] Production.INFO: count ==1171 [2025-03-29 11:36:19] Production.ERROR: pbx CDR StartTime 2025-03-29 08:36:06 - End Time 2025-03-29 11:36:06 [2025-03-29 11:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 11:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788578', 'tblTempUsageDetail_20' ) start [2025-03-29 11:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788578', 'tblTempUsageDetail_20' ) end [2025-03-29 11:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788578', 'tblTempVendorCDR_20' ) start [2025-03-29 11:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788578', 'tblTempVendorCDR_20' ) end [2025-03-29 11:36:19] Production.INFO: ProcessCDR(1,14788578,1,1,2) [2025-03-29 11:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788578', 'tblTempUsageDetail_20' ) start [2025-03-29 11:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788578', 'tblTempUsageDetail_20' ) end [2025-03-29 11:36:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 11:36:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 11:36:24] Production.INFO: ==25652== Releasing lock... [2025-03-29 11:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 11:36:24] Production.INFO: 36.75 MB #Memory Used# [2025-03-29 11:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 08:37:06 [end_date_ymd] => 2025-03-29 11:37:06 [RateCDR] => 1 ) [2025-03-29 11:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 08:37:06' and `end` < '2025-03-29 11:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 11:37:19] Production.INFO: count ==1167 [2025-03-29 11:37:19] Production.ERROR: pbx CDR StartTime 2025-03-29 08:37:06 - End Time 2025-03-29 11:37:06 [2025-03-29 11:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 11:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788583', 'tblTempUsageDetail_20' ) start [2025-03-29 11:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788583', 'tblTempUsageDetail_20' ) end [2025-03-29 11:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788583', 'tblTempVendorCDR_20' ) start [2025-03-29 11:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788583', 'tblTempVendorCDR_20' ) end [2025-03-29 11:37:19] Production.INFO: ProcessCDR(1,14788583,1,1,2) [2025-03-29 11:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788583', 'tblTempUsageDetail_20' ) start [2025-03-29 11:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788583', 'tblTempUsageDetail_20' ) end [2025-03-29 11:37:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 11:37:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 11:37:23] Production.INFO: ==25736== Releasing lock... [2025-03-29 11:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 11:37:23] Production.INFO: 37.25 MB #Memory Used# [2025-03-29 11:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 08:38:05 [end_date_ymd] => 2025-03-29 11:38:05 [RateCDR] => 1 ) [2025-03-29 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-29 08:38:05' and `end` < '2025-03-29 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-29 11:38:18] Production.INFO: count ==1156 [2025-03-29 11:38:18] Production.ERROR: pbx CDR StartTime 2025-03-29 08:38:05 - End Time 2025-03-29 11:38:05 [2025-03-29 11:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 11:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788588', 'tblTempUsageDetail_20' ) start [2025-03-29 11:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788588', 'tblTempUsageDetail_20' ) end [2025-03-29 11:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788588', 'tblTempVendorCDR_20' ) start [2025-03-29 11:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788588', 'tblTempVendorCDR_20' ) end [2025-03-29 11:38:18] Production.INFO: ProcessCDR(1,14788588,1,1,2) [2025-03-29 11:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788588', 'tblTempUsageDetail_20' ) start [2025-03-29 11:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788588', 'tblTempUsageDetail_20' ) end [2025-03-29 11:38:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 11:38:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 11:38:23] Production.INFO: ==25819== Releasing lock... [2025-03-29 11:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 11:38:23] Production.INFO: 37.25 MB #Memory Used# [2025-03-29 11:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 08:39:06 [end_date_ymd] => 2025-03-29 11:39:06 [RateCDR] => 1 ) [2025-03-29 11: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-29 08:39:06' and `end` < '2025-03-29 11: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-29 11:39:19] Production.INFO: count ==1163 [2025-03-29 11:39:19] Production.ERROR: pbx CDR StartTime 2025-03-29 08:39:06 - End Time 2025-03-29 11:39:06 [2025-03-29 11:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 11:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788593', 'tblTempUsageDetail_20' ) start [2025-03-29 11:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788593', 'tblTempUsageDetail_20' ) end [2025-03-29 11:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788593', 'tblTempVendorCDR_20' ) start [2025-03-29 11:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788593', 'tblTempVendorCDR_20' ) end [2025-03-29 11:39:19] Production.INFO: ProcessCDR(1,14788593,1,1,2) [2025-03-29 11:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788593', 'tblTempUsageDetail_20' ) start [2025-03-29 11:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788593', 'tblTempUsageDetail_20' ) end [2025-03-29 11:39:25] Production.ERROR: pbx prc_insertCDR start [2025-03-29 11:39:25] Production.ERROR: pbx prc_insertCDR end [2025-03-29 11:39:25] Production.INFO: ==25897== Releasing lock... [2025-03-29 11:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 11:39:25] Production.INFO: 36.75 MB #Memory Used# [2025-03-29 11:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 08:40:06 [end_date_ymd] => 2025-03-29 11:40:06 [RateCDR] => 1 ) [2025-03-29 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-29 08:40:06' and `end` < '2025-03-29 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-29 11:40:19] Production.INFO: count ==1165 [2025-03-29 11:40:19] Production.ERROR: pbx CDR StartTime 2025-03-29 08:40:06 - End Time 2025-03-29 11:40:06 [2025-03-29 11:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 11:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788599', 'tblTempUsageDetail_20' ) start [2025-03-29 11:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788599', 'tblTempUsageDetail_20' ) end [2025-03-29 11:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788599', 'tblTempVendorCDR_20' ) start [2025-03-29 11:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788599', 'tblTempVendorCDR_20' ) end [2025-03-29 11:40:19] Production.INFO: ProcessCDR(1,14788599,1,1,2) [2025-03-29 11:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788599', 'tblTempUsageDetail_20' ) start [2025-03-29 11:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788599', 'tblTempUsageDetail_20' ) end [2025-03-29 11:40:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 11:40:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 11:40:23] Production.INFO: ==25986== Releasing lock... [2025-03-29 11:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 11:40:23] Production.INFO: 36.75 MB #Memory Used# [2025-03-29 11:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 08:41:06 [end_date_ymd] => 2025-03-29 11:41:06 [RateCDR] => 1 ) [2025-03-29 11: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-29 08:41:06' and `end` < '2025-03-29 11: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-29 11:41:19] Production.INFO: count ==1196 [2025-03-29 11:41:19] Production.ERROR: pbx CDR StartTime 2025-03-29 08:41:06 - End Time 2025-03-29 11:41:06 [2025-03-29 11:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 11:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788604', 'tblTempUsageDetail_20' ) start [2025-03-29 11:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788604', 'tblTempUsageDetail_20' ) end [2025-03-29 11:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788604', 'tblTempVendorCDR_20' ) start [2025-03-29 11:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788604', 'tblTempVendorCDR_20' ) end [2025-03-29 11:41:20] Production.INFO: ProcessCDR(1,14788604,1,1,2) [2025-03-29 11:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788604', 'tblTempUsageDetail_20' ) start [2025-03-29 11:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788604', 'tblTempUsageDetail_20' ) end [2025-03-29 11:41:25] Production.ERROR: pbx prc_insertCDR start [2025-03-29 11:41:25] Production.ERROR: pbx prc_insertCDR end [2025-03-29 11:41:25] Production.INFO: ==26074== Releasing lock... [2025-03-29 11:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 11:41:25] Production.INFO: 37 MB #Memory Used# [2025-03-29 11:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 08:42:05 [end_date_ymd] => 2025-03-29 11:42:05 [RateCDR] => 1 ) [2025-03-29 11:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 08:42:05' and `end` < '2025-03-29 11:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 11:42:18] Production.INFO: count ==1214 [2025-03-29 11:42:19] Production.ERROR: pbx CDR StartTime 2025-03-29 08:42:05 - End Time 2025-03-29 11:42:05 [2025-03-29 11:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 11:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788609', 'tblTempUsageDetail_20' ) start [2025-03-29 11:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788609', 'tblTempUsageDetail_20' ) end [2025-03-29 11:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788609', 'tblTempVendorCDR_20' ) start [2025-03-29 11:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788609', 'tblTempVendorCDR_20' ) end [2025-03-29 11:42:19] Production.INFO: ProcessCDR(1,14788609,1,1,2) [2025-03-29 11:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788609', 'tblTempUsageDetail_20' ) start [2025-03-29 11:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788609', 'tblTempUsageDetail_20' ) end [2025-03-29 11:42:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 11:42:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 11:42:23] Production.INFO: ==26152== Releasing lock... [2025-03-29 11:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 11:42:23] Production.INFO: 37.25 MB #Memory Used# [2025-03-29 11:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 08:43:06 [end_date_ymd] => 2025-03-29 11:43:06 [RateCDR] => 1 ) [2025-03-29 11:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 08:43:06' and `end` < '2025-03-29 11:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 11:43:18] Production.INFO: count ==1203 [2025-03-29 11:43:19] Production.ERROR: pbx CDR StartTime 2025-03-29 08:43:06 - End Time 2025-03-29 11:43:06 [2025-03-29 11:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 11:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788614', 'tblTempUsageDetail_20' ) start [2025-03-29 11:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788614', 'tblTempUsageDetail_20' ) end [2025-03-29 11:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788614', 'tblTempVendorCDR_20' ) start [2025-03-29 11:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788614', 'tblTempVendorCDR_20' ) end [2025-03-29 11:43:19] Production.INFO: ProcessCDR(1,14788614,1,1,2) [2025-03-29 11:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788614', 'tblTempUsageDetail_20' ) start [2025-03-29 11:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788614', 'tblTempUsageDetail_20' ) end [2025-03-29 11:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 11:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 11:43:22] Production.INFO: ==26236== Releasing lock... [2025-03-29 11:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 11:43:22] Production.INFO: 37.5 MB #Memory Used# [2025-03-29 11:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 08:44:05 [end_date_ymd] => 2025-03-29 11:44:05 [RateCDR] => 1 ) [2025-03-29 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-29 08:44:05' and `end` < '2025-03-29 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-29 11:44:18] Production.INFO: count ==1206 [2025-03-29 11:44:18] Production.ERROR: pbx CDR StartTime 2025-03-29 08:44:05 - End Time 2025-03-29 11:44:05 [2025-03-29 11:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 11:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788619', 'tblTempUsageDetail_20' ) start [2025-03-29 11:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788619', 'tblTempUsageDetail_20' ) end [2025-03-29 11:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788619', 'tblTempVendorCDR_20' ) start [2025-03-29 11:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788619', 'tblTempVendorCDR_20' ) end [2025-03-29 11:44:18] Production.INFO: ProcessCDR(1,14788619,1,1,2) [2025-03-29 11:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788619', 'tblTempUsageDetail_20' ) start [2025-03-29 11:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788619', 'tblTempUsageDetail_20' ) end [2025-03-29 11:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 11:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 11:44:22] Production.INFO: ==26314== Releasing lock... [2025-03-29 11:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 11:44:22] Production.INFO: 37 MB #Memory Used# [2025-03-29 11:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 08:45:06 [end_date_ymd] => 2025-03-29 11:45:06 [RateCDR] => 1 ) [2025-03-29 11: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-29 08:45:06' and `end` < '2025-03-29 11: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-29 11:45:18] Production.INFO: count ==1219 [2025-03-29 11:45:19] Production.ERROR: pbx CDR StartTime 2025-03-29 08:45:06 - End Time 2025-03-29 11:45:06 [2025-03-29 11:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 11:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788624', 'tblTempUsageDetail_20' ) start [2025-03-29 11:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788624', 'tblTempUsageDetail_20' ) end [2025-03-29 11:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788624', 'tblTempVendorCDR_20' ) start [2025-03-29 11:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788624', 'tblTempVendorCDR_20' ) end [2025-03-29 11:45:19] Production.INFO: ProcessCDR(1,14788624,1,1,2) [2025-03-29 11:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788624', 'tblTempUsageDetail_20' ) start [2025-03-29 11:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788624', 'tblTempUsageDetail_20' ) end [2025-03-29 11:45:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 11:45:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 11:45:24] Production.INFO: ==26393== Releasing lock... [2025-03-29 11:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 11:45:24] Production.INFO: 37.5 MB #Memory Used# [2025-03-29 11:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 08:46:05 [end_date_ymd] => 2025-03-29 11:46:05 [RateCDR] => 1 ) [2025-03-29 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-29 08:46:05' and `end` < '2025-03-29 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-29 11:46:18] Production.INFO: count ==1223 [2025-03-29 11:46:18] Production.ERROR: pbx CDR StartTime 2025-03-29 08:46:05 - End Time 2025-03-29 11:46:05 [2025-03-29 11:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 11:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788629', 'tblTempUsageDetail_20' ) start [2025-03-29 11:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788629', 'tblTempUsageDetail_20' ) end [2025-03-29 11:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788629', 'tblTempVendorCDR_20' ) start [2025-03-29 11:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788629', 'tblTempVendorCDR_20' ) end [2025-03-29 11:46:18] Production.INFO: ProcessCDR(1,14788629,1,1,2) [2025-03-29 11:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788629', 'tblTempUsageDetail_20' ) start [2025-03-29 11:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788629', 'tblTempUsageDetail_20' ) end [2025-03-29 11:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 11:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 11:46:22] Production.INFO: ==26507== Releasing lock... [2025-03-29 11:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 11:46:22] Production.INFO: 37.25 MB #Memory Used# [2025-03-29 11:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 08:47:06 [end_date_ymd] => 2025-03-29 11:47:06 [RateCDR] => 1 ) [2025-03-29 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-29 08:47:06' and `end` < '2025-03-29 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-29 11:47:19] Production.INFO: count ==1226 [2025-03-29 11:47:19] Production.ERROR: pbx CDR StartTime 2025-03-29 08:47:06 - End Time 2025-03-29 11:47:06 [2025-03-29 11:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 11:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788634', 'tblTempUsageDetail_20' ) start [2025-03-29 11:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788634', 'tblTempUsageDetail_20' ) end [2025-03-29 11:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788634', 'tblTempVendorCDR_20' ) start [2025-03-29 11:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788634', 'tblTempVendorCDR_20' ) end [2025-03-29 11:47:19] Production.INFO: ProcessCDR(1,14788634,1,1,2) [2025-03-29 11:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788634', 'tblTempUsageDetail_20' ) start [2025-03-29 11:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788634', 'tblTempUsageDetail_20' ) end [2025-03-29 11:47:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 11:47:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 11:47:23] Production.INFO: ==26586== Releasing lock... [2025-03-29 11:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 11:47:23] Production.INFO: 37.5 MB #Memory Used# [2025-03-29 11:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 08:48:06 [end_date_ymd] => 2025-03-29 11:48:06 [RateCDR] => 1 ) [2025-03-29 11:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 08:48:06' and `end` < '2025-03-29 11:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 11:48:19] Production.INFO: count ==1228 [2025-03-29 11:48:19] Production.ERROR: pbx CDR StartTime 2025-03-29 08:48:06 - End Time 2025-03-29 11:48:06 [2025-03-29 11:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 11:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788639', 'tblTempUsageDetail_20' ) start [2025-03-29 11:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788639', 'tblTempUsageDetail_20' ) end [2025-03-29 11:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788639', 'tblTempVendorCDR_20' ) start [2025-03-29 11:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788639', 'tblTempVendorCDR_20' ) end [2025-03-29 11:48:19] Production.INFO: ProcessCDR(1,14788639,1,1,2) [2025-03-29 11:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788639', 'tblTempUsageDetail_20' ) start [2025-03-29 11:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788639', 'tblTempUsageDetail_20' ) end [2025-03-29 11:48:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 11:48:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 11:48:23] Production.INFO: ==26659== Releasing lock... [2025-03-29 11:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 11:48:23] Production.INFO: 37.25 MB #Memory Used# [2025-03-29 11:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 08:49:05 [end_date_ymd] => 2025-03-29 11:49:05 [RateCDR] => 1 ) [2025-03-29 11:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 08:49:05' and `end` < '2025-03-29 11:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 11:49:18] Production.INFO: count ==1230 [2025-03-29 11:49:18] Production.ERROR: pbx CDR StartTime 2025-03-29 08:49:05 - End Time 2025-03-29 11:49:05 [2025-03-29 11:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 11:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788644', 'tblTempUsageDetail_20' ) start [2025-03-29 11:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788644', 'tblTempUsageDetail_20' ) end [2025-03-29 11:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788644', 'tblTempVendorCDR_20' ) start [2025-03-29 11:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788644', 'tblTempVendorCDR_20' ) end [2025-03-29 11:49:18] Production.INFO: ProcessCDR(1,14788644,1,1,2) [2025-03-29 11:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788644', 'tblTempUsageDetail_20' ) start [2025-03-29 11:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788644', 'tblTempUsageDetail_20' ) end [2025-03-29 11:49:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 11:49:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 11:49:24] Production.INFO: ==26740== Releasing lock... [2025-03-29 11:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 11:49:24] Production.INFO: 37.25 MB #Memory Used# [2025-03-29 11:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 08:50:07 [end_date_ymd] => 2025-03-29 11:50:07 [RateCDR] => 1 ) [2025-03-29 11:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 08:50:07' and `end` < '2025-03-29 11:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 11:50:19] Production.INFO: count ==1242 [2025-03-29 11:50:20] Production.ERROR: pbx CDR StartTime 2025-03-29 08:50:07 - End Time 2025-03-29 11:50:07 [2025-03-29 11:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 11:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788650', 'tblTempUsageDetail_20' ) start [2025-03-29 11:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788650', 'tblTempUsageDetail_20' ) end [2025-03-29 11:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788650', 'tblTempVendorCDR_20' ) start [2025-03-29 11:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788650', 'tblTempVendorCDR_20' ) end [2025-03-29 11:50:20] Production.INFO: ProcessCDR(1,14788650,1,1,2) [2025-03-29 11:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788650', 'tblTempUsageDetail_20' ) start [2025-03-29 11:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788650', 'tblTempUsageDetail_20' ) end [2025-03-29 11:50:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 11:50:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 11:50:23] Production.INFO: ==26815== Releasing lock... [2025-03-29 11:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 11:50:23] Production.INFO: 37.25 MB #Memory Used# [2025-03-29 11:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 08:51:05 [end_date_ymd] => 2025-03-29 11:51:05 [RateCDR] => 1 ) [2025-03-29 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-29 08:51:05' and `end` < '2025-03-29 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-29 11:51:18] Production.INFO: count ==1260 [2025-03-29 11:51:18] Production.ERROR: pbx CDR StartTime 2025-03-29 08:51:05 - End Time 2025-03-29 11:51:05 [2025-03-29 11:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 11:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788655', 'tblTempUsageDetail_20' ) start [2025-03-29 11:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788655', 'tblTempUsageDetail_20' ) end [2025-03-29 11:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788655', 'tblTempVendorCDR_20' ) start [2025-03-29 11:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788655', 'tblTempVendorCDR_20' ) end [2025-03-29 11:51:18] Production.INFO: ProcessCDR(1,14788655,1,1,2) [2025-03-29 11:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788655', 'tblTempUsageDetail_20' ) start [2025-03-29 11:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788655', 'tblTempUsageDetail_20' ) end [2025-03-29 11:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 11:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 11:51:22] Production.INFO: ==26892== Releasing lock... [2025-03-29 11:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 11:51:22] Production.INFO: 37.75 MB #Memory Used# [2025-03-29 11:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 08:52:05 [end_date_ymd] => 2025-03-29 11:52:05 [RateCDR] => 1 ) [2025-03-29 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-29 08:52:05' and `end` < '2025-03-29 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-29 11:52:18] Production.INFO: count ==1261 [2025-03-29 11:52:18] Production.ERROR: pbx CDR StartTime 2025-03-29 08:52:05 - End Time 2025-03-29 11:52:05 [2025-03-29 11:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 11:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788660', 'tblTempUsageDetail_20' ) start [2025-03-29 11:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788660', 'tblTempUsageDetail_20' ) end [2025-03-29 11:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788660', 'tblTempVendorCDR_20' ) start [2025-03-29 11:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788660', 'tblTempVendorCDR_20' ) end [2025-03-29 11:52:18] Production.INFO: ProcessCDR(1,14788660,1,1,2) [2025-03-29 11:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788660', 'tblTempUsageDetail_20' ) start [2025-03-29 11:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788660', 'tblTempUsageDetail_20' ) end [2025-03-29 11:52:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 11:52:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 11:52:23] Production.INFO: ==26968== Releasing lock... [2025-03-29 11:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 11:52:23] Production.INFO: 37.75 MB #Memory Used# [2025-03-29 11:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 08:53:05 [end_date_ymd] => 2025-03-29 11:53:05 [RateCDR] => 1 ) [2025-03-29 11:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 08:53:05' and `end` < '2025-03-29 11:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 11:53:18] Production.INFO: count ==1267 [2025-03-29 11:53:18] Production.ERROR: pbx CDR StartTime 2025-03-29 08:53:05 - End Time 2025-03-29 11:53:05 [2025-03-29 11:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 11:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788665', 'tblTempUsageDetail_20' ) start [2025-03-29 11:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788665', 'tblTempUsageDetail_20' ) end [2025-03-29 11:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788665', 'tblTempVendorCDR_20' ) start [2025-03-29 11:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788665', 'tblTempVendorCDR_20' ) end [2025-03-29 11:53:18] Production.INFO: ProcessCDR(1,14788665,1,1,2) [2025-03-29 11:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788665', 'tblTempUsageDetail_20' ) start [2025-03-29 11:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788665', 'tblTempUsageDetail_20' ) end [2025-03-29 11:53:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 11:53:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 11:53:23] Production.INFO: ==27041== Releasing lock... [2025-03-29 11:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 11:53:23] Production.INFO: 38 MB #Memory Used# [2025-03-29 11:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 08:54:06 [end_date_ymd] => 2025-03-29 11:54:06 [RateCDR] => 1 ) [2025-03-29 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-29 08:54:06' and `end` < '2025-03-29 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-29 11:54:18] Production.INFO: count ==1269 [2025-03-29 11:54:19] Production.ERROR: pbx CDR StartTime 2025-03-29 08:54:06 - End Time 2025-03-29 11:54:06 [2025-03-29 11:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 11:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788670', 'tblTempUsageDetail_20' ) start [2025-03-29 11:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788670', 'tblTempUsageDetail_20' ) end [2025-03-29 11:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788670', 'tblTempVendorCDR_20' ) start [2025-03-29 11:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788670', 'tblTempVendorCDR_20' ) end [2025-03-29 11:54:19] Production.INFO: ProcessCDR(1,14788670,1,1,2) [2025-03-29 11:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788670', 'tblTempUsageDetail_20' ) start [2025-03-29 11:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788670', 'tblTempUsageDetail_20' ) end [2025-03-29 11:54:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 11:54:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 11:54:24] Production.INFO: ==27121== Releasing lock... [2025-03-29 11:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 11:54:24] Production.INFO: 37.75 MB #Memory Used# [2025-03-29 11:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 08:55:05 [end_date_ymd] => 2025-03-29 11:55:05 [RateCDR] => 1 ) [2025-03-29 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-29 08:55:05' and `end` < '2025-03-29 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-29 11:55:18] Production.INFO: count ==1268 [2025-03-29 11:55:18] Production.ERROR: pbx CDR StartTime 2025-03-29 08:55:05 - End Time 2025-03-29 11:55:05 [2025-03-29 11:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 11:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788675', 'tblTempUsageDetail_20' ) start [2025-03-29 11:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788675', 'tblTempUsageDetail_20' ) end [2025-03-29 11:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788675', 'tblTempVendorCDR_20' ) start [2025-03-29 11:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788675', 'tblTempVendorCDR_20' ) end [2025-03-29 11:55:18] Production.INFO: ProcessCDR(1,14788675,1,1,2) [2025-03-29 11:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788675', 'tblTempUsageDetail_20' ) start [2025-03-29 11:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788675', 'tblTempUsageDetail_20' ) end [2025-03-29 11:55:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 11:55:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 11:55:24] Production.INFO: ==27196== Releasing lock... [2025-03-29 11:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 11:55:24] Production.INFO: 38 MB #Memory Used# [2025-03-29 11:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 08:56:06 [end_date_ymd] => 2025-03-29 11:56:06 [RateCDR] => 1 ) [2025-03-29 11:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 08:56:06' and `end` < '2025-03-29 11:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 11:56:19] Production.INFO: count ==1275 [2025-03-29 11:56:19] Production.ERROR: pbx CDR StartTime 2025-03-29 08:56:06 - End Time 2025-03-29 11:56:06 [2025-03-29 11:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 11:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788680', 'tblTempUsageDetail_20' ) start [2025-03-29 11:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788680', 'tblTempUsageDetail_20' ) end [2025-03-29 11:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788680', 'tblTempVendorCDR_20' ) start [2025-03-29 11:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788680', 'tblTempVendorCDR_20' ) end [2025-03-29 11:56:19] Production.INFO: ProcessCDR(1,14788680,1,1,2) [2025-03-29 11:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788680', 'tblTempUsageDetail_20' ) start [2025-03-29 11:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788680', 'tblTempUsageDetail_20' ) end [2025-03-29 11:56:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 11:56:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 11:56:24] Production.INFO: ==27272== Releasing lock... [2025-03-29 11:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 11:56:24] Production.INFO: 37.5 MB #Memory Used# [2025-03-29 11:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 08:57:06 [end_date_ymd] => 2025-03-29 11:57:06 [RateCDR] => 1 ) [2025-03-29 11:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 08:57:06' and `end` < '2025-03-29 11:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 11:57:19] Production.INFO: count ==1289 [2025-03-29 11:57:19] Production.ERROR: pbx CDR StartTime 2025-03-29 08:57:06 - End Time 2025-03-29 11:57:06 [2025-03-29 11:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 11:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788685', 'tblTempUsageDetail_20' ) start [2025-03-29 11:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788685', 'tblTempUsageDetail_20' ) end [2025-03-29 11:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788685', 'tblTempVendorCDR_20' ) start [2025-03-29 11:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788685', 'tblTempVendorCDR_20' ) end [2025-03-29 11:57:19] Production.INFO: ProcessCDR(1,14788685,1,1,2) [2025-03-29 11:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788685', 'tblTempUsageDetail_20' ) start [2025-03-29 11:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788685', 'tblTempUsageDetail_20' ) end [2025-03-29 11:57:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 11:57:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 11:57:24] Production.INFO: ==27344== Releasing lock... [2025-03-29 11:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 11:57:24] Production.INFO: 37.75 MB #Memory Used# [2025-03-29 11:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 08:58:05 [end_date_ymd] => 2025-03-29 11:58:05 [RateCDR] => 1 ) [2025-03-29 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-29 08:58:05' and `end` < '2025-03-29 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-29 11:58:17] Production.INFO: count ==1291 [2025-03-29 11:58:18] Production.ERROR: pbx CDR StartTime 2025-03-29 08:58:05 - End Time 2025-03-29 11:58:05 [2025-03-29 11:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 11:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788690', 'tblTempUsageDetail_20' ) start [2025-03-29 11:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788690', 'tblTempUsageDetail_20' ) end [2025-03-29 11:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788690', 'tblTempVendorCDR_20' ) start [2025-03-29 11:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788690', 'tblTempVendorCDR_20' ) end [2025-03-29 11:58:18] Production.INFO: ProcessCDR(1,14788690,1,1,2) [2025-03-29 11:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788690', 'tblTempUsageDetail_20' ) start [2025-03-29 11:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788690', 'tblTempUsageDetail_20' ) end [2025-03-29 11:58:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 11:58:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 11:58:23] Production.INFO: ==27419== Releasing lock... [2025-03-29 11:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 11:58:23] Production.INFO: 38 MB #Memory Used# [2025-03-29 11:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 08:59:05 [end_date_ymd] => 2025-03-29 11:59:05 [RateCDR] => 1 ) [2025-03-29 11:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 08:59:05' and `end` < '2025-03-29 11:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 11:59:18] Production.INFO: count ==1298 [2025-03-29 11:59:18] Production.ERROR: pbx CDR StartTime 2025-03-29 08:59:05 - End Time 2025-03-29 11:59:05 [2025-03-29 11:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 11:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788695', 'tblTempUsageDetail_20' ) start [2025-03-29 11:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788695', 'tblTempUsageDetail_20' ) end [2025-03-29 11:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788695', 'tblTempVendorCDR_20' ) start [2025-03-29 11:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788695', 'tblTempVendorCDR_20' ) end [2025-03-29 11:59:18] Production.INFO: ProcessCDR(1,14788695,1,1,2) [2025-03-29 11:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 11:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 11:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788695', 'tblTempUsageDetail_20' ) start [2025-03-29 11:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788695', 'tblTempUsageDetail_20' ) end [2025-03-29 11:59:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 11:59:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 11:59:23] Production.INFO: ==27499== Releasing lock... [2025-03-29 11:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 11:59:23] Production.INFO: 37.75 MB #Memory Used# [2025-03-29 12:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 09:00:05 [end_date_ymd] => 2025-03-29 12:00:05 [RateCDR] => 1 ) [2025-03-29 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-29 09:00:05' and `end` < '2025-03-29 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-29 12:00:18] Production.INFO: count ==1315 [2025-03-29 12:00:19] Production.ERROR: pbx CDR StartTime 2025-03-29 09:00:05 - End Time 2025-03-29 12:00:05 [2025-03-29 12:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 12:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788701', 'tblTempUsageDetail_20' ) start [2025-03-29 12:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788701', 'tblTempUsageDetail_20' ) end [2025-03-29 12:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788701', 'tblTempVendorCDR_20' ) start [2025-03-29 12:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788701', 'tblTempVendorCDR_20' ) end [2025-03-29 12:00:19] Production.INFO: ProcessCDR(1,14788701,1,1,2) [2025-03-29 12:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788701', 'tblTempUsageDetail_20' ) start [2025-03-29 12:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788701', 'tblTempUsageDetail_20' ) end [2025-03-29 12:00:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 12:00:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 12:00:24] Production.INFO: ==27577== Releasing lock... [2025-03-29 12:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 12:00:24] Production.INFO: 38 MB #Memory Used# [2025-03-29 12:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 09:01:05 [end_date_ymd] => 2025-03-29 12:01:05 [RateCDR] => 1 ) [2025-03-29 12:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 09:01:05' and `end` < '2025-03-29 12:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 12:01:18] Production.INFO: count ==1370 [2025-03-29 12:01:18] Production.ERROR: pbx CDR StartTime 2025-03-29 09:01:05 - End Time 2025-03-29 12:01:05 [2025-03-29 12:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 12:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788706', 'tblTempUsageDetail_20' ) start [2025-03-29 12:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788706', 'tblTempUsageDetail_20' ) end [2025-03-29 12:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788706', 'tblTempVendorCDR_20' ) start [2025-03-29 12:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788706', 'tblTempVendorCDR_20' ) end [2025-03-29 12:01:18] Production.INFO: ProcessCDR(1,14788706,1,1,2) [2025-03-29 12:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788706', 'tblTempUsageDetail_20' ) start [2025-03-29 12:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788706', 'tblTempUsageDetail_20' ) end [2025-03-29 12:01:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 12:01:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 12:01:24] Production.INFO: ==27701== Releasing lock... [2025-03-29 12:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 12:01:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-29 12:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 09:02:05 [end_date_ymd] => 2025-03-29 12:02:05 [RateCDR] => 1 ) [2025-03-29 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-29 09:02:05' and `end` < '2025-03-29 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-29 12:02:18] Production.INFO: count ==1374 [2025-03-29 12:02:18] Production.ERROR: pbx CDR StartTime 2025-03-29 09:02:05 - End Time 2025-03-29 12:02:05 [2025-03-29 12:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 12:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788711', 'tblTempUsageDetail_20' ) start [2025-03-29 12:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788711', 'tblTempUsageDetail_20' ) end [2025-03-29 12:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788711', 'tblTempVendorCDR_20' ) start [2025-03-29 12:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788711', 'tblTempVendorCDR_20' ) end [2025-03-29 12:02:18] Production.INFO: ProcessCDR(1,14788711,1,1,2) [2025-03-29 12:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788711', 'tblTempUsageDetail_20' ) start [2025-03-29 12:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788711', 'tblTempUsageDetail_20' ) end [2025-03-29 12:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 12:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 12:02:22] Production.INFO: ==27775== Releasing lock... [2025-03-29 12:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 12:02:22] Production.INFO: 38.5 MB #Memory Used# [2025-03-29 12:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 09:03:05 [end_date_ymd] => 2025-03-29 12:03:05 [RateCDR] => 1 ) [2025-03-29 12:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 09:03:05' and `end` < '2025-03-29 12:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 12:03:18] Production.INFO: count ==1372 [2025-03-29 12:03:18] Production.ERROR: pbx CDR StartTime 2025-03-29 09:03:05 - End Time 2025-03-29 12:03:05 [2025-03-29 12:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 12:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788716', 'tblTempUsageDetail_20' ) start [2025-03-29 12:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788716', 'tblTempUsageDetail_20' ) end [2025-03-29 12:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788716', 'tblTempVendorCDR_20' ) start [2025-03-29 12:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788716', 'tblTempVendorCDR_20' ) end [2025-03-29 12:03:18] Production.INFO: ProcessCDR(1,14788716,1,1,2) [2025-03-29 12:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788716', 'tblTempUsageDetail_20' ) start [2025-03-29 12:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788716', 'tblTempUsageDetail_20' ) end [2025-03-29 12:03:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 12:03:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 12:03:24] Production.INFO: ==27849== Releasing lock... [2025-03-29 12:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 12:03:24] Production.INFO: 38.25 MB #Memory Used# [2025-03-29 12:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 09:04:06 [end_date_ymd] => 2025-03-29 12:04:06 [RateCDR] => 1 ) [2025-03-29 12: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-29 09:04:06' and `end` < '2025-03-29 12: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-29 12:04:18] Production.INFO: count ==1365 [2025-03-29 12:04:19] Production.ERROR: pbx CDR StartTime 2025-03-29 09:04:06 - End Time 2025-03-29 12:04:06 [2025-03-29 12:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 12:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788721', 'tblTempUsageDetail_20' ) start [2025-03-29 12:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788721', 'tblTempUsageDetail_20' ) end [2025-03-29 12:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788721', 'tblTempVendorCDR_20' ) start [2025-03-29 12:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788721', 'tblTempVendorCDR_20' ) end [2025-03-29 12:04:19] Production.INFO: ProcessCDR(1,14788721,1,1,2) [2025-03-29 12:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788721', 'tblTempUsageDetail_20' ) start [2025-03-29 12:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788721', 'tblTempUsageDetail_20' ) end [2025-03-29 12:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 12:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 12:04:22] Production.INFO: ==27927== Releasing lock... [2025-03-29 12:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 12:04:22] Production.INFO: 38.5 MB #Memory Used# [2025-03-29 12:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 09:05:05 [end_date_ymd] => 2025-03-29 12:05:05 [RateCDR] => 1 ) [2025-03-29 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-29 09:05:05' and `end` < '2025-03-29 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-29 12:05:18] Production.INFO: count ==1365 [2025-03-29 12:05:18] Production.ERROR: pbx CDR StartTime 2025-03-29 09:05:05 - End Time 2025-03-29 12:05:05 [2025-03-29 12:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 12:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788726', 'tblTempUsageDetail_20' ) start [2025-03-29 12:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788726', 'tblTempUsageDetail_20' ) end [2025-03-29 12:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788726', 'tblTempVendorCDR_20' ) start [2025-03-29 12:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788726', 'tblTempVendorCDR_20' ) end [2025-03-29 12:05:18] Production.INFO: ProcessCDR(1,14788726,1,1,2) [2025-03-29 12:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788726', 'tblTempUsageDetail_20' ) start [2025-03-29 12:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788726', 'tblTempUsageDetail_20' ) end [2025-03-29 12:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 12:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 12:05:22] Production.INFO: ==28022== Releasing lock... [2025-03-29 12:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 12:05:22] Production.INFO: 38.5 MB #Memory Used# [2025-03-29 12:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 09:06:06 [end_date_ymd] => 2025-03-29 12:06:06 [RateCDR] => 1 ) [2025-03-29 12: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-29 09:06:06' and `end` < '2025-03-29 12: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-29 12:06:18] Production.INFO: count ==1358 [2025-03-29 12:06:19] Production.ERROR: pbx CDR StartTime 2025-03-29 09:06:06 - End Time 2025-03-29 12:06:06 [2025-03-29 12:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 12:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788731', 'tblTempUsageDetail_20' ) start [2025-03-29 12:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788731', 'tblTempUsageDetail_20' ) end [2025-03-29 12:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788731', 'tblTempVendorCDR_20' ) start [2025-03-29 12:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788731', 'tblTempVendorCDR_20' ) end [2025-03-29 12:06:19] Production.INFO: ProcessCDR(1,14788731,1,1,2) [2025-03-29 12:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788731', 'tblTempUsageDetail_20' ) start [2025-03-29 12:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788731', 'tblTempUsageDetail_20' ) end [2025-03-29 12:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 12:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 12:06:22] Production.INFO: ==28117== Releasing lock... [2025-03-29 12:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 12:06:22] Production.INFO: 38.25 MB #Memory Used# [2025-03-29 12:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 09:07:05 [end_date_ymd] => 2025-03-29 12:07:05 [RateCDR] => 1 ) [2025-03-29 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-29 09:07:05' and `end` < '2025-03-29 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-29 12:07:18] Production.INFO: count ==1360 [2025-03-29 12:07:18] Production.ERROR: pbx CDR StartTime 2025-03-29 09:07:05 - End Time 2025-03-29 12:07:05 [2025-03-29 12:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 12:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788736', 'tblTempUsageDetail_20' ) start [2025-03-29 12:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788736', 'tblTempUsageDetail_20' ) end [2025-03-29 12:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788736', 'tblTempVendorCDR_20' ) start [2025-03-29 12:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788736', 'tblTempVendorCDR_20' ) end [2025-03-29 12:07:18] Production.INFO: ProcessCDR(1,14788736,1,1,2) [2025-03-29 12:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788736', 'tblTempUsageDetail_20' ) start [2025-03-29 12:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788736', 'tblTempUsageDetail_20' ) end [2025-03-29 12:07:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 12:07:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 12:07:23] Production.INFO: ==28212== Releasing lock... [2025-03-29 12:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 12:07:23] Production.INFO: 38 MB #Memory Used# [2025-03-29 12:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 09:08:05 [end_date_ymd] => 2025-03-29 12:08:05 [RateCDR] => 1 ) [2025-03-29 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-29 09:08:05' and `end` < '2025-03-29 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-29 12:08:18] Production.INFO: count ==1401 [2025-03-29 12:08:18] Production.ERROR: pbx CDR StartTime 2025-03-29 09:08:05 - End Time 2025-03-29 12:08:05 [2025-03-29 12:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 12:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788741', 'tblTempUsageDetail_20' ) start [2025-03-29 12:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788741', 'tblTempUsageDetail_20' ) end [2025-03-29 12:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788741', 'tblTempVendorCDR_20' ) start [2025-03-29 12:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788741', 'tblTempVendorCDR_20' ) end [2025-03-29 12:08:18] Production.INFO: ProcessCDR(1,14788741,1,1,2) [2025-03-29 12:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788741', 'tblTempUsageDetail_20' ) start [2025-03-29 12:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788741', 'tblTempUsageDetail_20' ) end [2025-03-29 12:08:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 12:08:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 12:08:23] Production.INFO: ==28306== Releasing lock... [2025-03-29 12:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 12:08:23] Production.INFO: 38.75 MB #Memory Used# [2025-03-29 12:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 09:09:04 [end_date_ymd] => 2025-03-29 12:09:04 [RateCDR] => 1 ) [2025-03-29 12: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-29 09:09:04' and `end` < '2025-03-29 12: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-29 12:09:17] Production.INFO: count ==1401 [2025-03-29 12:09:18] Production.ERROR: pbx CDR StartTime 2025-03-29 09:09:04 - End Time 2025-03-29 12:09:04 [2025-03-29 12:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 12:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788746', 'tblTempUsageDetail_20' ) start [2025-03-29 12:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788746', 'tblTempUsageDetail_20' ) end [2025-03-29 12:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788746', 'tblTempVendorCDR_20' ) start [2025-03-29 12:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788746', 'tblTempVendorCDR_20' ) end [2025-03-29 12:09:18] Production.INFO: ProcessCDR(1,14788746,1,1,2) [2025-03-29 12:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788746', 'tblTempUsageDetail_20' ) start [2025-03-29 12:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788746', 'tblTempUsageDetail_20' ) end [2025-03-29 12:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 12:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 12:09:21] Production.INFO: ==28385== Releasing lock... [2025-03-29 12:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 12:09:21] Production.INFO: 38.75 MB #Memory Used# [2025-03-29 12:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 09:10:06 [end_date_ymd] => 2025-03-29 12:10:06 [RateCDR] => 1 ) [2025-03-29 12:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 09:10:06' and `end` < '2025-03-29 12:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 12:10:19] Production.INFO: count ==1403 [2025-03-29 12:10:20] Production.ERROR: pbx CDR StartTime 2025-03-29 09:10:06 - End Time 2025-03-29 12:10:06 [2025-03-29 12:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 12:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788752', 'tblTempUsageDetail_20' ) start [2025-03-29 12:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788752', 'tblTempUsageDetail_20' ) end [2025-03-29 12:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788752', 'tblTempVendorCDR_20' ) start [2025-03-29 12:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788752', 'tblTempVendorCDR_20' ) end [2025-03-29 12:10:20] Production.INFO: ProcessCDR(1,14788752,1,1,2) [2025-03-29 12:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788752', 'tblTempUsageDetail_20' ) start [2025-03-29 12:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788752', 'tblTempUsageDetail_20' ) end [2025-03-29 12:10:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 12:10:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 12:10:23] Production.INFO: ==28464== Releasing lock... [2025-03-29 12:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 12:10:23] Production.INFO: 38.75 MB #Memory Used# [2025-03-29 12:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 09:11:05 [end_date_ymd] => 2025-03-29 12:11:05 [RateCDR] => 1 ) [2025-03-29 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-29 09:11:05' and `end` < '2025-03-29 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-29 12:11:18] Production.INFO: count ==1434 [2025-03-29 12:11:18] Production.ERROR: pbx CDR StartTime 2025-03-29 09:11:05 - End Time 2025-03-29 12:11:05 [2025-03-29 12:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 12:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788757', 'tblTempUsageDetail_20' ) start [2025-03-29 12:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788757', 'tblTempUsageDetail_20' ) end [2025-03-29 12:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788757', 'tblTempVendorCDR_20' ) start [2025-03-29 12:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788757', 'tblTempVendorCDR_20' ) end [2025-03-29 12:11:19] Production.INFO: ProcessCDR(1,14788757,1,1,2) [2025-03-29 12:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788757', 'tblTempUsageDetail_20' ) start [2025-03-29 12:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788757', 'tblTempUsageDetail_20' ) end [2025-03-29 12:11:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 12:11:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 12:11:23] Production.INFO: ==28545== Releasing lock... [2025-03-29 12:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 12:11:23] Production.INFO: 38.75 MB #Memory Used# [2025-03-29 12:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 09:12:05 [end_date_ymd] => 2025-03-29 12:12:05 [RateCDR] => 1 ) [2025-03-29 12:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 09:12:05' and `end` < '2025-03-29 12:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 12:12:18] Production.INFO: count ==1425 [2025-03-29 12:12:18] Production.ERROR: pbx CDR StartTime 2025-03-29 09:12:05 - End Time 2025-03-29 12:12:05 [2025-03-29 12:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 12:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788762', 'tblTempUsageDetail_20' ) start [2025-03-29 12:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788762', 'tblTempUsageDetail_20' ) end [2025-03-29 12:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788762', 'tblTempVendorCDR_20' ) start [2025-03-29 12:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788762', 'tblTempVendorCDR_20' ) end [2025-03-29 12:12:18] Production.INFO: ProcessCDR(1,14788762,1,1,2) [2025-03-29 12:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788762', 'tblTempUsageDetail_20' ) start [2025-03-29 12:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788762', 'tblTempUsageDetail_20' ) end [2025-03-29 12:12:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 12:12:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 12:12:22] Production.INFO: ==28627== Releasing lock... [2025-03-29 12:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 12:12:22] Production.INFO: 39 MB #Memory Used# [2025-03-29 12:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 09:13:05 [end_date_ymd] => 2025-03-29 12:13:05 [RateCDR] => 1 ) [2025-03-29 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-29 09:13:05' and `end` < '2025-03-29 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-29 12:13:18] Production.INFO: count ==1427 [2025-03-29 12:13:19] Production.ERROR: pbx CDR StartTime 2025-03-29 09:13:05 - End Time 2025-03-29 12:13:05 [2025-03-29 12:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 12:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788767', 'tblTempUsageDetail_20' ) start [2025-03-29 12:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788767', 'tblTempUsageDetail_20' ) end [2025-03-29 12:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788767', 'tblTempVendorCDR_20' ) start [2025-03-29 12:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788767', 'tblTempVendorCDR_20' ) end [2025-03-29 12:13:19] Production.INFO: ProcessCDR(1,14788767,1,1,2) [2025-03-29 12:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788767', 'tblTempUsageDetail_20' ) start [2025-03-29 12:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788767', 'tblTempUsageDetail_20' ) end [2025-03-29 12:13:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 12:13:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 12:13:24] Production.INFO: ==28703== Releasing lock... [2025-03-29 12:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 12:13:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-29 12:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 09:14:05 [end_date_ymd] => 2025-03-29 12:14:05 [RateCDR] => 1 ) [2025-03-29 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-29 09:14:05' and `end` < '2025-03-29 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-29 12:14:18] Production.INFO: count ==1431 [2025-03-29 12:14:19] Production.ERROR: pbx CDR StartTime 2025-03-29 09:14:05 - End Time 2025-03-29 12:14:05 [2025-03-29 12:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 12:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788772', 'tblTempUsageDetail_20' ) start [2025-03-29 12:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788772', 'tblTempUsageDetail_20' ) end [2025-03-29 12:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788772', 'tblTempVendorCDR_20' ) start [2025-03-29 12:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788772', 'tblTempVendorCDR_20' ) end [2025-03-29 12:14:19] Production.INFO: ProcessCDR(1,14788772,1,1,2) [2025-03-29 12:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788772', 'tblTempUsageDetail_20' ) start [2025-03-29 12:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788772', 'tblTempUsageDetail_20' ) end [2025-03-29 12:14:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 12:14:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 12:14:24] Production.INFO: ==28785== Releasing lock... [2025-03-29 12:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 12:14:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-29 12:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 09:15:06 [end_date_ymd] => 2025-03-29 12:15:06 [RateCDR] => 1 ) [2025-03-29 12: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-29 09:15:06' and `end` < '2025-03-29 12: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-29 12:15:18] Production.INFO: count ==1433 [2025-03-29 12:15:19] Production.ERROR: pbx CDR StartTime 2025-03-29 09:15:06 - End Time 2025-03-29 12:15:06 [2025-03-29 12:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 12:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788777', 'tblTempUsageDetail_20' ) start [2025-03-29 12:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788777', 'tblTempUsageDetail_20' ) end [2025-03-29 12:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788777', 'tblTempVendorCDR_20' ) start [2025-03-29 12:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788777', 'tblTempVendorCDR_20' ) end [2025-03-29 12:15:19] Production.INFO: ProcessCDR(1,14788777,1,1,2) [2025-03-29 12:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788777', 'tblTempUsageDetail_20' ) start [2025-03-29 12:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788777', 'tblTempUsageDetail_20' ) end [2025-03-29 12:15:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 12:15:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 12:15:24] Production.INFO: ==28871== Releasing lock... [2025-03-29 12:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 12:15:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-29 12:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 09:16:05 [end_date_ymd] => 2025-03-29 12:16:05 [RateCDR] => 1 ) [2025-03-29 12:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 09:16:05' and `end` < '2025-03-29 12:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 12:16:18] Production.INFO: count ==1435 [2025-03-29 12:16:19] Production.ERROR: pbx CDR StartTime 2025-03-29 09:16:05 - End Time 2025-03-29 12:16:05 [2025-03-29 12:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 12:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788782', 'tblTempUsageDetail_20' ) start [2025-03-29 12:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788782', 'tblTempUsageDetail_20' ) end [2025-03-29 12:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788782', 'tblTempVendorCDR_20' ) start [2025-03-29 12:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788782', 'tblTempVendorCDR_20' ) end [2025-03-29 12:16:19] Production.INFO: ProcessCDR(1,14788782,1,1,2) [2025-03-29 12:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788782', 'tblTempUsageDetail_20' ) start [2025-03-29 12:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788782', 'tblTempUsageDetail_20' ) end [2025-03-29 12:16:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 12:16:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 12:16:24] Production.INFO: ==28950== Releasing lock... [2025-03-29 12:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 12:16:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-29 12:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 09:17:06 [end_date_ymd] => 2025-03-29 12:17:06 [RateCDR] => 1 ) [2025-03-29 12: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-29 09:17:06' and `end` < '2025-03-29 12: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-29 12:17:18] Production.INFO: count ==1438 [2025-03-29 12:17:19] Production.ERROR: pbx CDR StartTime 2025-03-29 09:17:06 - End Time 2025-03-29 12:17:06 [2025-03-29 12:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 12:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788787', 'tblTempUsageDetail_20' ) start [2025-03-29 12:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788787', 'tblTempUsageDetail_20' ) end [2025-03-29 12:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788787', 'tblTempVendorCDR_20' ) start [2025-03-29 12:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788787', 'tblTempVendorCDR_20' ) end [2025-03-29 12:17:19] Production.INFO: ProcessCDR(1,14788787,1,1,2) [2025-03-29 12:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788787', 'tblTempUsageDetail_20' ) start [2025-03-29 12:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788787', 'tblTempUsageDetail_20' ) end [2025-03-29 12:17:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 12:17:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 12:17:24] Production.INFO: ==29074== Releasing lock... [2025-03-29 12:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 12:17:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-29 12:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 09:18:05 [end_date_ymd] => 2025-03-29 12:18:05 [RateCDR] => 1 ) [2025-03-29 12:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 09:18:05' and `end` < '2025-03-29 12:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 12:18:18] Production.INFO: count ==1438 [2025-03-29 12:18:18] Production.ERROR: pbx CDR StartTime 2025-03-29 09:18:05 - End Time 2025-03-29 12:18:05 [2025-03-29 12:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 12:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788792', 'tblTempUsageDetail_20' ) start [2025-03-29 12:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788792', 'tblTempUsageDetail_20' ) end [2025-03-29 12:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788792', 'tblTempVendorCDR_20' ) start [2025-03-29 12:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788792', 'tblTempVendorCDR_20' ) end [2025-03-29 12:18:18] Production.INFO: ProcessCDR(1,14788792,1,1,2) [2025-03-29 12:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788792', 'tblTempUsageDetail_20' ) start [2025-03-29 12:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788792', 'tblTempUsageDetail_20' ) end [2025-03-29 12:18:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 12:18:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 12:18:23] Production.INFO: ==29160== Releasing lock... [2025-03-29 12:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 12:18:23] Production.INFO: 38.75 MB #Memory Used# [2025-03-29 12:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 09:19:06 [end_date_ymd] => 2025-03-29 12:19:06 [RateCDR] => 1 ) [2025-03-29 12: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-29 09:19:06' and `end` < '2025-03-29 12: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-29 12:19:19] Production.INFO: count ==1438 [2025-03-29 12:19:19] Production.ERROR: pbx CDR StartTime 2025-03-29 09:19:06 - End Time 2025-03-29 12:19:06 [2025-03-29 12:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 12:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788797', 'tblTempUsageDetail_20' ) start [2025-03-29 12:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788797', 'tblTempUsageDetail_20' ) end [2025-03-29 12:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788797', 'tblTempVendorCDR_20' ) start [2025-03-29 12:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788797', 'tblTempVendorCDR_20' ) end [2025-03-29 12:19:19] Production.INFO: ProcessCDR(1,14788797,1,1,2) [2025-03-29 12:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788797', 'tblTempUsageDetail_20' ) start [2025-03-29 12:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788797', 'tblTempUsageDetail_20' ) end [2025-03-29 12:19:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 12:19:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 12:19:24] Production.INFO: ==29246== Releasing lock... [2025-03-29 12:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 12:19:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-29 12:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 09:20:06 [end_date_ymd] => 2025-03-29 12:20:06 [RateCDR] => 1 ) [2025-03-29 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-29 09:20:06' and `end` < '2025-03-29 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-29 12:20:19] Production.INFO: count ==1435 [2025-03-29 12:20:19] Production.ERROR: pbx CDR StartTime 2025-03-29 09:20:06 - End Time 2025-03-29 12:20:06 [2025-03-29 12:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 12:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788803', 'tblTempUsageDetail_20' ) start [2025-03-29 12:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788803', 'tblTempUsageDetail_20' ) end [2025-03-29 12:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788803', 'tblTempVendorCDR_20' ) start [2025-03-29 12:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788803', 'tblTempVendorCDR_20' ) end [2025-03-29 12:20:19] Production.INFO: ProcessCDR(1,14788803,1,1,2) [2025-03-29 12:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788803', 'tblTempUsageDetail_20' ) start [2025-03-29 12:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788803', 'tblTempUsageDetail_20' ) end [2025-03-29 12:20:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 12:20:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 12:20:24] Production.INFO: ==29334== Releasing lock... [2025-03-29 12:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 12:20:24] Production.INFO: 38.5 MB #Memory Used# [2025-03-29 12:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 09:21:05 [end_date_ymd] => 2025-03-29 12:21:05 [RateCDR] => 1 ) [2025-03-29 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-29 09:21:05' and `end` < '2025-03-29 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-29 12:21:18] Production.INFO: count ==1476 [2025-03-29 12:21:19] Production.ERROR: pbx CDR StartTime 2025-03-29 09:21:05 - End Time 2025-03-29 12:21:05 [2025-03-29 12:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 12:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788808', 'tblTempUsageDetail_20' ) start [2025-03-29 12:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788808', 'tblTempUsageDetail_20' ) end [2025-03-29 12:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788808', 'tblTempVendorCDR_20' ) start [2025-03-29 12:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788808', 'tblTempVendorCDR_20' ) end [2025-03-29 12:21:19] Production.INFO: ProcessCDR(1,14788808,1,1,2) [2025-03-29 12:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788808', 'tblTempUsageDetail_20' ) start [2025-03-29 12:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788808', 'tblTempUsageDetail_20' ) end [2025-03-29 12:21:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 12:21:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 12:21:24] Production.INFO: ==29443== Releasing lock... [2025-03-29 12:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 12:21:24] Production.INFO: 39.25 MB #Memory Used# [2025-03-29 12:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 09:22:05 [end_date_ymd] => 2025-03-29 12:22:05 [RateCDR] => 1 ) [2025-03-29 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-29 09:22:05' and `end` < '2025-03-29 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-29 12:22:18] Production.INFO: count ==1468 [2025-03-29 12:22:18] Production.ERROR: pbx CDR StartTime 2025-03-29 09:22:05 - End Time 2025-03-29 12:22:05 [2025-03-29 12:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 12:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788813', 'tblTempUsageDetail_20' ) start [2025-03-29 12:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788813', 'tblTempUsageDetail_20' ) end [2025-03-29 12:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788813', 'tblTempVendorCDR_20' ) start [2025-03-29 12:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788813', 'tblTempVendorCDR_20' ) end [2025-03-29 12:22:19] Production.INFO: ProcessCDR(1,14788813,1,1,2) [2025-03-29 12:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788813', 'tblTempUsageDetail_20' ) start [2025-03-29 12:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788813', 'tblTempUsageDetail_20' ) end [2025-03-29 12:22:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 12:22:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 12:22:24] Production.INFO: ==29551== Releasing lock... [2025-03-29 12:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 12:22:24] Production.INFO: 39 MB #Memory Used# [2025-03-29 12:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 09:23:05 [end_date_ymd] => 2025-03-29 12:23:05 [RateCDR] => 1 ) [2025-03-29 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-29 09:23:05' and `end` < '2025-03-29 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-29 12:23:18] Production.INFO: count ==1461 [2025-03-29 12:23:18] Production.ERROR: pbx CDR StartTime 2025-03-29 09:23:05 - End Time 2025-03-29 12:23:05 [2025-03-29 12:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 12:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788818', 'tblTempUsageDetail_20' ) start [2025-03-29 12:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788818', 'tblTempUsageDetail_20' ) end [2025-03-29 12:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788818', 'tblTempVendorCDR_20' ) start [2025-03-29 12:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788818', 'tblTempVendorCDR_20' ) end [2025-03-29 12:23:19] Production.INFO: ProcessCDR(1,14788818,1,1,2) [2025-03-29 12:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788818', 'tblTempUsageDetail_20' ) start [2025-03-29 12:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788818', 'tblTempUsageDetail_20' ) end [2025-03-29 12:23:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 12:23:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 12:23:24] Production.INFO: ==29657== Releasing lock... [2025-03-29 12:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 12:23:24] Production.INFO: 39 MB #Memory Used# [2025-03-29 12:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 09:24:05 [end_date_ymd] => 2025-03-29 12:24:05 [RateCDR] => 1 ) [2025-03-29 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-29 09:24:05' and `end` < '2025-03-29 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-29 12:24:18] Production.INFO: count ==1462 [2025-03-29 12:24:18] Production.ERROR: pbx CDR StartTime 2025-03-29 09:24:05 - End Time 2025-03-29 12:24:05 [2025-03-29 12:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 12:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788823', 'tblTempUsageDetail_20' ) start [2025-03-29 12:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788823', 'tblTempUsageDetail_20' ) end [2025-03-29 12:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788823', 'tblTempVendorCDR_20' ) start [2025-03-29 12:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788823', 'tblTempVendorCDR_20' ) end [2025-03-29 12:24:18] Production.INFO: ProcessCDR(1,14788823,1,1,2) [2025-03-29 12:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788823', 'tblTempUsageDetail_20' ) start [2025-03-29 12:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788823', 'tblTempUsageDetail_20' ) end [2025-03-29 12:24:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 12:24:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 12:24:23] Production.INFO: ==29764== Releasing lock... [2025-03-29 12:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 12:24:23] Production.INFO: 39 MB #Memory Used# [2025-03-29 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 09:25:05 [end_date_ymd] => 2025-03-29 12:25:05 [RateCDR] => 1 ) [2025-03-29 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-29 09:25:05' and `end` < '2025-03-29 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-29 12:25:18] Production.INFO: count ==1479 [2025-03-29 12:25:19] Production.ERROR: pbx CDR StartTime 2025-03-29 09:25:05 - End Time 2025-03-29 12:25:05 [2025-03-29 12:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 12:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788828', 'tblTempUsageDetail_20' ) start [2025-03-29 12:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788828', 'tblTempUsageDetail_20' ) end [2025-03-29 12:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788828', 'tblTempVendorCDR_20' ) start [2025-03-29 12:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788828', 'tblTempVendorCDR_20' ) end [2025-03-29 12:25:19] Production.INFO: ProcessCDR(1,14788828,1,1,2) [2025-03-29 12:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788828', 'tblTempUsageDetail_20' ) start [2025-03-29 12:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788828', 'tblTempUsageDetail_20' ) end [2025-03-29 12:25:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 12:25:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 12:25:24] Production.INFO: ==29870== Releasing lock... [2025-03-29 12:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 12:25:24] Production.INFO: 39.25 MB #Memory Used# [2025-03-29 12:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 09:26:05 [end_date_ymd] => 2025-03-29 12:26:05 [RateCDR] => 1 ) [2025-03-29 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-29 09:26:05' and `end` < '2025-03-29 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-29 12:26:17] Production.INFO: count ==1478 [2025-03-29 12:26:18] Production.ERROR: pbx CDR StartTime 2025-03-29 09:26:05 - End Time 2025-03-29 12:26:05 [2025-03-29 12:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 12:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788833', 'tblTempUsageDetail_20' ) start [2025-03-29 12:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788833', 'tblTempUsageDetail_20' ) end [2025-03-29 12:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788833', 'tblTempVendorCDR_20' ) start [2025-03-29 12:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788833', 'tblTempVendorCDR_20' ) end [2025-03-29 12:26:18] Production.INFO: ProcessCDR(1,14788833,1,1,2) [2025-03-29 12:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788833', 'tblTempUsageDetail_20' ) start [2025-03-29 12:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788833', 'tblTempUsageDetail_20' ) end [2025-03-29 12:26:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 12:26:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 12:26:23] Production.INFO: ==29975== Releasing lock... [2025-03-29 12:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 12:26:23] Production.INFO: 39.25 MB #Memory Used# [2025-03-29 12:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 09:27:05 [end_date_ymd] => 2025-03-29 12:27:05 [RateCDR] => 1 ) [2025-03-29 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-29 09:27:05' and `end` < '2025-03-29 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-29 12:27:18] Production.INFO: count ==1477 [2025-03-29 12:27:18] Production.ERROR: pbx CDR StartTime 2025-03-29 09:27:05 - End Time 2025-03-29 12:27:05 [2025-03-29 12:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 12:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788838', 'tblTempUsageDetail_20' ) start [2025-03-29 12:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788838', 'tblTempUsageDetail_20' ) end [2025-03-29 12:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788838', 'tblTempVendorCDR_20' ) start [2025-03-29 12:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788838', 'tblTempVendorCDR_20' ) end [2025-03-29 12:27:18] Production.INFO: ProcessCDR(1,14788838,1,1,2) [2025-03-29 12:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788838', 'tblTempUsageDetail_20' ) start [2025-03-29 12:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788838', 'tblTempUsageDetail_20' ) end [2025-03-29 12:27:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 12:27:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 12:27:23] Production.INFO: ==30084== Releasing lock... [2025-03-29 12:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 12:27:23] Production.INFO: 39.25 MB #Memory Used# [2025-03-29 12:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 09:28:05 [end_date_ymd] => 2025-03-29 12:28:05 [RateCDR] => 1 ) [2025-03-29 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-29 09:28:05' and `end` < '2025-03-29 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-29 12:28:18] Production.INFO: count ==1480 [2025-03-29 12:28:19] Production.ERROR: pbx CDR StartTime 2025-03-29 09:28:05 - End Time 2025-03-29 12:28:05 [2025-03-29 12:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 12:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788843', 'tblTempUsageDetail_20' ) start [2025-03-29 12:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788843', 'tblTempUsageDetail_20' ) end [2025-03-29 12:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788843', 'tblTempVendorCDR_20' ) start [2025-03-29 12:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788843', 'tblTempVendorCDR_20' ) end [2025-03-29 12:28:19] Production.INFO: ProcessCDR(1,14788843,1,1,2) [2025-03-29 12:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788843', 'tblTempUsageDetail_20' ) start [2025-03-29 12:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788843', 'tblTempUsageDetail_20' ) end [2025-03-29 12:28:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 12:28:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 12:28:24] Production.INFO: ==30189== Releasing lock... [2025-03-29 12:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 12:28:24] Production.INFO: 39.25 MB #Memory Used# [2025-03-29 12:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 09:29:05 [end_date_ymd] => 2025-03-29 12:29:05 [RateCDR] => 1 ) [2025-03-29 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-29 09:29:05' and `end` < '2025-03-29 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-29 12:29:18] Production.INFO: count ==1483 [2025-03-29 12:29:18] Production.ERROR: pbx CDR StartTime 2025-03-29 09:29:05 - End Time 2025-03-29 12:29:05 [2025-03-29 12:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 12:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788848', 'tblTempUsageDetail_20' ) start [2025-03-29 12:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788848', 'tblTempUsageDetail_20' ) end [2025-03-29 12:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788848', 'tblTempVendorCDR_20' ) start [2025-03-29 12:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788848', 'tblTempVendorCDR_20' ) end [2025-03-29 12:29:18] Production.INFO: ProcessCDR(1,14788848,1,1,2) [2025-03-29 12:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788848', 'tblTempUsageDetail_20' ) start [2025-03-29 12:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788848', 'tblTempUsageDetail_20' ) end [2025-03-29 12:29:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 12:29:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 12:29:23] Production.INFO: ==30299== Releasing lock... [2025-03-29 12:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 12:29:23] Production.INFO: 39.25 MB #Memory Used# [2025-03-29 12:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 09:30:06 [end_date_ymd] => 2025-03-29 12:30:06 [RateCDR] => 1 ) [2025-03-29 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-29 09:30:06' and `end` < '2025-03-29 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-29 12:30:19] Production.INFO: count ==1479 [2025-03-29 12:30:20] Production.ERROR: pbx CDR StartTime 2025-03-29 09:30:06 - End Time 2025-03-29 12:30:06 [2025-03-29 12:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 12:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788854', 'tblTempUsageDetail_20' ) start [2025-03-29 12:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788854', 'tblTempUsageDetail_20' ) end [2025-03-29 12:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788854', 'tblTempVendorCDR_20' ) start [2025-03-29 12:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788854', 'tblTempVendorCDR_20' ) end [2025-03-29 12:30:20] Production.INFO: ProcessCDR(1,14788854,1,1,2) [2025-03-29 12:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788854', 'tblTempUsageDetail_20' ) start [2025-03-29 12:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788854', 'tblTempUsageDetail_20' ) end [2025-03-29 12:30:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 12:30:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 12:30:23] Production.INFO: ==30409== Releasing lock... [2025-03-29 12:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 12:30:23] Production.INFO: 39.25 MB #Memory Used# [2025-03-29 12:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 09:31:05 [end_date_ymd] => 2025-03-29 12:31:05 [RateCDR] => 1 ) [2025-03-29 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-29 09:31:05' and `end` < '2025-03-29 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-29 12:31:18] Production.INFO: count ==1504 [2025-03-29 12:31:19] Production.ERROR: pbx CDR StartTime 2025-03-29 09:31:05 - End Time 2025-03-29 12:31:05 [2025-03-29 12:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 12:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788859', 'tblTempUsageDetail_20' ) start [2025-03-29 12:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788859', 'tblTempUsageDetail_20' ) end [2025-03-29 12:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788859', 'tblTempVendorCDR_20' ) start [2025-03-29 12:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788859', 'tblTempVendorCDR_20' ) end [2025-03-29 12:31:19] Production.INFO: ProcessCDR(1,14788859,1,1,2) [2025-03-29 12:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788859', 'tblTempUsageDetail_20' ) start [2025-03-29 12:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788859', 'tblTempUsageDetail_20' ) end [2025-03-29 12:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 12:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 12:31:22] Production.INFO: ==30520== Releasing lock... [2025-03-29 12:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 12:31:22] Production.INFO: 39.25 MB #Memory Used# [2025-03-29 12:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 09:32:06 [end_date_ymd] => 2025-03-29 12:32:06 [RateCDR] => 1 ) [2025-03-29 12:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 09:32:06' and `end` < '2025-03-29 12:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 12:32:18] Production.INFO: count ==1495 [2025-03-29 12:32:19] Production.ERROR: pbx CDR StartTime 2025-03-29 09:32:06 - End Time 2025-03-29 12:32:06 [2025-03-29 12:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 12:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788864', 'tblTempUsageDetail_20' ) start [2025-03-29 12:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788864', 'tblTempUsageDetail_20' ) end [2025-03-29 12:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788864', 'tblTempVendorCDR_20' ) start [2025-03-29 12:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788864', 'tblTempVendorCDR_20' ) end [2025-03-29 12:32:19] Production.INFO: ProcessCDR(1,14788864,1,1,2) [2025-03-29 12:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788864', 'tblTempUsageDetail_20' ) start [2025-03-29 12:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788864', 'tblTempUsageDetail_20' ) end [2025-03-29 12:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 12:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 12:32:22] Production.INFO: ==30667== Releasing lock... [2025-03-29 12:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 12:32:22] Production.INFO: 39.25 MB #Memory Used# [2025-03-29 12:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 09:33:05 [end_date_ymd] => 2025-03-29 12:33:05 [RateCDR] => 1 ) [2025-03-29 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-29 09:33:05' and `end` < '2025-03-29 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-29 12:33:18] Production.INFO: count ==1492 [2025-03-29 12:33:19] Production.ERROR: pbx CDR StartTime 2025-03-29 09:33:05 - End Time 2025-03-29 12:33:05 [2025-03-29 12:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 12:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788869', 'tblTempUsageDetail_20' ) start [2025-03-29 12:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788869', 'tblTempUsageDetail_20' ) end [2025-03-29 12:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788869', 'tblTempVendorCDR_20' ) start [2025-03-29 12:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788869', 'tblTempVendorCDR_20' ) end [2025-03-29 12:33:19] Production.INFO: ProcessCDR(1,14788869,1,1,2) [2025-03-29 12:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788869', 'tblTempUsageDetail_20' ) start [2025-03-29 12:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788869', 'tblTempUsageDetail_20' ) end [2025-03-29 12:33:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 12:33:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 12:33:22] Production.INFO: ==30786== Releasing lock... [2025-03-29 12:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 12:33:22] Production.INFO: 39.25 MB #Memory Used# [2025-03-29 12:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 09:34:06 [end_date_ymd] => 2025-03-29 12:34:06 [RateCDR] => 1 ) [2025-03-29 12:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 09:34:06' and `end` < '2025-03-29 12:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 12:34:18] Production.INFO: count ==1487 [2025-03-29 12:34:19] Production.ERROR: pbx CDR StartTime 2025-03-29 09:34:06 - End Time 2025-03-29 12:34:06 [2025-03-29 12:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 12:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788874', 'tblTempUsageDetail_20' ) start [2025-03-29 12:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788874', 'tblTempUsageDetail_20' ) end [2025-03-29 12:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788874', 'tblTempVendorCDR_20' ) start [2025-03-29 12:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788874', 'tblTempVendorCDR_20' ) end [2025-03-29 12:34:19] Production.INFO: ProcessCDR(1,14788874,1,1,2) [2025-03-29 12:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788874', 'tblTempUsageDetail_20' ) start [2025-03-29 12:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788874', 'tblTempUsageDetail_20' ) end [2025-03-29 12:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 12:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 12:34:22] Production.INFO: ==30902== Releasing lock... [2025-03-29 12:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 12:34:22] Production.INFO: 39.5 MB #Memory Used# [2025-03-29 12:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 09:35:05 [end_date_ymd] => 2025-03-29 12:35:05 [RateCDR] => 1 ) [2025-03-29 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-29 09:35:05' and `end` < '2025-03-29 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-29 12:35:18] Production.INFO: count ==1491 [2025-03-29 12:35:19] Production.ERROR: pbx CDR StartTime 2025-03-29 09:35:05 - End Time 2025-03-29 12:35:05 [2025-03-29 12:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 12:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788879', 'tblTempUsageDetail_20' ) start [2025-03-29 12:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788879', 'tblTempUsageDetail_20' ) end [2025-03-29 12:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788879', 'tblTempVendorCDR_20' ) start [2025-03-29 12:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788879', 'tblTempVendorCDR_20' ) end [2025-03-29 12:35:19] Production.INFO: ProcessCDR(1,14788879,1,1,2) [2025-03-29 12:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788879', 'tblTempUsageDetail_20' ) start [2025-03-29 12:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788879', 'tblTempUsageDetail_20' ) end [2025-03-29 12:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 12:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 12:35:22] Production.INFO: ==31013== Releasing lock... [2025-03-29 12:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 12:35:22] Production.INFO: 39.5 MB #Memory Used# [2025-03-29 12:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 09:36:06 [end_date_ymd] => 2025-03-29 12:36:06 [RateCDR] => 1 ) [2025-03-29 12: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-29 09:36:06' and `end` < '2025-03-29 12: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-29 12:36:18] Production.INFO: count ==1497 [2025-03-29 12:36:19] Production.ERROR: pbx CDR StartTime 2025-03-29 09:36:06 - End Time 2025-03-29 12:36:06 [2025-03-29 12:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 12:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788884', 'tblTempUsageDetail_20' ) start [2025-03-29 12:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788884', 'tblTempUsageDetail_20' ) end [2025-03-29 12:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788884', 'tblTempVendorCDR_20' ) start [2025-03-29 12:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788884', 'tblTempVendorCDR_20' ) end [2025-03-29 12:36:19] Production.INFO: ProcessCDR(1,14788884,1,1,2) [2025-03-29 12:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788884', 'tblTempUsageDetail_20' ) start [2025-03-29 12:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788884', 'tblTempUsageDetail_20' ) end [2025-03-29 12:36:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 12:36:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 12:36:24] Production.INFO: ==31127== Releasing lock... [2025-03-29 12:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 12:36:24] Production.INFO: 39.25 MB #Memory Used# [2025-03-29 12:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 09:37:05 [end_date_ymd] => 2025-03-29 12:37:05 [RateCDR] => 1 ) [2025-03-29 12:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 09:37:05' and `end` < '2025-03-29 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-29 12:37:18] Production.INFO: count ==1508 [2025-03-29 12:37:18] Production.ERROR: pbx CDR StartTime 2025-03-29 09:37:05 - End Time 2025-03-29 12:37:05 [2025-03-29 12:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 12:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788889', 'tblTempUsageDetail_20' ) start [2025-03-29 12:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788889', 'tblTempUsageDetail_20' ) end [2025-03-29 12:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788889', 'tblTempVendorCDR_20' ) start [2025-03-29 12:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788889', 'tblTempVendorCDR_20' ) end [2025-03-29 12:37:18] Production.INFO: ProcessCDR(1,14788889,1,1,2) [2025-03-29 12:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788889', 'tblTempUsageDetail_20' ) start [2025-03-29 12:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788889', 'tblTempUsageDetail_20' ) end [2025-03-29 12:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 12:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 12:37:22] Production.INFO: ==31212== Releasing lock... [2025-03-29 12:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 12:37:22] Production.INFO: 39.25 MB #Memory Used# [2025-03-29 12:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 09:38:06 [end_date_ymd] => 2025-03-29 12:38:06 [RateCDR] => 1 ) [2025-03-29 12: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-29 09:38:06' and `end` < '2025-03-29 12: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-29 12:38:18] Production.INFO: count ==1516 [2025-03-29 12:38:19] Production.ERROR: pbx CDR StartTime 2025-03-29 09:38:06 - End Time 2025-03-29 12:38:06 [2025-03-29 12:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 12:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788894', 'tblTempUsageDetail_20' ) start [2025-03-29 12:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788894', 'tblTempUsageDetail_20' ) end [2025-03-29 12:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788894', 'tblTempVendorCDR_20' ) start [2025-03-29 12:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788894', 'tblTempVendorCDR_20' ) end [2025-03-29 12:38:19] Production.INFO: ProcessCDR(1,14788894,1,1,2) [2025-03-29 12:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788894', 'tblTempUsageDetail_20' ) start [2025-03-29 12:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788894', 'tblTempUsageDetail_20' ) end [2025-03-29 12:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 12:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 12:38:22] Production.INFO: ==31298== Releasing lock... [2025-03-29 12:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 12:38:22] Production.INFO: 39.75 MB #Memory Used# [2025-03-29 12:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 09:39:05 [end_date_ymd] => 2025-03-29 12:39:05 [RateCDR] => 1 ) [2025-03-29 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-29 09:39:05' and `end` < '2025-03-29 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-29 12:39:18] Production.INFO: count ==1503 [2025-03-29 12:39:18] Production.ERROR: pbx CDR StartTime 2025-03-29 09:39:05 - End Time 2025-03-29 12:39:05 [2025-03-29 12:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 12:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788899', 'tblTempUsageDetail_20' ) start [2025-03-29 12:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788899', 'tblTempUsageDetail_20' ) end [2025-03-29 12:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788899', 'tblTempVendorCDR_20' ) start [2025-03-29 12:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788899', 'tblTempVendorCDR_20' ) end [2025-03-29 12:39:18] Production.INFO: ProcessCDR(1,14788899,1,1,2) [2025-03-29 12:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788899', 'tblTempUsageDetail_20' ) start [2025-03-29 12:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788899', 'tblTempUsageDetail_20' ) end [2025-03-29 12:39:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 12:39:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 12:39:23] Production.INFO: ==31376== Releasing lock... [2025-03-29 12:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 12:39:23] Production.INFO: 39 MB #Memory Used# [2025-03-29 12:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 09:40:07 [end_date_ymd] => 2025-03-29 12:40:07 [RateCDR] => 1 ) [2025-03-29 12: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-29 09:40:07' and `end` < '2025-03-29 12: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-29 12:40:19] Production.INFO: count ==1497 [2025-03-29 12:40:20] Production.ERROR: pbx CDR StartTime 2025-03-29 09:40:07 - End Time 2025-03-29 12:40:07 [2025-03-29 12:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 12:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788905', 'tblTempUsageDetail_20' ) start [2025-03-29 12:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788905', 'tblTempUsageDetail_20' ) end [2025-03-29 12:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788905', 'tblTempVendorCDR_20' ) start [2025-03-29 12:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788905', 'tblTempVendorCDR_20' ) end [2025-03-29 12:40:20] Production.INFO: ProcessCDR(1,14788905,1,1,2) [2025-03-29 12:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788905', 'tblTempUsageDetail_20' ) start [2025-03-29 12:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788905', 'tblTempUsageDetail_20' ) end [2025-03-29 12:40:25] Production.ERROR: pbx prc_insertCDR start [2025-03-29 12:40:25] Production.ERROR: pbx prc_insertCDR end [2025-03-29 12:40:25] Production.INFO: ==31460== Releasing lock... [2025-03-29 12:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 12:40:25] Production.INFO: 39.25 MB #Memory Used# [2025-03-29 12:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 09:41:05 [end_date_ymd] => 2025-03-29 12:41:05 [RateCDR] => 1 ) [2025-03-29 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-29 09:41:05' and `end` < '2025-03-29 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-29 12:41:17] Production.INFO: count ==1513 [2025-03-29 12:41:18] Production.ERROR: pbx CDR StartTime 2025-03-29 09:41:05 - End Time 2025-03-29 12:41:05 [2025-03-29 12:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 12:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788910', 'tblTempUsageDetail_20' ) start [2025-03-29 12:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788910', 'tblTempUsageDetail_20' ) end [2025-03-29 12:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788910', 'tblTempVendorCDR_20' ) start [2025-03-29 12:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788910', 'tblTempVendorCDR_20' ) end [2025-03-29 12:41:18] Production.INFO: ProcessCDR(1,14788910,1,1,2) [2025-03-29 12:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788910', 'tblTempUsageDetail_20' ) start [2025-03-29 12:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788910', 'tblTempUsageDetail_20' ) end [2025-03-29 12:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 12:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 12:41:21] Production.INFO: ==31540== Releasing lock... [2025-03-29 12:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 12:41:21] Production.INFO: 39.5 MB #Memory Used# [2025-03-29 12:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 09:42:05 [end_date_ymd] => 2025-03-29 12:42:05 [RateCDR] => 1 ) [2025-03-29 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-29 09:42:05' and `end` < '2025-03-29 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-29 12:42:18] Production.INFO: count ==1513 [2025-03-29 12:42:19] Production.ERROR: pbx CDR StartTime 2025-03-29 09:42:05 - End Time 2025-03-29 12:42:05 [2025-03-29 12:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 12:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788915', 'tblTempUsageDetail_20' ) start [2025-03-29 12:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788915', 'tblTempUsageDetail_20' ) end [2025-03-29 12:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788915', 'tblTempVendorCDR_20' ) start [2025-03-29 12:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788915', 'tblTempVendorCDR_20' ) end [2025-03-29 12:42:19] Production.INFO: ProcessCDR(1,14788915,1,1,2) [2025-03-29 12:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788915', 'tblTempUsageDetail_20' ) start [2025-03-29 12:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788915', 'tblTempUsageDetail_20' ) end [2025-03-29 12:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 12:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 12:42:22] Production.INFO: ==31618== Releasing lock... [2025-03-29 12:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 12:42:22] Production.INFO: 39.5 MB #Memory Used# [2025-03-29 12:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 09:43:04 [end_date_ymd] => 2025-03-29 12:43:04 [RateCDR] => 1 ) [2025-03-29 12: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-29 09:43:04' and `end` < '2025-03-29 12: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-29 12:43:17] Production.INFO: count ==1504 [2025-03-29 12:43:18] Production.ERROR: pbx CDR StartTime 2025-03-29 09:43:04 - End Time 2025-03-29 12:43:04 [2025-03-29 12:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 12:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788920', 'tblTempUsageDetail_20' ) start [2025-03-29 12:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788920', 'tblTempUsageDetail_20' ) end [2025-03-29 12:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788920', 'tblTempVendorCDR_20' ) start [2025-03-29 12:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788920', 'tblTempVendorCDR_20' ) end [2025-03-29 12:43:18] Production.INFO: ProcessCDR(1,14788920,1,1,2) [2025-03-29 12:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788920', 'tblTempUsageDetail_20' ) start [2025-03-29 12:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788920', 'tblTempUsageDetail_20' ) end [2025-03-29 12:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 12:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 12:43:21] Production.INFO: ==31701== Releasing lock... [2025-03-29 12:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 12:43:21] Production.INFO: 39.5 MB #Memory Used# [2025-03-29 12:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 09:44:05 [end_date_ymd] => 2025-03-29 12:44:05 [RateCDR] => 1 ) [2025-03-29 12:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 09:44:05' and `end` < '2025-03-29 12:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 12:44:18] Production.INFO: count ==1493 [2025-03-29 12:44:18] Production.ERROR: pbx CDR StartTime 2025-03-29 09:44:05 - End Time 2025-03-29 12:44:05 [2025-03-29 12:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 12:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788925', 'tblTempUsageDetail_20' ) start [2025-03-29 12:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788925', 'tblTempUsageDetail_20' ) end [2025-03-29 12:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788925', 'tblTempVendorCDR_20' ) start [2025-03-29 12:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788925', 'tblTempVendorCDR_20' ) end [2025-03-29 12:44:18] Production.INFO: ProcessCDR(1,14788925,1,1,2) [2025-03-29 12:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788925', 'tblTempUsageDetail_20' ) start [2025-03-29 12:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788925', 'tblTempUsageDetail_20' ) end [2025-03-29 12:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 12:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 12:44:22] Production.INFO: ==31782== Releasing lock... [2025-03-29 12:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 12:44:22] Production.INFO: 39.25 MB #Memory Used# [2025-03-29 12:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 09:45:06 [end_date_ymd] => 2025-03-29 12:45:06 [RateCDR] => 1 ) [2025-03-29 12:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 09:45:06' and `end` < '2025-03-29 12:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 12:45:18] Production.INFO: count ==1492 [2025-03-29 12:45:19] Production.ERROR: pbx CDR StartTime 2025-03-29 09:45:06 - End Time 2025-03-29 12:45:06 [2025-03-29 12:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 12:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788930', 'tblTempUsageDetail_20' ) start [2025-03-29 12:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788930', 'tblTempUsageDetail_20' ) end [2025-03-29 12:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788930', 'tblTempVendorCDR_20' ) start [2025-03-29 12:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788930', 'tblTempVendorCDR_20' ) end [2025-03-29 12:45:19] Production.INFO: ProcessCDR(1,14788930,1,1,2) [2025-03-29 12:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788930', 'tblTempUsageDetail_20' ) start [2025-03-29 12:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788930', 'tblTempUsageDetail_20' ) end [2025-03-29 12:45:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 12:45:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 12:45:24] Production.INFO: ==31861== Releasing lock... [2025-03-29 12:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 12:45:24] Production.INFO: 39.25 MB #Memory Used# [2025-03-29 12:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 09:46:05 [end_date_ymd] => 2025-03-29 12:46:05 [RateCDR] => 1 ) [2025-03-29 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-29 09:46:05' and `end` < '2025-03-29 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-29 12:46:18] Production.INFO: count ==1483 [2025-03-29 12:46:18] Production.ERROR: pbx CDR StartTime 2025-03-29 09:46:05 - End Time 2025-03-29 12:46:05 [2025-03-29 12:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 12:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788935', 'tblTempUsageDetail_20' ) start [2025-03-29 12:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788935', 'tblTempUsageDetail_20' ) end [2025-03-29 12:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788935', 'tblTempVendorCDR_20' ) start [2025-03-29 12:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788935', 'tblTempVendorCDR_20' ) end [2025-03-29 12:46:18] Production.INFO: ProcessCDR(1,14788935,1,1,2) [2025-03-29 12:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788935', 'tblTempUsageDetail_20' ) start [2025-03-29 12:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788935', 'tblTempUsageDetail_20' ) end [2025-03-29 12:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 12:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 12:46:22] Production.INFO: ==31937== Releasing lock... [2025-03-29 12:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 12:46:22] Production.INFO: 39.25 MB #Memory Used# [2025-03-29 12:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 09:47:06 [end_date_ymd] => 2025-03-29 12:47:06 [RateCDR] => 1 ) [2025-03-29 12:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 09:47:06' and `end` < '2025-03-29 12:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 12:47:19] Production.INFO: count ==1498 [2025-03-29 12:47:19] Production.ERROR: pbx CDR StartTime 2025-03-29 09:47:06 - End Time 2025-03-29 12:47:06 [2025-03-29 12:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 12:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788940', 'tblTempUsageDetail_20' ) start [2025-03-29 12:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788940', 'tblTempUsageDetail_20' ) end [2025-03-29 12:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788940', 'tblTempVendorCDR_20' ) start [2025-03-29 12:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788940', 'tblTempVendorCDR_20' ) end [2025-03-29 12:47:19] Production.INFO: ProcessCDR(1,14788940,1,1,2) [2025-03-29 12:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788940', 'tblTempUsageDetail_20' ) start [2025-03-29 12:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788940', 'tblTempUsageDetail_20' ) end [2025-03-29 12:47:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 12:47:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 12:47:24] Production.INFO: ==32063== Releasing lock... [2025-03-29 12:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 12:47:24] Production.INFO: 39.25 MB #Memory Used# [2025-03-29 12:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 09:48:05 [end_date_ymd] => 2025-03-29 12:48:05 [RateCDR] => 1 ) [2025-03-29 12:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 09:48:05' and `end` < '2025-03-29 12:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 12:48:18] Production.INFO: count ==1502 [2025-03-29 12:48:18] Production.ERROR: pbx CDR StartTime 2025-03-29 09:48:05 - End Time 2025-03-29 12:48:05 [2025-03-29 12:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 12:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788945', 'tblTempUsageDetail_20' ) start [2025-03-29 12:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788945', 'tblTempUsageDetail_20' ) end [2025-03-29 12:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788945', 'tblTempVendorCDR_20' ) start [2025-03-29 12:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788945', 'tblTempVendorCDR_20' ) end [2025-03-29 12:48:18] Production.INFO: ProcessCDR(1,14788945,1,1,2) [2025-03-29 12:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788945', 'tblTempUsageDetail_20' ) start [2025-03-29 12:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788945', 'tblTempUsageDetail_20' ) end [2025-03-29 12:48:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 12:48:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 12:48:23] Production.INFO: ==32154== Releasing lock... [2025-03-29 12:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 12:48:23] Production.INFO: 39.25 MB #Memory Used# [2025-03-29 12:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 09:49:05 [end_date_ymd] => 2025-03-29 12:49:05 [RateCDR] => 1 ) [2025-03-29 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-29 09:49:05' and `end` < '2025-03-29 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-29 12:49:18] Production.INFO: count ==1509 [2025-03-29 12:49:18] Production.ERROR: pbx CDR StartTime 2025-03-29 09:49:05 - End Time 2025-03-29 12:49:05 [2025-03-29 12:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 12:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788950', 'tblTempUsageDetail_20' ) start [2025-03-29 12:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788950', 'tblTempUsageDetail_20' ) end [2025-03-29 12:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788950', 'tblTempVendorCDR_20' ) start [2025-03-29 12:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788950', 'tblTempVendorCDR_20' ) end [2025-03-29 12:49:18] Production.INFO: ProcessCDR(1,14788950,1,1,2) [2025-03-29 12:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788950', 'tblTempUsageDetail_20' ) start [2025-03-29 12:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788950', 'tblTempUsageDetail_20' ) end [2025-03-29 12:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 12:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 12:49:22] Production.INFO: ==32240== Releasing lock... [2025-03-29 12:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 12:49:22] Production.INFO: 39.25 MB #Memory Used# [2025-03-29 12:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 09:50:06 [end_date_ymd] => 2025-03-29 12:50:06 [RateCDR] => 1 ) [2025-03-29 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-29 09:50:06' and `end` < '2025-03-29 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-29 12:50:18] Production.INFO: count ==1495 [2025-03-29 12:50:19] Production.ERROR: pbx CDR StartTime 2025-03-29 09:50:06 - End Time 2025-03-29 12:50:06 [2025-03-29 12:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 12:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788956', 'tblTempUsageDetail_20' ) start [2025-03-29 12:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788956', 'tblTempUsageDetail_20' ) end [2025-03-29 12:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788956', 'tblTempVendorCDR_20' ) start [2025-03-29 12:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788956', 'tblTempVendorCDR_20' ) end [2025-03-29 12:50:19] Production.INFO: ProcessCDR(1,14788956,1,1,2) [2025-03-29 12:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788956', 'tblTempUsageDetail_20' ) start [2025-03-29 12:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788956', 'tblTempUsageDetail_20' ) end [2025-03-29 12:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 12:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 12:50:22] Production.INFO: ==32323== Releasing lock... [2025-03-29 12:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 12:50:22] Production.INFO: 39 MB #Memory Used# [2025-03-29 12:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 09:51:06 [end_date_ymd] => 2025-03-29 12:51:06 [RateCDR] => 1 ) [2025-03-29 12: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-29 09:51:06' and `end` < '2025-03-29 12: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-29 12:51:18] Production.INFO: count ==1504 [2025-03-29 12:51:19] Production.ERROR: pbx CDR StartTime 2025-03-29 09:51:06 - End Time 2025-03-29 12:51:06 [2025-03-29 12:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 12:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788961', 'tblTempUsageDetail_20' ) start [2025-03-29 12:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788961', 'tblTempUsageDetail_20' ) end [2025-03-29 12:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788961', 'tblTempVendorCDR_20' ) start [2025-03-29 12:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788961', 'tblTempVendorCDR_20' ) end [2025-03-29 12:51:19] Production.INFO: ProcessCDR(1,14788961,1,1,2) [2025-03-29 12:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788961', 'tblTempUsageDetail_20' ) start [2025-03-29 12:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788961', 'tblTempUsageDetail_20' ) end [2025-03-29 12:51:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 12:51:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 12:51:23] Production.INFO: ==32405== Releasing lock... [2025-03-29 12:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 12:51:23] Production.INFO: 39.25 MB #Memory Used# [2025-03-29 12:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 09:52:05 [end_date_ymd] => 2025-03-29 12:52:05 [RateCDR] => 1 ) [2025-03-29 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-29 09:52:05' and `end` < '2025-03-29 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-29 12:52:18] Production.INFO: count ==1500 [2025-03-29 12:52:18] Production.ERROR: pbx CDR StartTime 2025-03-29 09:52:05 - End Time 2025-03-29 12:52:05 [2025-03-29 12:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 12:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788966', 'tblTempUsageDetail_20' ) start [2025-03-29 12:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788966', 'tblTempUsageDetail_20' ) end [2025-03-29 12:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788966', 'tblTempVendorCDR_20' ) start [2025-03-29 12:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788966', 'tblTempVendorCDR_20' ) end [2025-03-29 12:52:18] Production.INFO: ProcessCDR(1,14788966,1,1,2) [2025-03-29 12:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788966', 'tblTempUsageDetail_20' ) start [2025-03-29 12:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788966', 'tblTempUsageDetail_20' ) end [2025-03-29 12:52:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 12:52:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 12:52:23] Production.INFO: ==32484== Releasing lock... [2025-03-29 12:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 12:52:23] Production.INFO: 39.25 MB #Memory Used# [2025-03-29 12:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 09:53:05 [end_date_ymd] => 2025-03-29 12:53:05 [RateCDR] => 1 ) [2025-03-29 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-29 09:53:05' and `end` < '2025-03-29 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-29 12:53:18] Production.INFO: count ==1496 [2025-03-29 12:53:18] Production.ERROR: pbx CDR StartTime 2025-03-29 09:53:05 - End Time 2025-03-29 12:53:05 [2025-03-29 12:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 12:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788971', 'tblTempUsageDetail_20' ) start [2025-03-29 12:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788971', 'tblTempUsageDetail_20' ) end [2025-03-29 12:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788971', 'tblTempVendorCDR_20' ) start [2025-03-29 12:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788971', 'tblTempVendorCDR_20' ) end [2025-03-29 12:53:19] Production.INFO: ProcessCDR(1,14788971,1,1,2) [2025-03-29 12:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788971', 'tblTempUsageDetail_20' ) start [2025-03-29 12:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788971', 'tblTempUsageDetail_20' ) end [2025-03-29 12:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 12:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 12:53:22] Production.INFO: ==32565== Releasing lock... [2025-03-29 12:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 12:53:22] Production.INFO: 39.25 MB #Memory Used# [2025-03-29 12:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 09:54:05 [end_date_ymd] => 2025-03-29 12:54:05 [RateCDR] => 1 ) [2025-03-29 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-29 09:54:05' and `end` < '2025-03-29 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-29 12:54:18] Production.INFO: count ==1497 [2025-03-29 12:54:18] Production.ERROR: pbx CDR StartTime 2025-03-29 09:54:05 - End Time 2025-03-29 12:54:05 [2025-03-29 12:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 12:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788976', 'tblTempUsageDetail_20' ) start [2025-03-29 12:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788976', 'tblTempUsageDetail_20' ) end [2025-03-29 12:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788976', 'tblTempVendorCDR_20' ) start [2025-03-29 12:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788976', 'tblTempVendorCDR_20' ) end [2025-03-29 12:54:18] Production.INFO: ProcessCDR(1,14788976,1,1,2) [2025-03-29 12:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788976', 'tblTempUsageDetail_20' ) start [2025-03-29 12:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788976', 'tblTempUsageDetail_20' ) end [2025-03-29 12:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 12:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 12:54:21] Production.INFO: ==32644== Releasing lock... [2025-03-29 12:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 12:54:21] Production.INFO: 39.25 MB #Memory Used# [2025-03-29 12:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 09:55:05 [end_date_ymd] => 2025-03-29 12:55:05 [RateCDR] => 1 ) [2025-03-29 12:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 09:55:05' and `end` < '2025-03-29 12:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 12:55:18] Production.INFO: count ==1509 [2025-03-29 12:55:18] Production.ERROR: pbx CDR StartTime 2025-03-29 09:55:05 - End Time 2025-03-29 12:55:05 [2025-03-29 12:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 12:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788981', 'tblTempUsageDetail_20' ) start [2025-03-29 12:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788981', 'tblTempUsageDetail_20' ) end [2025-03-29 12:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788981', 'tblTempVendorCDR_20' ) start [2025-03-29 12:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788981', 'tblTempVendorCDR_20' ) end [2025-03-29 12:55:19] Production.INFO: ProcessCDR(1,14788981,1,1,2) [2025-03-29 12:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788981', 'tblTempUsageDetail_20' ) start [2025-03-29 12:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788981', 'tblTempUsageDetail_20' ) end [2025-03-29 12:55:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 12:55:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 12:55:24] Production.INFO: ==32732== Releasing lock... [2025-03-29 12:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 12:55:24] Production.INFO: 39 MB #Memory Used# [2025-03-29 12:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 09:56:05 [end_date_ymd] => 2025-03-29 12:56:05 [RateCDR] => 1 ) [2025-03-29 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-29 09:56:05' and `end` < '2025-03-29 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-29 12:56:18] Production.INFO: count ==1504 [2025-03-29 12:56:18] Production.ERROR: pbx CDR StartTime 2025-03-29 09:56:05 - End Time 2025-03-29 12:56:05 [2025-03-29 12:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 12:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788986', 'tblTempUsageDetail_20' ) start [2025-03-29 12:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788986', 'tblTempUsageDetail_20' ) end [2025-03-29 12:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788986', 'tblTempVendorCDR_20' ) start [2025-03-29 12:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788986', 'tblTempVendorCDR_20' ) end [2025-03-29 12:56:18] Production.INFO: ProcessCDR(1,14788986,1,1,2) [2025-03-29 12:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788986', 'tblTempUsageDetail_20' ) start [2025-03-29 12:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788986', 'tblTempUsageDetail_20' ) end [2025-03-29 12:56:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 12:56:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 12:56:23] Production.INFO: ==364== Releasing lock... [2025-03-29 12:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 12:56:23] Production.INFO: 39.25 MB #Memory Used# [2025-03-29 12:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 09:57:06 [end_date_ymd] => 2025-03-29 12:57:06 [RateCDR] => 1 ) [2025-03-29 12: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-29 09:57:06' and `end` < '2025-03-29 12: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-29 12:57:18] Production.INFO: count ==1505 [2025-03-29 12:57:19] Production.ERROR: pbx CDR StartTime 2025-03-29 09:57:06 - End Time 2025-03-29 12:57:06 [2025-03-29 12:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 12:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788991', 'tblTempUsageDetail_20' ) start [2025-03-29 12:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788991', 'tblTempUsageDetail_20' ) end [2025-03-29 12:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788991', 'tblTempVendorCDR_20' ) start [2025-03-29 12:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788991', 'tblTempVendorCDR_20' ) end [2025-03-29 12:57:19] Production.INFO: ProcessCDR(1,14788991,1,1,2) [2025-03-29 12:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788991', 'tblTempUsageDetail_20' ) start [2025-03-29 12:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788991', 'tblTempUsageDetail_20' ) end [2025-03-29 12:57:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 12:57:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 12:57:24] Production.INFO: ==447== Releasing lock... [2025-03-29 12:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 12:57:24] Production.INFO: 39.25 MB #Memory Used# [2025-03-29 12:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 09:58:05 [end_date_ymd] => 2025-03-29 12:58:05 [RateCDR] => 1 ) [2025-03-29 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-29 09:58:05' and `end` < '2025-03-29 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-29 12:58:18] Production.INFO: count ==1518 [2025-03-29 12:58:18] Production.ERROR: pbx CDR StartTime 2025-03-29 09:58:05 - End Time 2025-03-29 12:58:05 [2025-03-29 12:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 12:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788996', 'tblTempUsageDetail_20' ) start [2025-03-29 12:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14788996', 'tblTempUsageDetail_20' ) end [2025-03-29 12:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788996', 'tblTempVendorCDR_20' ) start [2025-03-29 12:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14788996', 'tblTempVendorCDR_20' ) end [2025-03-29 12:58:18] Production.INFO: ProcessCDR(1,14788996,1,1,2) [2025-03-29 12:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14788996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14788996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14788996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14788996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788996', 'tblTempUsageDetail_20' ) start [2025-03-29 12:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14788996', 'tblTempUsageDetail_20' ) end [2025-03-29 12:58:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 12:58:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 12:58:23] Production.INFO: ==531== Releasing lock... [2025-03-29 12:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 12:58:23] Production.INFO: 39.5 MB #Memory Used# [2025-03-29 12:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 09:59:06 [end_date_ymd] => 2025-03-29 12:59:06 [RateCDR] => 1 ) [2025-03-29 12: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-29 09:59:06' and `end` < '2025-03-29 12: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-29 12:59:18] Production.INFO: count ==1521 [2025-03-29 12:59:19] Production.ERROR: pbx CDR StartTime 2025-03-29 09:59:06 - End Time 2025-03-29 12:59:06 [2025-03-29 12:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 12:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789001', 'tblTempUsageDetail_20' ) start [2025-03-29 12:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789001', 'tblTempUsageDetail_20' ) end [2025-03-29 12:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789001', 'tblTempVendorCDR_20' ) start [2025-03-29 12:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789001', 'tblTempVendorCDR_20' ) end [2025-03-29 12:59:19] Production.INFO: ProcessCDR(1,14789001,1,1,2) [2025-03-29 12:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 12:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 12:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789001', 'tblTempUsageDetail_20' ) start [2025-03-29 12:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789001', 'tblTempUsageDetail_20' ) end [2025-03-29 12:59:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 12:59:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 12:59:24] Production.INFO: ==625== Releasing lock... [2025-03-29 12:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 12:59:24] Production.INFO: 39.5 MB #Memory Used# [2025-03-29 13:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 10:00:07 [end_date_ymd] => 2025-03-29 13:00:07 [RateCDR] => 1 ) [2025-03-29 13: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-29 10:00:07' and `end` < '2025-03-29 13: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-29 13:00:19] Production.INFO: count ==1547 [2025-03-29 13:00:20] Production.ERROR: pbx CDR StartTime 2025-03-29 10:00:07 - End Time 2025-03-29 13:00:07 [2025-03-29 13:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 13:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789006', 'tblTempUsageDetail_20' ) start [2025-03-29 13:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789006', 'tblTempUsageDetail_20' ) end [2025-03-29 13:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789006', 'tblTempVendorCDR_20' ) start [2025-03-29 13:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789006', 'tblTempVendorCDR_20' ) end [2025-03-29 13:00:20] Production.INFO: ProcessCDR(1,14789006,1,1,2) [2025-03-29 13:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789006', 'tblTempUsageDetail_20' ) start [2025-03-29 13:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789006', 'tblTempUsageDetail_20' ) end [2025-03-29 13:00:25] Production.ERROR: pbx prc_insertCDR start [2025-03-29 13:00:25] Production.ERROR: pbx prc_insertCDR end [2025-03-29 13:00:25] Production.INFO: ==735== Releasing lock... [2025-03-29 13:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 13:00:25] Production.INFO: 39.75 MB #Memory Used# [2025-03-29 13:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 10:01:05 [end_date_ymd] => 2025-03-29 13:01:05 [RateCDR] => 1 ) [2025-03-29 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-29 10:01:05' and `end` < '2025-03-29 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-29 13:01:18] Production.INFO: count ==1580 [2025-03-29 13:01:18] Production.ERROR: pbx CDR StartTime 2025-03-29 10:01:05 - End Time 2025-03-29 13:01:05 [2025-03-29 13:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 13:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789012', 'tblTempUsageDetail_20' ) start [2025-03-29 13:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789012', 'tblTempUsageDetail_20' ) end [2025-03-29 13:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789012', 'tblTempVendorCDR_20' ) start [2025-03-29 13:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789012', 'tblTempVendorCDR_20' ) end [2025-03-29 13:01:18] Production.INFO: ProcessCDR(1,14789012,1,1,2) [2025-03-29 13:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789012', 'tblTempUsageDetail_20' ) start [2025-03-29 13:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789012', 'tblTempUsageDetail_20' ) end [2025-03-29 13:01:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 13:01:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 13:01:23] Production.INFO: ==838== Releasing lock... [2025-03-29 13:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 13:01:23] Production.INFO: 40 MB #Memory Used# [2025-03-29 13:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 10:02:05 [end_date_ymd] => 2025-03-29 13:02:05 [RateCDR] => 1 ) [2025-03-29 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-29 10:02:05' and `end` < '2025-03-29 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-29 13:02:18] Production.INFO: count ==1579 [2025-03-29 13:02:19] Production.ERROR: pbx CDR StartTime 2025-03-29 10:02:05 - End Time 2025-03-29 13:02:05 [2025-03-29 13:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 13:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789017', 'tblTempUsageDetail_20' ) start [2025-03-29 13:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789017', 'tblTempUsageDetail_20' ) end [2025-03-29 13:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789017', 'tblTempVendorCDR_20' ) start [2025-03-29 13:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789017', 'tblTempVendorCDR_20' ) end [2025-03-29 13:02:19] Production.INFO: ProcessCDR(1,14789017,1,1,2) [2025-03-29 13:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789017', 'tblTempUsageDetail_20' ) start [2025-03-29 13:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789017', 'tblTempUsageDetail_20' ) end [2025-03-29 13:02:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 13:02:25] Production.ERROR: pbx prc_insertCDR end [2025-03-29 13:02:25] Production.INFO: ==934== Releasing lock... [2025-03-29 13:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 13:02:25] Production.INFO: 40 MB #Memory Used# [2025-03-29 13:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 10:03:06 [end_date_ymd] => 2025-03-29 13:03:06 [RateCDR] => 1 ) [2025-03-29 13:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 10:03:06' and `end` < '2025-03-29 13:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 13:03:18] Production.INFO: count ==1577 [2025-03-29 13:03:19] Production.ERROR: pbx CDR StartTime 2025-03-29 10:03:06 - End Time 2025-03-29 13:03:06 [2025-03-29 13:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 13:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789022', 'tblTempUsageDetail_20' ) start [2025-03-29 13:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789022', 'tblTempUsageDetail_20' ) end [2025-03-29 13:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789022', 'tblTempVendorCDR_20' ) start [2025-03-29 13:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789022', 'tblTempVendorCDR_20' ) end [2025-03-29 13:03:19] Production.INFO: ProcessCDR(1,14789022,1,1,2) [2025-03-29 13:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789022', 'tblTempUsageDetail_20' ) start [2025-03-29 13:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789022', 'tblTempUsageDetail_20' ) end [2025-03-29 13:03:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 13:03:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 13:03:23] Production.INFO: ==1067== Releasing lock... [2025-03-29 13:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 13:03:23] Production.INFO: 40 MB #Memory Used# [2025-03-29 13:04:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 10:04:07 [end_date_ymd] => 2025-03-29 13:04:07 [RateCDR] => 1 ) [2025-03-29 13:04: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-29 10:04:07' and `end` < '2025-03-29 13:04: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-29 13:04:19] Production.INFO: count ==1618 [2025-03-29 13:04:20] Production.ERROR: pbx CDR StartTime 2025-03-29 10:04:07 - End Time 2025-03-29 13:04:07 [2025-03-29 13:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 13:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789027', 'tblTempUsageDetail_20' ) start [2025-03-29 13:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789027', 'tblTempUsageDetail_20' ) end [2025-03-29 13:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789027', 'tblTempVendorCDR_20' ) start [2025-03-29 13:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789027', 'tblTempVendorCDR_20' ) end [2025-03-29 13:04:20] Production.INFO: ProcessCDR(1,14789027,1,1,2) [2025-03-29 13:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789027', 'tblTempUsageDetail_20' ) start [2025-03-29 13:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789027', 'tblTempUsageDetail_20' ) end [2025-03-29 13:04:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 13:04:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 13:04:24] Production.INFO: ==1150== Releasing lock... [2025-03-29 13:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 13:04:24] Production.INFO: 40.5 MB #Memory Used# [2025-03-29 13:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 10:05:06 [end_date_ymd] => 2025-03-29 13:05:06 [RateCDR] => 1 ) [2025-03-29 13:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 10:05:06' and `end` < '2025-03-29 13:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 13:05:19] Production.INFO: count ==1626 [2025-03-29 13:05:19] Production.ERROR: pbx CDR StartTime 2025-03-29 10:05:06 - End Time 2025-03-29 13:05:06 [2025-03-29 13:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 13:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789032', 'tblTempUsageDetail_20' ) start [2025-03-29 13:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789032', 'tblTempUsageDetail_20' ) end [2025-03-29 13:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789032', 'tblTempVendorCDR_20' ) start [2025-03-29 13:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789032', 'tblTempVendorCDR_20' ) end [2025-03-29 13:05:19] Production.INFO: ProcessCDR(1,14789032,1,1,2) [2025-03-29 13:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789032', 'tblTempUsageDetail_20' ) start [2025-03-29 13:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789032', 'tblTempUsageDetail_20' ) end [2025-03-29 13:05:25] Production.ERROR: pbx prc_insertCDR start [2025-03-29 13:05:25] Production.ERROR: pbx prc_insertCDR end [2025-03-29 13:05:25] Production.INFO: ==1236== Releasing lock... [2025-03-29 13:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 13:05:25] Production.INFO: 40.25 MB #Memory Used# [2025-03-29 13:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 10:06:05 [end_date_ymd] => 2025-03-29 13:06:05 [RateCDR] => 1 ) [2025-03-29 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-29 10:06:05' and `end` < '2025-03-29 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-29 13:06:17] Production.INFO: count ==1634 [2025-03-29 13:06:18] Production.ERROR: pbx CDR StartTime 2025-03-29 10:06:05 - End Time 2025-03-29 13:06:05 [2025-03-29 13:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 13:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789037', 'tblTempUsageDetail_20' ) start [2025-03-29 13:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789037', 'tblTempUsageDetail_20' ) end [2025-03-29 13:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789037', 'tblTempVendorCDR_20' ) start [2025-03-29 13:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789037', 'tblTempVendorCDR_20' ) end [2025-03-29 13:06:18] Production.INFO: ProcessCDR(1,14789037,1,1,2) [2025-03-29 13:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789037', 'tblTempUsageDetail_20' ) start [2025-03-29 13:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789037', 'tblTempUsageDetail_20' ) end [2025-03-29 13:06:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 13:06:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 13:06:24] Production.INFO: ==1330== Releasing lock... [2025-03-29 13:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 13:06:24] Production.INFO: 40.25 MB #Memory Used# [2025-03-29 13:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 10:07:06 [end_date_ymd] => 2025-03-29 13:07:06 [RateCDR] => 1 ) [2025-03-29 13: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-29 10:07:06' and `end` < '2025-03-29 13: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-29 13:07:18] Production.INFO: count ==1629 [2025-03-29 13:07:19] Production.ERROR: pbx CDR StartTime 2025-03-29 10:07:06 - End Time 2025-03-29 13:07:06 [2025-03-29 13:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 13:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789042', 'tblTempUsageDetail_20' ) start [2025-03-29 13:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789042', 'tblTempUsageDetail_20' ) end [2025-03-29 13:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789042', 'tblTempVendorCDR_20' ) start [2025-03-29 13:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789042', 'tblTempVendorCDR_20' ) end [2025-03-29 13:07:19] Production.INFO: ProcessCDR(1,14789042,1,1,2) [2025-03-29 13:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789042', 'tblTempUsageDetail_20' ) start [2025-03-29 13:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789042', 'tblTempUsageDetail_20' ) end [2025-03-29 13:07:25] Production.ERROR: pbx prc_insertCDR start [2025-03-29 13:07:25] Production.ERROR: pbx prc_insertCDR end [2025-03-29 13:07:25] Production.INFO: ==1410== Releasing lock... [2025-03-29 13:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 13:07:25] Production.INFO: 40.25 MB #Memory Used# [2025-03-29 13:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 10:08:06 [end_date_ymd] => 2025-03-29 13:08:06 [RateCDR] => 1 ) [2025-03-29 13: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-29 10:08:06' and `end` < '2025-03-29 13: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-29 13:08:19] Production.INFO: count ==1631 [2025-03-29 13:08:20] Production.ERROR: pbx CDR StartTime 2025-03-29 10:08:06 - End Time 2025-03-29 13:08:06 [2025-03-29 13:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 13:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789047', 'tblTempUsageDetail_20' ) start [2025-03-29 13:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789047', 'tblTempUsageDetail_20' ) end [2025-03-29 13:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789047', 'tblTempVendorCDR_20' ) start [2025-03-29 13:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789047', 'tblTempVendorCDR_20' ) end [2025-03-29 13:08:20] Production.INFO: ProcessCDR(1,14789047,1,1,2) [2025-03-29 13:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789047', 'tblTempUsageDetail_20' ) start [2025-03-29 13:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789047', 'tblTempUsageDetail_20' ) end [2025-03-29 13:08:25] Production.ERROR: pbx prc_insertCDR start [2025-03-29 13:08:25] Production.ERROR: pbx prc_insertCDR end [2025-03-29 13:08:25] Production.INFO: ==1491== Releasing lock... [2025-03-29 13:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 13:08:25] Production.INFO: 40.25 MB #Memory Used# [2025-03-29 13:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 10:09:05 [end_date_ymd] => 2025-03-29 13:09:05 [RateCDR] => 1 ) [2025-03-29 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-29 10:09:05' and `end` < '2025-03-29 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-29 13:09:18] Production.INFO: count ==1638 [2025-03-29 13:09:19] Production.ERROR: pbx CDR StartTime 2025-03-29 10:09:05 - End Time 2025-03-29 13:09:05 [2025-03-29 13:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 13:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789052', 'tblTempUsageDetail_20' ) start [2025-03-29 13:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789052', 'tblTempUsageDetail_20' ) end [2025-03-29 13:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789052', 'tblTempVendorCDR_20' ) start [2025-03-29 13:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789052', 'tblTempVendorCDR_20' ) end [2025-03-29 13:09:19] Production.INFO: ProcessCDR(1,14789052,1,1,2) [2025-03-29 13:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789052', 'tblTempUsageDetail_20' ) start [2025-03-29 13:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789052', 'tblTempUsageDetail_20' ) end [2025-03-29 13:09:25] Production.ERROR: pbx prc_insertCDR start [2025-03-29 13:09:25] Production.ERROR: pbx prc_insertCDR end [2025-03-29 13:09:25] Production.INFO: ==1606== Releasing lock... [2025-03-29 13:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 13:09:25] Production.INFO: 40.25 MB #Memory Used# [2025-03-29 13:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 10:10:07 [end_date_ymd] => 2025-03-29 13:10:07 [RateCDR] => 1 ) [2025-03-29 13: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-29 10:10:07' and `end` < '2025-03-29 13: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-29 13:10:20] Production.INFO: count ==1618 [2025-03-29 13:10:20] Production.ERROR: pbx CDR StartTime 2025-03-29 10:10:07 - End Time 2025-03-29 13:10:07 [2025-03-29 13:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 13:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789058', 'tblTempUsageDetail_20' ) start [2025-03-29 13:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789058', 'tblTempUsageDetail_20' ) end [2025-03-29 13:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789058', 'tblTempVendorCDR_20' ) start [2025-03-29 13:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789058', 'tblTempVendorCDR_20' ) end [2025-03-29 13:10:20] Production.INFO: ProcessCDR(1,14789058,1,1,2) [2025-03-29 13:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789058', 'tblTempUsageDetail_20' ) start [2025-03-29 13:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789058', 'tblTempUsageDetail_20' ) end [2025-03-29 13:10:26] Production.ERROR: pbx prc_insertCDR start [2025-03-29 13:10:26] Production.ERROR: pbx prc_insertCDR end [2025-03-29 13:10:26] Production.INFO: ==1684== Releasing lock... [2025-03-29 13:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 13:10:26] Production.INFO: 40.25 MB #Memory Used# [2025-03-29 13:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 10:11:06 [end_date_ymd] => 2025-03-29 13:11:06 [RateCDR] => 1 ) [2025-03-29 13: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-29 10:11:06' and `end` < '2025-03-29 13: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-29 13:11:18] Production.INFO: count ==1626 [2025-03-29 13:11:19] Production.ERROR: pbx CDR StartTime 2025-03-29 10:11:06 - End Time 2025-03-29 13:11:06 [2025-03-29 13:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 13:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789063', 'tblTempUsageDetail_20' ) start [2025-03-29 13:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789063', 'tblTempUsageDetail_20' ) end [2025-03-29 13:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789063', 'tblTempVendorCDR_20' ) start [2025-03-29 13:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789063', 'tblTempVendorCDR_20' ) end [2025-03-29 13:11:19] Production.INFO: ProcessCDR(1,14789063,1,1,2) [2025-03-29 13:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789063', 'tblTempUsageDetail_20' ) start [2025-03-29 13:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789063', 'tblTempUsageDetail_20' ) end [2025-03-29 13:11:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 13:11:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 13:11:23] Production.INFO: ==1767== Releasing lock... [2025-03-29 13:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 13:11:23] Production.INFO: 40.25 MB #Memory Used# [2025-03-29 13:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 10:12:06 [end_date_ymd] => 2025-03-29 13:12:06 [RateCDR] => 1 ) [2025-03-29 13:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 10:12:06' and `end` < '2025-03-29 13:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 13:12:19] Production.INFO: count ==1632 [2025-03-29 13:12:20] Production.ERROR: pbx CDR StartTime 2025-03-29 10:12:06 - End Time 2025-03-29 13:12:06 [2025-03-29 13:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 13:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789068', 'tblTempUsageDetail_20' ) start [2025-03-29 13:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789068', 'tblTempUsageDetail_20' ) end [2025-03-29 13:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789068', 'tblTempVendorCDR_20' ) start [2025-03-29 13:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789068', 'tblTempVendorCDR_20' ) end [2025-03-29 13:12:20] Production.INFO: ProcessCDR(1,14789068,1,1,2) [2025-03-29 13:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789068', 'tblTempUsageDetail_20' ) start [2025-03-29 13:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789068', 'tblTempUsageDetail_20' ) end [2025-03-29 13:12:26] Production.ERROR: pbx prc_insertCDR start [2025-03-29 13:12:26] Production.ERROR: pbx prc_insertCDR end [2025-03-29 13:12:26] Production.INFO: ==1849== Releasing lock... [2025-03-29 13:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 13:12:26] Production.INFO: 40.25 MB #Memory Used# [2025-03-29 13:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 10:13:06 [end_date_ymd] => 2025-03-29 13:13:06 [RateCDR] => 1 ) [2025-03-29 13:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 10:13:06' and `end` < '2025-03-29 13: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-29 13:13:18] Production.INFO: count ==1650 [2025-03-29 13:13:19] Production.ERROR: pbx CDR StartTime 2025-03-29 10:13:06 - End Time 2025-03-29 13:13:06 [2025-03-29 13:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 13:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789073', 'tblTempUsageDetail_20' ) start [2025-03-29 13:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789073', 'tblTempUsageDetail_20' ) end [2025-03-29 13:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789073', 'tblTempVendorCDR_20' ) start [2025-03-29 13:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789073', 'tblTempVendorCDR_20' ) end [2025-03-29 13:13:19] Production.INFO: ProcessCDR(1,14789073,1,1,2) [2025-03-29 13:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789073', 'tblTempUsageDetail_20' ) start [2025-03-29 13:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789073', 'tblTempUsageDetail_20' ) end [2025-03-29 13:13:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 13:13:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 13:13:23] Production.INFO: ==1922== Releasing lock... [2025-03-29 13:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 13:13:23] Production.INFO: 40.5 MB #Memory Used# [2025-03-29 13:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 10:14:06 [end_date_ymd] => 2025-03-29 13:14:06 [RateCDR] => 1 ) [2025-03-29 13: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-29 10:14:06' and `end` < '2025-03-29 13: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-29 13:14:19] Production.INFO: count ==1646 [2025-03-29 13:14:20] Production.ERROR: pbx CDR StartTime 2025-03-29 10:14:06 - End Time 2025-03-29 13:14:06 [2025-03-29 13:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 13:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789078', 'tblTempUsageDetail_20' ) start [2025-03-29 13:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789078', 'tblTempUsageDetail_20' ) end [2025-03-29 13:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789078', 'tblTempVendorCDR_20' ) start [2025-03-29 13:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789078', 'tblTempVendorCDR_20' ) end [2025-03-29 13:14:20] Production.INFO: ProcessCDR(1,14789078,1,1,2) [2025-03-29 13:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789078', 'tblTempUsageDetail_20' ) start [2025-03-29 13:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789078', 'tblTempUsageDetail_20' ) end [2025-03-29 13:14:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 13:14:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 13:14:24] Production.INFO: ==2001== Releasing lock... [2025-03-29 13:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 13:14:24] Production.INFO: 40.75 MB #Memory Used# [2025-03-29 13:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 10:15:06 [end_date_ymd] => 2025-03-29 13:15:06 [RateCDR] => 1 ) [2025-03-29 13:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 10:15:06' and `end` < '2025-03-29 13:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 13:15:19] Production.INFO: count ==1643 [2025-03-29 13:15:20] Production.ERROR: pbx CDR StartTime 2025-03-29 10:15:06 - End Time 2025-03-29 13:15:06 [2025-03-29 13:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 13:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789083', 'tblTempUsageDetail_20' ) start [2025-03-29 13:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789083', 'tblTempUsageDetail_20' ) end [2025-03-29 13:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789083', 'tblTempVendorCDR_20' ) start [2025-03-29 13:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789083', 'tblTempVendorCDR_20' ) end [2025-03-29 13:15:20] Production.INFO: ProcessCDR(1,14789083,1,1,2) [2025-03-29 13:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789083', 'tblTempUsageDetail_20' ) start [2025-03-29 13:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789083', 'tblTempUsageDetail_20' ) end [2025-03-29 13:15:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 13:15:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 13:15:23] Production.INFO: ==2079== Releasing lock... [2025-03-29 13:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 13:15:23] Production.INFO: 40.25 MB #Memory Used# [2025-03-29 13:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 10:16:05 [end_date_ymd] => 2025-03-29 13:16:05 [RateCDR] => 1 ) [2025-03-29 13:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 10:16:05' and `end` < '2025-03-29 13:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 13:16:18] Production.INFO: count ==1639 [2025-03-29 13:16:19] Production.ERROR: pbx CDR StartTime 2025-03-29 10:16:05 - End Time 2025-03-29 13:16:05 [2025-03-29 13:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 13:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789088', 'tblTempUsageDetail_20' ) start [2025-03-29 13:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789088', 'tblTempUsageDetail_20' ) end [2025-03-29 13:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789088', 'tblTempVendorCDR_20' ) start [2025-03-29 13:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789088', 'tblTempVendorCDR_20' ) end [2025-03-29 13:16:19] Production.INFO: ProcessCDR(1,14789088,1,1,2) [2025-03-29 13:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789088', 'tblTempUsageDetail_20' ) start [2025-03-29 13:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789088', 'tblTempUsageDetail_20' ) end [2025-03-29 13:16:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 13:16:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 13:16:24] Production.INFO: ==2159== Releasing lock... [2025-03-29 13:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 13:16:24] Production.INFO: 40.5 MB #Memory Used# [2025-03-29 13:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 10:17:06 [end_date_ymd] => 2025-03-29 13:17:06 [RateCDR] => 1 ) [2025-03-29 13: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-29 10:17:06' and `end` < '2025-03-29 13: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-29 13:17:18] Production.INFO: count ==1629 [2025-03-29 13:17:19] Production.ERROR: pbx CDR StartTime 2025-03-29 10:17:06 - End Time 2025-03-29 13:17:06 [2025-03-29 13:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 13:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789093', 'tblTempUsageDetail_20' ) start [2025-03-29 13:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789093', 'tblTempUsageDetail_20' ) end [2025-03-29 13:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789093', 'tblTempVendorCDR_20' ) start [2025-03-29 13:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789093', 'tblTempVendorCDR_20' ) end [2025-03-29 13:17:19] Production.INFO: ProcessCDR(1,14789093,1,1,2) [2025-03-29 13:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789093', 'tblTempUsageDetail_20' ) start [2025-03-29 13:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789093', 'tblTempUsageDetail_20' ) end [2025-03-29 13:17:25] Production.ERROR: pbx prc_insertCDR start [2025-03-29 13:17:25] Production.ERROR: pbx prc_insertCDR end [2025-03-29 13:17:25] Production.INFO: ==2239== Releasing lock... [2025-03-29 13:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 13:17:25] Production.INFO: 40.25 MB #Memory Used# [2025-03-29 13:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 10:18:05 [end_date_ymd] => 2025-03-29 13:18:05 [RateCDR] => 1 ) [2025-03-29 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-29 10:18:05' and `end` < '2025-03-29 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-29 13:18:18] Production.INFO: count ==1639 [2025-03-29 13:18:18] Production.ERROR: pbx CDR StartTime 2025-03-29 10:18:05 - End Time 2025-03-29 13:18:05 [2025-03-29 13:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 13:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789098', 'tblTempUsageDetail_20' ) start [2025-03-29 13:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789098', 'tblTempUsageDetail_20' ) end [2025-03-29 13:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789098', 'tblTempVendorCDR_20' ) start [2025-03-29 13:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789098', 'tblTempVendorCDR_20' ) end [2025-03-29 13:18:18] Production.INFO: ProcessCDR(1,14789098,1,1,2) [2025-03-29 13:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789098', 'tblTempUsageDetail_20' ) start [2025-03-29 13:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789098', 'tblTempUsageDetail_20' ) end [2025-03-29 13:18:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 13:18:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 13:18:22] Production.INFO: ==2375== Releasing lock... [2025-03-29 13:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 13:18:22] Production.INFO: 40.25 MB #Memory Used# [2025-03-29 13:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 10:19:06 [end_date_ymd] => 2025-03-29 13:19:06 [RateCDR] => 1 ) [2025-03-29 13:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 10:19:06' and `end` < '2025-03-29 13:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 13:19:19] Production.INFO: count ==1643 [2025-03-29 13:19:20] Production.ERROR: pbx CDR StartTime 2025-03-29 10:19:06 - End Time 2025-03-29 13:19:06 [2025-03-29 13:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 13:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789103', 'tblTempUsageDetail_20' ) start [2025-03-29 13:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789103', 'tblTempUsageDetail_20' ) end [2025-03-29 13:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789103', 'tblTempVendorCDR_20' ) start [2025-03-29 13:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789103', 'tblTempVendorCDR_20' ) end [2025-03-29 13:19:20] Production.INFO: ProcessCDR(1,14789103,1,1,2) [2025-03-29 13:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789103', 'tblTempUsageDetail_20' ) start [2025-03-29 13:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789103', 'tblTempUsageDetail_20' ) end [2025-03-29 13:19:25] Production.ERROR: pbx prc_insertCDR start [2025-03-29 13:19:25] Production.ERROR: pbx prc_insertCDR end [2025-03-29 13:19:25] Production.INFO: ==2461== Releasing lock... [2025-03-29 13:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 13:19:25] Production.INFO: 40.75 MB #Memory Used# [2025-03-29 13:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 10:20:06 [end_date_ymd] => 2025-03-29 13:20:06 [RateCDR] => 1 ) [2025-03-29 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-29 10:20:06' and `end` < '2025-03-29 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-29 13:20:18] Production.INFO: count ==1635 [2025-03-29 13:20:19] Production.ERROR: pbx CDR StartTime 2025-03-29 10:20:06 - End Time 2025-03-29 13:20:06 [2025-03-29 13:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 13:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789108', 'tblTempUsageDetail_20' ) start [2025-03-29 13:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789108', 'tblTempUsageDetail_20' ) end [2025-03-29 13:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789108', 'tblTempVendorCDR_20' ) start [2025-03-29 13:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789108', 'tblTempVendorCDR_20' ) end [2025-03-29 13:20:19] Production.INFO: ProcessCDR(1,14789108,1,1,2) [2025-03-29 13:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789108', 'tblTempUsageDetail_20' ) start [2025-03-29 13:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789108', 'tblTempUsageDetail_20' ) end [2025-03-29 13:20:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 13:20:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 13:20:24] Production.INFO: ==2544== Releasing lock... [2025-03-29 13:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 13:20:24] Production.INFO: 40.25 MB #Memory Used# [2025-03-29 13:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 10:21:05 [end_date_ymd] => 2025-03-29 13:21:05 [RateCDR] => 1 ) [2025-03-29 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-29 10:21:05' and `end` < '2025-03-29 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-29 13:21:18] Production.INFO: count ==1700 [2025-03-29 13:21:18] Production.ERROR: pbx CDR StartTime 2025-03-29 10:21:05 - End Time 2025-03-29 13:21:05 [2025-03-29 13:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 13:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789114', 'tblTempUsageDetail_20' ) start [2025-03-29 13:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789114', 'tblTempUsageDetail_20' ) end [2025-03-29 13:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789114', 'tblTempVendorCDR_20' ) start [2025-03-29 13:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789114', 'tblTempVendorCDR_20' ) end [2025-03-29 13:21:18] Production.INFO: ProcessCDR(1,14789114,1,1,2) [2025-03-29 13:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789114', 'tblTempUsageDetail_20' ) start [2025-03-29 13:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789114', 'tblTempUsageDetail_20' ) end [2025-03-29 13:21:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 13:21:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 13:21:24] Production.INFO: ==2622== Releasing lock... [2025-03-29 13:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 13:21:24] Production.INFO: 40.75 MB #Memory Used# [2025-03-29 13:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 10:22:05 [end_date_ymd] => 2025-03-29 13:22:05 [RateCDR] => 1 ) [2025-03-29 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-29 10:22:05' and `end` < '2025-03-29 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-29 13:22:18] Production.INFO: count ==1708 [2025-03-29 13:22:18] Production.ERROR: pbx CDR StartTime 2025-03-29 10:22:05 - End Time 2025-03-29 13:22:05 [2025-03-29 13:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 13:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789119', 'tblTempUsageDetail_20' ) start [2025-03-29 13:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789119', 'tblTempUsageDetail_20' ) end [2025-03-29 13:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789119', 'tblTempVendorCDR_20' ) start [2025-03-29 13:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789119', 'tblTempVendorCDR_20' ) end [2025-03-29 13:22:18] Production.INFO: ProcessCDR(1,14789119,1,1,2) [2025-03-29 13:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789119', 'tblTempUsageDetail_20' ) start [2025-03-29 13:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789119', 'tblTempUsageDetail_20' ) end [2025-03-29 13:22:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 13:22:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 13:22:23] Production.INFO: ==2700== Releasing lock... [2025-03-29 13:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 13:22:23] Production.INFO: 41 MB #Memory Used# [2025-03-29 13:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 10:23:05 [end_date_ymd] => 2025-03-29 13:23:05 [RateCDR] => 1 ) [2025-03-29 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-29 10:23:05' and `end` < '2025-03-29 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-29 13:23:18] Production.INFO: count ==1709 [2025-03-29 13:23:19] Production.ERROR: pbx CDR StartTime 2025-03-29 10:23:05 - End Time 2025-03-29 13:23:05 [2025-03-29 13:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 13:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789124', 'tblTempUsageDetail_20' ) start [2025-03-29 13:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789124', 'tblTempUsageDetail_20' ) end [2025-03-29 13:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789124', 'tblTempVendorCDR_20' ) start [2025-03-29 13:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789124', 'tblTempVendorCDR_20' ) end [2025-03-29 13:23:19] Production.INFO: ProcessCDR(1,14789124,1,1,2) [2025-03-29 13:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789124', 'tblTempUsageDetail_20' ) start [2025-03-29 13:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789124', 'tblTempUsageDetail_20' ) end [2025-03-29 13:23:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 13:23:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 13:23:22] Production.INFO: ==2776== Releasing lock... [2025-03-29 13:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 13:23:22] Production.INFO: 40.75 MB #Memory Used# [2025-03-29 13:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 10:24:05 [end_date_ymd] => 2025-03-29 13:24:05 [RateCDR] => 1 ) [2025-03-29 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-29 10:24:05' and `end` < '2025-03-29 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-29 13:24:18] Production.INFO: count ==1710 [2025-03-29 13:24:18] Production.ERROR: pbx CDR StartTime 2025-03-29 10:24:05 - End Time 2025-03-29 13:24:05 [2025-03-29 13:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 13:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789129', 'tblTempUsageDetail_20' ) start [2025-03-29 13:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789129', 'tblTempUsageDetail_20' ) end [2025-03-29 13:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789129', 'tblTempVendorCDR_20' ) start [2025-03-29 13:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789129', 'tblTempVendorCDR_20' ) end [2025-03-29 13:24:18] Production.INFO: ProcessCDR(1,14789129,1,1,2) [2025-03-29 13:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789129', 'tblTempUsageDetail_20' ) start [2025-03-29 13:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789129', 'tblTempUsageDetail_20' ) end [2025-03-29 13:24:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 13:24:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 13:24:22] Production.INFO: ==2850== Releasing lock... [2025-03-29 13:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 13:24:22] Production.INFO: 41 MB #Memory Used# [2025-03-29 13:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 10:25:06 [end_date_ymd] => 2025-03-29 13:25:06 [RateCDR] => 1 ) [2025-03-29 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-29 10:25:06' and `end` < '2025-03-29 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-29 13:25:18] Production.INFO: count ==1709 [2025-03-29 13:25:19] Production.ERROR: pbx CDR StartTime 2025-03-29 10:25:06 - End Time 2025-03-29 13:25:06 [2025-03-29 13:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789134', 'tblTempUsageDetail_20' ) start [2025-03-29 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789134', 'tblTempUsageDetail_20' ) end [2025-03-29 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789134', 'tblTempVendorCDR_20' ) start [2025-03-29 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789134', 'tblTempVendorCDR_20' ) end [2025-03-29 13:25:19] Production.INFO: ProcessCDR(1,14789134,1,1,2) [2025-03-29 13:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789134', 'tblTempUsageDetail_20' ) start [2025-03-29 13:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789134', 'tblTempUsageDetail_20' ) end [2025-03-29 13:25:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 13:25:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 13:25:22] Production.INFO: ==2928== Releasing lock... [2025-03-29 13:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 13:25:22] Production.INFO: 40.75 MB #Memory Used# [2025-03-29 13:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 10:26:06 [end_date_ymd] => 2025-03-29 13:26:06 [RateCDR] => 1 ) [2025-03-29 13: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-29 10:26:06' and `end` < '2025-03-29 13: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-29 13:26:18] Production.INFO: count ==1705 [2025-03-29 13:26:19] Production.ERROR: pbx CDR StartTime 2025-03-29 10:26:06 - End Time 2025-03-29 13:26:06 [2025-03-29 13:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 13:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789139', 'tblTempUsageDetail_20' ) start [2025-03-29 13:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789139', 'tblTempUsageDetail_20' ) end [2025-03-29 13:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789139', 'tblTempVendorCDR_20' ) start [2025-03-29 13:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789139', 'tblTempVendorCDR_20' ) end [2025-03-29 13:26:19] Production.INFO: ProcessCDR(1,14789139,1,1,2) [2025-03-29 13:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789139', 'tblTempUsageDetail_20' ) start [2025-03-29 13:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789139', 'tblTempUsageDetail_20' ) end [2025-03-29 13:26:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 13:26:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 13:26:22] Production.INFO: ==3001== Releasing lock... [2025-03-29 13:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 13:26:22] Production.INFO: 41 MB #Memory Used# [2025-03-29 13:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 10:27:06 [end_date_ymd] => 2025-03-29 13:27:06 [RateCDR] => 1 ) [2025-03-29 13:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 10:27:06' and `end` < '2025-03-29 13:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 13:27:18] Production.INFO: count ==1698 [2025-03-29 13:27:19] Production.ERROR: pbx CDR StartTime 2025-03-29 10:27:06 - End Time 2025-03-29 13:27:06 [2025-03-29 13:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 13:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789144', 'tblTempUsageDetail_20' ) start [2025-03-29 13:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789144', 'tblTempUsageDetail_20' ) end [2025-03-29 13:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789144', 'tblTempVendorCDR_20' ) start [2025-03-29 13:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789144', 'tblTempVendorCDR_20' ) end [2025-03-29 13:27:19] Production.INFO: ProcessCDR(1,14789144,1,1,2) [2025-03-29 13:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789144', 'tblTempUsageDetail_20' ) start [2025-03-29 13:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789144', 'tblTempUsageDetail_20' ) end [2025-03-29 13:27:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 13:27:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 13:27:23] Production.INFO: ==3079== Releasing lock... [2025-03-29 13:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 13:27:23] Production.INFO: 40.75 MB #Memory Used# [2025-03-29 13:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 10:28:06 [end_date_ymd] => 2025-03-29 13:28:06 [RateCDR] => 1 ) [2025-03-29 13: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-29 10:28:06' and `end` < '2025-03-29 13: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-29 13:28:18] Production.INFO: count ==1697 [2025-03-29 13:28:19] Production.ERROR: pbx CDR StartTime 2025-03-29 10:28:06 - End Time 2025-03-29 13:28:06 [2025-03-29 13:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 13:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789149', 'tblTempUsageDetail_20' ) start [2025-03-29 13:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789149', 'tblTempUsageDetail_20' ) end [2025-03-29 13:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789149', 'tblTempVendorCDR_20' ) start [2025-03-29 13:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789149', 'tblTempVendorCDR_20' ) end [2025-03-29 13:28:19] Production.INFO: ProcessCDR(1,14789149,1,1,2) [2025-03-29 13:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789149', 'tblTempUsageDetail_20' ) start [2025-03-29 13:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789149', 'tblTempUsageDetail_20' ) end [2025-03-29 13:28:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 13:28:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 13:28:22] Production.INFO: ==3165== Releasing lock... [2025-03-29 13:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 13:28:22] Production.INFO: 41 MB #Memory Used# [2025-03-29 13:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 10:29:05 [end_date_ymd] => 2025-03-29 13:29:05 [RateCDR] => 1 ) [2025-03-29 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-29 10:29:05' and `end` < '2025-03-29 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-29 13:29:17] Production.INFO: count ==1697 [2025-03-29 13:29:18] Production.ERROR: pbx CDR StartTime 2025-03-29 10:29:05 - End Time 2025-03-29 13:29:05 [2025-03-29 13:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 13:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789154', 'tblTempUsageDetail_20' ) start [2025-03-29 13:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789154', 'tblTempUsageDetail_20' ) end [2025-03-29 13:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789154', 'tblTempVendorCDR_20' ) start [2025-03-29 13:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789154', 'tblTempVendorCDR_20' ) end [2025-03-29 13:29:18] Production.INFO: ProcessCDR(1,14789154,1,1,2) [2025-03-29 13:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789154', 'tblTempUsageDetail_20' ) start [2025-03-29 13:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789154', 'tblTempUsageDetail_20' ) end [2025-03-29 13:29:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 13:29:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 13:29:22] Production.INFO: ==3238== Releasing lock... [2025-03-29 13:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 13:29:22] Production.INFO: 41.25 MB #Memory Used# [2025-03-29 13:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 10:30:06 [end_date_ymd] => 2025-03-29 13:30:06 [RateCDR] => 1 ) [2025-03-29 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-29 10:30:06' and `end` < '2025-03-29 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-29 13:30:19] Production.INFO: count ==1702 [2025-03-29 13:30:19] Production.ERROR: pbx CDR StartTime 2025-03-29 10:30:06 - End Time 2025-03-29 13:30:06 [2025-03-29 13:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 13:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789159', 'tblTempUsageDetail_20' ) start [2025-03-29 13:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789159', 'tblTempUsageDetail_20' ) end [2025-03-29 13:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789159', 'tblTempVendorCDR_20' ) start [2025-03-29 13:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789159', 'tblTempVendorCDR_20' ) end [2025-03-29 13:30:19] Production.INFO: ProcessCDR(1,14789159,1,1,2) [2025-03-29 13:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789159', 'tblTempUsageDetail_20' ) start [2025-03-29 13:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789159', 'tblTempUsageDetail_20' ) end [2025-03-29 13:30:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 13:30:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 13:30:24] Production.INFO: ==3318== Releasing lock... [2025-03-29 13:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 13:30:24] Production.INFO: 41 MB #Memory Used# [2025-03-29 13:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 10:31:05 [end_date_ymd] => 2025-03-29 13:31:05 [RateCDR] => 1 ) [2025-03-29 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-29 10:31:05' and `end` < '2025-03-29 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-29 13:31:18] Production.INFO: count ==1726 [2025-03-29 13:31:18] Production.ERROR: pbx CDR StartTime 2025-03-29 10:31:05 - End Time 2025-03-29 13:31:05 [2025-03-29 13:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 13:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789165', 'tblTempUsageDetail_20' ) start [2025-03-29 13:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789165', 'tblTempUsageDetail_20' ) end [2025-03-29 13:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789165', 'tblTempVendorCDR_20' ) start [2025-03-29 13:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789165', 'tblTempVendorCDR_20' ) end [2025-03-29 13:31:18] Production.INFO: ProcessCDR(1,14789165,1,1,2) [2025-03-29 13:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789165', 'tblTempUsageDetail_20' ) start [2025-03-29 13:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789165', 'tblTempUsageDetail_20' ) end [2025-03-29 13:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 13:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 13:31:22] Production.INFO: ==3402== Releasing lock... [2025-03-29 13:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 13:31:22] Production.INFO: 41 MB #Memory Used# [2025-03-29 13:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 10:32:05 [end_date_ymd] => 2025-03-29 13:32:05 [RateCDR] => 1 ) [2025-03-29 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-29 10:32:05' and `end` < '2025-03-29 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-29 13:32:18] Production.INFO: count ==1721 [2025-03-29 13:32:18] Production.ERROR: pbx CDR StartTime 2025-03-29 10:32:05 - End Time 2025-03-29 13:32:05 [2025-03-29 13:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 13:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789170', 'tblTempUsageDetail_20' ) start [2025-03-29 13:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789170', 'tblTempUsageDetail_20' ) end [2025-03-29 13:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789170', 'tblTempVendorCDR_20' ) start [2025-03-29 13:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789170', 'tblTempVendorCDR_20' ) end [2025-03-29 13:32:18] Production.INFO: ProcessCDR(1,14789170,1,1,2) [2025-03-29 13:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789170', 'tblTempUsageDetail_20' ) start [2025-03-29 13:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789170', 'tblTempUsageDetail_20' ) end [2025-03-29 13:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 13:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 13:32:22] Production.INFO: ==3480== Releasing lock... [2025-03-29 13:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 13:32:22] Production.INFO: 41 MB #Memory Used# [2025-03-29 13:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 10:33:05 [end_date_ymd] => 2025-03-29 13:33:05 [RateCDR] => 1 ) [2025-03-29 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-29 10:33:05' and `end` < '2025-03-29 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-29 13:33:17] Production.INFO: count ==1723 [2025-03-29 13:33:18] Production.ERROR: pbx CDR StartTime 2025-03-29 10:33:05 - End Time 2025-03-29 13:33:05 [2025-03-29 13:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 13:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789175', 'tblTempUsageDetail_20' ) start [2025-03-29 13:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789175', 'tblTempUsageDetail_20' ) end [2025-03-29 13:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789175', 'tblTempVendorCDR_20' ) start [2025-03-29 13:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789175', 'tblTempVendorCDR_20' ) end [2025-03-29 13:33:18] Production.INFO: ProcessCDR(1,14789175,1,1,2) [2025-03-29 13:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789175', 'tblTempUsageDetail_20' ) start [2025-03-29 13:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789175', 'tblTempUsageDetail_20' ) end [2025-03-29 13:33:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 13:33:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 13:33:23] Production.INFO: ==3562== Releasing lock... [2025-03-29 13:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 13:33:23] Production.INFO: 41 MB #Memory Used# [2025-03-29 13:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 10:34:05 [end_date_ymd] => 2025-03-29 13:34:05 [RateCDR] => 1 ) [2025-03-29 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-29 10:34:05' and `end` < '2025-03-29 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-29 13:34:18] Production.INFO: count ==1724 [2025-03-29 13:34:18] Production.ERROR: pbx CDR StartTime 2025-03-29 10:34:05 - End Time 2025-03-29 13:34:05 [2025-03-29 13:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 13:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789180', 'tblTempUsageDetail_20' ) start [2025-03-29 13:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789180', 'tblTempUsageDetail_20' ) end [2025-03-29 13:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789180', 'tblTempVendorCDR_20' ) start [2025-03-29 13:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789180', 'tblTempVendorCDR_20' ) end [2025-03-29 13:34:18] Production.INFO: ProcessCDR(1,14789180,1,1,2) [2025-03-29 13:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789180', 'tblTempUsageDetail_20' ) start [2025-03-29 13:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789180', 'tblTempUsageDetail_20' ) end [2025-03-29 13:34:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 13:34:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 13:34:23] Production.INFO: ==3678== Releasing lock... [2025-03-29 13:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 13:34:23] Production.INFO: 41 MB #Memory Used# [2025-03-29 13:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 10:35:05 [end_date_ymd] => 2025-03-29 13:35:05 [RateCDR] => 1 ) [2025-03-29 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-29 10:35:05' and `end` < '2025-03-29 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-29 13:35:18] Production.INFO: count ==1729 [2025-03-29 13:35:18] Production.ERROR: pbx CDR StartTime 2025-03-29 10:35:05 - End Time 2025-03-29 13:35:05 [2025-03-29 13:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 13:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789185', 'tblTempUsageDetail_20' ) start [2025-03-29 13:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789185', 'tblTempUsageDetail_20' ) end [2025-03-29 13:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789185', 'tblTempVendorCDR_20' ) start [2025-03-29 13:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789185', 'tblTempVendorCDR_20' ) end [2025-03-29 13:35:18] Production.INFO: ProcessCDR(1,14789185,1,1,2) [2025-03-29 13:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789185', 'tblTempUsageDetail_20' ) start [2025-03-29 13:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789185', 'tblTempUsageDetail_20' ) end [2025-03-29 13:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 13:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 13:35:22] Production.INFO: ==3758== Releasing lock... [2025-03-29 13:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 13:35:22] Production.INFO: 41 MB #Memory Used# [2025-03-29 13:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 10:36:06 [end_date_ymd] => 2025-03-29 13:36:06 [RateCDR] => 1 ) [2025-03-29 13:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 10:36:06' and `end` < '2025-03-29 13:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 13:36:19] Production.INFO: count ==1721 [2025-03-29 13:36:19] Production.ERROR: pbx CDR StartTime 2025-03-29 10:36:06 - End Time 2025-03-29 13:36:06 [2025-03-29 13:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 13:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789190', 'tblTempUsageDetail_20' ) start [2025-03-29 13:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789190', 'tblTempUsageDetail_20' ) end [2025-03-29 13:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789190', 'tblTempVendorCDR_20' ) start [2025-03-29 13:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789190', 'tblTempVendorCDR_20' ) end [2025-03-29 13:36:19] Production.INFO: ProcessCDR(1,14789190,1,1,2) [2025-03-29 13:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789190', 'tblTempUsageDetail_20' ) start [2025-03-29 13:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789190', 'tblTempUsageDetail_20' ) end [2025-03-29 13:36:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 13:36:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 13:36:23] Production.INFO: ==3836== Releasing lock... [2025-03-29 13:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 13:36:23] Production.INFO: 41 MB #Memory Used# [2025-03-29 13:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 10:37:05 [end_date_ymd] => 2025-03-29 13:37:05 [RateCDR] => 1 ) [2025-03-29 13:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 10:37:05' and `end` < '2025-03-29 13:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 13:37:18] Production.INFO: count ==1728 [2025-03-29 13:37:19] Production.ERROR: pbx CDR StartTime 2025-03-29 10:37:05 - End Time 2025-03-29 13:37:05 [2025-03-29 13:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 13:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789195', 'tblTempUsageDetail_20' ) start [2025-03-29 13:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789195', 'tblTempUsageDetail_20' ) end [2025-03-29 13:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789195', 'tblTempVendorCDR_20' ) start [2025-03-29 13:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789195', 'tblTempVendorCDR_20' ) end [2025-03-29 13:37:19] Production.INFO: ProcessCDR(1,14789195,1,1,2) [2025-03-29 13:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789195', 'tblTempUsageDetail_20' ) start [2025-03-29 13:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789195', 'tblTempUsageDetail_20' ) end [2025-03-29 13:37:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 13:37:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 13:37:24] Production.INFO: ==3910== Releasing lock... [2025-03-29 13:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 13:37:24] Production.INFO: 41 MB #Memory Used# [2025-03-29 13:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 10:38:05 [end_date_ymd] => 2025-03-29 13:38:05 [RateCDR] => 1 ) [2025-03-29 13:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 10:38:05' and `end` < '2025-03-29 13:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 13:38:18] Production.INFO: count ==1733 [2025-03-29 13:38:18] Production.ERROR: pbx CDR StartTime 2025-03-29 10:38:05 - End Time 2025-03-29 13:38:05 [2025-03-29 13:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 13:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789198', 'tblTempUsageDetail_20' ) start [2025-03-29 13:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789198', 'tblTempUsageDetail_20' ) end [2025-03-29 13:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789198', 'tblTempVendorCDR_20' ) start [2025-03-29 13:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789198', 'tblTempVendorCDR_20' ) end [2025-03-29 13:38:18] Production.INFO: ProcessCDR(1,14789198,1,1,2) [2025-03-29 13:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789198', 'tblTempUsageDetail_20' ) start [2025-03-29 13:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789198', 'tblTempUsageDetail_20' ) end [2025-03-29 13:38:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 13:38:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 13:38:23] Production.INFO: ==3983== Releasing lock... [2025-03-29 13:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 13:38:23] Production.INFO: 41.25 MB #Memory Used# [2025-03-29 13:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 10:39:05 [end_date_ymd] => 2025-03-29 13:39:05 [RateCDR] => 1 ) [2025-03-29 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-29 10:39:05' and `end` < '2025-03-29 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-29 13:39:17] Production.INFO: count ==1742 [2025-03-29 13:39:18] Production.ERROR: pbx CDR StartTime 2025-03-29 10:39:05 - End Time 2025-03-29 13:39:05 [2025-03-29 13:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 13:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789205', 'tblTempUsageDetail_20' ) start [2025-03-29 13:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789205', 'tblTempUsageDetail_20' ) end [2025-03-29 13:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789205', 'tblTempVendorCDR_20' ) start [2025-03-29 13:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789205', 'tblTempVendorCDR_20' ) end [2025-03-29 13:39:18] Production.INFO: ProcessCDR(1,14789205,1,1,2) [2025-03-29 13:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789205', 'tblTempUsageDetail_20' ) start [2025-03-29 13:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789205', 'tblTempUsageDetail_20' ) end [2025-03-29 13:39:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 13:39:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 13:39:23] Production.INFO: ==4056== Releasing lock... [2025-03-29 13:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 13:39:23] Production.INFO: 41.25 MB #Memory Used# [2025-03-29 13:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 10:40:06 [end_date_ymd] => 2025-03-29 13:40:06 [RateCDR] => 1 ) [2025-03-29 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-29 10:40:06' and `end` < '2025-03-29 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-29 13:40:19] Production.INFO: count ==1734 [2025-03-29 13:40:19] Production.ERROR: pbx CDR StartTime 2025-03-29 10:40:06 - End Time 2025-03-29 13:40:06 [2025-03-29 13:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 13:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789211', 'tblTempUsageDetail_20' ) start [2025-03-29 13:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789211', 'tblTempUsageDetail_20' ) end [2025-03-29 13:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789211', 'tblTempVendorCDR_20' ) start [2025-03-29 13:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789211', 'tblTempVendorCDR_20' ) end [2025-03-29 13:40:19] Production.INFO: ProcessCDR(1,14789211,1,1,2) [2025-03-29 13:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789211', 'tblTempUsageDetail_20' ) start [2025-03-29 13:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789211', 'tblTempUsageDetail_20' ) end [2025-03-29 13:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 13:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 13:40:22] Production.INFO: ==4134== Releasing lock... [2025-03-29 13:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 13:40:22] Production.INFO: 41 MB #Memory Used# [2025-03-29 13:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 10:41:05 [end_date_ymd] => 2025-03-29 13:41:05 [RateCDR] => 1 ) [2025-03-29 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-29 10:41:05' and `end` < '2025-03-29 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-29 13:41:17] Production.INFO: count ==1760 [2025-03-29 13:41:18] Production.ERROR: pbx CDR StartTime 2025-03-29 10:41:05 - End Time 2025-03-29 13:41:05 [2025-03-29 13:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 13:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789216', 'tblTempUsageDetail_20' ) start [2025-03-29 13:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789216', 'tblTempUsageDetail_20' ) end [2025-03-29 13:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789216', 'tblTempVendorCDR_20' ) start [2025-03-29 13:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789216', 'tblTempVendorCDR_20' ) end [2025-03-29 13:41:18] Production.INFO: ProcessCDR(1,14789216,1,1,2) [2025-03-29 13:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789216', 'tblTempUsageDetail_20' ) start [2025-03-29 13:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789216', 'tblTempUsageDetail_20' ) end [2025-03-29 13:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 13:41:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 13:41:23] Production.INFO: ==4213== Releasing lock... [2025-03-29 13:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 13:41:23] Production.INFO: 41.25 MB #Memory Used# [2025-03-29 13:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 10:42:06 [end_date_ymd] => 2025-03-29 13:42:06 [RateCDR] => 1 ) [2025-03-29 13:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 10:42:06' and `end` < '2025-03-29 13:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 13:42:18] Production.INFO: count ==1750 [2025-03-29 13:42:19] Production.ERROR: pbx CDR StartTime 2025-03-29 10:42:06 - End Time 2025-03-29 13:42:06 [2025-03-29 13:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 13:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789221', 'tblTempUsageDetail_20' ) start [2025-03-29 13:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789221', 'tblTempUsageDetail_20' ) end [2025-03-29 13:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789221', 'tblTempVendorCDR_20' ) start [2025-03-29 13:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789221', 'tblTempVendorCDR_20' ) end [2025-03-29 13:42:19] Production.INFO: ProcessCDR(1,14789221,1,1,2) [2025-03-29 13:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789221', 'tblTempUsageDetail_20' ) start [2025-03-29 13:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789221', 'tblTempUsageDetail_20' ) end [2025-03-29 13:42:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 13:42:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 13:42:24] Production.INFO: ==4289== Releasing lock... [2025-03-29 13:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 13:42:24] Production.INFO: 41.25 MB #Memory Used# [2025-03-29 13:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 10:43:05 [end_date_ymd] => 2025-03-29 13:43:05 [RateCDR] => 1 ) [2025-03-29 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-29 10:43:05' and `end` < '2025-03-29 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-29 13:43:18] Production.INFO: count ==1743 [2025-03-29 13:43:18] Production.ERROR: pbx CDR StartTime 2025-03-29 10:43:05 - End Time 2025-03-29 13:43:05 [2025-03-29 13:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 13:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789226', 'tblTempUsageDetail_20' ) start [2025-03-29 13:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789226', 'tblTempUsageDetail_20' ) end [2025-03-29 13:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789226', 'tblTempVendorCDR_20' ) start [2025-03-29 13:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789226', 'tblTempVendorCDR_20' ) end [2025-03-29 13:43:18] Production.INFO: ProcessCDR(1,14789226,1,1,2) [2025-03-29 13:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789226', 'tblTempUsageDetail_20' ) start [2025-03-29 13:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789226', 'tblTempUsageDetail_20' ) end [2025-03-29 13:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 13:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 13:43:22] Production.INFO: ==4363== Releasing lock... [2025-03-29 13:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 13:43:22] Production.INFO: 41.25 MB #Memory Used# [2025-03-29 13:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 10:44:05 [end_date_ymd] => 2025-03-29 13:44:05 [RateCDR] => 1 ) [2025-03-29 13:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 10:44:05' and `end` < '2025-03-29 13:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 13:44:18] Production.INFO: count ==1748 [2025-03-29 13:44:19] Production.ERROR: pbx CDR StartTime 2025-03-29 10:44:05 - End Time 2025-03-29 13:44:05 [2025-03-29 13:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 13:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789231', 'tblTempUsageDetail_20' ) start [2025-03-29 13:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789231', 'tblTempUsageDetail_20' ) end [2025-03-29 13:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789231', 'tblTempVendorCDR_20' ) start [2025-03-29 13:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789231', 'tblTempVendorCDR_20' ) end [2025-03-29 13:44:19] Production.INFO: ProcessCDR(1,14789231,1,1,2) [2025-03-29 13:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789231', 'tblTempUsageDetail_20' ) start [2025-03-29 13:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789231', 'tblTempUsageDetail_20' ) end [2025-03-29 13:44:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 13:44:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 13:44:23] Production.INFO: ==4439== Releasing lock... [2025-03-29 13:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 13:44:23] Production.INFO: 41 MB #Memory Used# [2025-03-29 13:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 10:45:06 [end_date_ymd] => 2025-03-29 13:45:06 [RateCDR] => 1 ) [2025-03-29 13: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-29 10:45:06' and `end` < '2025-03-29 13: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-29 13:45:19] Production.INFO: count ==1754 [2025-03-29 13:45:19] Production.ERROR: pbx CDR StartTime 2025-03-29 10:45:06 - End Time 2025-03-29 13:45:06 [2025-03-29 13:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 13:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789236', 'tblTempUsageDetail_20' ) start [2025-03-29 13:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789236', 'tblTempUsageDetail_20' ) end [2025-03-29 13:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789236', 'tblTempVendorCDR_20' ) start [2025-03-29 13:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789236', 'tblTempVendorCDR_20' ) end [2025-03-29 13:45:19] Production.INFO: ProcessCDR(1,14789236,1,1,2) [2025-03-29 13:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789236', 'tblTempUsageDetail_20' ) start [2025-03-29 13:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789236', 'tblTempUsageDetail_20' ) end [2025-03-29 13:45:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 13:45:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 13:45:23] Production.INFO: ==4511== Releasing lock... [2025-03-29 13:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 13:45:23] Production.INFO: 41.25 MB #Memory Used# [2025-03-29 13:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 10:46:06 [end_date_ymd] => 2025-03-29 13:46:06 [RateCDR] => 1 ) [2025-03-29 13:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 10:46:06' and `end` < '2025-03-29 13:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 13:46:18] Production.INFO: count ==1759 [2025-03-29 13:46:19] Production.ERROR: pbx CDR StartTime 2025-03-29 10:46:06 - End Time 2025-03-29 13:46:06 [2025-03-29 13:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 13:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789241', 'tblTempUsageDetail_20' ) start [2025-03-29 13:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789241', 'tblTempUsageDetail_20' ) end [2025-03-29 13:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789241', 'tblTempVendorCDR_20' ) start [2025-03-29 13:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789241', 'tblTempVendorCDR_20' ) end [2025-03-29 13:46:19] Production.INFO: ProcessCDR(1,14789241,1,1,2) [2025-03-29 13:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789241', 'tblTempUsageDetail_20' ) start [2025-03-29 13:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789241', 'tblTempUsageDetail_20' ) end [2025-03-29 13:46:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 13:46:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 13:46:23] Production.INFO: ==4593== Releasing lock... [2025-03-29 13:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 13:46:23] Production.INFO: 41.25 MB #Memory Used# [2025-03-29 13:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 10:47:05 [end_date_ymd] => 2025-03-29 13:47:05 [RateCDR] => 1 ) [2025-03-29 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-29 10:47:05' and `end` < '2025-03-29 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-29 13:47:17] Production.INFO: count ==1758 [2025-03-29 13:47:18] Production.ERROR: pbx CDR StartTime 2025-03-29 10:47:05 - End Time 2025-03-29 13:47:05 [2025-03-29 13:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 13:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789246', 'tblTempUsageDetail_20' ) start [2025-03-29 13:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789246', 'tblTempUsageDetail_20' ) end [2025-03-29 13:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789246', 'tblTempVendorCDR_20' ) start [2025-03-29 13:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789246', 'tblTempVendorCDR_20' ) end [2025-03-29 13:47:18] Production.INFO: ProcessCDR(1,14789246,1,1,2) [2025-03-29 13:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789246', 'tblTempUsageDetail_20' ) start [2025-03-29 13:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789246', 'tblTempUsageDetail_20' ) end [2025-03-29 13:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 13:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 13:47:22] Production.INFO: ==4677== Releasing lock... [2025-03-29 13:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 13:47:22] Production.INFO: 41.5 MB #Memory Used# [2025-03-29 13:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 10:48:05 [end_date_ymd] => 2025-03-29 13:48:05 [RateCDR] => 1 ) [2025-03-29 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-29 10:48:05' and `end` < '2025-03-29 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-29 13:48:18] Production.INFO: count ==1760 [2025-03-29 13:48:19] Production.ERROR: pbx CDR StartTime 2025-03-29 10:48:05 - End Time 2025-03-29 13:48:05 [2025-03-29 13:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 13:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789251', 'tblTempUsageDetail_20' ) start [2025-03-29 13:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789251', 'tblTempUsageDetail_20' ) end [2025-03-29 13:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789251', 'tblTempVendorCDR_20' ) start [2025-03-29 13:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789251', 'tblTempVendorCDR_20' ) end [2025-03-29 13:48:19] Production.INFO: ProcessCDR(1,14789251,1,1,2) [2025-03-29 13:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789251', 'tblTempUsageDetail_20' ) start [2025-03-29 13:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789251', 'tblTempUsageDetail_20' ) end [2025-03-29 13:48:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 13:48:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 13:48:24] Production.INFO: ==4755== Releasing lock... [2025-03-29 13:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 13:48:24] Production.INFO: 41.25 MB #Memory Used# [2025-03-29 13:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 10:49:06 [end_date_ymd] => 2025-03-29 13:49:06 [RateCDR] => 1 ) [2025-03-29 13:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 10:49:06' and `end` < '2025-03-29 13:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 13:49:18] Production.INFO: count ==1762 [2025-03-29 13:49:19] Production.ERROR: pbx CDR StartTime 2025-03-29 10:49:06 - End Time 2025-03-29 13:49:06 [2025-03-29 13:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 13:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789256', 'tblTempUsageDetail_20' ) start [2025-03-29 13:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789256', 'tblTempUsageDetail_20' ) end [2025-03-29 13:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789256', 'tblTempVendorCDR_20' ) start [2025-03-29 13:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789256', 'tblTempVendorCDR_20' ) end [2025-03-29 13:49:19] Production.INFO: ProcessCDR(1,14789256,1,1,2) [2025-03-29 13:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789256', 'tblTempUsageDetail_20' ) start [2025-03-29 13:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789256', 'tblTempUsageDetail_20' ) end [2025-03-29 13:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 13:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 13:49:22] Production.INFO: ==4874== Releasing lock... [2025-03-29 13:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 13:49:22] Production.INFO: 41.25 MB #Memory Used# [2025-03-29 13:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 10:50:06 [end_date_ymd] => 2025-03-29 13:50:06 [RateCDR] => 1 ) [2025-03-29 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-29 10:50:06' and `end` < '2025-03-29 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-29 13:50:18] Production.INFO: count ==1775 [2025-03-29 13:50:19] Production.ERROR: pbx CDR StartTime 2025-03-29 10:50:06 - End Time 2025-03-29 13:50:06 [2025-03-29 13:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 13:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789262', 'tblTempUsageDetail_20' ) start [2025-03-29 13:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789262', 'tblTempUsageDetail_20' ) end [2025-03-29 13:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789262', 'tblTempVendorCDR_20' ) start [2025-03-29 13:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789262', 'tblTempVendorCDR_20' ) end [2025-03-29 13:50:19] Production.INFO: ProcessCDR(1,14789262,1,1,2) [2025-03-29 13:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789262', 'tblTempUsageDetail_20' ) start [2025-03-29 13:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789262', 'tblTempUsageDetail_20' ) end [2025-03-29 13:50:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 13:50:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 13:50:24] Production.INFO: ==4948== Releasing lock... [2025-03-29 13:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 13:50:24] Production.INFO: 41.25 MB #Memory Used# [2025-03-29 13:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 10:51:05 [end_date_ymd] => 2025-03-29 13:51:05 [RateCDR] => 1 ) [2025-03-29 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-29 10:51:05' and `end` < '2025-03-29 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-29 13:51:18] Production.INFO: count ==1753 [2025-03-29 13:51:18] Production.ERROR: pbx CDR StartTime 2025-03-29 10:51:05 - End Time 2025-03-29 13:51:05 [2025-03-29 13:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 13:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789267', 'tblTempUsageDetail_20' ) start [2025-03-29 13:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789267', 'tblTempUsageDetail_20' ) end [2025-03-29 13:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789267', 'tblTempVendorCDR_20' ) start [2025-03-29 13:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789267', 'tblTempVendorCDR_20' ) end [2025-03-29 13:51:18] Production.INFO: ProcessCDR(1,14789267,1,1,2) [2025-03-29 13:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789267', 'tblTempUsageDetail_20' ) start [2025-03-29 13:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789267', 'tblTempUsageDetail_20' ) end [2025-03-29 13:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 13:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 13:51:22] Production.INFO: ==5027== Releasing lock... [2025-03-29 13:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 13:51:22] Production.INFO: 41.25 MB #Memory Used# [2025-03-29 13:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 10:52:05 [end_date_ymd] => 2025-03-29 13:52:05 [RateCDR] => 1 ) [2025-03-29 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-29 10:52:05' and `end` < '2025-03-29 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-29 13:52:18] Production.INFO: count ==1747 [2025-03-29 13:52:19] Production.ERROR: pbx CDR StartTime 2025-03-29 10:52:05 - End Time 2025-03-29 13:52:05 [2025-03-29 13:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 13:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789272', 'tblTempUsageDetail_20' ) start [2025-03-29 13:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789272', 'tblTempUsageDetail_20' ) end [2025-03-29 13:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789272', 'tblTempVendorCDR_20' ) start [2025-03-29 13:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789272', 'tblTempVendorCDR_20' ) end [2025-03-29 13:52:19] Production.INFO: ProcessCDR(1,14789272,1,1,2) [2025-03-29 13:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789272', 'tblTempUsageDetail_20' ) start [2025-03-29 13:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789272', 'tblTempUsageDetail_20' ) end [2025-03-29 13:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 13:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 13:52:22] Production.INFO: ==5101== Releasing lock... [2025-03-29 13:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 13:52:22] Production.INFO: 41.25 MB #Memory Used# [2025-03-29 13:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 10:53:05 [end_date_ymd] => 2025-03-29 13:53:05 [RateCDR] => 1 ) [2025-03-29 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-29 10:53:05' and `end` < '2025-03-29 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-29 13:53:18] Production.INFO: count ==1742 [2025-03-29 13:53:19] Production.ERROR: pbx CDR StartTime 2025-03-29 10:53:05 - End Time 2025-03-29 13:53:05 [2025-03-29 13:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 13:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789277', 'tblTempUsageDetail_20' ) start [2025-03-29 13:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789277', 'tblTempUsageDetail_20' ) end [2025-03-29 13:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789277', 'tblTempVendorCDR_20' ) start [2025-03-29 13:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789277', 'tblTempVendorCDR_20' ) end [2025-03-29 13:53:19] Production.INFO: ProcessCDR(1,14789277,1,1,2) [2025-03-29 13:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789277', 'tblTempUsageDetail_20' ) start [2025-03-29 13:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789277', 'tblTempUsageDetail_20' ) end [2025-03-29 13:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 13:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 13:53:22] Production.INFO: ==5177== Releasing lock... [2025-03-29 13:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 13:53:22] Production.INFO: 41 MB #Memory Used# [2025-03-29 13:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 10:54:05 [end_date_ymd] => 2025-03-29 13:54:05 [RateCDR] => 1 ) [2025-03-29 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-29 10:54:05' and `end` < '2025-03-29 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-29 13:54:18] Production.INFO: count ==1737 [2025-03-29 13:54:18] Production.ERROR: pbx CDR StartTime 2025-03-29 10:54:05 - End Time 2025-03-29 13:54:05 [2025-03-29 13:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 13:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789282', 'tblTempUsageDetail_20' ) start [2025-03-29 13:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789282', 'tblTempUsageDetail_20' ) end [2025-03-29 13:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789282', 'tblTempVendorCDR_20' ) start [2025-03-29 13:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789282', 'tblTempVendorCDR_20' ) end [2025-03-29 13:54:18] Production.INFO: ProcessCDR(1,14789282,1,1,2) [2025-03-29 13:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789282', 'tblTempUsageDetail_20' ) start [2025-03-29 13:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789282', 'tblTempUsageDetail_20' ) end [2025-03-29 13:54:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 13:54:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 13:54:24] Production.INFO: ==5250== Releasing lock... [2025-03-29 13:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 13:54:24] Production.INFO: 41 MB #Memory Used# [2025-03-29 13:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 10:55:06 [end_date_ymd] => 2025-03-29 13:55:06 [RateCDR] => 1 ) [2025-03-29 13:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 10:55:06' and `end` < '2025-03-29 13:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 13:55:19] Production.INFO: count ==1737 [2025-03-29 13:55:19] Production.ERROR: pbx CDR StartTime 2025-03-29 10:55:06 - End Time 2025-03-29 13:55:06 [2025-03-29 13:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 13:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789287', 'tblTempUsageDetail_20' ) start [2025-03-29 13:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789287', 'tblTempUsageDetail_20' ) end [2025-03-29 13:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789287', 'tblTempVendorCDR_20' ) start [2025-03-29 13:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789287', 'tblTempVendorCDR_20' ) end [2025-03-29 13:55:19] Production.INFO: ProcessCDR(1,14789287,1,1,2) [2025-03-29 13:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789287', 'tblTempUsageDetail_20' ) start [2025-03-29 13:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789287', 'tblTempUsageDetail_20' ) end [2025-03-29 13:55:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 13:55:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 13:55:23] Production.INFO: ==5333== Releasing lock... [2025-03-29 13:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 13:55:23] Production.INFO: 41 MB #Memory Used# [2025-03-29 13:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 10:56:05 [end_date_ymd] => 2025-03-29 13:56:05 [RateCDR] => 1 ) [2025-03-29 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-29 10:56:05' and `end` < '2025-03-29 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-29 13:56:18] Production.INFO: count ==1738 [2025-03-29 13:56:19] Production.ERROR: pbx CDR StartTime 2025-03-29 10:56:05 - End Time 2025-03-29 13:56:05 [2025-03-29 13:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 13:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789292', 'tblTempUsageDetail_20' ) start [2025-03-29 13:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789292', 'tblTempUsageDetail_20' ) end [2025-03-29 13:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789292', 'tblTempVendorCDR_20' ) start [2025-03-29 13:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789292', 'tblTempVendorCDR_20' ) end [2025-03-29 13:56:19] Production.INFO: ProcessCDR(1,14789292,1,1,2) [2025-03-29 13:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789292', 'tblTempUsageDetail_20' ) start [2025-03-29 13:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789292', 'tblTempUsageDetail_20' ) end [2025-03-29 13:56:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 13:56:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 13:56:24] Production.INFO: ==5407== Releasing lock... [2025-03-29 13:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 13:56:24] Production.INFO: 41 MB #Memory Used# [2025-03-29 13:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 10:57:06 [end_date_ymd] => 2025-03-29 13:57:06 [RateCDR] => 1 ) [2025-03-29 13: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-29 10:57:06' and `end` < '2025-03-29 13: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-29 13:57:19] Production.INFO: count ==1736 [2025-03-29 13:57:19] Production.ERROR: pbx CDR StartTime 2025-03-29 10:57:06 - End Time 2025-03-29 13:57:06 [2025-03-29 13:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 13:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789297', 'tblTempUsageDetail_20' ) start [2025-03-29 13:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789297', 'tblTempUsageDetail_20' ) end [2025-03-29 13:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789297', 'tblTempVendorCDR_20' ) start [2025-03-29 13:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789297', 'tblTempVendorCDR_20' ) end [2025-03-29 13:57:19] Production.INFO: ProcessCDR(1,14789297,1,1,2) [2025-03-29 13:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789297', 'tblTempUsageDetail_20' ) start [2025-03-29 13:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789297', 'tblTempUsageDetail_20' ) end [2025-03-29 13:57:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 13:57:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 13:57:23] Production.INFO: ==5485== Releasing lock... [2025-03-29 13:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 13:57:23] Production.INFO: 41.25 MB #Memory Used# [2025-03-29 13:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 10:58:05 [end_date_ymd] => 2025-03-29 13:58:05 [RateCDR] => 1 ) [2025-03-29 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-29 10:58:05' and `end` < '2025-03-29 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-29 13:58:18] Production.INFO: count ==1734 [2025-03-29 13:58:18] Production.ERROR: pbx CDR StartTime 2025-03-29 10:58:05 - End Time 2025-03-29 13:58:05 [2025-03-29 13:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 13:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789302', 'tblTempUsageDetail_20' ) start [2025-03-29 13:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789302', 'tblTempUsageDetail_20' ) end [2025-03-29 13:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789302', 'tblTempVendorCDR_20' ) start [2025-03-29 13:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789302', 'tblTempVendorCDR_20' ) end [2025-03-29 13:58:18] Production.INFO: ProcessCDR(1,14789302,1,1,2) [2025-03-29 13:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789302', 'tblTempUsageDetail_20' ) start [2025-03-29 13:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789302', 'tblTempUsageDetail_20' ) end [2025-03-29 13:58:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 13:58:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 13:58:23] Production.INFO: ==5557== Releasing lock... [2025-03-29 13:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 13:58:23] Production.INFO: 41 MB #Memory Used# [2025-03-29 13:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 10:59:06 [end_date_ymd] => 2025-03-29 13:59:06 [RateCDR] => 1 ) [2025-03-29 13: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-29 10:59:06' and `end` < '2025-03-29 13: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-29 13:59:18] Production.INFO: count ==1724 [2025-03-29 13:59:19] Production.ERROR: pbx CDR StartTime 2025-03-29 10:59:06 - End Time 2025-03-29 13:59:06 [2025-03-29 13:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 13:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789307', 'tblTempUsageDetail_20' ) start [2025-03-29 13:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789307', 'tblTempUsageDetail_20' ) end [2025-03-29 13:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789307', 'tblTempVendorCDR_20' ) start [2025-03-29 13:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789307', 'tblTempVendorCDR_20' ) end [2025-03-29 13:59:19] Production.INFO: ProcessCDR(1,14789307,1,1,2) [2025-03-29 13:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 13:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 13:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789307', 'tblTempUsageDetail_20' ) start [2025-03-29 13:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789307', 'tblTempUsageDetail_20' ) end [2025-03-29 13:59:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 13:59:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 13:59:22] Production.INFO: ==5634== Releasing lock... [2025-03-29 13:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 13:59:22] Production.INFO: 41 MB #Memory Used# [2025-03-29 14:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 11:00:06 [end_date_ymd] => 2025-03-29 14:00:06 [RateCDR] => 1 ) [2025-03-29 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-29 11:00:06' and `end` < '2025-03-29 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-29 14:00:19] Production.INFO: count ==1730 [2025-03-29 14:00:19] Production.ERROR: pbx CDR StartTime 2025-03-29 11:00:06 - End Time 2025-03-29 14:00:06 [2025-03-29 14:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 14:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789313', 'tblTempUsageDetail_20' ) start [2025-03-29 14:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789313', 'tblTempUsageDetail_20' ) end [2025-03-29 14:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789313', 'tblTempVendorCDR_20' ) start [2025-03-29 14:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789313', 'tblTempVendorCDR_20' ) end [2025-03-29 14:00:19] Production.INFO: ProcessCDR(1,14789313,1,1,2) [2025-03-29 14:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789313', 'tblTempUsageDetail_20' ) start [2025-03-29 14:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789313', 'tblTempUsageDetail_20' ) end [2025-03-29 14:00:25] Production.ERROR: pbx prc_insertCDR start [2025-03-29 14:00:25] Production.ERROR: pbx prc_insertCDR end [2025-03-29 14:00:25] Production.INFO: ==5712== Releasing lock... [2025-03-29 14:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 14:00:25] Production.INFO: 41 MB #Memory Used# [2025-03-29 14:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 11:01:05 [end_date_ymd] => 2025-03-29 14:01:05 [RateCDR] => 1 ) [2025-03-29 14:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 11:01:05' and `end` < '2025-03-29 14:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 14:01:18] Production.INFO: count ==1755 [2025-03-29 14:01:19] Production.ERROR: pbx CDR StartTime 2025-03-29 11:01:05 - End Time 2025-03-29 14:01:05 [2025-03-29 14:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 14:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789318', 'tblTempUsageDetail_20' ) start [2025-03-29 14:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789318', 'tblTempUsageDetail_20' ) end [2025-03-29 14:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789318', 'tblTempVendorCDR_20' ) start [2025-03-29 14:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789318', 'tblTempVendorCDR_20' ) end [2025-03-29 14:01:19] Production.INFO: ProcessCDR(1,14789318,1,1,2) [2025-03-29 14:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789318', 'tblTempUsageDetail_20' ) start [2025-03-29 14:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789318', 'tblTempUsageDetail_20' ) end [2025-03-29 14:01:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 14:01:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 14:01:24] Production.INFO: ==5801== Releasing lock... [2025-03-29 14:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 14:01:24] Production.INFO: 41.25 MB #Memory Used# [2025-03-29 14:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 11:02:06 [end_date_ymd] => 2025-03-29 14:02:06 [RateCDR] => 1 ) [2025-03-29 14: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-29 11:02:06' and `end` < '2025-03-29 14: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-29 14:02:19] Production.INFO: count ==1757 [2025-03-29 14:02:19] Production.ERROR: pbx CDR StartTime 2025-03-29 11:02:06 - End Time 2025-03-29 14:02:06 [2025-03-29 14:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 14:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789323', 'tblTempUsageDetail_20' ) start [2025-03-29 14:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789323', 'tblTempUsageDetail_20' ) end [2025-03-29 14:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789323', 'tblTempVendorCDR_20' ) start [2025-03-29 14:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789323', 'tblTempVendorCDR_20' ) end [2025-03-29 14:02:19] Production.INFO: ProcessCDR(1,14789323,1,1,2) [2025-03-29 14:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789323', 'tblTempUsageDetail_20' ) start [2025-03-29 14:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789323', 'tblTempUsageDetail_20' ) end [2025-03-29 14:02:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 14:02:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 14:02:23] Production.INFO: ==5882== Releasing lock... [2025-03-29 14:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 14:02:23] Production.INFO: 41.25 MB #Memory Used# [2025-03-29 14:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 11:03:06 [end_date_ymd] => 2025-03-29 14:03:06 [RateCDR] => 1 ) [2025-03-29 14: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-29 11:03:06' and `end` < '2025-03-29 14: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-29 14:03:18] Production.INFO: count ==1740 [2025-03-29 14:03:19] Production.ERROR: pbx CDR StartTime 2025-03-29 11:03:06 - End Time 2025-03-29 14:03:06 [2025-03-29 14:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 14:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789328', 'tblTempUsageDetail_20' ) start [2025-03-29 14:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789328', 'tblTempUsageDetail_20' ) end [2025-03-29 14:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789328', 'tblTempVendorCDR_20' ) start [2025-03-29 14:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789328', 'tblTempVendorCDR_20' ) end [2025-03-29 14:03:19] Production.INFO: ProcessCDR(1,14789328,1,1,2) [2025-03-29 14:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789328', 'tblTempUsageDetail_20' ) start [2025-03-29 14:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789328', 'tblTempUsageDetail_20' ) end [2025-03-29 14:03:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 14:03:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 14:03:23] Production.INFO: ==5964== Releasing lock... [2025-03-29 14:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 14:03:23] Production.INFO: 41.25 MB #Memory Used# [2025-03-29 14:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 11:04:06 [end_date_ymd] => 2025-03-29 14:04:06 [RateCDR] => 1 ) [2025-03-29 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-29 11:04:06' and `end` < '2025-03-29 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-29 14:04:19] Production.INFO: count ==1753 [2025-03-29 14:04:19] Production.ERROR: pbx CDR StartTime 2025-03-29 11:04:06 - End Time 2025-03-29 14:04:06 [2025-03-29 14:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 14:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789333', 'tblTempUsageDetail_20' ) start [2025-03-29 14:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789333', 'tblTempUsageDetail_20' ) end [2025-03-29 14:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789333', 'tblTempVendorCDR_20' ) start [2025-03-29 14:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789333', 'tblTempVendorCDR_20' ) end [2025-03-29 14:04:19] Production.INFO: ProcessCDR(1,14789333,1,1,2) [2025-03-29 14:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789333', 'tblTempUsageDetail_20' ) start [2025-03-29 14:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789333', 'tblTempUsageDetail_20' ) end [2025-03-29 14:04:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 14:04:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 14:04:23] Production.INFO: ==6040== Releasing lock... [2025-03-29 14:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 14:04:23] Production.INFO: 41.25 MB #Memory Used# [2025-03-29 14:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 11:05:05 [end_date_ymd] => 2025-03-29 14:05:05 [RateCDR] => 1 ) [2025-03-29 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-29 11:05:05' and `end` < '2025-03-29 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-29 14:05:18] Production.INFO: count ==1745 [2025-03-29 14:05:19] Production.ERROR: pbx CDR StartTime 2025-03-29 11:05:05 - End Time 2025-03-29 14:05:05 [2025-03-29 14:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 14:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789338', 'tblTempUsageDetail_20' ) start [2025-03-29 14:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789338', 'tblTempUsageDetail_20' ) end [2025-03-29 14:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789338', 'tblTempVendorCDR_20' ) start [2025-03-29 14:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789338', 'tblTempVendorCDR_20' ) end [2025-03-29 14:05:19] Production.INFO: ProcessCDR(1,14789338,1,1,2) [2025-03-29 14:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789338', 'tblTempUsageDetail_20' ) start [2025-03-29 14:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789338', 'tblTempUsageDetail_20' ) end [2025-03-29 14:05:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 14:05:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 14:05:23] Production.INFO: ==6152== Releasing lock... [2025-03-29 14:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 14:05:23] Production.INFO: 41.25 MB #Memory Used# [2025-03-29 14:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 11:06:06 [end_date_ymd] => 2025-03-29 14:06:06 [RateCDR] => 1 ) [2025-03-29 14:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 11:06:06' and `end` < '2025-03-29 14:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 14:06:19] Production.INFO: count ==1745 [2025-03-29 14:06:19] Production.ERROR: pbx CDR StartTime 2025-03-29 11:06:06 - End Time 2025-03-29 14:06:06 [2025-03-29 14:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 14:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789343', 'tblTempUsageDetail_20' ) start [2025-03-29 14:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789343', 'tblTempUsageDetail_20' ) end [2025-03-29 14:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789343', 'tblTempVendorCDR_20' ) start [2025-03-29 14:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789343', 'tblTempVendorCDR_20' ) end [2025-03-29 14:06:19] Production.INFO: ProcessCDR(1,14789343,1,1,2) [2025-03-29 14:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789343', 'tblTempUsageDetail_20' ) start [2025-03-29 14:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789343', 'tblTempUsageDetail_20' ) end [2025-03-29 14:06:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 14:06:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 14:06:23] Production.INFO: ==6234== Releasing lock... [2025-03-29 14:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 14:06:23] Production.INFO: 41.25 MB #Memory Used# [2025-03-29 14:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 11:07:05 [end_date_ymd] => 2025-03-29 14:07:05 [RateCDR] => 1 ) [2025-03-29 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-29 11:07:05' and `end` < '2025-03-29 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-29 14:07:18] Production.INFO: count ==1748 [2025-03-29 14:07:18] Production.ERROR: pbx CDR StartTime 2025-03-29 11:07:05 - End Time 2025-03-29 14:07:05 [2025-03-29 14:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 14:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789348', 'tblTempUsageDetail_20' ) start [2025-03-29 14:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789348', 'tblTempUsageDetail_20' ) end [2025-03-29 14:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789348', 'tblTempVendorCDR_20' ) start [2025-03-29 14:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789348', 'tblTempVendorCDR_20' ) end [2025-03-29 14:07:19] Production.INFO: ProcessCDR(1,14789348,1,1,2) [2025-03-29 14:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789348', 'tblTempUsageDetail_20' ) start [2025-03-29 14:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789348', 'tblTempUsageDetail_20' ) end [2025-03-29 14:07:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 14:07:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 14:07:23] Production.INFO: ==6320== Releasing lock... [2025-03-29 14:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 14:07:23] Production.INFO: 41.25 MB #Memory Used# [2025-03-29 14:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 11:08:06 [end_date_ymd] => 2025-03-29 14:08:06 [RateCDR] => 1 ) [2025-03-29 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-29 11:08:06' and `end` < '2025-03-29 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-29 14:08:18] Production.INFO: count ==1752 [2025-03-29 14:08:19] Production.ERROR: pbx CDR StartTime 2025-03-29 11:08:06 - End Time 2025-03-29 14:08:06 [2025-03-29 14:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 14:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789353', 'tblTempUsageDetail_20' ) start [2025-03-29 14:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789353', 'tblTempUsageDetail_20' ) end [2025-03-29 14:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789353', 'tblTempVendorCDR_20' ) start [2025-03-29 14:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789353', 'tblTempVendorCDR_20' ) end [2025-03-29 14:08:19] Production.INFO: ProcessCDR(1,14789353,1,1,2) [2025-03-29 14:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789353', 'tblTempUsageDetail_20' ) start [2025-03-29 14:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789353', 'tblTempUsageDetail_20' ) end [2025-03-29 14:08:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 14:08:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 14:08:24] Production.INFO: ==6415== Releasing lock... [2025-03-29 14:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 14:08:24] Production.INFO: 41.5 MB #Memory Used# [2025-03-29 14:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 11:09:05 [end_date_ymd] => 2025-03-29 14:09:05 [RateCDR] => 1 ) [2025-03-29 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-29 11:09:05' and `end` < '2025-03-29 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-29 14:09:18] Production.INFO: count ==1748 [2025-03-29 14:09:19] Production.ERROR: pbx CDR StartTime 2025-03-29 11:09:05 - End Time 2025-03-29 14:09:05 [2025-03-29 14:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 14:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789358', 'tblTempUsageDetail_20' ) start [2025-03-29 14:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789358', 'tblTempUsageDetail_20' ) end [2025-03-29 14:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789358', 'tblTempVendorCDR_20' ) start [2025-03-29 14:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789358', 'tblTempVendorCDR_20' ) end [2025-03-29 14:09:19] Production.INFO: ProcessCDR(1,14789358,1,1,2) [2025-03-29 14:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789358', 'tblTempUsageDetail_20' ) start [2025-03-29 14:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789358', 'tblTempUsageDetail_20' ) end [2025-03-29 14:09:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 14:09:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 14:09:24] Production.INFO: ==6502== Releasing lock... [2025-03-29 14:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 14:09:24] Production.INFO: 41.5 MB #Memory Used# [2025-03-29 14:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 11:10:06 [end_date_ymd] => 2025-03-29 14:10:06 [RateCDR] => 1 ) [2025-03-29 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-29 11:10:06' and `end` < '2025-03-29 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-29 14:10:19] Production.INFO: count ==1747 [2025-03-29 14:10:20] Production.ERROR: pbx CDR StartTime 2025-03-29 11:10:06 - End Time 2025-03-29 14:10:06 [2025-03-29 14:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 14:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789364', 'tblTempUsageDetail_20' ) start [2025-03-29 14:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789364', 'tblTempUsageDetail_20' ) end [2025-03-29 14:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789364', 'tblTempVendorCDR_20' ) start [2025-03-29 14:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789364', 'tblTempVendorCDR_20' ) end [2025-03-29 14:10:20] Production.INFO: ProcessCDR(1,14789364,1,1,2) [2025-03-29 14:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789364', 'tblTempUsageDetail_20' ) start [2025-03-29 14:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789364', 'tblTempUsageDetail_20' ) end [2025-03-29 14:10:25] Production.ERROR: pbx prc_insertCDR start [2025-03-29 14:10:25] Production.ERROR: pbx prc_insertCDR end [2025-03-29 14:10:25] Production.INFO: ==6593== Releasing lock... [2025-03-29 14:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 14:10:25] Production.INFO: 41.5 MB #Memory Used# [2025-03-29 14:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 11:11:05 [end_date_ymd] => 2025-03-29 14:11:05 [RateCDR] => 1 ) [2025-03-29 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-29 11:11:05' and `end` < '2025-03-29 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-29 14:11:18] Production.INFO: count ==1775 [2025-03-29 14:11:18] Production.ERROR: pbx CDR StartTime 2025-03-29 11:11:05 - End Time 2025-03-29 14:11:05 [2025-03-29 14:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 14:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789369', 'tblTempUsageDetail_20' ) start [2025-03-29 14:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789369', 'tblTempUsageDetail_20' ) end [2025-03-29 14:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789369', 'tblTempVendorCDR_20' ) start [2025-03-29 14:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789369', 'tblTempVendorCDR_20' ) end [2025-03-29 14:11:18] Production.INFO: ProcessCDR(1,14789369,1,1,2) [2025-03-29 14:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789369', 'tblTempUsageDetail_20' ) start [2025-03-29 14:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789369', 'tblTempUsageDetail_20' ) end [2025-03-29 14:11:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 14:11:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 14:11:22] Production.INFO: ==6683== Releasing lock... [2025-03-29 14:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 14:11:22] Production.INFO: 41.25 MB #Memory Used# [2025-03-29 14:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 11:12:06 [end_date_ymd] => 2025-03-29 14:12:06 [RateCDR] => 1 ) [2025-03-29 14:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 11:12:06' and `end` < '2025-03-29 14:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 14:12:18] Production.INFO: count ==1775 [2025-03-29 14:12:19] Production.ERROR: pbx CDR StartTime 2025-03-29 11:12:06 - End Time 2025-03-29 14:12:06 [2025-03-29 14:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 14:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789374', 'tblTempUsageDetail_20' ) start [2025-03-29 14:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789374', 'tblTempUsageDetail_20' ) end [2025-03-29 14:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789374', 'tblTempVendorCDR_20' ) start [2025-03-29 14:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789374', 'tblTempVendorCDR_20' ) end [2025-03-29 14:12:19] Production.INFO: ProcessCDR(1,14789374,1,1,2) [2025-03-29 14:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789374', 'tblTempUsageDetail_20' ) start [2025-03-29 14:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789374', 'tblTempUsageDetail_20' ) end [2025-03-29 14:12:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 14:12:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 14:12:22] Production.INFO: ==6775== Releasing lock... [2025-03-29 14:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 14:12:22] Production.INFO: 41.25 MB #Memory Used# [2025-03-29 14:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 11:13:05 [end_date_ymd] => 2025-03-29 14:13:05 [RateCDR] => 1 ) [2025-03-29 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-29 11:13:05' and `end` < '2025-03-29 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-29 14:13:18] Production.INFO: count ==1774 [2025-03-29 14:13:19] Production.ERROR: pbx CDR StartTime 2025-03-29 11:13:05 - End Time 2025-03-29 14:13:05 [2025-03-29 14:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 14:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789379', 'tblTempUsageDetail_20' ) start [2025-03-29 14:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789379', 'tblTempUsageDetail_20' ) end [2025-03-29 14:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789379', 'tblTempVendorCDR_20' ) start [2025-03-29 14:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789379', 'tblTempVendorCDR_20' ) end [2025-03-29 14:13:19] Production.INFO: ProcessCDR(1,14789379,1,1,2) [2025-03-29 14:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789379', 'tblTempUsageDetail_20' ) start [2025-03-29 14:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789379', 'tblTempUsageDetail_20' ) end [2025-03-29 14:13:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 14:13:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 14:13:22] Production.INFO: ==6896== Releasing lock... [2025-03-29 14:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 14:13:22] Production.INFO: 41.5 MB #Memory Used# [2025-03-29 14:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 11:14:05 [end_date_ymd] => 2025-03-29 14:14:05 [RateCDR] => 1 ) [2025-03-29 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-29 11:14:05' and `end` < '2025-03-29 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-29 14:14:18] Production.INFO: count ==1779 [2025-03-29 14:14:19] Production.ERROR: pbx CDR StartTime 2025-03-29 11:14:05 - End Time 2025-03-29 14:14:05 [2025-03-29 14:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 14:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789384', 'tblTempUsageDetail_20' ) start [2025-03-29 14:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789384', 'tblTempUsageDetail_20' ) end [2025-03-29 14:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789384', 'tblTempVendorCDR_20' ) start [2025-03-29 14:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789384', 'tblTempVendorCDR_20' ) end [2025-03-29 14:14:19] Production.INFO: ProcessCDR(1,14789384,1,1,2) [2025-03-29 14:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789384', 'tblTempUsageDetail_20' ) start [2025-03-29 14:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789384', 'tblTempUsageDetail_20' ) end [2025-03-29 14:14:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 14:14:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 14:14:24] Production.INFO: ==7022== Releasing lock... [2025-03-29 14:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 14:14:24] Production.INFO: 41.5 MB #Memory Used# [2025-03-29 14:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 11:15:05 [end_date_ymd] => 2025-03-29 14:15:05 [RateCDR] => 1 ) [2025-03-29 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-29 11:15:05' and `end` < '2025-03-29 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-29 14:15:18] Production.INFO: count ==1795 [2025-03-29 14:15:18] Production.ERROR: pbx CDR StartTime 2025-03-29 11:15:05 - End Time 2025-03-29 14:15:05 [2025-03-29 14:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 14:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789389', 'tblTempUsageDetail_20' ) start [2025-03-29 14:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789389', 'tblTempUsageDetail_20' ) end [2025-03-29 14:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789389', 'tblTempVendorCDR_20' ) start [2025-03-29 14:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789389', 'tblTempVendorCDR_20' ) end [2025-03-29 14:15:18] Production.INFO: ProcessCDR(1,14789389,1,1,2) [2025-03-29 14:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789389', 'tblTempUsageDetail_20' ) start [2025-03-29 14:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789389', 'tblTempUsageDetail_20' ) end [2025-03-29 14:15:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 14:15:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 14:15:23] Production.INFO: ==7125== Releasing lock... [2025-03-29 14:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 14:15:23] Production.INFO: 41.75 MB #Memory Used# [2025-03-29 14:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 11:16:05 [end_date_ymd] => 2025-03-29 14:16:05 [RateCDR] => 1 ) [2025-03-29 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-29 11:16:05' and `end` < '2025-03-29 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-29 14:16:18] Production.INFO: count ==1784 [2025-03-29 14:16:18] Production.ERROR: pbx CDR StartTime 2025-03-29 11:16:05 - End Time 2025-03-29 14:16:05 [2025-03-29 14:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 14:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789394', 'tblTempUsageDetail_20' ) start [2025-03-29 14:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789394', 'tblTempUsageDetail_20' ) end [2025-03-29 14:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789394', 'tblTempVendorCDR_20' ) start [2025-03-29 14:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789394', 'tblTempVendorCDR_20' ) end [2025-03-29 14:16:18] Production.INFO: ProcessCDR(1,14789394,1,1,2) [2025-03-29 14:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789394', 'tblTempUsageDetail_20' ) start [2025-03-29 14:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789394', 'tblTempUsageDetail_20' ) end [2025-03-29 14:16:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 14:16:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 14:16:22] Production.INFO: ==7212== Releasing lock... [2025-03-29 14:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 14:16:22] Production.INFO: 41.5 MB #Memory Used# [2025-03-29 14:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 11:17:05 [end_date_ymd] => 2025-03-29 14:17:05 [RateCDR] => 1 ) [2025-03-29 14:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 11:17:05' and `end` < '2025-03-29 14:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 14:17:17] Production.INFO: count ==1798 [2025-03-29 14:17:18] Production.ERROR: pbx CDR StartTime 2025-03-29 11:17:05 - End Time 2025-03-29 14:17:05 [2025-03-29 14:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 14:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789399', 'tblTempUsageDetail_20' ) start [2025-03-29 14:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789399', 'tblTempUsageDetail_20' ) end [2025-03-29 14:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789399', 'tblTempVendorCDR_20' ) start [2025-03-29 14:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789399', 'tblTempVendorCDR_20' ) end [2025-03-29 14:17:18] Production.INFO: ProcessCDR(1,14789399,1,1,2) [2025-03-29 14:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789399', 'tblTempUsageDetail_20' ) start [2025-03-29 14:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789399', 'tblTempUsageDetail_20' ) end [2025-03-29 14:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 14:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 14:17:22] Production.INFO: ==7300== Releasing lock... [2025-03-29 14:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 14:17:22] Production.INFO: 41.5 MB #Memory Used# [2025-03-29 14:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 11:18:05 [end_date_ymd] => 2025-03-29 14:18:05 [RateCDR] => 1 ) [2025-03-29 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-29 11:18:05' and `end` < '2025-03-29 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-29 14:18:17] Production.INFO: count ==1817 [2025-03-29 14:18:18] Production.ERROR: pbx CDR StartTime 2025-03-29 11:18:05 - End Time 2025-03-29 14:18:05 [2025-03-29 14:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 14:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789404', 'tblTempUsageDetail_20' ) start [2025-03-29 14:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789404', 'tblTempUsageDetail_20' ) end [2025-03-29 14:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789404', 'tblTempVendorCDR_20' ) start [2025-03-29 14:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789404', 'tblTempVendorCDR_20' ) end [2025-03-29 14:18:18] Production.INFO: ProcessCDR(1,14789404,1,1,2) [2025-03-29 14:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789404', 'tblTempUsageDetail_20' ) start [2025-03-29 14:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789404', 'tblTempUsageDetail_20' ) end [2025-03-29 14:18:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 14:18:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 14:18:22] Production.INFO: ==7386== Releasing lock... [2025-03-29 14:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 14:18:22] Production.INFO: 41.75 MB #Memory Used# [2025-03-29 14:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 11:19:05 [end_date_ymd] => 2025-03-29 14:19:05 [RateCDR] => 1 ) [2025-03-29 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-29 11:19:05' and `end` < '2025-03-29 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-29 14:19:18] Production.INFO: count ==1809 [2025-03-29 14:19:18] Production.ERROR: pbx CDR StartTime 2025-03-29 11:19:05 - End Time 2025-03-29 14:19:05 [2025-03-29 14:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 14:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789409', 'tblTempUsageDetail_20' ) start [2025-03-29 14:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789409', 'tblTempUsageDetail_20' ) end [2025-03-29 14:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789409', 'tblTempVendorCDR_20' ) start [2025-03-29 14:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789409', 'tblTempVendorCDR_20' ) end [2025-03-29 14:19:18] Production.INFO: ProcessCDR(1,14789409,1,1,2) [2025-03-29 14:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789409', 'tblTempUsageDetail_20' ) start [2025-03-29 14:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789409', 'tblTempUsageDetail_20' ) end [2025-03-29 14:19:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 14:19:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 14:19:22] Production.INFO: ==7485== Releasing lock... [2025-03-29 14:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 14:19:22] Production.INFO: 41.75 MB #Memory Used# [2025-03-29 14:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 11:20:06 [end_date_ymd] => 2025-03-29 14:20:06 [RateCDR] => 1 ) [2025-03-29 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-29 11:20:06' and `end` < '2025-03-29 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-29 14:20:19] Production.INFO: count ==1822 [2025-03-29 14:20:20] Production.ERROR: pbx CDR StartTime 2025-03-29 11:20:06 - End Time 2025-03-29 14:20:06 [2025-03-29 14:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 14:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789415', 'tblTempUsageDetail_20' ) start [2025-03-29 14:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789415', 'tblTempUsageDetail_20' ) end [2025-03-29 14:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789415', 'tblTempVendorCDR_20' ) start [2025-03-29 14:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789415', 'tblTempVendorCDR_20' ) end [2025-03-29 14:20:20] Production.INFO: ProcessCDR(1,14789415,1,1,2) [2025-03-29 14:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789415', 'tblTempUsageDetail_20' ) start [2025-03-29 14:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789415', 'tblTempUsageDetail_20' ) end [2025-03-29 14:20:25] Production.ERROR: pbx prc_insertCDR start [2025-03-29 14:20:25] Production.ERROR: pbx prc_insertCDR end [2025-03-29 14:20:25] Production.INFO: ==7616== Releasing lock... [2025-03-29 14:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 14:20:25] Production.INFO: 41.75 MB #Memory Used# [2025-03-29 14:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 11:21:05 [end_date_ymd] => 2025-03-29 14:21:05 [RateCDR] => 1 ) [2025-03-29 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-29 11:21:05' and `end` < '2025-03-29 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-29 14:21:18] Production.INFO: count ==1834 [2025-03-29 14:21:18] Production.ERROR: pbx CDR StartTime 2025-03-29 11:21:05 - End Time 2025-03-29 14:21:05 [2025-03-29 14:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 14:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789420', 'tblTempUsageDetail_20' ) start [2025-03-29 14:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789420', 'tblTempUsageDetail_20' ) end [2025-03-29 14:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789420', 'tblTempVendorCDR_20' ) start [2025-03-29 14:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789420', 'tblTempVendorCDR_20' ) end [2025-03-29 14:21:18] Production.INFO: ProcessCDR(1,14789420,1,1,2) [2025-03-29 14:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789420', 'tblTempUsageDetail_20' ) start [2025-03-29 14:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789420', 'tblTempUsageDetail_20' ) end [2025-03-29 14:21:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 14:21:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 14:21:23] Production.INFO: ==7711== Releasing lock... [2025-03-29 14:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 14:21:24] Production.INFO: 41.75 MB #Memory Used# [2025-03-29 14:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 11:22:05 [end_date_ymd] => 2025-03-29 14:22:05 [RateCDR] => 1 ) [2025-03-29 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-29 11:22:05' and `end` < '2025-03-29 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-29 14:22:18] Production.INFO: count ==1829 [2025-03-29 14:22:19] Production.ERROR: pbx CDR StartTime 2025-03-29 11:22:05 - End Time 2025-03-29 14:22:05 [2025-03-29 14:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 14:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789425', 'tblTempUsageDetail_20' ) start [2025-03-29 14:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789425', 'tblTempUsageDetail_20' ) end [2025-03-29 14:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789425', 'tblTempVendorCDR_20' ) start [2025-03-29 14:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789425', 'tblTempVendorCDR_20' ) end [2025-03-29 14:22:19] Production.INFO: ProcessCDR(1,14789425,1,1,2) [2025-03-29 14:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789425', 'tblTempUsageDetail_20' ) start [2025-03-29 14:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789425', 'tblTempUsageDetail_20' ) end [2025-03-29 14:22:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 14:22:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 14:22:24] Production.INFO: ==7805== Releasing lock... [2025-03-29 14:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 14:22:24] Production.INFO: 42.25 MB #Memory Used# [2025-03-29 14:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 11:23:04 [end_date_ymd] => 2025-03-29 14:23:04 [RateCDR] => 1 ) [2025-03-29 14: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-29 11:23:04' and `end` < '2025-03-29 14: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-29 14:23:17] Production.INFO: count ==1834 [2025-03-29 14:23:18] Production.ERROR: pbx CDR StartTime 2025-03-29 11:23:04 - End Time 2025-03-29 14:23:04 [2025-03-29 14:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 14:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789430', 'tblTempUsageDetail_20' ) start [2025-03-29 14:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789430', 'tblTempUsageDetail_20' ) end [2025-03-29 14:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789430', 'tblTempVendorCDR_20' ) start [2025-03-29 14:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789430', 'tblTempVendorCDR_20' ) end [2025-03-29 14:23:18] Production.INFO: ProcessCDR(1,14789430,1,1,2) [2025-03-29 14:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789430', 'tblTempUsageDetail_20' ) start [2025-03-29 14:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789430', 'tblTempUsageDetail_20' ) end [2025-03-29 14:23:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 14:23:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 14:23:23] Production.INFO: ==7889== Releasing lock... [2025-03-29 14:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 14:23:23] Production.INFO: 41.75 MB #Memory Used# [2025-03-29 14:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 11:24:05 [end_date_ymd] => 2025-03-29 14:24:05 [RateCDR] => 1 ) [2025-03-29 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-29 11:24:05' and `end` < '2025-03-29 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-29 14:24:18] Production.INFO: count ==1826 [2025-03-29 14:24:19] Production.ERROR: pbx CDR StartTime 2025-03-29 11:24:05 - End Time 2025-03-29 14:24:05 [2025-03-29 14:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 14:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789435', 'tblTempUsageDetail_20' ) start [2025-03-29 14:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789435', 'tblTempUsageDetail_20' ) end [2025-03-29 14:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789435', 'tblTempVendorCDR_20' ) start [2025-03-29 14:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789435', 'tblTempVendorCDR_20' ) end [2025-03-29 14:24:19] Production.INFO: ProcessCDR(1,14789435,1,1,2) [2025-03-29 14:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789435', 'tblTempUsageDetail_20' ) start [2025-03-29 14:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789435', 'tblTempUsageDetail_20' ) end [2025-03-29 14:24:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 14:24:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 14:24:22] Production.INFO: ==7975== Releasing lock... [2025-03-29 14:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 14:24:22] Production.INFO: 41.75 MB #Memory Used# [2025-03-29 14:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 11:25:04 [end_date_ymd] => 2025-03-29 14:25:04 [RateCDR] => 1 ) [2025-03-29 14: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-29 11:25:04' and `end` < '2025-03-29 14: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-29 14:25:17] Production.INFO: count ==1832 [2025-03-29 14:25:18] Production.ERROR: pbx CDR StartTime 2025-03-29 11:25:04 - End Time 2025-03-29 14:25:04 [2025-03-29 14:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789440', 'tblTempUsageDetail_20' ) start [2025-03-29 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789440', 'tblTempUsageDetail_20' ) end [2025-03-29 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789440', 'tblTempVendorCDR_20' ) start [2025-03-29 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789440', 'tblTempVendorCDR_20' ) end [2025-03-29 14:25:18] Production.INFO: ProcessCDR(1,14789440,1,1,2) [2025-03-29 14:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789440', 'tblTempUsageDetail_20' ) start [2025-03-29 14:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789440', 'tblTempUsageDetail_20' ) end [2025-03-29 14:25:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 14:25:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 14:25:23] Production.INFO: ==8061== Releasing lock... [2025-03-29 14:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 14:25:23] Production.INFO: 42 MB #Memory Used# [2025-03-29 14:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 11:26:05 [end_date_ymd] => 2025-03-29 14:26:05 [RateCDR] => 1 ) [2025-03-29 14:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 11:26:05' and `end` < '2025-03-29 14:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 14:26:18] Production.INFO: count ==1817 [2025-03-29 14:26:19] Production.ERROR: pbx CDR StartTime 2025-03-29 11:26:05 - End Time 2025-03-29 14:26:05 [2025-03-29 14:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 14:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789445', 'tblTempUsageDetail_20' ) start [2025-03-29 14:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789445', 'tblTempUsageDetail_20' ) end [2025-03-29 14:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789445', 'tblTempVendorCDR_20' ) start [2025-03-29 14:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789445', 'tblTempVendorCDR_20' ) end [2025-03-29 14:26:19] Production.INFO: ProcessCDR(1,14789445,1,1,2) [2025-03-29 14:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789445', 'tblTempUsageDetail_20' ) start [2025-03-29 14:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789445', 'tblTempUsageDetail_20' ) end [2025-03-29 14:26:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 14:26:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 14:26:24] Production.INFO: ==8149== Releasing lock... [2025-03-29 14:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 14:26:24] Production.INFO: 42 MB #Memory Used# [2025-03-29 14:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 11:27:05 [end_date_ymd] => 2025-03-29 14:27:05 [RateCDR] => 1 ) [2025-03-29 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-29 11:27:05' and `end` < '2025-03-29 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-29 14:27:17] Production.INFO: count ==1818 [2025-03-29 14:27:18] Production.ERROR: pbx CDR StartTime 2025-03-29 11:27:05 - End Time 2025-03-29 14:27:05 [2025-03-29 14:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 14:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789450', 'tblTempUsageDetail_20' ) start [2025-03-29 14:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789450', 'tblTempUsageDetail_20' ) end [2025-03-29 14:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789450', 'tblTempVendorCDR_20' ) start [2025-03-29 14:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789450', 'tblTempVendorCDR_20' ) end [2025-03-29 14:27:18] Production.INFO: ProcessCDR(1,14789450,1,1,2) [2025-03-29 14:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789450', 'tblTempUsageDetail_20' ) start [2025-03-29 14:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789450', 'tblTempUsageDetail_20' ) end [2025-03-29 14:27:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 14:27:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 14:27:23] Production.INFO: ==8244== Releasing lock... [2025-03-29 14:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 14:27:23] Production.INFO: 41.75 MB #Memory Used# [2025-03-29 14:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 11:28:06 [end_date_ymd] => 2025-03-29 14:28:06 [RateCDR] => 1 ) [2025-03-29 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-29 11:28:06' and `end` < '2025-03-29 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-29 14:28:18] Production.INFO: count ==1818 [2025-03-29 14:28:19] Production.ERROR: pbx CDR StartTime 2025-03-29 11:28:06 - End Time 2025-03-29 14:28:06 [2025-03-29 14:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 14:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789455', 'tblTempUsageDetail_20' ) start [2025-03-29 14:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789455', 'tblTempUsageDetail_20' ) end [2025-03-29 14:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789455', 'tblTempVendorCDR_20' ) start [2025-03-29 14:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789455', 'tblTempVendorCDR_20' ) end [2025-03-29 14:28:19] Production.INFO: ProcessCDR(1,14789455,1,1,2) [2025-03-29 14:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789455', 'tblTempUsageDetail_20' ) start [2025-03-29 14:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789455', 'tblTempUsageDetail_20' ) end [2025-03-29 14:28:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 14:28:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 14:28:24] Production.INFO: ==8339== Releasing lock... [2025-03-29 14:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 14:28:24] Production.INFO: 41.75 MB #Memory Used# [2025-03-29 14:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 11:29:06 [end_date_ymd] => 2025-03-29 14:29:06 [RateCDR] => 1 ) [2025-03-29 14: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-29 11:29:06' and `end` < '2025-03-29 14: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-29 14:29:18] Production.INFO: count ==1818 [2025-03-29 14:29:19] Production.ERROR: pbx CDR StartTime 2025-03-29 11:29:06 - End Time 2025-03-29 14:29:06 [2025-03-29 14:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 14:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789460', 'tblTempUsageDetail_20' ) start [2025-03-29 14:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789460', 'tblTempUsageDetail_20' ) end [2025-03-29 14:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789460', 'tblTempVendorCDR_20' ) start [2025-03-29 14:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789460', 'tblTempVendorCDR_20' ) end [2025-03-29 14:29:19] Production.INFO: ProcessCDR(1,14789460,1,1,2) [2025-03-29 14:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789460', 'tblTempUsageDetail_20' ) start [2025-03-29 14:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789460', 'tblTempUsageDetail_20' ) end [2025-03-29 14:29:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 14:29:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 14:29:24] Production.INFO: ==8438== Releasing lock... [2025-03-29 14:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 14:29:24] Production.INFO: 41.75 MB #Memory Used# [2025-03-29 14:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 11:30:06 [end_date_ymd] => 2025-03-29 14:30:06 [RateCDR] => 1 ) [2025-03-29 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-29 11:30:06' and `end` < '2025-03-29 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-29 14:30:19] Production.INFO: count ==1825 [2025-03-29 14:30:20] Production.ERROR: pbx CDR StartTime 2025-03-29 11:30:06 - End Time 2025-03-29 14:30:06 [2025-03-29 14:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 14:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789466', 'tblTempUsageDetail_20' ) start [2025-03-29 14:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789466', 'tblTempUsageDetail_20' ) end [2025-03-29 14:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789466', 'tblTempVendorCDR_20' ) start [2025-03-29 14:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789466', 'tblTempVendorCDR_20' ) end [2025-03-29 14:30:20] Production.INFO: ProcessCDR(1,14789466,1,1,2) [2025-03-29 14:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789466', 'tblTempUsageDetail_20' ) start [2025-03-29 14:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789466', 'tblTempUsageDetail_20' ) end [2025-03-29 14:30:25] Production.ERROR: pbx prc_insertCDR start [2025-03-29 14:30:25] Production.ERROR: pbx prc_insertCDR end [2025-03-29 14:30:25] Production.INFO: ==8537== Releasing lock... [2025-03-29 14:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 14:30:25] Production.INFO: 41.75 MB #Memory Used# [2025-03-29 14:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 11:31:05 [end_date_ymd] => 2025-03-29 14:31:05 [RateCDR] => 1 ) [2025-03-29 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-29 11:31:05' and `end` < '2025-03-29 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-29 14:31:18] Production.INFO: count ==1826 [2025-03-29 14:31:18] Production.ERROR: pbx CDR StartTime 2025-03-29 11:31:05 - End Time 2025-03-29 14:31:05 [2025-03-29 14:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 14:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789471', 'tblTempUsageDetail_20' ) start [2025-03-29 14:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789471', 'tblTempUsageDetail_20' ) end [2025-03-29 14:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789471', 'tblTempVendorCDR_20' ) start [2025-03-29 14:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789471', 'tblTempVendorCDR_20' ) end [2025-03-29 14:31:18] Production.INFO: ProcessCDR(1,14789471,1,1,2) [2025-03-29 14:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789471', 'tblTempUsageDetail_20' ) start [2025-03-29 14:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789471', 'tblTempUsageDetail_20' ) end [2025-03-29 14:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 14:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 14:31:22] Production.INFO: ==8640== Releasing lock... [2025-03-29 14:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 14:31:22] Production.INFO: 41.75 MB #Memory Used# [2025-03-29 14:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 11:32:06 [end_date_ymd] => 2025-03-29 14:32:06 [RateCDR] => 1 ) [2025-03-29 14:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 11:32:06' and `end` < '2025-03-29 14:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 14:32:18] Production.INFO: count ==1825 [2025-03-29 14:32:19] Production.ERROR: pbx CDR StartTime 2025-03-29 11:32:06 - End Time 2025-03-29 14:32:06 [2025-03-29 14:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 14:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789476', 'tblTempUsageDetail_20' ) start [2025-03-29 14:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789476', 'tblTempUsageDetail_20' ) end [2025-03-29 14:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789476', 'tblTempVendorCDR_20' ) start [2025-03-29 14:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789476', 'tblTempVendorCDR_20' ) end [2025-03-29 14:32:19] Production.INFO: ProcessCDR(1,14789476,1,1,2) [2025-03-29 14:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789476', 'tblTempUsageDetail_20' ) start [2025-03-29 14:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789476', 'tblTempUsageDetail_20' ) end [2025-03-29 14:32:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 14:32:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 14:32:23] Production.INFO: ==8744== Releasing lock... [2025-03-29 14:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 14:32:23] Production.INFO: 41.75 MB #Memory Used# [2025-03-29 14:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 11:33:05 [end_date_ymd] => 2025-03-29 14:33:05 [RateCDR] => 1 ) [2025-03-29 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-29 11:33:05' and `end` < '2025-03-29 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-29 14:33:18] Production.INFO: count ==1826 [2025-03-29 14:33:19] Production.ERROR: pbx CDR StartTime 2025-03-29 11:33:05 - End Time 2025-03-29 14:33:05 [2025-03-29 14:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 14:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789481', 'tblTempUsageDetail_20' ) start [2025-03-29 14:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789481', 'tblTempUsageDetail_20' ) end [2025-03-29 14:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789481', 'tblTempVendorCDR_20' ) start [2025-03-29 14:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789481', 'tblTempVendorCDR_20' ) end [2025-03-29 14:33:19] Production.INFO: ProcessCDR(1,14789481,1,1,2) [2025-03-29 14:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789481', 'tblTempUsageDetail_20' ) start [2025-03-29 14:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789481', 'tblTempUsageDetail_20' ) end [2025-03-29 14:33:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 14:33:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 14:33:22] Production.INFO: ==8847== Releasing lock... [2025-03-29 14:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 14:33:22] Production.INFO: 41.75 MB #Memory Used# [2025-03-29 14:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 11:34:05 [end_date_ymd] => 2025-03-29 14:34:05 [RateCDR] => 1 ) [2025-03-29 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-29 11:34:05' and `end` < '2025-03-29 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-29 14:34:18] Production.INFO: count ==1819 [2025-03-29 14:34:18] Production.ERROR: pbx CDR StartTime 2025-03-29 11:34:05 - End Time 2025-03-29 14:34:05 [2025-03-29 14:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 14:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789486', 'tblTempUsageDetail_20' ) start [2025-03-29 14:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789486', 'tblTempUsageDetail_20' ) end [2025-03-29 14:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789486', 'tblTempVendorCDR_20' ) start [2025-03-29 14:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789486', 'tblTempVendorCDR_20' ) end [2025-03-29 14:34:18] Production.INFO: ProcessCDR(1,14789486,1,1,2) [2025-03-29 14:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789486', 'tblTempUsageDetail_20' ) start [2025-03-29 14:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789486', 'tblTempUsageDetail_20' ) end [2025-03-29 14:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 14:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 14:34:22] Production.INFO: ==8965== Releasing lock... [2025-03-29 14:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 14:34:22] Production.INFO: 41.75 MB #Memory Used# [2025-03-29 14:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 11:35:06 [end_date_ymd] => 2025-03-29 14:35:06 [RateCDR] => 1 ) [2025-03-29 14: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-29 11:35:06' and `end` < '2025-03-29 14: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-29 14:35:19] Production.INFO: count ==1822 [2025-03-29 14:35:19] Production.ERROR: pbx CDR StartTime 2025-03-29 11:35:06 - End Time 2025-03-29 14:35:06 [2025-03-29 14:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 14:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789491', 'tblTempUsageDetail_20' ) start [2025-03-29 14:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789491', 'tblTempUsageDetail_20' ) end [2025-03-29 14:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789491', 'tblTempVendorCDR_20' ) start [2025-03-29 14:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789491', 'tblTempVendorCDR_20' ) end [2025-03-29 14:35:19] Production.INFO: ProcessCDR(1,14789491,1,1,2) [2025-03-29 14:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789491', 'tblTempUsageDetail_20' ) start [2025-03-29 14:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789491', 'tblTempUsageDetail_20' ) end [2025-03-29 14:35:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 14:35:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 14:35:23] Production.INFO: ==9068== Releasing lock... [2025-03-29 14:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 14:35:23] Production.INFO: 41.75 MB #Memory Used# [2025-03-29 14:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 11:36:05 [end_date_ymd] => 2025-03-29 14:36:05 [RateCDR] => 1 ) [2025-03-29 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-29 11:36:05' and `end` < '2025-03-29 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-29 14:36:18] Production.INFO: count ==1823 [2025-03-29 14:36:18] Production.ERROR: pbx CDR StartTime 2025-03-29 11:36:05 - End Time 2025-03-29 14:36:05 [2025-03-29 14:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 14:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789496', 'tblTempUsageDetail_20' ) start [2025-03-29 14:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789496', 'tblTempUsageDetail_20' ) end [2025-03-29 14:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789496', 'tblTempVendorCDR_20' ) start [2025-03-29 14:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789496', 'tblTempVendorCDR_20' ) end [2025-03-29 14:36:18] Production.INFO: ProcessCDR(1,14789496,1,1,2) [2025-03-29 14:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789496', 'tblTempUsageDetail_20' ) start [2025-03-29 14:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789496', 'tblTempUsageDetail_20' ) end [2025-03-29 14:36:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 14:36:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 14:36:22] Production.INFO: ==9203== Releasing lock... [2025-03-29 14:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 14:36:22] Production.INFO: 42 MB #Memory Used# [2025-03-29 14:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 11:37:05 [end_date_ymd] => 2025-03-29 14:37:05 [RateCDR] => 1 ) [2025-03-29 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-29 11:37:05' and `end` < '2025-03-29 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-29 14:37:18] Production.INFO: count ==1829 [2025-03-29 14:37:19] Production.ERROR: pbx CDR StartTime 2025-03-29 11:37:05 - End Time 2025-03-29 14:37:05 [2025-03-29 14:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 14:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789501', 'tblTempUsageDetail_20' ) start [2025-03-29 14:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789501', 'tblTempUsageDetail_20' ) end [2025-03-29 14:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789501', 'tblTempVendorCDR_20' ) start [2025-03-29 14:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789501', 'tblTempVendorCDR_20' ) end [2025-03-29 14:37:19] Production.INFO: ProcessCDR(1,14789501,1,1,2) [2025-03-29 14:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789501', 'tblTempUsageDetail_20' ) start [2025-03-29 14:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789501', 'tblTempUsageDetail_20' ) end [2025-03-29 14:37:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 14:37:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 14:37:24] Production.INFO: ==9304== Releasing lock... [2025-03-29 14:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 14:37:24] Production.INFO: 41.75 MB #Memory Used# [2025-03-29 14:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 11:38:05 [end_date_ymd] => 2025-03-29 14:38:05 [RateCDR] => 1 ) [2025-03-29 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-29 11:38:05' and `end` < '2025-03-29 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-29 14:38:18] Production.INFO: count ==1834 [2025-03-29 14:38:19] Production.ERROR: pbx CDR StartTime 2025-03-29 11:38:05 - End Time 2025-03-29 14:38:05 [2025-03-29 14:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 14:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789506', 'tblTempUsageDetail_20' ) start [2025-03-29 14:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789506', 'tblTempUsageDetail_20' ) end [2025-03-29 14:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789506', 'tblTempVendorCDR_20' ) start [2025-03-29 14:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789506', 'tblTempVendorCDR_20' ) end [2025-03-29 14:38:19] Production.INFO: ProcessCDR(1,14789506,1,1,2) [2025-03-29 14:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789506', 'tblTempUsageDetail_20' ) start [2025-03-29 14:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789506', 'tblTempUsageDetail_20' ) end [2025-03-29 14:38:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 14:38:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 14:38:24] Production.INFO: ==9402== Releasing lock... [2025-03-29 14:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 14:38:24] Production.INFO: 41.75 MB #Memory Used# [2025-03-29 14:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 11:39:05 [end_date_ymd] => 2025-03-29 14:39:05 [RateCDR] => 1 ) [2025-03-29 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-29 11:39:05' and `end` < '2025-03-29 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-29 14:39:18] Production.INFO: count ==1837 [2025-03-29 14:39:19] Production.ERROR: pbx CDR StartTime 2025-03-29 11:39:05 - End Time 2025-03-29 14:39:05 [2025-03-29 14:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 14:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789511', 'tblTempUsageDetail_20' ) start [2025-03-29 14:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789511', 'tblTempUsageDetail_20' ) end [2025-03-29 14:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789511', 'tblTempVendorCDR_20' ) start [2025-03-29 14:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789511', 'tblTempVendorCDR_20' ) end [2025-03-29 14:39:19] Production.INFO: ProcessCDR(1,14789511,1,1,2) [2025-03-29 14:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789511', 'tblTempUsageDetail_20' ) start [2025-03-29 14:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789511', 'tblTempUsageDetail_20' ) end [2025-03-29 14:39:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 14:39:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 14:39:24] Production.INFO: ==9498== Releasing lock... [2025-03-29 14:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 14:39:24] Production.INFO: 42 MB #Memory Used# [2025-03-29 14:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 11:40:06 [end_date_ymd] => 2025-03-29 14:40:06 [RateCDR] => 1 ) [2025-03-29 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-29 11:40:06' and `end` < '2025-03-29 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-29 14:40:18] Production.INFO: count ==1842 [2025-03-29 14:40:19] Production.ERROR: pbx CDR StartTime 2025-03-29 11:40:06 - End Time 2025-03-29 14:40:06 [2025-03-29 14:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 14:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789516', 'tblTempUsageDetail_20' ) start [2025-03-29 14:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789516', 'tblTempUsageDetail_20' ) end [2025-03-29 14:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789516', 'tblTempVendorCDR_20' ) start [2025-03-29 14:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789516', 'tblTempVendorCDR_20' ) end [2025-03-29 14:40:19] Production.INFO: ProcessCDR(1,14789516,1,1,2) [2025-03-29 14:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789516', 'tblTempUsageDetail_20' ) start [2025-03-29 14:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789516', 'tblTempUsageDetail_20' ) end [2025-03-29 14:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 14:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 14:40:22] Production.INFO: ==9598== Releasing lock... [2025-03-29 14:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 14:40:22] Production.INFO: 41.75 MB #Memory Used# [2025-03-29 14:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 11:41:06 [end_date_ymd] => 2025-03-29 14:41:06 [RateCDR] => 1 ) [2025-03-29 14:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 11:41:06' and `end` < '2025-03-29 14:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 14:41:18] Production.INFO: count ==1813 [2025-03-29 14:41:19] Production.ERROR: pbx CDR StartTime 2025-03-29 11:41:06 - End Time 2025-03-29 14:41:06 [2025-03-29 14:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 14:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789522', 'tblTempUsageDetail_20' ) start [2025-03-29 14:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789522', 'tblTempUsageDetail_20' ) end [2025-03-29 14:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789522', 'tblTempVendorCDR_20' ) start [2025-03-29 14:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789522', 'tblTempVendorCDR_20' ) end [2025-03-29 14:41:19] Production.INFO: ProcessCDR(1,14789522,1,1,2) [2025-03-29 14:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789522', 'tblTempUsageDetail_20' ) start [2025-03-29 14:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789522', 'tblTempUsageDetail_20' ) end [2025-03-29 14:41:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 14:41:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 14:41:24] Production.INFO: ==9696== Releasing lock... [2025-03-29 14:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 14:41:24] Production.INFO: 41.75 MB #Memory Used# [2025-03-29 14:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 11:42:06 [end_date_ymd] => 2025-03-29 14:42:06 [RateCDR] => 1 ) [2025-03-29 14:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 11:42:06' and `end` < '2025-03-29 14:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 14:42:18] Production.INFO: count ==1812 [2025-03-29 14:42:19] Production.ERROR: pbx CDR StartTime 2025-03-29 11:42:06 - End Time 2025-03-29 14:42:06 [2025-03-29 14:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 14:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789527', 'tblTempUsageDetail_20' ) start [2025-03-29 14:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789527', 'tblTempUsageDetail_20' ) end [2025-03-29 14:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789527', 'tblTempVendorCDR_20' ) start [2025-03-29 14:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789527', 'tblTempVendorCDR_20' ) end [2025-03-29 14:42:19] Production.INFO: ProcessCDR(1,14789527,1,1,2) [2025-03-29 14:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789527', 'tblTempUsageDetail_20' ) start [2025-03-29 14:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789527', 'tblTempUsageDetail_20' ) end [2025-03-29 14:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 14:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 14:42:22] Production.INFO: ==9791== Releasing lock... [2025-03-29 14:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 14:42:22] Production.INFO: 42 MB #Memory Used# [2025-03-29 14:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 11:43:05 [end_date_ymd] => 2025-03-29 14:43:05 [RateCDR] => 1 ) [2025-03-29 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-29 11:43:05' and `end` < '2025-03-29 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-29 14:43:18] Production.INFO: count ==1813 [2025-03-29 14:43:18] Production.ERROR: pbx CDR StartTime 2025-03-29 11:43:05 - End Time 2025-03-29 14:43:05 [2025-03-29 14:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 14:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789532', 'tblTempUsageDetail_20' ) start [2025-03-29 14:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789532', 'tblTempUsageDetail_20' ) end [2025-03-29 14:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789532', 'tblTempVendorCDR_20' ) start [2025-03-29 14:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789532', 'tblTempVendorCDR_20' ) end [2025-03-29 14:43:18] Production.INFO: ProcessCDR(1,14789532,1,1,2) [2025-03-29 14:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789532', 'tblTempUsageDetail_20' ) start [2025-03-29 14:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789532', 'tblTempUsageDetail_20' ) end [2025-03-29 14:43:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 14:43:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 14:43:23] Production.INFO: ==9888== Releasing lock... [2025-03-29 14:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 14:43:23] Production.INFO: 42 MB #Memory Used# [2025-03-29 14:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 11:44:06 [end_date_ymd] => 2025-03-29 14:44:06 [RateCDR] => 1 ) [2025-03-29 14:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 11:44:06' and `end` < '2025-03-29 14:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 14:44:18] Production.INFO: count ==1803 [2025-03-29 14:44:19] Production.ERROR: pbx CDR StartTime 2025-03-29 11:44:06 - End Time 2025-03-29 14:44:06 [2025-03-29 14:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 14:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789537', 'tblTempUsageDetail_20' ) start [2025-03-29 14:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789537', 'tblTempUsageDetail_20' ) end [2025-03-29 14:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789537', 'tblTempVendorCDR_20' ) start [2025-03-29 14:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789537', 'tblTempVendorCDR_20' ) end [2025-03-29 14:44:19] Production.INFO: ProcessCDR(1,14789537,1,1,2) [2025-03-29 14:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789537', 'tblTempUsageDetail_20' ) start [2025-03-29 14:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789537', 'tblTempUsageDetail_20' ) end [2025-03-29 14:44:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 14:44:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 14:44:24] Production.INFO: ==9986== Releasing lock... [2025-03-29 14:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 14:44:24] Production.INFO: 41.5 MB #Memory Used# [2025-03-29 14:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 11:45:06 [end_date_ymd] => 2025-03-29 14:45:06 [RateCDR] => 1 ) [2025-03-29 14:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 11:45:06' and `end` < '2025-03-29 14:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 14:45:18] Production.INFO: count ==1796 [2025-03-29 14:45:19] Production.ERROR: pbx CDR StartTime 2025-03-29 11:45:06 - End Time 2025-03-29 14:45:06 [2025-03-29 14:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 14:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789542', 'tblTempUsageDetail_20' ) start [2025-03-29 14:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789542', 'tblTempUsageDetail_20' ) end [2025-03-29 14:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789542', 'tblTempVendorCDR_20' ) start [2025-03-29 14:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789542', 'tblTempVendorCDR_20' ) end [2025-03-29 14:45:19] Production.INFO: ProcessCDR(1,14789542,1,1,2) [2025-03-29 14:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789542', 'tblTempUsageDetail_20' ) start [2025-03-29 14:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789542', 'tblTempUsageDetail_20' ) end [2025-03-29 14:45:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 14:45:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 14:45:24] Production.INFO: ==10081== Releasing lock... [2025-03-29 14:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 14:45:24] Production.INFO: 41.5 MB #Memory Used# [2025-03-29 14:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 11:46:05 [end_date_ymd] => 2025-03-29 14:46:05 [RateCDR] => 1 ) [2025-03-29 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-29 11:46:05' and `end` < '2025-03-29 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-29 14:46:18] Production.INFO: count ==1811 [2025-03-29 14:46:19] Production.ERROR: pbx CDR StartTime 2025-03-29 11:46:05 - End Time 2025-03-29 14:46:05 [2025-03-29 14:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 14:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789547', 'tblTempUsageDetail_20' ) start [2025-03-29 14:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789547', 'tblTempUsageDetail_20' ) end [2025-03-29 14:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789547', 'tblTempVendorCDR_20' ) start [2025-03-29 14:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789547', 'tblTempVendorCDR_20' ) end [2025-03-29 14:46:19] Production.INFO: ProcessCDR(1,14789547,1,1,2) [2025-03-29 14:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789547', 'tblTempUsageDetail_20' ) start [2025-03-29 14:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789547', 'tblTempUsageDetail_20' ) end [2025-03-29 14:46:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 14:46:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 14:46:24] Production.INFO: ==10175== Releasing lock... [2025-03-29 14:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 14:46:24] Production.INFO: 41.75 MB #Memory Used# [2025-03-29 14:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 11:47:05 [end_date_ymd] => 2025-03-29 14:47:05 [RateCDR] => 1 ) [2025-03-29 14:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 11:47:05' and `end` < '2025-03-29 14:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 14:47:18] Production.INFO: count ==1818 [2025-03-29 14:47:19] Production.ERROR: pbx CDR StartTime 2025-03-29 11:47:05 - End Time 2025-03-29 14:47:05 [2025-03-29 14:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 14:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789552', 'tblTempUsageDetail_20' ) start [2025-03-29 14:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789552', 'tblTempUsageDetail_20' ) end [2025-03-29 14:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789552', 'tblTempVendorCDR_20' ) start [2025-03-29 14:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789552', 'tblTempVendorCDR_20' ) end [2025-03-29 14:47:19] Production.INFO: ProcessCDR(1,14789552,1,1,2) [2025-03-29 14:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789552', 'tblTempUsageDetail_20' ) start [2025-03-29 14:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789552', 'tblTempUsageDetail_20' ) end [2025-03-29 14:47:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 14:47:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 14:47:24] Production.INFO: ==10276== Releasing lock... [2025-03-29 14:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 14:47:24] Production.INFO: 41.75 MB #Memory Used# [2025-03-29 14:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 11:48:06 [end_date_ymd] => 2025-03-29 14:48:06 [RateCDR] => 1 ) [2025-03-29 14:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 11:48:06' and `end` < '2025-03-29 14:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 14:48:18] Production.INFO: count ==1820 [2025-03-29 14:48:19] Production.ERROR: pbx CDR StartTime 2025-03-29 11:48:06 - End Time 2025-03-29 14:48:06 [2025-03-29 14:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 14:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789557', 'tblTempUsageDetail_20' ) start [2025-03-29 14:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789557', 'tblTempUsageDetail_20' ) end [2025-03-29 14:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789557', 'tblTempVendorCDR_20' ) start [2025-03-29 14:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789557', 'tblTempVendorCDR_20' ) end [2025-03-29 14:48:19] Production.INFO: ProcessCDR(1,14789557,1,1,2) [2025-03-29 14:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789557', 'tblTempUsageDetail_20' ) start [2025-03-29 14:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789557', 'tblTempUsageDetail_20' ) end [2025-03-29 14:48:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 14:48:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 14:48:23] Production.INFO: ==10382== Releasing lock... [2025-03-29 14:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 14:48:23] Production.INFO: 41.75 MB #Memory Used# [2025-03-29 14:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 11:49:06 [end_date_ymd] => 2025-03-29 14:49:06 [RateCDR] => 1 ) [2025-03-29 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-29 11:49:06' and `end` < '2025-03-29 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-29 14:49:18] Production.INFO: count ==1822 [2025-03-29 14:49:19] Production.ERROR: pbx CDR StartTime 2025-03-29 11:49:06 - End Time 2025-03-29 14:49:06 [2025-03-29 14:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 14:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789562', 'tblTempUsageDetail_20' ) start [2025-03-29 14:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789562', 'tblTempUsageDetail_20' ) end [2025-03-29 14:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789562', 'tblTempVendorCDR_20' ) start [2025-03-29 14:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789562', 'tblTempVendorCDR_20' ) end [2025-03-29 14:49:19] Production.INFO: ProcessCDR(1,14789562,1,1,2) [2025-03-29 14:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789562', 'tblTempUsageDetail_20' ) start [2025-03-29 14:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789562', 'tblTempUsageDetail_20' ) end [2025-03-29 14:49:25] Production.ERROR: pbx prc_insertCDR start [2025-03-29 14:49:25] Production.ERROR: pbx prc_insertCDR end [2025-03-29 14:49:25] Production.INFO: ==10487== Releasing lock... [2025-03-29 14:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 14:49:25] Production.INFO: 41.75 MB #Memory Used# [2025-03-29 14:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 11:50:06 [end_date_ymd] => 2025-03-29 14:50:06 [RateCDR] => 1 ) [2025-03-29 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-29 11:50:06' and `end` < '2025-03-29 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-29 14:50:19] Production.INFO: count ==1819 [2025-03-29 14:50:20] Production.ERROR: pbx CDR StartTime 2025-03-29 11:50:06 - End Time 2025-03-29 14:50:06 [2025-03-29 14:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 14:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789568', 'tblTempUsageDetail_20' ) start [2025-03-29 14:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789568', 'tblTempUsageDetail_20' ) end [2025-03-29 14:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789568', 'tblTempVendorCDR_20' ) start [2025-03-29 14:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789568', 'tblTempVendorCDR_20' ) end [2025-03-29 14:50:20] Production.INFO: ProcessCDR(1,14789568,1,1,2) [2025-03-29 14:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789568', 'tblTempUsageDetail_20' ) start [2025-03-29 14:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789568', 'tblTempUsageDetail_20' ) end [2025-03-29 14:50:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 14:50:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 14:50:24] Production.INFO: ==10589== Releasing lock... [2025-03-29 14:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 14:50:24] Production.INFO: 41.75 MB #Memory Used# [2025-03-29 14:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 11:51:05 [end_date_ymd] => 2025-03-29 14:51:05 [RateCDR] => 1 ) [2025-03-29 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-29 11:51:05' and `end` < '2025-03-29 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-29 14:51:18] Production.INFO: count ==1841 [2025-03-29 14:51:19] Production.ERROR: pbx CDR StartTime 2025-03-29 11:51:05 - End Time 2025-03-29 14:51:05 [2025-03-29 14:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 14:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789573', 'tblTempUsageDetail_20' ) start [2025-03-29 14:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789573', 'tblTempUsageDetail_20' ) end [2025-03-29 14:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789573', 'tblTempVendorCDR_20' ) start [2025-03-29 14:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789573', 'tblTempVendorCDR_20' ) end [2025-03-29 14:51:19] Production.INFO: ProcessCDR(1,14789573,1,1,2) [2025-03-29 14:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789573', 'tblTempUsageDetail_20' ) start [2025-03-29 14:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789573', 'tblTempUsageDetail_20' ) end [2025-03-29 14:51:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 14:51:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 14:51:24] Production.INFO: ==10727== Releasing lock... [2025-03-29 14:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 14:51:24] Production.INFO: 41.75 MB #Memory Used# [2025-03-29 14:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 11:52:06 [end_date_ymd] => 2025-03-29 14:52:06 [RateCDR] => 1 ) [2025-03-29 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-29 11:52:06' and `end` < '2025-03-29 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-29 14:52:18] Production.INFO: count ==1854 [2025-03-29 14:52:19] Production.ERROR: pbx CDR StartTime 2025-03-29 11:52:06 - End Time 2025-03-29 14:52:06 [2025-03-29 14:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 14:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789578', 'tblTempUsageDetail_20' ) start [2025-03-29 14:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789578', 'tblTempUsageDetail_20' ) end [2025-03-29 14:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789578', 'tblTempVendorCDR_20' ) start [2025-03-29 14:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789578', 'tblTempVendorCDR_20' ) end [2025-03-29 14:52:19] Production.INFO: ProcessCDR(1,14789578,1,1,2) [2025-03-29 14:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789578', 'tblTempUsageDetail_20' ) start [2025-03-29 14:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789578', 'tblTempUsageDetail_20' ) end [2025-03-29 14:52:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 14:52:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 14:52:23] Production.INFO: ==10828== Releasing lock... [2025-03-29 14:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 14:52:23] Production.INFO: 42 MB #Memory Used# [2025-03-29 14:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 11:53:05 [end_date_ymd] => 2025-03-29 14:53:05 [RateCDR] => 1 ) [2025-03-29 14:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 11:53:05' and `end` < '2025-03-29 14:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 14:53:17] Production.INFO: count ==1843 [2025-03-29 14:53:18] Production.ERROR: pbx CDR StartTime 2025-03-29 11:53:05 - End Time 2025-03-29 14:53:05 [2025-03-29 14:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 14:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789583', 'tblTempUsageDetail_20' ) start [2025-03-29 14:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789583', 'tblTempUsageDetail_20' ) end [2025-03-29 14:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789583', 'tblTempVendorCDR_20' ) start [2025-03-29 14:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789583', 'tblTempVendorCDR_20' ) end [2025-03-29 14:53:18] Production.INFO: ProcessCDR(1,14789583,1,1,2) [2025-03-29 14:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789583', 'tblTempUsageDetail_20' ) start [2025-03-29 14:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789583', 'tblTempUsageDetail_20' ) end [2025-03-29 14:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 14:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 14:53:22] Production.INFO: ==10932== Releasing lock... [2025-03-29 14:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 14:53:22] Production.INFO: 41.75 MB #Memory Used# [2025-03-29 14:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 11:54:05 [end_date_ymd] => 2025-03-29 14:54:05 [RateCDR] => 1 ) [2025-03-29 14:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 11:54:05' and `end` < '2025-03-29 14:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 14:54:18] Production.INFO: count ==1850 [2025-03-29 14:54:19] Production.ERROR: pbx CDR StartTime 2025-03-29 11:54:05 - End Time 2025-03-29 14:54:05 [2025-03-29 14:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 14:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789588', 'tblTempUsageDetail_20' ) start [2025-03-29 14:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789588', 'tblTempUsageDetail_20' ) end [2025-03-29 14:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789588', 'tblTempVendorCDR_20' ) start [2025-03-29 14:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789588', 'tblTempVendorCDR_20' ) end [2025-03-29 14:54:19] Production.INFO: ProcessCDR(1,14789588,1,1,2) [2025-03-29 14:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789588', 'tblTempUsageDetail_20' ) start [2025-03-29 14:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789588', 'tblTempUsageDetail_20' ) end [2025-03-29 14:54:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 14:54:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 14:54:23] Production.INFO: ==11033== Releasing lock... [2025-03-29 14:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 14:54:23] Production.INFO: 42 MB #Memory Used# [2025-03-29 14:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 11:55:05 [end_date_ymd] => 2025-03-29 14:55:05 [RateCDR] => 1 ) [2025-03-29 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-29 11:55:05' and `end` < '2025-03-29 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-29 14:55:18] Production.INFO: count ==1844 [2025-03-29 14:55:18] Production.ERROR: pbx CDR StartTime 2025-03-29 11:55:05 - End Time 2025-03-29 14:55:05 [2025-03-29 14:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 14:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789593', 'tblTempUsageDetail_20' ) start [2025-03-29 14:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789593', 'tblTempUsageDetail_20' ) end [2025-03-29 14:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789593', 'tblTempVendorCDR_20' ) start [2025-03-29 14:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789593', 'tblTempVendorCDR_20' ) end [2025-03-29 14:55:18] Production.INFO: ProcessCDR(1,14789593,1,1,2) [2025-03-29 14:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789593', 'tblTempUsageDetail_20' ) start [2025-03-29 14:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789593', 'tblTempUsageDetail_20' ) end [2025-03-29 14:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 14:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 14:55:22] Production.INFO: ==11134== Releasing lock... [2025-03-29 14:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 14:55:22] Production.INFO: 42 MB #Memory Used# [2025-03-29 14:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 11:56:06 [end_date_ymd] => 2025-03-29 14:56:06 [RateCDR] => 1 ) [2025-03-29 14: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-29 11:56:06' and `end` < '2025-03-29 14: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-29 14:56:18] Production.INFO: count ==1846 [2025-03-29 14:56:19] Production.ERROR: pbx CDR StartTime 2025-03-29 11:56:06 - End Time 2025-03-29 14:56:06 [2025-03-29 14:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 14:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789598', 'tblTempUsageDetail_20' ) start [2025-03-29 14:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789598', 'tblTempUsageDetail_20' ) end [2025-03-29 14:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789598', 'tblTempVendorCDR_20' ) start [2025-03-29 14:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789598', 'tblTempVendorCDR_20' ) end [2025-03-29 14:56:19] Production.INFO: ProcessCDR(1,14789598,1,1,2) [2025-03-29 14:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789598', 'tblTempUsageDetail_20' ) start [2025-03-29 14:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789598', 'tblTempUsageDetail_20' ) end [2025-03-29 14:56:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 14:56:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 14:56:23] Production.INFO: ==11237== Releasing lock... [2025-03-29 14:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 14:56:23] Production.INFO: 42.25 MB #Memory Used# [2025-03-29 14:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 11:57:05 [end_date_ymd] => 2025-03-29 14:57:05 [RateCDR] => 1 ) [2025-03-29 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-29 11:57:05' and `end` < '2025-03-29 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-29 14:57:17] Production.INFO: count ==1844 [2025-03-29 14:57:18] Production.ERROR: pbx CDR StartTime 2025-03-29 11:57:05 - End Time 2025-03-29 14:57:05 [2025-03-29 14:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 14:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789603', 'tblTempUsageDetail_20' ) start [2025-03-29 14:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789603', 'tblTempUsageDetail_20' ) end [2025-03-29 14:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789603', 'tblTempVendorCDR_20' ) start [2025-03-29 14:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789603', 'tblTempVendorCDR_20' ) end [2025-03-29 14:57:18] Production.INFO: ProcessCDR(1,14789603,1,1,2) [2025-03-29 14:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789603', 'tblTempUsageDetail_20' ) start [2025-03-29 14:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789603', 'tblTempUsageDetail_20' ) end [2025-03-29 14:57:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 14:57:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 14:57:23] Production.INFO: ==11335== Releasing lock... [2025-03-29 14:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 14:57:23] Production.INFO: 42 MB #Memory Used# [2025-03-29 14:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 11:58:05 [end_date_ymd] => 2025-03-29 14:58:05 [RateCDR] => 1 ) [2025-03-29 14:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 11:58:05' and `end` < '2025-03-29 14:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 14:58:18] Production.INFO: count ==1851 [2025-03-29 14:58:18] Production.ERROR: pbx CDR StartTime 2025-03-29 11:58:05 - End Time 2025-03-29 14:58:05 [2025-03-29 14:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 14:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789608', 'tblTempUsageDetail_20' ) start [2025-03-29 14:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789608', 'tblTempUsageDetail_20' ) end [2025-03-29 14:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789608', 'tblTempVendorCDR_20' ) start [2025-03-29 14:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789608', 'tblTempVendorCDR_20' ) end [2025-03-29 14:58:18] Production.INFO: ProcessCDR(1,14789608,1,1,2) [2025-03-29 14:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789608', 'tblTempUsageDetail_20' ) start [2025-03-29 14:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789608', 'tblTempUsageDetail_20' ) end [2025-03-29 14:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 14:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 14:58:22] Production.INFO: ==11430== Releasing lock... [2025-03-29 14:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 14:58:22] Production.INFO: 42 MB #Memory Used# [2025-03-29 14:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 11:59:06 [end_date_ymd] => 2025-03-29 14:59:06 [RateCDR] => 1 ) [2025-03-29 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-29 11:59:06' and `end` < '2025-03-29 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-29 14:59:19] Production.INFO: count ==1843 [2025-03-29 14:59:19] Production.ERROR: pbx CDR StartTime 2025-03-29 11:59:06 - End Time 2025-03-29 14:59:06 [2025-03-29 14:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 14:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789613', 'tblTempUsageDetail_20' ) start [2025-03-29 14:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789613', 'tblTempUsageDetail_20' ) end [2025-03-29 14:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789613', 'tblTempVendorCDR_20' ) start [2025-03-29 14:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789613', 'tblTempVendorCDR_20' ) end [2025-03-29 14:59:19] Production.INFO: ProcessCDR(1,14789613,1,1,2) [2025-03-29 14:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 14:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 14:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789613', 'tblTempUsageDetail_20' ) start [2025-03-29 14:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789613', 'tblTempUsageDetail_20' ) end [2025-03-29 14:59:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 14:59:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 14:59:23] Production.INFO: ==11533== Releasing lock... [2025-03-29 14:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 14:59:23] Production.INFO: 42 MB #Memory Used# [2025-03-29 15:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 12:00:06 [end_date_ymd] => 2025-03-29 15:00:06 [RateCDR] => 1 ) [2025-03-29 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-29 12:00:06' and `end` < '2025-03-29 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-29 15:00:19] Production.INFO: count ==1830 [2025-03-29 15:00:20] Production.ERROR: pbx CDR StartTime 2025-03-29 12:00:06 - End Time 2025-03-29 15:00:06 [2025-03-29 15:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 15:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789619', 'tblTempUsageDetail_20' ) start [2025-03-29 15:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789619', 'tblTempUsageDetail_20' ) end [2025-03-29 15:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789619', 'tblTempVendorCDR_20' ) start [2025-03-29 15:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789619', 'tblTempVendorCDR_20' ) end [2025-03-29 15:00:20] Production.INFO: ProcessCDR(1,14789619,1,1,2) [2025-03-29 15:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789619', 'tblTempUsageDetail_20' ) start [2025-03-29 15:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789619', 'tblTempUsageDetail_20' ) end [2025-03-29 15:00:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 15:00:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 15:00:24] Production.INFO: ==11634== Releasing lock... [2025-03-29 15:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 15:00:24] Production.INFO: 41.75 MB #Memory Used# [2025-03-29 15:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 12:01:06 [end_date_ymd] => 2025-03-29 15:01:06 [RateCDR] => 1 ) [2025-03-29 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-29 12:01:06' and `end` < '2025-03-29 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-29 15:01:18] Production.INFO: count ==1820 [2025-03-29 15:01:19] Production.ERROR: pbx CDR StartTime 2025-03-29 12:01:06 - End Time 2025-03-29 15:01:06 [2025-03-29 15:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 15:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789624', 'tblTempUsageDetail_20' ) start [2025-03-29 15:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789624', 'tblTempUsageDetail_20' ) end [2025-03-29 15:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789624', 'tblTempVendorCDR_20' ) start [2025-03-29 15:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789624', 'tblTempVendorCDR_20' ) end [2025-03-29 15:01:19] Production.INFO: ProcessCDR(1,14789624,1,1,2) [2025-03-29 15:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789624', 'tblTempUsageDetail_20' ) start [2025-03-29 15:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789624', 'tblTempUsageDetail_20' ) end [2025-03-29 15:01:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 15:01:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 15:01:23] Production.INFO: ==11835== Releasing lock... [2025-03-29 15:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 15:01:23] Production.INFO: 41.75 MB #Memory Used# [2025-03-29 15:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 12:02:05 [end_date_ymd] => 2025-03-29 15:02:05 [RateCDR] => 1 ) [2025-03-29 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-29 12:02:05' and `end` < '2025-03-29 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-29 15:02:18] Production.INFO: count ==1832 [2025-03-29 15:02:19] Production.ERROR: pbx CDR StartTime 2025-03-29 12:02:05 - End Time 2025-03-29 15:02:05 [2025-03-29 15:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 15:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789629', 'tblTempUsageDetail_20' ) start [2025-03-29 15:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789629', 'tblTempUsageDetail_20' ) end [2025-03-29 15:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789629', 'tblTempVendorCDR_20' ) start [2025-03-29 15:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789629', 'tblTempVendorCDR_20' ) end [2025-03-29 15:02:19] Production.INFO: ProcessCDR(1,14789629,1,1,2) [2025-03-29 15:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789629', 'tblTempUsageDetail_20' ) start [2025-03-29 15:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789629', 'tblTempUsageDetail_20' ) end [2025-03-29 15:02:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 15:02:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 15:02:23] Production.INFO: ==11934== Releasing lock... [2025-03-29 15:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 15:02:23] Production.INFO: 41.75 MB #Memory Used# [2025-03-29 15:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 12:03:06 [end_date_ymd] => 2025-03-29 15:03:06 [RateCDR] => 1 ) [2025-03-29 15:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 12:03:06' and `end` < '2025-03-29 15:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 15:03:19] Production.INFO: count ==1826 [2025-03-29 15:03:19] Production.ERROR: pbx CDR StartTime 2025-03-29 12:03:06 - End Time 2025-03-29 15:03:06 [2025-03-29 15:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 15:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789634', 'tblTempUsageDetail_20' ) start [2025-03-29 15:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789634', 'tblTempUsageDetail_20' ) end [2025-03-29 15:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789634', 'tblTempVendorCDR_20' ) start [2025-03-29 15:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789634', 'tblTempVendorCDR_20' ) end [2025-03-29 15:03:19] Production.INFO: ProcessCDR(1,14789634,1,1,2) [2025-03-29 15:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789634', 'tblTempUsageDetail_20' ) start [2025-03-29 15:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789634', 'tblTempUsageDetail_20' ) end [2025-03-29 15:03:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 15:03:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 15:03:23] Production.INFO: ==12039== Releasing lock... [2025-03-29 15:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 15:03:23] Production.INFO: 41.75 MB #Memory Used# [2025-03-29 15:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 12:04:06 [end_date_ymd] => 2025-03-29 15:04:06 [RateCDR] => 1 ) [2025-03-29 15: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-29 12:04:06' and `end` < '2025-03-29 15: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-29 15:04:18] Production.INFO: count ==1824 [2025-03-29 15:04:19] Production.ERROR: pbx CDR StartTime 2025-03-29 12:04:06 - End Time 2025-03-29 15:04:06 [2025-03-29 15:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 15:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789639', 'tblTempUsageDetail_20' ) start [2025-03-29 15:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789639', 'tblTempUsageDetail_20' ) end [2025-03-29 15:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789639', 'tblTempVendorCDR_20' ) start [2025-03-29 15:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789639', 'tblTempVendorCDR_20' ) end [2025-03-29 15:04:19] Production.INFO: ProcessCDR(1,14789639,1,1,2) [2025-03-29 15:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789639', 'tblTempUsageDetail_20' ) start [2025-03-29 15:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789639', 'tblTempUsageDetail_20' ) end [2025-03-29 15:04:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 15:04:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 15:04:23] Production.INFO: ==12136== Releasing lock... [2025-03-29 15:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 15:04:23] Production.INFO: 42 MB #Memory Used# [2025-03-29 15:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 12:05:04 [end_date_ymd] => 2025-03-29 15:05:04 [RateCDR] => 1 ) [2025-03-29 15:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 12:05:04' and `end` < '2025-03-29 15:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 15:05:17] Production.INFO: count ==1839 [2025-03-29 15:05:18] Production.ERROR: pbx CDR StartTime 2025-03-29 12:05:04 - End Time 2025-03-29 15:05:04 [2025-03-29 15:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 15:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789644', 'tblTempUsageDetail_20' ) start [2025-03-29 15:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789644', 'tblTempUsageDetail_20' ) end [2025-03-29 15:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789644', 'tblTempVendorCDR_20' ) start [2025-03-29 15:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789644', 'tblTempVendorCDR_20' ) end [2025-03-29 15:05:18] Production.INFO: ProcessCDR(1,14789644,1,1,2) [2025-03-29 15:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789644', 'tblTempUsageDetail_20' ) start [2025-03-29 15:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789644', 'tblTempUsageDetail_20' ) end [2025-03-29 15:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 15:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 15:05:21] Production.INFO: ==12318== Releasing lock... [2025-03-29 15:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 15:05:21] Production.INFO: 41.75 MB #Memory Used# [2025-03-29 15:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 12:06:05 [end_date_ymd] => 2025-03-29 15:06:05 [RateCDR] => 1 ) [2025-03-29 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-29 12:06:05' and `end` < '2025-03-29 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-29 15:06:18] Production.INFO: count ==1835 [2025-03-29 15:06:18] Production.ERROR: pbx CDR StartTime 2025-03-29 12:06:05 - End Time 2025-03-29 15:06:05 [2025-03-29 15:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 15:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789649', 'tblTempUsageDetail_20' ) start [2025-03-29 15:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789649', 'tblTempUsageDetail_20' ) end [2025-03-29 15:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789649', 'tblTempVendorCDR_20' ) start [2025-03-29 15:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789649', 'tblTempVendorCDR_20' ) end [2025-03-29 15:06:19] Production.INFO: ProcessCDR(1,14789649,1,1,2) [2025-03-29 15:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789649', 'tblTempUsageDetail_20' ) start [2025-03-29 15:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789649', 'tblTempUsageDetail_20' ) end [2025-03-29 15:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 15:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 15:06:22] Production.INFO: ==12420== Releasing lock... [2025-03-29 15:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 15:06:22] Production.INFO: 41.75 MB #Memory Used# [2025-03-29 15:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 12:07:05 [end_date_ymd] => 2025-03-29 15:07:05 [RateCDR] => 1 ) [2025-03-29 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-29 12:07:05' and `end` < '2025-03-29 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-29 15:07:18] Production.INFO: count ==1835 [2025-03-29 15:07:19] Production.ERROR: pbx CDR StartTime 2025-03-29 12:07:05 - End Time 2025-03-29 15:07:05 [2025-03-29 15:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 15:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789654', 'tblTempUsageDetail_20' ) start [2025-03-29 15:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789654', 'tblTempUsageDetail_20' ) end [2025-03-29 15:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789654', 'tblTempVendorCDR_20' ) start [2025-03-29 15:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789654', 'tblTempVendorCDR_20' ) end [2025-03-29 15:07:19] Production.INFO: ProcessCDR(1,14789654,1,1,2) [2025-03-29 15:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789654', 'tblTempUsageDetail_20' ) start [2025-03-29 15:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789654', 'tblTempUsageDetail_20' ) end [2025-03-29 15:07:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 15:07:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 15:07:22] Production.INFO: ==12556== Releasing lock... [2025-03-29 15:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 15:07:22] Production.INFO: 41.75 MB #Memory Used# [2025-03-29 15:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 12:08:05 [end_date_ymd] => 2025-03-29 15:08:05 [RateCDR] => 1 ) [2025-03-29 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-29 12:08:05' and `end` < '2025-03-29 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-29 15:08:18] Production.INFO: count ==1794 [2025-03-29 15:08:18] Production.ERROR: pbx CDR StartTime 2025-03-29 12:08:05 - End Time 2025-03-29 15:08:05 [2025-03-29 15:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 15:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789659', 'tblTempUsageDetail_20' ) start [2025-03-29 15:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789659', 'tblTempUsageDetail_20' ) end [2025-03-29 15:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789659', 'tblTempVendorCDR_20' ) start [2025-03-29 15:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789659', 'tblTempVendorCDR_20' ) end [2025-03-29 15:08:18] Production.INFO: ProcessCDR(1,14789659,1,1,2) [2025-03-29 15:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789659', 'tblTempUsageDetail_20' ) start [2025-03-29 15:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789659', 'tblTempUsageDetail_20' ) end [2025-03-29 15:08:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 15:08:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 15:08:22] Production.INFO: ==12736== Releasing lock... [2025-03-29 15:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 15:08:22] Production.INFO: 41.5 MB #Memory Used# [2025-03-29 15:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 12:09:05 [end_date_ymd] => 2025-03-29 15:09:05 [RateCDR] => 1 ) [2025-03-29 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-29 12:09:05' and `end` < '2025-03-29 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-29 15:09:18] Production.INFO: count ==1798 [2025-03-29 15:09:18] Production.ERROR: pbx CDR StartTime 2025-03-29 12:09:05 - End Time 2025-03-29 15:09:05 [2025-03-29 15:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 15:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789664', 'tblTempUsageDetail_20' ) start [2025-03-29 15:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789664', 'tblTempUsageDetail_20' ) end [2025-03-29 15:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789664', 'tblTempVendorCDR_20' ) start [2025-03-29 15:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789664', 'tblTempVendorCDR_20' ) end [2025-03-29 15:09:18] Production.INFO: ProcessCDR(1,14789664,1,1,2) [2025-03-29 15:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789664', 'tblTempUsageDetail_20' ) start [2025-03-29 15:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789664', 'tblTempUsageDetail_20' ) end [2025-03-29 15:09:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 15:09:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 15:09:22] Production.INFO: ==12836== Releasing lock... [2025-03-29 15:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 15:09:22] Production.INFO: 41.5 MB #Memory Used# [2025-03-29 15:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 12:10:07 [end_date_ymd] => 2025-03-29 15:10:07 [RateCDR] => 1 ) [2025-03-29 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-29 12:10:07' and `end` < '2025-03-29 15: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-29 15:10:19] Production.INFO: count ==1798 [2025-03-29 15:10:20] Production.ERROR: pbx CDR StartTime 2025-03-29 12:10:07 - End Time 2025-03-29 15:10:07 [2025-03-29 15:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 15:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789670', 'tblTempUsageDetail_20' ) start [2025-03-29 15:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789670', 'tblTempUsageDetail_20' ) end [2025-03-29 15:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789670', 'tblTempVendorCDR_20' ) start [2025-03-29 15:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789670', 'tblTempVendorCDR_20' ) end [2025-03-29 15:10:21] Production.INFO: ProcessCDR(1,14789670,1,1,2) [2025-03-29 15:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789670', 'tblTempUsageDetail_20' ) start [2025-03-29 15:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789670', 'tblTempUsageDetail_20' ) end [2025-03-29 15:10:25] Production.ERROR: pbx prc_insertCDR start [2025-03-29 15:10:25] Production.ERROR: pbx prc_insertCDR end [2025-03-29 15:10:25] Production.INFO: ==12952== Releasing lock... [2025-03-29 15:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 15:10:25] Production.INFO: 41.5 MB #Memory Used# [2025-03-29 15:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 12:11:05 [end_date_ymd] => 2025-03-29 15:11:05 [RateCDR] => 1 ) [2025-03-29 15:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 12:11:05' and `end` < '2025-03-29 15:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 15:11:18] Production.INFO: count ==1807 [2025-03-29 15:11:19] Production.ERROR: pbx CDR StartTime 2025-03-29 12:11:05 - End Time 2025-03-29 15:11:05 [2025-03-29 15:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 15:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789675', 'tblTempUsageDetail_20' ) start [2025-03-29 15:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789675', 'tblTempUsageDetail_20' ) end [2025-03-29 15:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789675', 'tblTempVendorCDR_20' ) start [2025-03-29 15:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789675', 'tblTempVendorCDR_20' ) end [2025-03-29 15:11:19] Production.INFO: ProcessCDR(1,14789675,1,1,2) [2025-03-29 15:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789675', 'tblTempUsageDetail_20' ) start [2025-03-29 15:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789675', 'tblTempUsageDetail_20' ) end [2025-03-29 15:11:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 15:11:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 15:11:24] Production.INFO: ==13057== Releasing lock... [2025-03-29 15:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 15:11:24] Production.INFO: 41.5 MB #Memory Used# [2025-03-29 15:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 12:12:05 [end_date_ymd] => 2025-03-29 15:12:05 [RateCDR] => 1 ) [2025-03-29 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-29 12:12:05' and `end` < '2025-03-29 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-29 15:12:18] Production.INFO: count ==1812 [2025-03-29 15:12:18] Production.ERROR: pbx CDR StartTime 2025-03-29 12:12:05 - End Time 2025-03-29 15:12:05 [2025-03-29 15:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 15:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789680', 'tblTempUsageDetail_20' ) start [2025-03-29 15:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789680', 'tblTempUsageDetail_20' ) end [2025-03-29 15:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789680', 'tblTempVendorCDR_20' ) start [2025-03-29 15:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789680', 'tblTempVendorCDR_20' ) end [2025-03-29 15:12:18] Production.INFO: ProcessCDR(1,14789680,1,1,2) [2025-03-29 15:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789680', 'tblTempUsageDetail_20' ) start [2025-03-29 15:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789680', 'tblTempUsageDetail_20' ) end [2025-03-29 15:12:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 15:12:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 15:12:23] Production.INFO: ==13234== Releasing lock... [2025-03-29 15:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 15:12:23] Production.INFO: 41.75 MB #Memory Used# [2025-03-29 15:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 12:13:06 [end_date_ymd] => 2025-03-29 15:13:06 [RateCDR] => 1 ) [2025-03-29 15: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-29 12:13:06' and `end` < '2025-03-29 15: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-29 15:13:19] Production.INFO: count ==1811 [2025-03-29 15:13:19] Production.ERROR: pbx CDR StartTime 2025-03-29 12:13:06 - End Time 2025-03-29 15:13:06 [2025-03-29 15:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 15:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789685', 'tblTempUsageDetail_20' ) start [2025-03-29 15:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789685', 'tblTempUsageDetail_20' ) end [2025-03-29 15:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789685', 'tblTempVendorCDR_20' ) start [2025-03-29 15:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789685', 'tblTempVendorCDR_20' ) end [2025-03-29 15:13:19] Production.INFO: ProcessCDR(1,14789685,1,1,2) [2025-03-29 15:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789685', 'tblTempUsageDetail_20' ) start [2025-03-29 15:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789685', 'tblTempUsageDetail_20' ) end [2025-03-29 15:13:25] Production.ERROR: pbx prc_insertCDR start [2025-03-29 15:13:25] Production.ERROR: pbx prc_insertCDR end [2025-03-29 15:13:25] Production.INFO: ==13336== Releasing lock... [2025-03-29 15:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 15:13:25] Production.INFO: 41.75 MB #Memory Used# [2025-03-29 15:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 12:14:05 [end_date_ymd] => 2025-03-29 15:14:05 [RateCDR] => 1 ) [2025-03-29 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-29 12:14:05' and `end` < '2025-03-29 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-29 15:14:18] Production.INFO: count ==1807 [2025-03-29 15:14:18] Production.ERROR: pbx CDR StartTime 2025-03-29 12:14:05 - End Time 2025-03-29 15:14:05 [2025-03-29 15:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 15:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789690', 'tblTempUsageDetail_20' ) start [2025-03-29 15:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789690', 'tblTempUsageDetail_20' ) end [2025-03-29 15:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789690', 'tblTempVendorCDR_20' ) start [2025-03-29 15:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789690', 'tblTempVendorCDR_20' ) end [2025-03-29 15:14:18] Production.INFO: ProcessCDR(1,14789690,1,1,2) [2025-03-29 15:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789690', 'tblTempUsageDetail_20' ) start [2025-03-29 15:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789690', 'tblTempUsageDetail_20' ) end [2025-03-29 15:14:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 15:14:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 15:14:22] Production.INFO: ==13439== Releasing lock... [2025-03-29 15:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 15:14:22] Production.INFO: 41.5 MB #Memory Used# [2025-03-29 15:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 12:15:05 [end_date_ymd] => 2025-03-29 15:15:05 [RateCDR] => 1 ) [2025-03-29 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-29 12:15:05' and `end` < '2025-03-29 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-29 15:15:18] Production.INFO: count ==1810 [2025-03-29 15:15:18] Production.ERROR: pbx CDR StartTime 2025-03-29 12:15:05 - End Time 2025-03-29 15:15:05 [2025-03-29 15:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 15:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789695', 'tblTempUsageDetail_20' ) start [2025-03-29 15:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789695', 'tblTempUsageDetail_20' ) end [2025-03-29 15:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789695', 'tblTempVendorCDR_20' ) start [2025-03-29 15:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789695', 'tblTempVendorCDR_20' ) end [2025-03-29 15:15:18] Production.INFO: ProcessCDR(1,14789695,1,1,2) [2025-03-29 15:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789695', 'tblTempUsageDetail_20' ) start [2025-03-29 15:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789695', 'tblTempUsageDetail_20' ) end [2025-03-29 15:15:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 15:15:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 15:15:22] Production.INFO: ==13620== Releasing lock... [2025-03-29 15:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 15:15:22] Production.INFO: 41.75 MB #Memory Used# [2025-03-29 15:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 12:16:05 [end_date_ymd] => 2025-03-29 15:16:05 [RateCDR] => 1 ) [2025-03-29 15:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 12:16:05' and `end` < '2025-03-29 15:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 15:16:18] Production.INFO: count ==1808 [2025-03-29 15:16:19] Production.ERROR: pbx CDR StartTime 2025-03-29 12:16:05 - End Time 2025-03-29 15:16:05 [2025-03-29 15:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 15:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789700', 'tblTempUsageDetail_20' ) start [2025-03-29 15:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789700', 'tblTempUsageDetail_20' ) end [2025-03-29 15:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789700', 'tblTempVendorCDR_20' ) start [2025-03-29 15:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789700', 'tblTempVendorCDR_20' ) end [2025-03-29 15:16:19] Production.INFO: ProcessCDR(1,14789700,1,1,2) [2025-03-29 15:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789700', 'tblTempUsageDetail_20' ) start [2025-03-29 15:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789700', 'tblTempUsageDetail_20' ) end [2025-03-29 15:16:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 15:16:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 15:16:24] Production.INFO: ==13726== Releasing lock... [2025-03-29 15:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 15:16:24] Production.INFO: 41.5 MB #Memory Used# [2025-03-29 15:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 12:17:06 [end_date_ymd] => 2025-03-29 15:17:06 [RateCDR] => 1 ) [2025-03-29 15: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-29 12:17:06' and `end` < '2025-03-29 15: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-29 15:17:18] Production.INFO: count ==1797 [2025-03-29 15:17:19] Production.ERROR: pbx CDR StartTime 2025-03-29 12:17:06 - End Time 2025-03-29 15:17:06 [2025-03-29 15:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 15:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789705', 'tblTempUsageDetail_20' ) start [2025-03-29 15:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789705', 'tblTempUsageDetail_20' ) end [2025-03-29 15:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789705', 'tblTempVendorCDR_20' ) start [2025-03-29 15:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789705', 'tblTempVendorCDR_20' ) end [2025-03-29 15:17:19] Production.INFO: ProcessCDR(1,14789705,1,1,2) [2025-03-29 15:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789705', 'tblTempUsageDetail_20' ) start [2025-03-29 15:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789705', 'tblTempUsageDetail_20' ) end [2025-03-29 15:17:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 15:17:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 15:17:24] Production.INFO: ==13835== Releasing lock... [2025-03-29 15:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 15:17:24] Production.INFO: 41.5 MB #Memory Used# [2025-03-29 15:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 12:18:05 [end_date_ymd] => 2025-03-29 15:18:05 [RateCDR] => 1 ) [2025-03-29 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-29 12:18:05' and `end` < '2025-03-29 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-29 15:18:18] Production.INFO: count ==1797 [2025-03-29 15:18:18] Production.ERROR: pbx CDR StartTime 2025-03-29 12:18:05 - End Time 2025-03-29 15:18:05 [2025-03-29 15:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 15:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789710', 'tblTempUsageDetail_20' ) start [2025-03-29 15:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789710', 'tblTempUsageDetail_20' ) end [2025-03-29 15:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789710', 'tblTempVendorCDR_20' ) start [2025-03-29 15:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789710', 'tblTempVendorCDR_20' ) end [2025-03-29 15:18:18] Production.INFO: ProcessCDR(1,14789710,1,1,2) [2025-03-29 15:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789710', 'tblTempUsageDetail_20' ) start [2025-03-29 15:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789710', 'tblTempUsageDetail_20' ) end [2025-03-29 15:18:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 15:18:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 15:18:23] Production.INFO: ==13948== Releasing lock... [2025-03-29 15:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 15:18:23] Production.INFO: 41.5 MB #Memory Used# [2025-03-29 15:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 12:19:06 [end_date_ymd] => 2025-03-29 15:19:06 [RateCDR] => 1 ) [2025-03-29 15: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-29 12:19:06' and `end` < '2025-03-29 15: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-29 15:19:18] Production.INFO: count ==1806 [2025-03-29 15:19:19] Production.ERROR: pbx CDR StartTime 2025-03-29 12:19:06 - End Time 2025-03-29 15:19:06 [2025-03-29 15:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 15:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789715', 'tblTempUsageDetail_20' ) start [2025-03-29 15:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789715', 'tblTempUsageDetail_20' ) end [2025-03-29 15:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789715', 'tblTempVendorCDR_20' ) start [2025-03-29 15:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789715', 'tblTempVendorCDR_20' ) end [2025-03-29 15:19:19] Production.INFO: ProcessCDR(1,14789715,1,1,2) [2025-03-29 15:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789715', 'tblTempUsageDetail_20' ) start [2025-03-29 15:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789715', 'tblTempUsageDetail_20' ) end [2025-03-29 15:19:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 15:19:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 15:19:22] Production.INFO: ==14071== Releasing lock... [2025-03-29 15:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 15:19:22] Production.INFO: 41.5 MB #Memory Used# [2025-03-29 15:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 12:20:07 [end_date_ymd] => 2025-03-29 15:20:07 [RateCDR] => 1 ) [2025-03-29 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-29 12:20:07' and `end` < '2025-03-29 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-29 15:20:20] Production.INFO: count ==1805 [2025-03-29 15:20:20] Production.ERROR: pbx CDR StartTime 2025-03-29 12:20:07 - End Time 2025-03-29 15:20:07 [2025-03-29 15:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 15:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789721', 'tblTempUsageDetail_20' ) start [2025-03-29 15:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789721', 'tblTempUsageDetail_20' ) end [2025-03-29 15:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789721', 'tblTempVendorCDR_20' ) start [2025-03-29 15:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789721', 'tblTempVendorCDR_20' ) end [2025-03-29 15:20:20] Production.INFO: ProcessCDR(1,14789721,1,1,2) [2025-03-29 15:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789721', 'tblTempUsageDetail_20' ) start [2025-03-29 15:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789721', 'tblTempUsageDetail_20' ) end [2025-03-29 15:20:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 15:20:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 15:20:24] Production.INFO: ==14189== Releasing lock... [2025-03-29 15:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 15:20:24] Production.INFO: 41.5 MB #Memory Used# [2025-03-29 15:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 12:21:05 [end_date_ymd] => 2025-03-29 15:21:05 [RateCDR] => 1 ) [2025-03-29 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-29 12:21:05' and `end` < '2025-03-29 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-29 15:21:18] Production.INFO: count ==1762 [2025-03-29 15:21:19] Production.ERROR: pbx CDR StartTime 2025-03-29 12:21:05 - End Time 2025-03-29 15:21:05 [2025-03-29 15:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 15:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789726', 'tblTempUsageDetail_20' ) start [2025-03-29 15:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789726', 'tblTempUsageDetail_20' ) end [2025-03-29 15:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789726', 'tblTempVendorCDR_20' ) start [2025-03-29 15:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789726', 'tblTempVendorCDR_20' ) end [2025-03-29 15:21:19] Production.INFO: ProcessCDR(1,14789726,1,1,2) [2025-03-29 15:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789726', 'tblTempUsageDetail_20' ) start [2025-03-29 15:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789726', 'tblTempUsageDetail_20' ) end [2025-03-29 15:21:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 15:21:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 15:21:22] Production.INFO: ==14296== Releasing lock... [2025-03-29 15:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 15:21:22] Production.INFO: 41.5 MB #Memory Used# [2025-03-29 15:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 12:22:05 [end_date_ymd] => 2025-03-29 15:22:05 [RateCDR] => 1 ) [2025-03-29 15:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 12:22:05' and `end` < '2025-03-29 15:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 15:22:18] Production.INFO: count ==1765 [2025-03-29 15:22:18] Production.ERROR: pbx CDR StartTime 2025-03-29 12:22:05 - End Time 2025-03-29 15:22:05 [2025-03-29 15:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 15:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789731', 'tblTempUsageDetail_20' ) start [2025-03-29 15:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789731', 'tblTempUsageDetail_20' ) end [2025-03-29 15:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789731', 'tblTempVendorCDR_20' ) start [2025-03-29 15:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789731', 'tblTempVendorCDR_20' ) end [2025-03-29 15:22:18] Production.INFO: ProcessCDR(1,14789731,1,1,2) [2025-03-29 15:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789731', 'tblTempUsageDetail_20' ) start [2025-03-29 15:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789731', 'tblTempUsageDetail_20' ) end [2025-03-29 15:22:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 15:22:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 15:22:23] Production.INFO: ==14447== Releasing lock... [2025-03-29 15:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 15:22:23] Production.INFO: 41.25 MB #Memory Used# [2025-03-29 15:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 12:23:05 [end_date_ymd] => 2025-03-29 15:23:05 [RateCDR] => 1 ) [2025-03-29 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-29 12:23:05' and `end` < '2025-03-29 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-29 15:23:18] Production.INFO: count ==1789 [2025-03-29 15:23:18] Production.ERROR: pbx CDR StartTime 2025-03-29 12:23:05 - End Time 2025-03-29 15:23:05 [2025-03-29 15:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 15:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789736', 'tblTempUsageDetail_20' ) start [2025-03-29 15:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789736', 'tblTempUsageDetail_20' ) end [2025-03-29 15:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789736', 'tblTempVendorCDR_20' ) start [2025-03-29 15:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789736', 'tblTempVendorCDR_20' ) end [2025-03-29 15:23:18] Production.INFO: ProcessCDR(1,14789736,1,1,2) [2025-03-29 15:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789736', 'tblTempUsageDetail_20' ) start [2025-03-29 15:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789736', 'tblTempUsageDetail_20' ) end [2025-03-29 15:23:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 15:23:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 15:23:22] Production.INFO: ==14550== Releasing lock... [2025-03-29 15:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 15:23:22] Production.INFO: 41.5 MB #Memory Used# [2025-03-29 15:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 12:24:06 [end_date_ymd] => 2025-03-29 15:24:06 [RateCDR] => 1 ) [2025-03-29 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-29 12:24:06' and `end` < '2025-03-29 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-29 15:24:19] Production.INFO: count ==1796 [2025-03-29 15:24:19] Production.ERROR: pbx CDR StartTime 2025-03-29 12:24:06 - End Time 2025-03-29 15:24:06 [2025-03-29 15:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 15:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789741', 'tblTempUsageDetail_20' ) start [2025-03-29 15:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789741', 'tblTempUsageDetail_20' ) end [2025-03-29 15:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789741', 'tblTempVendorCDR_20' ) start [2025-03-29 15:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789741', 'tblTempVendorCDR_20' ) end [2025-03-29 15:24:19] Production.INFO: ProcessCDR(1,14789741,1,1,2) [2025-03-29 15:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789741', 'tblTempUsageDetail_20' ) start [2025-03-29 15:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789741', 'tblTempUsageDetail_20' ) end [2025-03-29 15:24:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 15:24:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 15:24:24] Production.INFO: ==14660== Releasing lock... [2025-03-29 15:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 15:24:24] Production.INFO: 41.75 MB #Memory Used# [2025-03-29 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 12:25:05 [end_date_ymd] => 2025-03-29 15:25:05 [RateCDR] => 1 ) [2025-03-29 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-29 12:25:05' and `end` < '2025-03-29 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-29 15:25:18] Production.INFO: count ==1773 [2025-03-29 15:25:18] Production.ERROR: pbx CDR StartTime 2025-03-29 12:25:05 - End Time 2025-03-29 15:25:05 [2025-03-29 15:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789746', 'tblTempUsageDetail_20' ) start [2025-03-29 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789746', 'tblTempUsageDetail_20' ) end [2025-03-29 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789746', 'tblTempVendorCDR_20' ) start [2025-03-29 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789746', 'tblTempVendorCDR_20' ) end [2025-03-29 15:25:18] Production.INFO: ProcessCDR(1,14789746,1,1,2) [2025-03-29 15:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789746', 'tblTempUsageDetail_20' ) start [2025-03-29 15:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789746', 'tblTempUsageDetail_20' ) end [2025-03-29 15:25:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 15:25:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 15:25:22] Production.INFO: ==14769== Releasing lock... [2025-03-29 15:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 15:25:22] Production.INFO: 41.25 MB #Memory Used# [2025-03-29 15:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 12:26:05 [end_date_ymd] => 2025-03-29 15:26:05 [RateCDR] => 1 ) [2025-03-29 15:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 12:26:05' and `end` < '2025-03-29 15:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 15:26:18] Production.INFO: count ==1771 [2025-03-29 15:26:19] Production.ERROR: pbx CDR StartTime 2025-03-29 12:26:05 - End Time 2025-03-29 15:26:05 [2025-03-29 15:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 15:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789751', 'tblTempUsageDetail_20' ) start [2025-03-29 15:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789751', 'tblTempUsageDetail_20' ) end [2025-03-29 15:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789751', 'tblTempVendorCDR_20' ) start [2025-03-29 15:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789751', 'tblTempVendorCDR_20' ) end [2025-03-29 15:26:19] Production.INFO: ProcessCDR(1,14789751,1,1,2) [2025-03-29 15:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789751', 'tblTempUsageDetail_20' ) start [2025-03-29 15:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789751', 'tblTempUsageDetail_20' ) end [2025-03-29 15:26:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 15:26:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 15:26:22] Production.INFO: ==14876== Releasing lock... [2025-03-29 15:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 15:26:22] Production.INFO: 41.25 MB #Memory Used# [2025-03-29 15:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 12:27:05 [end_date_ymd] => 2025-03-29 15:27:05 [RateCDR] => 1 ) [2025-03-29 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-29 12:27:05' and `end` < '2025-03-29 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-29 15:27:18] Production.INFO: count ==1778 [2025-03-29 15:27:18] Production.ERROR: pbx CDR StartTime 2025-03-29 12:27:05 - End Time 2025-03-29 15:27:05 [2025-03-29 15:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 15:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789756', 'tblTempUsageDetail_20' ) start [2025-03-29 15:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789756', 'tblTempUsageDetail_20' ) end [2025-03-29 15:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789756', 'tblTempVendorCDR_20' ) start [2025-03-29 15:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789756', 'tblTempVendorCDR_20' ) end [2025-03-29 15:27:18] Production.INFO: ProcessCDR(1,14789756,1,1,2) [2025-03-29 15:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789756', 'tblTempUsageDetail_20' ) start [2025-03-29 15:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789756', 'tblTempUsageDetail_20' ) end [2025-03-29 15:27:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 15:27:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 15:27:23] Production.INFO: ==14995== Releasing lock... [2025-03-29 15:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 15:27:23] Production.INFO: 41.5 MB #Memory Used# [2025-03-29 15:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 12:28:05 [end_date_ymd] => 2025-03-29 15:28:05 [RateCDR] => 1 ) [2025-03-29 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-29 12:28:05' and `end` < '2025-03-29 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-29 15:28:18] Production.INFO: count ==1773 [2025-03-29 15:28:19] Production.ERROR: pbx CDR StartTime 2025-03-29 12:28:05 - End Time 2025-03-29 15:28:05 [2025-03-29 15:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 15:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789761', 'tblTempUsageDetail_20' ) start [2025-03-29 15:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789761', 'tblTempUsageDetail_20' ) end [2025-03-29 15:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789761', 'tblTempVendorCDR_20' ) start [2025-03-29 15:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789761', 'tblTempVendorCDR_20' ) end [2025-03-29 15:28:19] Production.INFO: ProcessCDR(1,14789761,1,1,2) [2025-03-29 15:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789761', 'tblTempUsageDetail_20' ) start [2025-03-29 15:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789761', 'tblTempUsageDetail_20' ) end [2025-03-29 15:28:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 15:28:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 15:28:24] Production.INFO: ==15103== Releasing lock... [2025-03-29 15:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 15:28:24] Production.INFO: 41.25 MB #Memory Used# [2025-03-29 15:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 12:29:05 [end_date_ymd] => 2025-03-29 15:29:05 [RateCDR] => 1 ) [2025-03-29 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-29 12:29:05' and `end` < '2025-03-29 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-29 15:29:17] Production.INFO: count ==1789 [2025-03-29 15:29:18] Production.ERROR: pbx CDR StartTime 2025-03-29 12:29:05 - End Time 2025-03-29 15:29:05 [2025-03-29 15:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 15:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789766', 'tblTempUsageDetail_20' ) start [2025-03-29 15:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789766', 'tblTempUsageDetail_20' ) end [2025-03-29 15:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789766', 'tblTempVendorCDR_20' ) start [2025-03-29 15:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789766', 'tblTempVendorCDR_20' ) end [2025-03-29 15:29:18] Production.INFO: ProcessCDR(1,14789766,1,1,2) [2025-03-29 15:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789766', 'tblTempUsageDetail_20' ) start [2025-03-29 15:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789766', 'tblTempUsageDetail_20' ) end [2025-03-29 15:29:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 15:29:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 15:29:22] Production.INFO: ==15211== Releasing lock... [2025-03-29 15:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 15:29:22] Production.INFO: 41.75 MB #Memory Used# [2025-03-29 15:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 12:30:06 [end_date_ymd] => 2025-03-29 15:30:06 [RateCDR] => 1 ) [2025-03-29 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-29 12:30:06' and `end` < '2025-03-29 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-29 15:30:19] Production.INFO: count ==1796 [2025-03-29 15:30:19] Production.ERROR: pbx CDR StartTime 2025-03-29 12:30:06 - End Time 2025-03-29 15:30:06 [2025-03-29 15:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 15:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789772', 'tblTempUsageDetail_20' ) start [2025-03-29 15:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789772', 'tblTempUsageDetail_20' ) end [2025-03-29 15:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789772', 'tblTempVendorCDR_20' ) start [2025-03-29 15:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789772', 'tblTempVendorCDR_20' ) end [2025-03-29 15:30:19] Production.INFO: ProcessCDR(1,14789772,1,1,2) [2025-03-29 15:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789772', 'tblTempUsageDetail_20' ) start [2025-03-29 15:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789772', 'tblTempUsageDetail_20' ) end [2025-03-29 15:30:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 15:30:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 15:30:23] Production.INFO: ==15318== Releasing lock... [2025-03-29 15:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 15:30:23] Production.INFO: 42 MB #Memory Used# [2025-03-29 15:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 12:31:05 [end_date_ymd] => 2025-03-29 15:31:05 [RateCDR] => 1 ) [2025-03-29 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-29 12:31:05' and `end` < '2025-03-29 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-29 15:31:18] Production.INFO: count ==1824 [2025-03-29 15:31:18] Production.ERROR: pbx CDR StartTime 2025-03-29 12:31:05 - End Time 2025-03-29 15:31:05 [2025-03-29 15:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 15:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789777', 'tblTempUsageDetail_20' ) start [2025-03-29 15:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789777', 'tblTempUsageDetail_20' ) end [2025-03-29 15:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789777', 'tblTempVendorCDR_20' ) start [2025-03-29 15:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789777', 'tblTempVendorCDR_20' ) end [2025-03-29 15:31:18] Production.INFO: ProcessCDR(1,14789777,1,1,2) [2025-03-29 15:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789777', 'tblTempUsageDetail_20' ) start [2025-03-29 15:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789777', 'tblTempUsageDetail_20' ) end [2025-03-29 15:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 15:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 15:31:22] Production.INFO: ==15435== Releasing lock... [2025-03-29 15:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 15:31:22] Production.INFO: 41.75 MB #Memory Used# [2025-03-29 15:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 12:32:05 [end_date_ymd] => 2025-03-29 15:32:05 [RateCDR] => 1 ) [2025-03-29 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-29 12:32:05' and `end` < '2025-03-29 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-29 15:32:18] Production.INFO: count ==1823 [2025-03-29 15:32:18] Production.ERROR: pbx CDR StartTime 2025-03-29 12:32:05 - End Time 2025-03-29 15:32:05 [2025-03-29 15:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 15:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789782', 'tblTempUsageDetail_20' ) start [2025-03-29 15:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789782', 'tblTempUsageDetail_20' ) end [2025-03-29 15:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789782', 'tblTempVendorCDR_20' ) start [2025-03-29 15:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789782', 'tblTempVendorCDR_20' ) end [2025-03-29 15:32:18] Production.INFO: ProcessCDR(1,14789782,1,1,2) [2025-03-29 15:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789782', 'tblTempUsageDetail_20' ) start [2025-03-29 15:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789782', 'tblTempUsageDetail_20' ) end [2025-03-29 15:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 15:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 15:32:22] Production.INFO: ==15549== Releasing lock... [2025-03-29 15:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 15:32:22] Production.INFO: 41.75 MB #Memory Used# [2025-03-29 15:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 12:33:05 [end_date_ymd] => 2025-03-29 15:33:05 [RateCDR] => 1 ) [2025-03-29 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-29 12:33:05' and `end` < '2025-03-29 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-29 15:33:17] Production.INFO: count ==1824 [2025-03-29 15:33:18] Production.ERROR: pbx CDR StartTime 2025-03-29 12:33:05 - End Time 2025-03-29 15:33:05 [2025-03-29 15:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 15:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789787', 'tblTempUsageDetail_20' ) start [2025-03-29 15:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789787', 'tblTempUsageDetail_20' ) end [2025-03-29 15:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789787', 'tblTempVendorCDR_20' ) start [2025-03-29 15:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789787', 'tblTempVendorCDR_20' ) end [2025-03-29 15:33:18] Production.INFO: ProcessCDR(1,14789787,1,1,2) [2025-03-29 15:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789787', 'tblTempUsageDetail_20' ) start [2025-03-29 15:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789787', 'tblTempUsageDetail_20' ) end [2025-03-29 15:33:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 15:33:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 15:33:23] Production.INFO: ==15664== Releasing lock... [2025-03-29 15:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 15:33:23] Production.INFO: 41.75 MB #Memory Used# [2025-03-29 15:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 12:34:05 [end_date_ymd] => 2025-03-29 15:34:05 [RateCDR] => 1 ) [2025-03-29 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-29 12:34:05' and `end` < '2025-03-29 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-29 15:34:18] Production.INFO: count ==1808 [2025-03-29 15:34:18] Production.ERROR: pbx CDR StartTime 2025-03-29 12:34:05 - End Time 2025-03-29 15:34:05 [2025-03-29 15:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 15:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789792', 'tblTempUsageDetail_20' ) start [2025-03-29 15:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789792', 'tblTempUsageDetail_20' ) end [2025-03-29 15:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789792', 'tblTempVendorCDR_20' ) start [2025-03-29 15:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789792', 'tblTempVendorCDR_20' ) end [2025-03-29 15:34:18] Production.INFO: ProcessCDR(1,14789792,1,1,2) [2025-03-29 15:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789792', 'tblTempUsageDetail_20' ) start [2025-03-29 15:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789792', 'tblTempUsageDetail_20' ) end [2025-03-29 15:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 15:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 15:34:22] Production.INFO: ==15773== Releasing lock... [2025-03-29 15:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 15:34:22] Production.INFO: 41.5 MB #Memory Used# [2025-03-29 15:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 12:35:05 [end_date_ymd] => 2025-03-29 15:35:05 [RateCDR] => 1 ) [2025-03-29 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-29 12:35:05' and `end` < '2025-03-29 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-29 15:35:18] Production.INFO: count ==1796 [2025-03-29 15:35:19] Production.ERROR: pbx CDR StartTime 2025-03-29 12:35:05 - End Time 2025-03-29 15:35:05 [2025-03-29 15:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 15:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789797', 'tblTempUsageDetail_20' ) start [2025-03-29 15:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789797', 'tblTempUsageDetail_20' ) end [2025-03-29 15:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789797', 'tblTempVendorCDR_20' ) start [2025-03-29 15:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789797', 'tblTempVendorCDR_20' ) end [2025-03-29 15:35:19] Production.INFO: ProcessCDR(1,14789797,1,1,2) [2025-03-29 15:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789797', 'tblTempUsageDetail_20' ) start [2025-03-29 15:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789797', 'tblTempUsageDetail_20' ) end [2025-03-29 15:35:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 15:35:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 15:35:24] Production.INFO: ==15891== Releasing lock... [2025-03-29 15:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 15:35:24] Production.INFO: 41.75 MB #Memory Used# [2025-03-29 15:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 12:36:05 [end_date_ymd] => 2025-03-29 15:36:05 [RateCDR] => 1 ) [2025-03-29 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-29 12:36:05' and `end` < '2025-03-29 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-29 15:36:18] Production.INFO: count ==1798 [2025-03-29 15:36:19] Production.ERROR: pbx CDR StartTime 2025-03-29 12:36:05 - End Time 2025-03-29 15:36:05 [2025-03-29 15:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 15:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789802', 'tblTempUsageDetail_20' ) start [2025-03-29 15:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789802', 'tblTempUsageDetail_20' ) end [2025-03-29 15:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789802', 'tblTempVendorCDR_20' ) start [2025-03-29 15:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789802', 'tblTempVendorCDR_20' ) end [2025-03-29 15:36:19] Production.INFO: ProcessCDR(1,14789802,1,1,2) [2025-03-29 15:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789802', 'tblTempUsageDetail_20' ) start [2025-03-29 15:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789802', 'tblTempUsageDetail_20' ) end [2025-03-29 15:36:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 15:36:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 15:36:22] Production.INFO: ==16005== Releasing lock... [2025-03-29 15:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 15:36:22] Production.INFO: 41.5 MB #Memory Used# [2025-03-29 15:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 12:37:05 [end_date_ymd] => 2025-03-29 15:37:05 [RateCDR] => 1 ) [2025-03-29 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-29 12:37:05' and `end` < '2025-03-29 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-29 15:37:18] Production.INFO: count ==1797 [2025-03-29 15:37:19] Production.ERROR: pbx CDR StartTime 2025-03-29 12:37:05 - End Time 2025-03-29 15:37:05 [2025-03-29 15:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 15:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789807', 'tblTempUsageDetail_20' ) start [2025-03-29 15:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789807', 'tblTempUsageDetail_20' ) end [2025-03-29 15:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789807', 'tblTempVendorCDR_20' ) start [2025-03-29 15:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789807', 'tblTempVendorCDR_20' ) end [2025-03-29 15:37:19] Production.INFO: ProcessCDR(1,14789807,1,1,2) [2025-03-29 15:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789807', 'tblTempUsageDetail_20' ) start [2025-03-29 15:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789807', 'tblTempUsageDetail_20' ) end [2025-03-29 15:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 15:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 15:37:22] Production.INFO: ==16111== Releasing lock... [2025-03-29 15:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 15:37:22] Production.INFO: 41.5 MB #Memory Used# [2025-03-29 15:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 12:38:05 [end_date_ymd] => 2025-03-29 15:38:05 [RateCDR] => 1 ) [2025-03-29 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-29 12:38:05' and `end` < '2025-03-29 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-29 15:38:18] Production.INFO: count ==1792 [2025-03-29 15:38:18] Production.ERROR: pbx CDR StartTime 2025-03-29 12:38:05 - End Time 2025-03-29 15:38:05 [2025-03-29 15:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 15:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789812', 'tblTempUsageDetail_20' ) start [2025-03-29 15:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789812', 'tblTempUsageDetail_20' ) end [2025-03-29 15:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789812', 'tblTempVendorCDR_20' ) start [2025-03-29 15:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789812', 'tblTempVendorCDR_20' ) end [2025-03-29 15:38:18] Production.INFO: ProcessCDR(1,14789812,1,1,2) [2025-03-29 15:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789812', 'tblTempUsageDetail_20' ) start [2025-03-29 15:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789812', 'tblTempUsageDetail_20' ) end [2025-03-29 15:38:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 15:38:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 15:38:23] Production.INFO: ==16267== Releasing lock... [2025-03-29 15:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 15:38:23] Production.INFO: 41.5 MB #Memory Used# [2025-03-29 15:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 12:39:05 [end_date_ymd] => 2025-03-29 15:39:05 [RateCDR] => 1 ) [2025-03-29 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-29 12:39:05' and `end` < '2025-03-29 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-29 15:39:18] Production.INFO: count ==1797 [2025-03-29 15:39:19] Production.ERROR: pbx CDR StartTime 2025-03-29 12:39:05 - End Time 2025-03-29 15:39:05 [2025-03-29 15:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 15:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789817', 'tblTempUsageDetail_20' ) start [2025-03-29 15:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789817', 'tblTempUsageDetail_20' ) end [2025-03-29 15:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789817', 'tblTempVendorCDR_20' ) start [2025-03-29 15:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789817', 'tblTempVendorCDR_20' ) end [2025-03-29 15:39:19] Production.INFO: ProcessCDR(1,14789817,1,1,2) [2025-03-29 15:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789817', 'tblTempUsageDetail_20' ) start [2025-03-29 15:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789817', 'tblTempUsageDetail_20' ) end [2025-03-29 15:39:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 15:39:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 15:39:22] Production.INFO: ==16389== Releasing lock... [2025-03-29 15:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 15:39:22] Production.INFO: 41.5 MB #Memory Used# [2025-03-29 15:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 12:40:05 [end_date_ymd] => 2025-03-29 15:40:05 [RateCDR] => 1 ) [2025-03-29 15:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 12:40:05' and `end` < '2025-03-29 15:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 15:40:18] Production.INFO: count ==1897 [2025-03-29 15:40:19] Production.ERROR: pbx CDR StartTime 2025-03-29 12:40:05 - End Time 2025-03-29 15:40:05 [2025-03-29 15:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 15:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789822', 'tblTempUsageDetail_20' ) start [2025-03-29 15:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789822', 'tblTempUsageDetail_20' ) end [2025-03-29 15:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789822', 'tblTempVendorCDR_20' ) start [2025-03-29 15:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789822', 'tblTempVendorCDR_20' ) end [2025-03-29 15:40:19] Production.INFO: ProcessCDR(1,14789822,1,1,2) [2025-03-29 15:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789822', 'tblTempUsageDetail_20' ) start [2025-03-29 15:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789822', 'tblTempUsageDetail_20' ) end [2025-03-29 15:40:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 15:40:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 15:40:24] Production.INFO: ==16512== Releasing lock... [2025-03-29 15:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 15:40:24] Production.INFO: 42.25 MB #Memory Used# [2025-03-29 15:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 12:41:06 [end_date_ymd] => 2025-03-29 15:41:06 [RateCDR] => 1 ) [2025-03-29 15:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 12:41:06' and `end` < '2025-03-29 15:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 15:41:18] Production.INFO: count ==1937 [2025-03-29 15:41:19] Production.ERROR: pbx CDR StartTime 2025-03-29 12:41:06 - End Time 2025-03-29 15:41:06 [2025-03-29 15:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 15:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789828', 'tblTempUsageDetail_20' ) start [2025-03-29 15:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789828', 'tblTempUsageDetail_20' ) end [2025-03-29 15:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789828', 'tblTempVendorCDR_20' ) start [2025-03-29 15:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789828', 'tblTempVendorCDR_20' ) end [2025-03-29 15:41:19] Production.INFO: ProcessCDR(1,14789828,1,1,2) [2025-03-29 15:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789828', 'tblTempUsageDetail_20' ) start [2025-03-29 15:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789828', 'tblTempUsageDetail_20' ) end [2025-03-29 15:41:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 15:41:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 15:41:23] Production.INFO: ==16639== Releasing lock... [2025-03-29 15:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 15:41:23] Production.INFO: 42.75 MB #Memory Used# [2025-03-29 15:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 12:42:05 [end_date_ymd] => 2025-03-29 15:42:05 [RateCDR] => 1 ) [2025-03-29 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-29 12:42:05' and `end` < '2025-03-29 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-29 15:42:18] Production.INFO: count ==1939 [2025-03-29 15:42:18] Production.ERROR: pbx CDR StartTime 2025-03-29 12:42:05 - End Time 2025-03-29 15:42:05 [2025-03-29 15:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 15:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789833', 'tblTempUsageDetail_20' ) start [2025-03-29 15:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789833', 'tblTempUsageDetail_20' ) end [2025-03-29 15:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789833', 'tblTempVendorCDR_20' ) start [2025-03-29 15:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789833', 'tblTempVendorCDR_20' ) end [2025-03-29 15:42:18] Production.INFO: ProcessCDR(1,14789833,1,1,2) [2025-03-29 15:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789833', 'tblTempUsageDetail_20' ) start [2025-03-29 15:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789833', 'tblTempUsageDetail_20' ) end [2025-03-29 15:42:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 15:42:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 15:42:23] Production.INFO: ==16755== Releasing lock... [2025-03-29 15:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 15:42:23] Production.INFO: 42.5 MB #Memory Used# [2025-03-29 15:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 12:43:05 [end_date_ymd] => 2025-03-29 15:43:05 [RateCDR] => 1 ) [2025-03-29 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-29 12:43:05' and `end` < '2025-03-29 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-29 15:43:18] Production.INFO: count ==1935 [2025-03-29 15:43:19] Production.ERROR: pbx CDR StartTime 2025-03-29 12:43:05 - End Time 2025-03-29 15:43:05 [2025-03-29 15:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 15:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789838', 'tblTempUsageDetail_20' ) start [2025-03-29 15:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789838', 'tblTempUsageDetail_20' ) end [2025-03-29 15:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789838', 'tblTempVendorCDR_20' ) start [2025-03-29 15:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789838', 'tblTempVendorCDR_20' ) end [2025-03-29 15:43:19] Production.INFO: ProcessCDR(1,14789838,1,1,2) [2025-03-29 15:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789838', 'tblTempUsageDetail_20' ) start [2025-03-29 15:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789838', 'tblTempUsageDetail_20' ) end [2025-03-29 15:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 15:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 15:43:22] Production.INFO: ==16879== Releasing lock... [2025-03-29 15:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 15:43:22] Production.INFO: 42.75 MB #Memory Used# [2025-03-29 15:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 12:44:06 [end_date_ymd] => 2025-03-29 15:44:06 [RateCDR] => 1 ) [2025-03-29 15: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-29 12:44:06' and `end` < '2025-03-29 15: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-29 15:44:19] Production.INFO: count ==1932 [2025-03-29 15:44:19] Production.ERROR: pbx CDR StartTime 2025-03-29 12:44:06 - End Time 2025-03-29 15:44:06 [2025-03-29 15:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 15:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789843', 'tblTempUsageDetail_20' ) start [2025-03-29 15:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789843', 'tblTempUsageDetail_20' ) end [2025-03-29 15:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789843', 'tblTempVendorCDR_20' ) start [2025-03-29 15:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789843', 'tblTempVendorCDR_20' ) end [2025-03-29 15:44:19] Production.INFO: ProcessCDR(1,14789843,1,1,2) [2025-03-29 15:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789843', 'tblTempUsageDetail_20' ) start [2025-03-29 15:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789843', 'tblTempUsageDetail_20' ) end [2025-03-29 15:44:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 15:44:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 15:44:23] Production.INFO: ==17001== Releasing lock... [2025-03-29 15:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 15:44:23] Production.INFO: 42.75 MB #Memory Used# [2025-03-29 15:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 12:45:05 [end_date_ymd] => 2025-03-29 15:45:05 [RateCDR] => 1 ) [2025-03-29 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-29 12:45:05' and `end` < '2025-03-29 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-29 15:45:18] Production.INFO: count ==1932 [2025-03-29 15:45:19] Production.ERROR: pbx CDR StartTime 2025-03-29 12:45:05 - End Time 2025-03-29 15:45:05 [2025-03-29 15:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 15:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789848', 'tblTempUsageDetail_20' ) start [2025-03-29 15:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789848', 'tblTempUsageDetail_20' ) end [2025-03-29 15:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789848', 'tblTempVendorCDR_20' ) start [2025-03-29 15:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789848', 'tblTempVendorCDR_20' ) end [2025-03-29 15:45:19] Production.INFO: ProcessCDR(1,14789848,1,1,2) [2025-03-29 15:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789848', 'tblTempUsageDetail_20' ) start [2025-03-29 15:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789848', 'tblTempUsageDetail_20' ) end [2025-03-29 15:45:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 15:45:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 15:45:24] Production.INFO: ==17123== Releasing lock... [2025-03-29 15:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 15:45:24] Production.INFO: 42.5 MB #Memory Used# [2025-03-29 15:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 12:46:06 [end_date_ymd] => 2025-03-29 15:46:06 [RateCDR] => 1 ) [2025-03-29 15:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 12:46:06' and `end` < '2025-03-29 15:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 15:46:18] Production.INFO: count ==1940 [2025-03-29 15:46:19] Production.ERROR: pbx CDR StartTime 2025-03-29 12:46:06 - End Time 2025-03-29 15:46:06 [2025-03-29 15:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 15:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789853', 'tblTempUsageDetail_20' ) start [2025-03-29 15:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789853', 'tblTempUsageDetail_20' ) end [2025-03-29 15:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789853', 'tblTempVendorCDR_20' ) start [2025-03-29 15:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789853', 'tblTempVendorCDR_20' ) end [2025-03-29 15:46:19] Production.INFO: ProcessCDR(1,14789853,1,1,2) [2025-03-29 15:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789853', 'tblTempUsageDetail_20' ) start [2025-03-29 15:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789853', 'tblTempUsageDetail_20' ) end [2025-03-29 15:46:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 15:46:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 15:46:24] Production.INFO: ==17256== Releasing lock... [2025-03-29 15:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 15:46:24] Production.INFO: 42.25 MB #Memory Used# [2025-03-29 15:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 12:47:05 [end_date_ymd] => 2025-03-29 15:47:05 [RateCDR] => 1 ) [2025-03-29 15:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 12:47:05' and `end` < '2025-03-29 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-29 15:47:18] Production.INFO: count ==1925 [2025-03-29 15:47:19] Production.ERROR: pbx CDR StartTime 2025-03-29 12:47:05 - End Time 2025-03-29 15:47:05 [2025-03-29 15:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 15:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789858', 'tblTempUsageDetail_20' ) start [2025-03-29 15:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789858', 'tblTempUsageDetail_20' ) end [2025-03-29 15:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789858', 'tblTempVendorCDR_20' ) start [2025-03-29 15:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789858', 'tblTempVendorCDR_20' ) end [2025-03-29 15:47:19] Production.INFO: ProcessCDR(1,14789858,1,1,2) [2025-03-29 15:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789858', 'tblTempUsageDetail_20' ) start [2025-03-29 15:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789858', 'tblTempUsageDetail_20' ) end [2025-03-29 15:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 15:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 15:47:22] Production.INFO: ==17377== Releasing lock... [2025-03-29 15:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 15:47:22] Production.INFO: 42.75 MB #Memory Used# [2025-03-29 15:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 12:48:06 [end_date_ymd] => 2025-03-29 15:48:06 [RateCDR] => 1 ) [2025-03-29 15:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 12:48:06' and `end` < '2025-03-29 15:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 15:48:19] Production.INFO: count ==1915 [2025-03-29 15:48:19] Production.ERROR: pbx CDR StartTime 2025-03-29 12:48:06 - End Time 2025-03-29 15:48:06 [2025-03-29 15:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 15:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789863', 'tblTempUsageDetail_20' ) start [2025-03-29 15:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789863', 'tblTempUsageDetail_20' ) end [2025-03-29 15:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789863', 'tblTempVendorCDR_20' ) start [2025-03-29 15:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789863', 'tblTempVendorCDR_20' ) end [2025-03-29 15:48:19] Production.INFO: ProcessCDR(1,14789863,1,1,2) [2025-03-29 15:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789863', 'tblTempUsageDetail_20' ) start [2025-03-29 15:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789863', 'tblTempUsageDetail_20' ) end [2025-03-29 15:48:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 15:48:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 15:48:23] Production.INFO: ==17501== Releasing lock... [2025-03-29 15:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 15:48:23] Production.INFO: 42.5 MB #Memory Used# [2025-03-29 15:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 12:49:06 [end_date_ymd] => 2025-03-29 15:49:06 [RateCDR] => 1 ) [2025-03-29 15: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-29 12:49:06' and `end` < '2025-03-29 15: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-29 15:49:19] Production.INFO: count ==1913 [2025-03-29 15:49:19] Production.ERROR: pbx CDR StartTime 2025-03-29 12:49:06 - End Time 2025-03-29 15:49:06 [2025-03-29 15:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 15:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789868', 'tblTempUsageDetail_20' ) start [2025-03-29 15:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789868', 'tblTempUsageDetail_20' ) end [2025-03-29 15:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789868', 'tblTempVendorCDR_20' ) start [2025-03-29 15:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789868', 'tblTempVendorCDR_20' ) end [2025-03-29 15:49:19] Production.INFO: ProcessCDR(1,14789868,1,1,2) [2025-03-29 15:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789868', 'tblTempUsageDetail_20' ) start [2025-03-29 15:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789868', 'tblTempUsageDetail_20' ) end [2025-03-29 15:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 15:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 15:49:22] Production.INFO: ==17622== Releasing lock... [2025-03-29 15:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 15:49:22] Production.INFO: 42.5 MB #Memory Used# [2025-03-29 15:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 12:50:06 [end_date_ymd] => 2025-03-29 15:50:06 [RateCDR] => 1 ) [2025-03-29 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-29 12:50:06' and `end` < '2025-03-29 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-29 15:50:19] Production.INFO: count ==1939 [2025-03-29 15:50:20] Production.ERROR: pbx CDR StartTime 2025-03-29 12:50:06 - End Time 2025-03-29 15:50:06 [2025-03-29 15:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 15:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789874', 'tblTempUsageDetail_20' ) start [2025-03-29 15:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789874', 'tblTempUsageDetail_20' ) end [2025-03-29 15:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789874', 'tblTempVendorCDR_20' ) start [2025-03-29 15:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789874', 'tblTempVendorCDR_20' ) end [2025-03-29 15:50:20] Production.INFO: ProcessCDR(1,14789874,1,1,2) [2025-03-29 15:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789874', 'tblTempUsageDetail_20' ) start [2025-03-29 15:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789874', 'tblTempUsageDetail_20' ) end [2025-03-29 15:50:25] Production.ERROR: pbx prc_insertCDR start [2025-03-29 15:50:25] Production.ERROR: pbx prc_insertCDR end [2025-03-29 15:50:25] Production.INFO: ==17749== Releasing lock... [2025-03-29 15:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 15:50:25] Production.INFO: 42.5 MB #Memory Used# [2025-03-29 15:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 12:51:05 [end_date_ymd] => 2025-03-29 15:51:05 [RateCDR] => 1 ) [2025-03-29 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-29 12:51:05' and `end` < '2025-03-29 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-29 15:51:18] Production.INFO: count ==1953 [2025-03-29 15:51:19] Production.ERROR: pbx CDR StartTime 2025-03-29 12:51:05 - End Time 2025-03-29 15:51:05 [2025-03-29 15:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 15:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789879', 'tblTempUsageDetail_20' ) start [2025-03-29 15:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789879', 'tblTempUsageDetail_20' ) end [2025-03-29 15:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789879', 'tblTempVendorCDR_20' ) start [2025-03-29 15:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789879', 'tblTempVendorCDR_20' ) end [2025-03-29 15:51:19] Production.INFO: ProcessCDR(1,14789879,1,1,2) [2025-03-29 15:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789879', 'tblTempUsageDetail_20' ) start [2025-03-29 15:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789879', 'tblTempUsageDetail_20' ) end [2025-03-29 15:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 15:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 15:51:22] Production.INFO: ==17875== Releasing lock... [2025-03-29 15:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 15:51:22] Production.INFO: 42.75 MB #Memory Used# [2025-03-29 15:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 12:52:06 [end_date_ymd] => 2025-03-29 15:52:06 [RateCDR] => 1 ) [2025-03-29 15: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-29 12:52:06' and `end` < '2025-03-29 15: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-29 15:52:19] Production.INFO: count ==1961 [2025-03-29 15:52:19] Production.ERROR: pbx CDR StartTime 2025-03-29 12:52:06 - End Time 2025-03-29 15:52:06 [2025-03-29 15:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 15:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789884', 'tblTempUsageDetail_20' ) start [2025-03-29 15:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789884', 'tblTempUsageDetail_20' ) end [2025-03-29 15:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789884', 'tblTempVendorCDR_20' ) start [2025-03-29 15:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789884', 'tblTempVendorCDR_20' ) end [2025-03-29 15:52:19] Production.INFO: ProcessCDR(1,14789884,1,1,2) [2025-03-29 15:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789884', 'tblTempUsageDetail_20' ) start [2025-03-29 15:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789884', 'tblTempUsageDetail_20' ) end [2025-03-29 15:52:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 15:52:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 15:52:23] Production.INFO: ==17997== Releasing lock... [2025-03-29 15:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 15:52:23] Production.INFO: 42.75 MB #Memory Used# [2025-03-29 15:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 12:53:06 [end_date_ymd] => 2025-03-29 15:53:06 [RateCDR] => 1 ) [2025-03-29 15:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 12:53:06' and `end` < '2025-03-29 15:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 15:53:18] Production.INFO: count ==1957 [2025-03-29 15:53:19] Production.ERROR: pbx CDR StartTime 2025-03-29 12:53:06 - End Time 2025-03-29 15:53:06 [2025-03-29 15:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 15:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789889', 'tblTempUsageDetail_20' ) start [2025-03-29 15:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789889', 'tblTempUsageDetail_20' ) end [2025-03-29 15:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789889', 'tblTempVendorCDR_20' ) start [2025-03-29 15:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789889', 'tblTempVendorCDR_20' ) end [2025-03-29 15:53:19] Production.INFO: ProcessCDR(1,14789889,1,1,2) [2025-03-29 15:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789889', 'tblTempUsageDetail_20' ) start [2025-03-29 15:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789889', 'tblTempUsageDetail_20' ) end [2025-03-29 15:53:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 15:53:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 15:53:24] Production.INFO: ==18146== Releasing lock... [2025-03-29 15:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 15:53:24] Production.INFO: 42.75 MB #Memory Used# [2025-03-29 15:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 12:54:06 [end_date_ymd] => 2025-03-29 15:54:06 [RateCDR] => 1 ) [2025-03-29 15: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-29 12:54:06' and `end` < '2025-03-29 15: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-29 15:54:18] Production.INFO: count ==1950 [2025-03-29 15:54:19] Production.ERROR: pbx CDR StartTime 2025-03-29 12:54:06 - End Time 2025-03-29 15:54:06 [2025-03-29 15:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 15:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789894', 'tblTempUsageDetail_20' ) start [2025-03-29 15:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789894', 'tblTempUsageDetail_20' ) end [2025-03-29 15:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789894', 'tblTempVendorCDR_20' ) start [2025-03-29 15:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789894', 'tblTempVendorCDR_20' ) end [2025-03-29 15:54:19] Production.INFO: ProcessCDR(1,14789894,1,1,2) [2025-03-29 15:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789894', 'tblTempUsageDetail_20' ) start [2025-03-29 15:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789894', 'tblTempUsageDetail_20' ) end [2025-03-29 15:54:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 15:54:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 15:54:23] Production.INFO: ==18252== Releasing lock... [2025-03-29 15:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 15:54:23] Production.INFO: 42.75 MB #Memory Used# [2025-03-29 15:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 12:55:05 [end_date_ymd] => 2025-03-29 15:55:05 [RateCDR] => 1 ) [2025-03-29 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-29 12:55:05' and `end` < '2025-03-29 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-29 15:55:17] Production.INFO: count ==1946 [2025-03-29 15:55:18] Production.ERROR: pbx CDR StartTime 2025-03-29 12:55:05 - End Time 2025-03-29 15:55:05 [2025-03-29 15:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 15:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789899', 'tblTempUsageDetail_20' ) start [2025-03-29 15:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789899', 'tblTempUsageDetail_20' ) end [2025-03-29 15:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789899', 'tblTempVendorCDR_20' ) start [2025-03-29 15:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789899', 'tblTempVendorCDR_20' ) end [2025-03-29 15:55:18] Production.INFO: ProcessCDR(1,14789899,1,1,2) [2025-03-29 15:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789899', 'tblTempUsageDetail_20' ) start [2025-03-29 15:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789899', 'tblTempUsageDetail_20' ) end [2025-03-29 15:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 15:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 15:55:22] Production.INFO: ==18355== Releasing lock... [2025-03-29 15:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 15:55:22] Production.INFO: 43 MB #Memory Used# [2025-03-29 15:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 12:56:05 [end_date_ymd] => 2025-03-29 15:56:05 [RateCDR] => 1 ) [2025-03-29 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-29 12:56:05' and `end` < '2025-03-29 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-29 15:56:18] Production.INFO: count ==1948 [2025-03-29 15:56:19] Production.ERROR: pbx CDR StartTime 2025-03-29 12:56:05 - End Time 2025-03-29 15:56:05 [2025-03-29 15:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 15:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789904', 'tblTempUsageDetail_20' ) start [2025-03-29 15:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789904', 'tblTempUsageDetail_20' ) end [2025-03-29 15:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789904', 'tblTempVendorCDR_20' ) start [2025-03-29 15:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789904', 'tblTempVendorCDR_20' ) end [2025-03-29 15:56:19] Production.INFO: ProcessCDR(1,14789904,1,1,2) [2025-03-29 15:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789904', 'tblTempUsageDetail_20' ) start [2025-03-29 15:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789904', 'tblTempUsageDetail_20' ) end [2025-03-29 15:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 15:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 15:56:22] Production.INFO: ==18461== Releasing lock... [2025-03-29 15:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 15:56:22] Production.INFO: 42.75 MB #Memory Used# [2025-03-29 15:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 12:57:05 [end_date_ymd] => 2025-03-29 15:57:05 [RateCDR] => 1 ) [2025-03-29 15:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 12:57:05' and `end` < '2025-03-29 15:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 15:57:18] Production.INFO: count ==1947 [2025-03-29 15:57:19] Production.ERROR: pbx CDR StartTime 2025-03-29 12:57:05 - End Time 2025-03-29 15:57:05 [2025-03-29 15:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 15:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789909', 'tblTempUsageDetail_20' ) start [2025-03-29 15:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789909', 'tblTempUsageDetail_20' ) end [2025-03-29 15:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789909', 'tblTempVendorCDR_20' ) start [2025-03-29 15:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789909', 'tblTempVendorCDR_20' ) end [2025-03-29 15:57:19] Production.INFO: ProcessCDR(1,14789909,1,1,2) [2025-03-29 15:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789909', 'tblTempUsageDetail_20' ) start [2025-03-29 15:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789909', 'tblTempUsageDetail_20' ) end [2025-03-29 15:57:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 15:57:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 15:57:24] Production.INFO: ==18566== Releasing lock... [2025-03-29 15:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 15:57:24] Production.INFO: 42.75 MB #Memory Used# [2025-03-29 15:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 12:58:06 [end_date_ymd] => 2025-03-29 15:58:06 [RateCDR] => 1 ) [2025-03-29 15: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-29 12:58:06' and `end` < '2025-03-29 15: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-29 15:58:18] Production.INFO: count ==1931 [2025-03-29 15:58:19] Production.ERROR: pbx CDR StartTime 2025-03-29 12:58:06 - End Time 2025-03-29 15:58:06 [2025-03-29 15:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 15:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789914', 'tblTempUsageDetail_20' ) start [2025-03-29 15:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789914', 'tblTempUsageDetail_20' ) end [2025-03-29 15:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789914', 'tblTempVendorCDR_20' ) start [2025-03-29 15:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789914', 'tblTempVendorCDR_20' ) end [2025-03-29 15:58:19] Production.INFO: ProcessCDR(1,14789914,1,1,2) [2025-03-29 15:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789914', 'tblTempUsageDetail_20' ) start [2025-03-29 15:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789914', 'tblTempUsageDetail_20' ) end [2025-03-29 15:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 15:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 15:58:22] Production.INFO: ==18669== Releasing lock... [2025-03-29 15:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 15:58:22] Production.INFO: 42.75 MB #Memory Used# [2025-03-29 15:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 12:59:05 [end_date_ymd] => 2025-03-29 15:59:05 [RateCDR] => 1 ) [2025-03-29 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-29 12:59:05' and `end` < '2025-03-29 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-29 15:59:17] Production.INFO: count ==1934 [2025-03-29 15:59:18] Production.ERROR: pbx CDR StartTime 2025-03-29 12:59:05 - End Time 2025-03-29 15:59:05 [2025-03-29 15:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 15:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789919', 'tblTempUsageDetail_20' ) start [2025-03-29 15:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789919', 'tblTempUsageDetail_20' ) end [2025-03-29 15:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789919', 'tblTempVendorCDR_20' ) start [2025-03-29 15:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789919', 'tblTempVendorCDR_20' ) end [2025-03-29 15:59:18] Production.INFO: ProcessCDR(1,14789919,1,1,2) [2025-03-29 15:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 15:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 15:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789919', 'tblTempUsageDetail_20' ) start [2025-03-29 15:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789919', 'tblTempUsageDetail_20' ) end [2025-03-29 15:59:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 15:59:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 15:59:23] Production.INFO: ==18774== Releasing lock... [2025-03-29 15:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 15:59:23] Production.INFO: 42.5 MB #Memory Used# [2025-03-29 16:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 13:00:06 [end_date_ymd] => 2025-03-29 16:00:06 [RateCDR] => 1 ) [2025-03-29 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-29 13:00:06' and `end` < '2025-03-29 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-29 16:00:19] Production.INFO: count ==1920 [2025-03-29 16:00:19] Production.ERROR: pbx CDR StartTime 2025-03-29 13:00:06 - End Time 2025-03-29 16:00:06 [2025-03-29 16:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 16:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789925', 'tblTempUsageDetail_20' ) start [2025-03-29 16:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789925', 'tblTempUsageDetail_20' ) end [2025-03-29 16:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789925', 'tblTempVendorCDR_20' ) start [2025-03-29 16:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789925', 'tblTempVendorCDR_20' ) end [2025-03-29 16:00:19] Production.INFO: ProcessCDR(1,14789925,1,1,2) [2025-03-29 16:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789925', 'tblTempUsageDetail_20' ) start [2025-03-29 16:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789925', 'tblTempUsageDetail_20' ) end [2025-03-29 16:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 16:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 16:00:23] Production.INFO: ==18884== Releasing lock... [2025-03-29 16:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 16:00:23] Production.INFO: 42.75 MB #Memory Used# [2025-03-29 16:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 13:01:05 [end_date_ymd] => 2025-03-29 16:01:05 [RateCDR] => 1 ) [2025-03-29 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-29 13:01:05' and `end` < '2025-03-29 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-29 16:01:17] Production.INFO: count ==1935 [2025-03-29 16:01:18] Production.ERROR: pbx CDR StartTime 2025-03-29 13:01:05 - End Time 2025-03-29 16:01:05 [2025-03-29 16:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 16:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789930', 'tblTempUsageDetail_20' ) start [2025-03-29 16:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789930', 'tblTempUsageDetail_20' ) end [2025-03-29 16:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789930', 'tblTempVendorCDR_20' ) start [2025-03-29 16:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789930', 'tblTempVendorCDR_20' ) end [2025-03-29 16:01:18] Production.INFO: ProcessCDR(1,14789930,1,1,2) [2025-03-29 16:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789930', 'tblTempUsageDetail_20' ) start [2025-03-29 16:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789930', 'tblTempUsageDetail_20' ) end [2025-03-29 16:01:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 16:01:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 16:01:23] Production.INFO: ==18998== Releasing lock... [2025-03-29 16:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 16:01:23] Production.INFO: 42.5 MB #Memory Used# [2025-03-29 16:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 13:02:05 [end_date_ymd] => 2025-03-29 16:02:05 [RateCDR] => 1 ) [2025-03-29 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-29 13:02:05' and `end` < '2025-03-29 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-29 16:02:18] Production.INFO: count ==1926 [2025-03-29 16:02:19] Production.ERROR: pbx CDR StartTime 2025-03-29 13:02:05 - End Time 2025-03-29 16:02:05 [2025-03-29 16:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 16:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789935', 'tblTempUsageDetail_20' ) start [2025-03-29 16:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789935', 'tblTempUsageDetail_20' ) end [2025-03-29 16:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789935', 'tblTempVendorCDR_20' ) start [2025-03-29 16:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789935', 'tblTempVendorCDR_20' ) end [2025-03-29 16:02:19] Production.INFO: ProcessCDR(1,14789935,1,1,2) [2025-03-29 16:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789935', 'tblTempUsageDetail_20' ) start [2025-03-29 16:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789935', 'tblTempUsageDetail_20' ) end [2025-03-29 16:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 16:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 16:02:22] Production.INFO: ==19106== Releasing lock... [2025-03-29 16:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 16:02:22] Production.INFO: 42.5 MB #Memory Used# [2025-03-29 16:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 13:03:05 [end_date_ymd] => 2025-03-29 16:03:05 [RateCDR] => 1 ) [2025-03-29 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-29 13:03:05' and `end` < '2025-03-29 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-29 16:03:18] Production.INFO: count ==1908 [2025-03-29 16:03:18] Production.ERROR: pbx CDR StartTime 2025-03-29 13:03:05 - End Time 2025-03-29 16:03:05 [2025-03-29 16:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 16:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789940', 'tblTempUsageDetail_20' ) start [2025-03-29 16:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789940', 'tblTempUsageDetail_20' ) end [2025-03-29 16:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789940', 'tblTempVendorCDR_20' ) start [2025-03-29 16:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789940', 'tblTempVendorCDR_20' ) end [2025-03-29 16:03:18] Production.INFO: ProcessCDR(1,14789940,1,1,2) [2025-03-29 16:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789940', 'tblTempUsageDetail_20' ) start [2025-03-29 16:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789940', 'tblTempUsageDetail_20' ) end [2025-03-29 16:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 16:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 16:03:22] Production.INFO: ==19203== Releasing lock... [2025-03-29 16:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 16:03:22] Production.INFO: 42.25 MB #Memory Used# [2025-03-29 16:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 13:04:05 [end_date_ymd] => 2025-03-29 16:04:05 [RateCDR] => 1 ) [2025-03-29 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-29 13:04:05' and `end` < '2025-03-29 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-29 16:04:18] Production.INFO: count ==1903 [2025-03-29 16:04:19] Production.ERROR: pbx CDR StartTime 2025-03-29 13:04:05 - End Time 2025-03-29 16:04:05 [2025-03-29 16:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 16:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789945', 'tblTempUsageDetail_20' ) start [2025-03-29 16:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789945', 'tblTempUsageDetail_20' ) end [2025-03-29 16:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789945', 'tblTempVendorCDR_20' ) start [2025-03-29 16:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789945', 'tblTempVendorCDR_20' ) end [2025-03-29 16:04:19] Production.INFO: ProcessCDR(1,14789945,1,1,2) [2025-03-29 16:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789945', 'tblTempUsageDetail_20' ) start [2025-03-29 16:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789945', 'tblTempUsageDetail_20' ) end [2025-03-29 16:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 16:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 16:04:22] Production.INFO: ==19299== Releasing lock... [2025-03-29 16:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 16:04:22] Production.INFO: 42.25 MB #Memory Used# [2025-03-29 16:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 13:05:05 [end_date_ymd] => 2025-03-29 16:05:05 [RateCDR] => 1 ) [2025-03-29 16:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 13:05:05' and `end` < '2025-03-29 16:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 16:05:18] Production.INFO: count ==1889 [2025-03-29 16:05:19] Production.ERROR: pbx CDR StartTime 2025-03-29 13:05:05 - End Time 2025-03-29 16:05:05 [2025-03-29 16:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 16:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789950', 'tblTempUsageDetail_20' ) start [2025-03-29 16:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789950', 'tblTempUsageDetail_20' ) end [2025-03-29 16:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789950', 'tblTempVendorCDR_20' ) start [2025-03-29 16:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789950', 'tblTempVendorCDR_20' ) end [2025-03-29 16:05:19] Production.INFO: ProcessCDR(1,14789950,1,1,2) [2025-03-29 16:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789950', 'tblTempUsageDetail_20' ) start [2025-03-29 16:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789950', 'tblTempUsageDetail_20' ) end [2025-03-29 16:05:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 16:05:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 16:05:24] Production.INFO: ==19397== Releasing lock... [2025-03-29 16:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 16:05:24] Production.INFO: 42.25 MB #Memory Used# [2025-03-29 16:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 13:06:05 [end_date_ymd] => 2025-03-29 16:06:05 [RateCDR] => 1 ) [2025-03-29 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-29 13:06:05' and `end` < '2025-03-29 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-29 16:06:18] Production.INFO: count ==1894 [2025-03-29 16:06:19] Production.ERROR: pbx CDR StartTime 2025-03-29 13:06:05 - End Time 2025-03-29 16:06:05 [2025-03-29 16:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 16:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789955', 'tblTempUsageDetail_20' ) start [2025-03-29 16:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789955', 'tblTempUsageDetail_20' ) end [2025-03-29 16:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789955', 'tblTempVendorCDR_20' ) start [2025-03-29 16:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789955', 'tblTempVendorCDR_20' ) end [2025-03-29 16:06:19] Production.INFO: ProcessCDR(1,14789955,1,1,2) [2025-03-29 16:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789955', 'tblTempUsageDetail_20' ) start [2025-03-29 16:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789955', 'tblTempUsageDetail_20' ) end [2025-03-29 16:06:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 16:06:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 16:06:23] Production.INFO: ==19500== Releasing lock... [2025-03-29 16:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 16:06:23] Production.INFO: 42.25 MB #Memory Used# [2025-03-29 16:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 13:07:06 [end_date_ymd] => 2025-03-29 16:07:06 [RateCDR] => 1 ) [2025-03-29 16:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 13:07:06' and `end` < '2025-03-29 16:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 16:07:19] Production.INFO: count ==1888 [2025-03-29 16:07:19] Production.ERROR: pbx CDR StartTime 2025-03-29 13:07:06 - End Time 2025-03-29 16:07:06 [2025-03-29 16:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 16:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789960', 'tblTempUsageDetail_20' ) start [2025-03-29 16:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789960', 'tblTempUsageDetail_20' ) end [2025-03-29 16:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789960', 'tblTempVendorCDR_20' ) start [2025-03-29 16:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789960', 'tblTempVendorCDR_20' ) end [2025-03-29 16:07:19] Production.INFO: ProcessCDR(1,14789960,1,1,2) [2025-03-29 16:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789960', 'tblTempUsageDetail_20' ) start [2025-03-29 16:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789960', 'tblTempUsageDetail_20' ) end [2025-03-29 16:07:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 16:07:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 16:07:23] Production.INFO: ==19587== Releasing lock... [2025-03-29 16:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 16:07:23] Production.INFO: 42.25 MB #Memory Used# [2025-03-29 16:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 13:08:05 [end_date_ymd] => 2025-03-29 16:08:05 [RateCDR] => 1 ) [2025-03-29 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-29 13:08:05' and `end` < '2025-03-29 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-29 16:08:18] Production.INFO: count ==1886 [2025-03-29 16:08:18] Production.ERROR: pbx CDR StartTime 2025-03-29 13:08:05 - End Time 2025-03-29 16:08:05 [2025-03-29 16:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 16:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789965', 'tblTempUsageDetail_20' ) start [2025-03-29 16:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789965', 'tblTempUsageDetail_20' ) end [2025-03-29 16:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789965', 'tblTempVendorCDR_20' ) start [2025-03-29 16:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789965', 'tblTempVendorCDR_20' ) end [2025-03-29 16:08:18] Production.INFO: ProcessCDR(1,14789965,1,1,2) [2025-03-29 16:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789965', 'tblTempUsageDetail_20' ) start [2025-03-29 16:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789965', 'tblTempUsageDetail_20' ) end [2025-03-29 16:08:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 16:08:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 16:08:24] Production.INFO: ==19716== Releasing lock... [2025-03-29 16:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 16:08:24] Production.INFO: 42.25 MB #Memory Used# [2025-03-29 16:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 13:09:05 [end_date_ymd] => 2025-03-29 16:09:05 [RateCDR] => 1 ) [2025-03-29 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-29 13:09:05' and `end` < '2025-03-29 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-29 16:09:18] Production.INFO: count ==1893 [2025-03-29 16:09:19] Production.ERROR: pbx CDR StartTime 2025-03-29 13:09:05 - End Time 2025-03-29 16:09:05 [2025-03-29 16:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 16:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789970', 'tblTempUsageDetail_20' ) start [2025-03-29 16:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789970', 'tblTempUsageDetail_20' ) end [2025-03-29 16:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789970', 'tblTempVendorCDR_20' ) start [2025-03-29 16:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789970', 'tblTempVendorCDR_20' ) end [2025-03-29 16:09:19] Production.INFO: ProcessCDR(1,14789970,1,1,2) [2025-03-29 16:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789970', 'tblTempUsageDetail_20' ) start [2025-03-29 16:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789970', 'tblTempUsageDetail_20' ) end [2025-03-29 16:09:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 16:09:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 16:09:24] Production.INFO: ==19805== Releasing lock... [2025-03-29 16:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 16:09:24] Production.INFO: 42.25 MB #Memory Used# [2025-03-29 16:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 13:10:05 [end_date_ymd] => 2025-03-29 16:10:05 [RateCDR] => 1 ) [2025-03-29 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-29 13:10:05' and `end` < '2025-03-29 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-29 16:10:18] Production.INFO: count ==1895 [2025-03-29 16:10:19] Production.ERROR: pbx CDR StartTime 2025-03-29 13:10:05 - End Time 2025-03-29 16:10:05 [2025-03-29 16:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 16:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789975', 'tblTempUsageDetail_20' ) start [2025-03-29 16:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789975', 'tblTempUsageDetail_20' ) end [2025-03-29 16:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789975', 'tblTempVendorCDR_20' ) start [2025-03-29 16:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789975', 'tblTempVendorCDR_20' ) end [2025-03-29 16:10:19] Production.INFO: ProcessCDR(1,14789975,1,1,2) [2025-03-29 16:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789975', 'tblTempUsageDetail_20' ) start [2025-03-29 16:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789975', 'tblTempUsageDetail_20' ) end [2025-03-29 16:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 16:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 16:10:22] Production.INFO: ==19894== Releasing lock... [2025-03-29 16:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 16:10:22] Production.INFO: 42.25 MB #Memory Used# [2025-03-29 16:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 13:11:05 [end_date_ymd] => 2025-03-29 16:11:05 [RateCDR] => 1 ) [2025-03-29 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-29 13:11:05' and `end` < '2025-03-29 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-29 16:11:18] Production.INFO: count ==1868 [2025-03-29 16:11:18] Production.ERROR: pbx CDR StartTime 2025-03-29 13:11:05 - End Time 2025-03-29 16:11:05 [2025-03-29 16:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 16:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789981', 'tblTempUsageDetail_20' ) start [2025-03-29 16:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789981', 'tblTempUsageDetail_20' ) end [2025-03-29 16:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789981', 'tblTempVendorCDR_20' ) start [2025-03-29 16:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789981', 'tblTempVendorCDR_20' ) end [2025-03-29 16:11:18] Production.INFO: ProcessCDR(1,14789981,1,1,2) [2025-03-29 16:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789981', 'tblTempUsageDetail_20' ) start [2025-03-29 16:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789981', 'tblTempUsageDetail_20' ) end [2025-03-29 16:11:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 16:11:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 16:11:24] Production.INFO: ==19991== Releasing lock... [2025-03-29 16:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 16:11:24] Production.INFO: 42 MB #Memory Used# [2025-03-29 16:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 13:12:05 [end_date_ymd] => 2025-03-29 16:12:05 [RateCDR] => 1 ) [2025-03-29 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-29 13:12:05' and `end` < '2025-03-29 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-29 16:12:18] Production.INFO: count ==1851 [2025-03-29 16:12:18] Production.ERROR: pbx CDR StartTime 2025-03-29 13:12:05 - End Time 2025-03-29 16:12:05 [2025-03-29 16:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 16:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789986', 'tblTempUsageDetail_20' ) start [2025-03-29 16:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789986', 'tblTempUsageDetail_20' ) end [2025-03-29 16:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789986', 'tblTempVendorCDR_20' ) start [2025-03-29 16:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789986', 'tblTempVendorCDR_20' ) end [2025-03-29 16:12:18] Production.INFO: ProcessCDR(1,14789986,1,1,2) [2025-03-29 16:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789986', 'tblTempUsageDetail_20' ) start [2025-03-29 16:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789986', 'tblTempUsageDetail_20' ) end [2025-03-29 16:12:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 16:12:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 16:12:22] Production.INFO: ==20077== Releasing lock... [2025-03-29 16:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 16:12:22] Production.INFO: 42.25 MB #Memory Used# [2025-03-29 16:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 13:13:05 [end_date_ymd] => 2025-03-29 16:13:05 [RateCDR] => 1 ) [2025-03-29 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-29 13:13:05' and `end` < '2025-03-29 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-29 16:13:18] Production.INFO: count ==1844 [2025-03-29 16:13:19] Production.ERROR: pbx CDR StartTime 2025-03-29 13:13:05 - End Time 2025-03-29 16:13:05 [2025-03-29 16:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 16:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789991', 'tblTempUsageDetail_20' ) start [2025-03-29 16:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789991', 'tblTempUsageDetail_20' ) end [2025-03-29 16:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789991', 'tblTempVendorCDR_20' ) start [2025-03-29 16:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789991', 'tblTempVendorCDR_20' ) end [2025-03-29 16:13:19] Production.INFO: ProcessCDR(1,14789991,1,1,2) [2025-03-29 16:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789991', 'tblTempUsageDetail_20' ) start [2025-03-29 16:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789991', 'tblTempUsageDetail_20' ) end [2025-03-29 16:13:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 16:13:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 16:13:22] Production.INFO: ==20160== Releasing lock... [2025-03-29 16:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 16:13:22] Production.INFO: 42 MB #Memory Used# [2025-03-29 16:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 13:14:04 [end_date_ymd] => 2025-03-29 16:14:04 [RateCDR] => 1 ) [2025-03-29 16: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-29 13:14:04' and `end` < '2025-03-29 16: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-29 16:14:17] Production.INFO: count ==1865 [2025-03-29 16:14:18] Production.ERROR: pbx CDR StartTime 2025-03-29 13:14:04 - End Time 2025-03-29 16:14:04 [2025-03-29 16:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 16:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789996', 'tblTempUsageDetail_20' ) start [2025-03-29 16:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14789996', 'tblTempUsageDetail_20' ) end [2025-03-29 16:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789996', 'tblTempVendorCDR_20' ) start [2025-03-29 16:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14789996', 'tblTempVendorCDR_20' ) end [2025-03-29 16:14:18] Production.INFO: ProcessCDR(1,14789996,1,1,2) [2025-03-29 16:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14789996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14789996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14789996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14789996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789996', 'tblTempUsageDetail_20' ) start [2025-03-29 16:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14789996', 'tblTempUsageDetail_20' ) end [2025-03-29 16:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 16:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 16:14:21] Production.INFO: ==20238== Releasing lock... [2025-03-29 16:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 16:14:21] Production.INFO: 42 MB #Memory Used# [2025-03-29 16:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 13:15:05 [end_date_ymd] => 2025-03-29 16:15:05 [RateCDR] => 1 ) [2025-03-29 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-29 13:15:05' and `end` < '2025-03-29 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-29 16:15:18] Production.INFO: count ==1874 [2025-03-29 16:15:18] Production.ERROR: pbx CDR StartTime 2025-03-29 13:15:05 - End Time 2025-03-29 16:15:05 [2025-03-29 16:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 16:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790001', 'tblTempUsageDetail_20' ) start [2025-03-29 16:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790001', 'tblTempUsageDetail_20' ) end [2025-03-29 16:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790001', 'tblTempVendorCDR_20' ) start [2025-03-29 16:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790001', 'tblTempVendorCDR_20' ) end [2025-03-29 16:15:18] Production.INFO: ProcessCDR(1,14790001,1,1,2) [2025-03-29 16:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790001', 'tblTempUsageDetail_20' ) start [2025-03-29 16:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790001', 'tblTempUsageDetail_20' ) end [2025-03-29 16:15:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 16:15:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 16:15:22] Production.INFO: ==20321== Releasing lock... [2025-03-29 16:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 16:15:22] Production.INFO: 42.25 MB #Memory Used# [2025-03-29 16:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 13:16:05 [end_date_ymd] => 2025-03-29 16:16:05 [RateCDR] => 1 ) [2025-03-29 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-29 13:16:05' and `end` < '2025-03-29 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-29 16:16:18] Production.INFO: count ==1872 [2025-03-29 16:16:18] Production.ERROR: pbx CDR StartTime 2025-03-29 13:16:05 - End Time 2025-03-29 16:16:05 [2025-03-29 16:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 16:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790006', 'tblTempUsageDetail_20' ) start [2025-03-29 16:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790006', 'tblTempUsageDetail_20' ) end [2025-03-29 16:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790006', 'tblTempVendorCDR_20' ) start [2025-03-29 16:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790006', 'tblTempVendorCDR_20' ) end [2025-03-29 16:16:18] Production.INFO: ProcessCDR(1,14790006,1,1,2) [2025-03-29 16:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790006', 'tblTempUsageDetail_20' ) start [2025-03-29 16:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790006', 'tblTempUsageDetail_20' ) end [2025-03-29 16:16:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 16:16:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 16:16:22] Production.INFO: ==20397== Releasing lock... [2025-03-29 16:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 16:16:22] Production.INFO: 42 MB #Memory Used# [2025-03-29 16:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 13:17:05 [end_date_ymd] => 2025-03-29 16:17:05 [RateCDR] => 1 ) [2025-03-29 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-29 13:17:05' and `end` < '2025-03-29 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-29 16:17:18] Production.INFO: count ==1877 [2025-03-29 16:17:19] Production.ERROR: pbx CDR StartTime 2025-03-29 13:17:05 - End Time 2025-03-29 16:17:05 [2025-03-29 16:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 16:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790011', 'tblTempUsageDetail_20' ) start [2025-03-29 16:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790011', 'tblTempUsageDetail_20' ) end [2025-03-29 16:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790011', 'tblTempVendorCDR_20' ) start [2025-03-29 16:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790011', 'tblTempVendorCDR_20' ) end [2025-03-29 16:17:19] Production.INFO: ProcessCDR(1,14790011,1,1,2) [2025-03-29 16:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790011', 'tblTempUsageDetail_20' ) start [2025-03-29 16:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790011', 'tblTempUsageDetail_20' ) end [2025-03-29 16:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 16:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 16:17:22] Production.INFO: ==20473== Releasing lock... [2025-03-29 16:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 16:17:22] Production.INFO: 42.25 MB #Memory Used# [2025-03-29 16:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 13:18:05 [end_date_ymd] => 2025-03-29 16:18:05 [RateCDR] => 1 ) [2025-03-29 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-29 13:18:05' and `end` < '2025-03-29 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-29 16:18:17] Production.INFO: count ==1865 [2025-03-29 16:18:18] Production.ERROR: pbx CDR StartTime 2025-03-29 13:18:05 - End Time 2025-03-29 16:18:05 [2025-03-29 16:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 16:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790016', 'tblTempUsageDetail_20' ) start [2025-03-29 16:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790016', 'tblTempUsageDetail_20' ) end [2025-03-29 16:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790016', 'tblTempVendorCDR_20' ) start [2025-03-29 16:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790016', 'tblTempVendorCDR_20' ) end [2025-03-29 16:18:18] Production.INFO: ProcessCDR(1,14790016,1,1,2) [2025-03-29 16:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790016', 'tblTempUsageDetail_20' ) start [2025-03-29 16:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790016', 'tblTempUsageDetail_20' ) end [2025-03-29 16:18:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 16:18:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 16:18:23] Production.INFO: ==20552== Releasing lock... [2025-03-29 16:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 16:18:23] Production.INFO: 42 MB #Memory Used# [2025-03-29 16:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 13:19:05 [end_date_ymd] => 2025-03-29 16:19:05 [RateCDR] => 1 ) [2025-03-29 16:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 13:19:05' and `end` < '2025-03-29 16:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 16:19:18] Production.INFO: count ==1854 [2025-03-29 16:19:19] Production.ERROR: pbx CDR StartTime 2025-03-29 13:19:05 - End Time 2025-03-29 16:19:05 [2025-03-29 16:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 16:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790021', 'tblTempUsageDetail_20' ) start [2025-03-29 16:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790021', 'tblTempUsageDetail_20' ) end [2025-03-29 16:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790021', 'tblTempVendorCDR_20' ) start [2025-03-29 16:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790021', 'tblTempVendorCDR_20' ) end [2025-03-29 16:19:19] Production.INFO: ProcessCDR(1,14790021,1,1,2) [2025-03-29 16:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790021', 'tblTempUsageDetail_20' ) start [2025-03-29 16:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790021', 'tblTempUsageDetail_20' ) end [2025-03-29 16:19:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 16:19:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 16:19:22] Production.INFO: ==20630== Releasing lock... [2025-03-29 16:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 16:19:22] Production.INFO: 42 MB #Memory Used# [2025-03-29 16:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 13:20:06 [end_date_ymd] => 2025-03-29 16:20:06 [RateCDR] => 1 ) [2025-03-29 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-29 13:20:06' and `end` < '2025-03-29 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-29 16:20:19] Production.INFO: count ==1834 [2025-03-29 16:20:20] Production.ERROR: pbx CDR StartTime 2025-03-29 13:20:06 - End Time 2025-03-29 16:20:06 [2025-03-29 16:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 16:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790027', 'tblTempUsageDetail_20' ) start [2025-03-29 16:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790027', 'tblTempUsageDetail_20' ) end [2025-03-29 16:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790027', 'tblTempVendorCDR_20' ) start [2025-03-29 16:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790027', 'tblTempVendorCDR_20' ) end [2025-03-29 16:20:20] Production.INFO: ProcessCDR(1,14790027,1,1,2) [2025-03-29 16:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790027', 'tblTempUsageDetail_20' ) start [2025-03-29 16:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790027', 'tblTempUsageDetail_20' ) end [2025-03-29 16:20:25] Production.ERROR: pbx prc_insertCDR start [2025-03-29 16:20:25] Production.ERROR: pbx prc_insertCDR end [2025-03-29 16:20:25] Production.INFO: ==20710== Releasing lock... [2025-03-29 16:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 16:20:25] Production.INFO: 41.75 MB #Memory Used# [2025-03-29 16:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 13:21:05 [end_date_ymd] => 2025-03-29 16:21:05 [RateCDR] => 1 ) [2025-03-29 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-29 13:21:05' and `end` < '2025-03-29 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-29 16:21:18] Production.INFO: count ==1802 [2025-03-29 16:21:18] Production.ERROR: pbx CDR StartTime 2025-03-29 13:21:05 - End Time 2025-03-29 16:21:05 [2025-03-29 16:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 16:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790032', 'tblTempUsageDetail_20' ) start [2025-03-29 16:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790032', 'tblTempUsageDetail_20' ) end [2025-03-29 16:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790032', 'tblTempVendorCDR_20' ) start [2025-03-29 16:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790032', 'tblTempVendorCDR_20' ) end [2025-03-29 16:21:18] Production.INFO: ProcessCDR(1,14790032,1,1,2) [2025-03-29 16:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790032', 'tblTempUsageDetail_20' ) start [2025-03-29 16:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790032', 'tblTempUsageDetail_20' ) end [2025-03-29 16:21:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 16:21:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 16:21:22] Production.INFO: ==20789== Releasing lock... [2025-03-29 16:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 16:21:22] Production.INFO: 41.5 MB #Memory Used# [2025-03-29 16:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 13:22:05 [end_date_ymd] => 2025-03-29 16:22:05 [RateCDR] => 1 ) [2025-03-29 16:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 13:22:05' and `end` < '2025-03-29 16:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 16:22:18] Production.INFO: count ==1801 [2025-03-29 16:22:18] Production.ERROR: pbx CDR StartTime 2025-03-29 13:22:05 - End Time 2025-03-29 16:22:05 [2025-03-29 16:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 16:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790037', 'tblTempUsageDetail_20' ) start [2025-03-29 16:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790037', 'tblTempUsageDetail_20' ) end [2025-03-29 16:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790037', 'tblTempVendorCDR_20' ) start [2025-03-29 16:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790037', 'tblTempVendorCDR_20' ) end [2025-03-29 16:22:18] Production.INFO: ProcessCDR(1,14790037,1,1,2) [2025-03-29 16:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790037', 'tblTempUsageDetail_20' ) start [2025-03-29 16:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790037', 'tblTempUsageDetail_20' ) end [2025-03-29 16:22:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 16:22:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 16:22:23] Production.INFO: ==20862== Releasing lock... [2025-03-29 16:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 16:22:23] Production.INFO: 41.5 MB #Memory Used# [2025-03-29 16:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 13:23:05 [end_date_ymd] => 2025-03-29 16:23:05 [RateCDR] => 1 ) [2025-03-29 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-29 13:23:05' and `end` < '2025-03-29 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-29 16:23:18] Production.INFO: count ==1801 [2025-03-29 16:23:18] Production.ERROR: pbx CDR StartTime 2025-03-29 13:23:05 - End Time 2025-03-29 16:23:05 [2025-03-29 16:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 16:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790042', 'tblTempUsageDetail_20' ) start [2025-03-29 16:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790042', 'tblTempUsageDetail_20' ) end [2025-03-29 16:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790042', 'tblTempVendorCDR_20' ) start [2025-03-29 16:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790042', 'tblTempVendorCDR_20' ) end [2025-03-29 16:23:18] Production.INFO: ProcessCDR(1,14790042,1,1,2) [2025-03-29 16:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790042', 'tblTempUsageDetail_20' ) start [2025-03-29 16:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790042', 'tblTempUsageDetail_20' ) end [2025-03-29 16:23:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 16:23:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 16:23:22] Production.INFO: ==20935== Releasing lock... [2025-03-29 16:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 16:23:22] Production.INFO: 41.5 MB #Memory Used# [2025-03-29 16:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 13:24:06 [end_date_ymd] => 2025-03-29 16:24:06 [RateCDR] => 1 ) [2025-03-29 16: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-29 13:24:06' and `end` < '2025-03-29 16: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-29 16:24:19] Production.INFO: count ==1801 [2025-03-29 16:24:19] Production.ERROR: pbx CDR StartTime 2025-03-29 13:24:06 - End Time 2025-03-29 16:24:06 [2025-03-29 16:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 16:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790047', 'tblTempUsageDetail_20' ) start [2025-03-29 16:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790047', 'tblTempUsageDetail_20' ) end [2025-03-29 16:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790047', 'tblTempVendorCDR_20' ) start [2025-03-29 16:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790047', 'tblTempVendorCDR_20' ) end [2025-03-29 16:24:19] Production.INFO: ProcessCDR(1,14790047,1,1,2) [2025-03-29 16:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790047', 'tblTempUsageDetail_20' ) start [2025-03-29 16:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790047', 'tblTempUsageDetail_20' ) end [2025-03-29 16:24:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 16:24:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 16:24:23] Production.INFO: ==21047== Releasing lock... [2025-03-29 16:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 16:24:23] Production.INFO: 41.5 MB #Memory Used# [2025-03-29 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 13:25:05 [end_date_ymd] => 2025-03-29 16:25:05 [RateCDR] => 1 ) [2025-03-29 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-29 13:25:05' and `end` < '2025-03-29 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-29 16:25:18] Production.INFO: count ==1799 [2025-03-29 16:25:19] Production.ERROR: pbx CDR StartTime 2025-03-29 13:25:05 - End Time 2025-03-29 16:25:05 [2025-03-29 16:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 16:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790052', 'tblTempUsageDetail_20' ) start [2025-03-29 16:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790052', 'tblTempUsageDetail_20' ) end [2025-03-29 16:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790052', 'tblTempVendorCDR_20' ) start [2025-03-29 16:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790052', 'tblTempVendorCDR_20' ) end [2025-03-29 16:25:19] Production.INFO: ProcessCDR(1,14790052,1,1,2) [2025-03-29 16:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790052', 'tblTempUsageDetail_20' ) start [2025-03-29 16:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790052', 'tblTempUsageDetail_20' ) end [2025-03-29 16:25:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 16:25:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 16:25:23] Production.INFO: ==21121== Releasing lock... [2025-03-29 16:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 16:25:23] Production.INFO: 41.5 MB #Memory Used# [2025-03-29 16:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 13:26:06 [end_date_ymd] => 2025-03-29 16:26:06 [RateCDR] => 1 ) [2025-03-29 16:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 13:26:06' and `end` < '2025-03-29 16:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 16:26:18] Production.INFO: count ==1811 [2025-03-29 16:26:19] Production.ERROR: pbx CDR StartTime 2025-03-29 13:26:06 - End Time 2025-03-29 16:26:06 [2025-03-29 16:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 16:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790057', 'tblTempUsageDetail_20' ) start [2025-03-29 16:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790057', 'tblTempUsageDetail_20' ) end [2025-03-29 16:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790057', 'tblTempVendorCDR_20' ) start [2025-03-29 16:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790057', 'tblTempVendorCDR_20' ) end [2025-03-29 16:26:19] Production.INFO: ProcessCDR(1,14790057,1,1,2) [2025-03-29 16:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790057', 'tblTempUsageDetail_20' ) start [2025-03-29 16:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790057', 'tblTempUsageDetail_20' ) end [2025-03-29 16:26:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 16:26:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 16:26:24] Production.INFO: ==21199== Releasing lock... [2025-03-29 16:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 16:26:24] Production.INFO: 41.5 MB #Memory Used# [2025-03-29 16:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 13:27:06 [end_date_ymd] => 2025-03-29 16:27:06 [RateCDR] => 1 ) [2025-03-29 16: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-29 13:27:06' and `end` < '2025-03-29 16: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-29 16:27:18] Production.INFO: count ==1803 [2025-03-29 16:27:19] Production.ERROR: pbx CDR StartTime 2025-03-29 13:27:06 - End Time 2025-03-29 16:27:06 [2025-03-29 16:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 16:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790062', 'tblTempUsageDetail_20' ) start [2025-03-29 16:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790062', 'tblTempUsageDetail_20' ) end [2025-03-29 16:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790062', 'tblTempVendorCDR_20' ) start [2025-03-29 16:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790062', 'tblTempVendorCDR_20' ) end [2025-03-29 16:27:19] Production.INFO: ProcessCDR(1,14790062,1,1,2) [2025-03-29 16:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790062', 'tblTempUsageDetail_20' ) start [2025-03-29 16:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790062', 'tblTempUsageDetail_20' ) end [2025-03-29 16:27:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 16:27:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 16:27:22] Production.INFO: ==21272== Releasing lock... [2025-03-29 16:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 16:27:22] Production.INFO: 41.5 MB #Memory Used# [2025-03-29 16:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 13:28:06 [end_date_ymd] => 2025-03-29 16:28:06 [RateCDR] => 1 ) [2025-03-29 16:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 13:28:06' and `end` < '2025-03-29 16:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 16:28:19] Production.INFO: count ==1805 [2025-03-29 16:28:19] Production.ERROR: pbx CDR StartTime 2025-03-29 13:28:06 - End Time 2025-03-29 16:28:06 [2025-03-29 16:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 16:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790067', 'tblTempUsageDetail_20' ) start [2025-03-29 16:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790067', 'tblTempUsageDetail_20' ) end [2025-03-29 16:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790067', 'tblTempVendorCDR_20' ) start [2025-03-29 16:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790067', 'tblTempVendorCDR_20' ) end [2025-03-29 16:28:19] Production.INFO: ProcessCDR(1,14790067,1,1,2) [2025-03-29 16:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790067', 'tblTempUsageDetail_20' ) start [2025-03-29 16:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790067', 'tblTempUsageDetail_20' ) end [2025-03-29 16:28:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 16:28:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 16:28:23] Production.INFO: ==21350== Releasing lock... [2025-03-29 16:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 16:28:23] Production.INFO: 41.75 MB #Memory Used# [2025-03-29 16:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 13:29:05 [end_date_ymd] => 2025-03-29 16:29:05 [RateCDR] => 1 ) [2025-03-29 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-29 13:29:05' and `end` < '2025-03-29 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-29 16:29:18] Production.INFO: count ==1827 [2025-03-29 16:29:18] Production.ERROR: pbx CDR StartTime 2025-03-29 13:29:05 - End Time 2025-03-29 16:29:05 [2025-03-29 16:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 16:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790072', 'tblTempUsageDetail_20' ) start [2025-03-29 16:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790072', 'tblTempUsageDetail_20' ) end [2025-03-29 16:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790072', 'tblTempVendorCDR_20' ) start [2025-03-29 16:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790072', 'tblTempVendorCDR_20' ) end [2025-03-29 16:29:18] Production.INFO: ProcessCDR(1,14790072,1,1,2) [2025-03-29 16:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790072', 'tblTempUsageDetail_20' ) start [2025-03-29 16:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790072', 'tblTempUsageDetail_20' ) end [2025-03-29 16:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 16:29:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 16:29:22] Production.INFO: ==21427== Releasing lock... [2025-03-29 16:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 16:29:22] Production.INFO: 42 MB #Memory Used# [2025-03-29 16:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 13:30:06 [end_date_ymd] => 2025-03-29 16:30:06 [RateCDR] => 1 ) [2025-03-29 16:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 13:30:06' and `end` < '2025-03-29 16:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 16:30:19] Production.INFO: count ==1821 [2025-03-29 16:30:20] Production.ERROR: pbx CDR StartTime 2025-03-29 13:30:06 - End Time 2025-03-29 16:30:06 [2025-03-29 16:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 16:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790078', 'tblTempUsageDetail_20' ) start [2025-03-29 16:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790078', 'tblTempUsageDetail_20' ) end [2025-03-29 16:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790078', 'tblTempVendorCDR_20' ) start [2025-03-29 16:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790078', 'tblTempVendorCDR_20' ) end [2025-03-29 16:30:20] Production.INFO: ProcessCDR(1,14790078,1,1,2) [2025-03-29 16:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790078', 'tblTempUsageDetail_20' ) start [2025-03-29 16:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790078', 'tblTempUsageDetail_20' ) end [2025-03-29 16:30:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 16:30:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 16:30:24] Production.INFO: ==21516== Releasing lock... [2025-03-29 16:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 16:30:24] Production.INFO: 41.75 MB #Memory Used# [2025-03-29 16:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 13:31:05 [end_date_ymd] => 2025-03-29 16:31:05 [RateCDR] => 1 ) [2025-03-29 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-29 13:31:05' and `end` < '2025-03-29 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-29 16:31:18] Production.INFO: count ==1842 [2025-03-29 16:31:19] Production.ERROR: pbx CDR StartTime 2025-03-29 13:31:05 - End Time 2025-03-29 16:31:05 [2025-03-29 16:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 16:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790083', 'tblTempUsageDetail_20' ) start [2025-03-29 16:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790083', 'tblTempUsageDetail_20' ) end [2025-03-29 16:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790083', 'tblTempVendorCDR_20' ) start [2025-03-29 16:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790083', 'tblTempVendorCDR_20' ) end [2025-03-29 16:31:19] Production.INFO: ProcessCDR(1,14790083,1,1,2) [2025-03-29 16:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790083', 'tblTempUsageDetail_20' ) start [2025-03-29 16:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790083', 'tblTempUsageDetail_20' ) end [2025-03-29 16:31:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 16:31:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 16:31:23] Production.INFO: ==21600== Releasing lock... [2025-03-29 16:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 16:31:23] Production.INFO: 41.75 MB #Memory Used# [2025-03-29 16:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 13:32:06 [end_date_ymd] => 2025-03-29 16:32:06 [RateCDR] => 1 ) [2025-03-29 16: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-29 13:32:06' and `end` < '2025-03-29 16: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-29 16:32:19] Production.INFO: count ==1851 [2025-03-29 16:32:19] Production.ERROR: pbx CDR StartTime 2025-03-29 13:32:06 - End Time 2025-03-29 16:32:06 [2025-03-29 16:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 16:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790088', 'tblTempUsageDetail_20' ) start [2025-03-29 16:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790088', 'tblTempUsageDetail_20' ) end [2025-03-29 16:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790088', 'tblTempVendorCDR_20' ) start [2025-03-29 16:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790088', 'tblTempVendorCDR_20' ) end [2025-03-29 16:32:19] Production.INFO: ProcessCDR(1,14790088,1,1,2) [2025-03-29 16:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790088', 'tblTempUsageDetail_20' ) start [2025-03-29 16:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790088', 'tblTempUsageDetail_20' ) end [2025-03-29 16:32:25] Production.ERROR: pbx prc_insertCDR start [2025-03-29 16:32:25] Production.ERROR: pbx prc_insertCDR end [2025-03-29 16:32:25] Production.INFO: ==21675== Releasing lock... [2025-03-29 16:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 16:32:25] Production.INFO: 42.25 MB #Memory Used# [2025-03-29 16:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 13:33:05 [end_date_ymd] => 2025-03-29 16:33:05 [RateCDR] => 1 ) [2025-03-29 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-29 13:33:05' and `end` < '2025-03-29 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-29 16:33:18] Production.INFO: count ==1849 [2025-03-29 16:33:19] Production.ERROR: pbx CDR StartTime 2025-03-29 13:33:05 - End Time 2025-03-29 16:33:05 [2025-03-29 16:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 16:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790093', 'tblTempUsageDetail_20' ) start [2025-03-29 16:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790093', 'tblTempUsageDetail_20' ) end [2025-03-29 16:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790093', 'tblTempVendorCDR_20' ) start [2025-03-29 16:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790093', 'tblTempVendorCDR_20' ) end [2025-03-29 16:33:19] Production.INFO: ProcessCDR(1,14790093,1,1,2) [2025-03-29 16:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790093', 'tblTempUsageDetail_20' ) start [2025-03-29 16:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790093', 'tblTempUsageDetail_20' ) end [2025-03-29 16:33:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 16:33:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 16:33:24] Production.INFO: ==21751== Releasing lock... [2025-03-29 16:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 16:33:24] Production.INFO: 42 MB #Memory Used# [2025-03-29 16:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 13:34:05 [end_date_ymd] => 2025-03-29 16:34:05 [RateCDR] => 1 ) [2025-03-29 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-29 13:34:05' and `end` < '2025-03-29 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-29 16:34:18] Production.INFO: count ==1867 [2025-03-29 16:34:19] Production.ERROR: pbx CDR StartTime 2025-03-29 13:34:05 - End Time 2025-03-29 16:34:05 [2025-03-29 16:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 16:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790098', 'tblTempUsageDetail_20' ) start [2025-03-29 16:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790098', 'tblTempUsageDetail_20' ) end [2025-03-29 16:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790098', 'tblTempVendorCDR_20' ) start [2025-03-29 16:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790098', 'tblTempVendorCDR_20' ) end [2025-03-29 16:34:19] Production.INFO: ProcessCDR(1,14790098,1,1,2) [2025-03-29 16:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790098', 'tblTempUsageDetail_20' ) start [2025-03-29 16:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790098', 'tblTempUsageDetail_20' ) end [2025-03-29 16:34:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 16:34:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 16:34:24] Production.INFO: ==21826== Releasing lock... [2025-03-29 16:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 16:34:24] Production.INFO: 42 MB #Memory Used# [2025-03-29 16:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 13:35:05 [end_date_ymd] => 2025-03-29 16:35:05 [RateCDR] => 1 ) [2025-03-29 16:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 13:35:05' and `end` < '2025-03-29 16:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 16:35:18] Production.INFO: count ==1878 [2025-03-29 16:35:19] Production.ERROR: pbx CDR StartTime 2025-03-29 13:35:05 - End Time 2025-03-29 16:35:05 [2025-03-29 16:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 16:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790103', 'tblTempUsageDetail_20' ) start [2025-03-29 16:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790103', 'tblTempUsageDetail_20' ) end [2025-03-29 16:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790103', 'tblTempVendorCDR_20' ) start [2025-03-29 16:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790103', 'tblTempVendorCDR_20' ) end [2025-03-29 16:35:19] Production.INFO: ProcessCDR(1,14790103,1,1,2) [2025-03-29 16:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790103', 'tblTempUsageDetail_20' ) start [2025-03-29 16:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790103', 'tblTempUsageDetail_20' ) end [2025-03-29 16:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 16:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 16:35:22] Production.INFO: ==21906== Releasing lock... [2025-03-29 16:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 16:35:22] Production.INFO: 42.25 MB #Memory Used# [2025-03-29 16:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 13:36:06 [end_date_ymd] => 2025-03-29 16:36:06 [RateCDR] => 1 ) [2025-03-29 16: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-29 13:36:06' and `end` < '2025-03-29 16: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-29 16:36:18] Production.INFO: count ==1888 [2025-03-29 16:36:19] Production.ERROR: pbx CDR StartTime 2025-03-29 13:36:06 - End Time 2025-03-29 16:36:06 [2025-03-29 16:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 16:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790108', 'tblTempUsageDetail_20' ) start [2025-03-29 16:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790108', 'tblTempUsageDetail_20' ) end [2025-03-29 16:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790108', 'tblTempVendorCDR_20' ) start [2025-03-29 16:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790108', 'tblTempVendorCDR_20' ) end [2025-03-29 16:36:19] Production.INFO: ProcessCDR(1,14790108,1,1,2) [2025-03-29 16:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790108', 'tblTempUsageDetail_20' ) start [2025-03-29 16:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790108', 'tblTempUsageDetail_20' ) end [2025-03-29 16:36:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 16:36:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 16:36:24] Production.INFO: ==21980== Releasing lock... [2025-03-29 16:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 16:36:24] Production.INFO: 42.25 MB #Memory Used# [2025-03-29 16:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 13:37:05 [end_date_ymd] => 2025-03-29 16:37:05 [RateCDR] => 1 ) [2025-03-29 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-29 13:37:05' and `end` < '2025-03-29 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-29 16:37:18] Production.INFO: count ==1885 [2025-03-29 16:37:18] Production.ERROR: pbx CDR StartTime 2025-03-29 13:37:05 - End Time 2025-03-29 16:37:05 [2025-03-29 16:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 16:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790113', 'tblTempUsageDetail_20' ) start [2025-03-29 16:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790113', 'tblTempUsageDetail_20' ) end [2025-03-29 16:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790113', 'tblTempVendorCDR_20' ) start [2025-03-29 16:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790113', 'tblTempVendorCDR_20' ) end [2025-03-29 16:37:18] Production.INFO: ProcessCDR(1,14790113,1,1,2) [2025-03-29 16:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790113', 'tblTempUsageDetail_20' ) start [2025-03-29 16:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790113', 'tblTempUsageDetail_20' ) end [2025-03-29 16:37:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 16:37:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 16:37:23] Production.INFO: ==22055== Releasing lock... [2025-03-29 16:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 16:37:23] Production.INFO: 42.25 MB #Memory Used# [2025-03-29 16:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 13:38:06 [end_date_ymd] => 2025-03-29 16:38:06 [RateCDR] => 1 ) [2025-03-29 16:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 13:38:06' and `end` < '2025-03-29 16:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 16:38:19] Production.INFO: count ==1887 [2025-03-29 16:38:19] Production.ERROR: pbx CDR StartTime 2025-03-29 13:38:06 - End Time 2025-03-29 16:38:06 [2025-03-29 16:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 16:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790118', 'tblTempUsageDetail_20' ) start [2025-03-29 16:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790118', 'tblTempUsageDetail_20' ) end [2025-03-29 16:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790118', 'tblTempVendorCDR_20' ) start [2025-03-29 16:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790118', 'tblTempVendorCDR_20' ) end [2025-03-29 16:38:19] Production.INFO: ProcessCDR(1,14790118,1,1,2) [2025-03-29 16:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790118', 'tblTempUsageDetail_20' ) start [2025-03-29 16:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790118', 'tblTempUsageDetail_20' ) end [2025-03-29 16:38:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 16:38:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 16:38:23] Production.INFO: ==22129== Releasing lock... [2025-03-29 16:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 16:38:23] Production.INFO: 42.25 MB #Memory Used# [2025-03-29 16:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 13:39:05 [end_date_ymd] => 2025-03-29 16:39:05 [RateCDR] => 1 ) [2025-03-29 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-29 13:39:05' and `end` < '2025-03-29 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-29 16:39:18] Production.INFO: count ==1894 [2025-03-29 16:39:18] Production.ERROR: pbx CDR StartTime 2025-03-29 13:39:05 - End Time 2025-03-29 16:39:05 [2025-03-29 16:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 16:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790123', 'tblTempUsageDetail_20' ) start [2025-03-29 16:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790123', 'tblTempUsageDetail_20' ) end [2025-03-29 16:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790123', 'tblTempVendorCDR_20' ) start [2025-03-29 16:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790123', 'tblTempVendorCDR_20' ) end [2025-03-29 16:39:19] Production.INFO: ProcessCDR(1,14790123,1,1,2) [2025-03-29 16:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790123', 'tblTempUsageDetail_20' ) start [2025-03-29 16:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790123', 'tblTempUsageDetail_20' ) end [2025-03-29 16:39:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 16:39:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 16:39:22] Production.INFO: ==22239== Releasing lock... [2025-03-29 16:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 16:39:22] Production.INFO: 42.5 MB #Memory Used# [2025-03-29 16:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 13:40:06 [end_date_ymd] => 2025-03-29 16:40:06 [RateCDR] => 1 ) [2025-03-29 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-29 13:40:06' and `end` < '2025-03-29 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-29 16:40:19] Production.INFO: count ==1895 [2025-03-29 16:40:19] Production.ERROR: pbx CDR StartTime 2025-03-29 13:40:06 - End Time 2025-03-29 16:40:06 [2025-03-29 16:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 16:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790129', 'tblTempUsageDetail_20' ) start [2025-03-29 16:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790129', 'tblTempUsageDetail_20' ) end [2025-03-29 16:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790129', 'tblTempVendorCDR_20' ) start [2025-03-29 16:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790129', 'tblTempVendorCDR_20' ) end [2025-03-29 16:40:19] Production.INFO: ProcessCDR(1,14790129,1,1,2) [2025-03-29 16:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790129', 'tblTempUsageDetail_20' ) start [2025-03-29 16:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790129', 'tblTempUsageDetail_20' ) end [2025-03-29 16:40:25] Production.ERROR: pbx prc_insertCDR start [2025-03-29 16:40:25] Production.ERROR: pbx prc_insertCDR end [2025-03-29 16:40:25] Production.INFO: ==22320== Releasing lock... [2025-03-29 16:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 16:40:25] Production.INFO: 42.25 MB #Memory Used# [2025-03-29 16:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 13:41:05 [end_date_ymd] => 2025-03-29 16:41:05 [RateCDR] => 1 ) [2025-03-29 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-29 13:41:05' and `end` < '2025-03-29 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-29 16:41:18] Production.INFO: count ==1933 [2025-03-29 16:41:18] Production.ERROR: pbx CDR StartTime 2025-03-29 13:41:05 - End Time 2025-03-29 16:41:05 [2025-03-29 16:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 16:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790134', 'tblTempUsageDetail_20' ) start [2025-03-29 16:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790134', 'tblTempUsageDetail_20' ) end [2025-03-29 16:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790134', 'tblTempVendorCDR_20' ) start [2025-03-29 16:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790134', 'tblTempVendorCDR_20' ) end [2025-03-29 16:41:18] Production.INFO: ProcessCDR(1,14790134,1,1,2) [2025-03-29 16:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790134', 'tblTempUsageDetail_20' ) start [2025-03-29 16:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790134', 'tblTempUsageDetail_20' ) end [2025-03-29 16:41:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 16:41:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 16:41:23] Production.INFO: ==22396== Releasing lock... [2025-03-29 16:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 16:41:23] Production.INFO: 42.5 MB #Memory Used# [2025-03-29 16:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 13:42:05 [end_date_ymd] => 2025-03-29 16:42:05 [RateCDR] => 1 ) [2025-03-29 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-29 13:42:05' and `end` < '2025-03-29 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-29 16:42:18] Production.INFO: count ==1946 [2025-03-29 16:42:19] Production.ERROR: pbx CDR StartTime 2025-03-29 13:42:05 - End Time 2025-03-29 16:42:05 [2025-03-29 16:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 16:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790139', 'tblTempUsageDetail_20' ) start [2025-03-29 16:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790139', 'tblTempUsageDetail_20' ) end [2025-03-29 16:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790139', 'tblTempVendorCDR_20' ) start [2025-03-29 16:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790139', 'tblTempVendorCDR_20' ) end [2025-03-29 16:42:19] Production.INFO: ProcessCDR(1,14790139,1,1,2) [2025-03-29 16:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790139', 'tblTempUsageDetail_20' ) start [2025-03-29 16:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790139', 'tblTempUsageDetail_20' ) end [2025-03-29 16:42:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 16:42:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 16:42:24] Production.INFO: ==22469== Releasing lock... [2025-03-29 16:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 16:42:24] Production.INFO: 42.75 MB #Memory Used# [2025-03-29 16:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 13:43:04 [end_date_ymd] => 2025-03-29 16:43:04 [RateCDR] => 1 ) [2025-03-29 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-29 13:43:04' and `end` < '2025-03-29 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-29 16:43:17] Production.INFO: count ==1948 [2025-03-29 16:43:18] Production.ERROR: pbx CDR StartTime 2025-03-29 13:43:04 - End Time 2025-03-29 16:43:04 [2025-03-29 16:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 16:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790144', 'tblTempUsageDetail_20' ) start [2025-03-29 16:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790144', 'tblTempUsageDetail_20' ) end [2025-03-29 16:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790144', 'tblTempVendorCDR_20' ) start [2025-03-29 16:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790144', 'tblTempVendorCDR_20' ) end [2025-03-29 16:43:18] Production.INFO: ProcessCDR(1,14790144,1,1,2) [2025-03-29 16:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790144', 'tblTempUsageDetail_20' ) start [2025-03-29 16:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790144', 'tblTempUsageDetail_20' ) end [2025-03-29 16:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 16:43:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 16:43:23] Production.INFO: ==22547== Releasing lock... [2025-03-29 16:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 16:43:23] Production.INFO: 42.75 MB #Memory Used# [2025-03-29 16:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 13:44:05 [end_date_ymd] => 2025-03-29 16:44:05 [RateCDR] => 1 ) [2025-03-29 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-29 13:44:05' and `end` < '2025-03-29 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-29 16:44:18] Production.INFO: count ==1948 [2025-03-29 16:44:19] Production.ERROR: pbx CDR StartTime 2025-03-29 13:44:05 - End Time 2025-03-29 16:44:05 [2025-03-29 16:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 16:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790149', 'tblTempUsageDetail_20' ) start [2025-03-29 16:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790149', 'tblTempUsageDetail_20' ) end [2025-03-29 16:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790149', 'tblTempVendorCDR_20' ) start [2025-03-29 16:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790149', 'tblTempVendorCDR_20' ) end [2025-03-29 16:44:19] Production.INFO: ProcessCDR(1,14790149,1,1,2) [2025-03-29 16:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790149', 'tblTempUsageDetail_20' ) start [2025-03-29 16:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790149', 'tblTempUsageDetail_20' ) end [2025-03-29 16:44:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 16:44:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 16:44:24] Production.INFO: ==22626== Releasing lock... [2025-03-29 16:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 16:44:24] Production.INFO: 42.75 MB #Memory Used# [2025-03-29 16:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 13:45:06 [end_date_ymd] => 2025-03-29 16:45:06 [RateCDR] => 1 ) [2025-03-29 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-29 13:45:06' and `end` < '2025-03-29 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-29 16:45:18] Production.INFO: count ==1953 [2025-03-29 16:45:19] Production.ERROR: pbx CDR StartTime 2025-03-29 13:45:06 - End Time 2025-03-29 16:45:06 [2025-03-29 16:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 16:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790154', 'tblTempUsageDetail_20' ) start [2025-03-29 16:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790154', 'tblTempUsageDetail_20' ) end [2025-03-29 16:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790154', 'tblTempVendorCDR_20' ) start [2025-03-29 16:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790154', 'tblTempVendorCDR_20' ) end [2025-03-29 16:45:19] Production.INFO: ProcessCDR(1,14790154,1,1,2) [2025-03-29 16:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790154', 'tblTempUsageDetail_20' ) start [2025-03-29 16:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790154', 'tblTempUsageDetail_20' ) end [2025-03-29 16:45:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 16:45:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 16:45:24] Production.INFO: ==22707== Releasing lock... [2025-03-29 16:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 16:45:24] Production.INFO: 43 MB #Memory Used# [2025-03-29 16:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 13:46:05 [end_date_ymd] => 2025-03-29 16:46:05 [RateCDR] => 1 ) [2025-03-29 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-29 13:46:05' and `end` < '2025-03-29 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-29 16:46:18] Production.INFO: count ==1952 [2025-03-29 16:46:18] Production.ERROR: pbx CDR StartTime 2025-03-29 13:46:05 - End Time 2025-03-29 16:46:05 [2025-03-29 16:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 16:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790159', 'tblTempUsageDetail_20' ) start [2025-03-29 16:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790159', 'tblTempUsageDetail_20' ) end [2025-03-29 16:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790159', 'tblTempVendorCDR_20' ) start [2025-03-29 16:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790159', 'tblTempVendorCDR_20' ) end [2025-03-29 16:46:18] Production.INFO: ProcessCDR(1,14790159,1,1,2) [2025-03-29 16:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790159', 'tblTempUsageDetail_20' ) start [2025-03-29 16:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790159', 'tblTempUsageDetail_20' ) end [2025-03-29 16:46:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 16:46:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 16:46:23] Production.INFO: ==22782== Releasing lock... [2025-03-29 16:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 16:46:23] Production.INFO: 43 MB #Memory Used# [2025-03-29 16:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 13:47:05 [end_date_ymd] => 2025-03-29 16:47:05 [RateCDR] => 1 ) [2025-03-29 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-29 13:47:05' and `end` < '2025-03-29 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-29 16:47:18] Production.INFO: count ==1973 [2025-03-29 16:47:19] Production.ERROR: pbx CDR StartTime 2025-03-29 13:47:05 - End Time 2025-03-29 16:47:05 [2025-03-29 16:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 16:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790164', 'tblTempUsageDetail_20' ) start [2025-03-29 16:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790164', 'tblTempUsageDetail_20' ) end [2025-03-29 16:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790164', 'tblTempVendorCDR_20' ) start [2025-03-29 16:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790164', 'tblTempVendorCDR_20' ) end [2025-03-29 16:47:19] Production.INFO: ProcessCDR(1,14790164,1,1,2) [2025-03-29 16:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790164', 'tblTempUsageDetail_20' ) start [2025-03-29 16:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790164', 'tblTempUsageDetail_20' ) end [2025-03-29 16:47:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 16:47:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 16:47:24] Production.INFO: ==22864== Releasing lock... [2025-03-29 16:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 16:47:24] Production.INFO: 42.75 MB #Memory Used# [2025-03-29 16:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 13:48:05 [end_date_ymd] => 2025-03-29 16:48:05 [RateCDR] => 1 ) [2025-03-29 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-29 13:48:05' and `end` < '2025-03-29 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-29 16:48:18] Production.INFO: count ==1973 [2025-03-29 16:48:18] Production.ERROR: pbx CDR StartTime 2025-03-29 13:48:05 - End Time 2025-03-29 16:48:05 [2025-03-29 16:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 16:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790169', 'tblTempUsageDetail_20' ) start [2025-03-29 16:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790169', 'tblTempUsageDetail_20' ) end [2025-03-29 16:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790169', 'tblTempVendorCDR_20' ) start [2025-03-29 16:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790169', 'tblTempVendorCDR_20' ) end [2025-03-29 16:48:18] Production.INFO: ProcessCDR(1,14790169,1,1,2) [2025-03-29 16:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790169', 'tblTempUsageDetail_20' ) start [2025-03-29 16:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790169', 'tblTempUsageDetail_20' ) end [2025-03-29 16:48:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 16:48:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 16:48:23] Production.INFO: ==22933== Releasing lock... [2025-03-29 16:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 16:48:23] Production.INFO: 42.75 MB #Memory Used# [2025-03-29 16:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 13:49:05 [end_date_ymd] => 2025-03-29 16:49:05 [RateCDR] => 1 ) [2025-03-29 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-29 13:49:05' and `end` < '2025-03-29 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-29 16:49:18] Production.INFO: count ==1967 [2025-03-29 16:49:19] Production.ERROR: pbx CDR StartTime 2025-03-29 13:49:05 - End Time 2025-03-29 16:49:05 [2025-03-29 16:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 16:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790174', 'tblTempUsageDetail_20' ) start [2025-03-29 16:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790174', 'tblTempUsageDetail_20' ) end [2025-03-29 16:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790174', 'tblTempVendorCDR_20' ) start [2025-03-29 16:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790174', 'tblTempVendorCDR_20' ) end [2025-03-29 16:49:19] Production.INFO: ProcessCDR(1,14790174,1,1,2) [2025-03-29 16:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790174', 'tblTempUsageDetail_20' ) start [2025-03-29 16:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790174', 'tblTempUsageDetail_20' ) end [2025-03-29 16:49:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 16:49:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 16:49:23] Production.INFO: ==23017== Releasing lock... [2025-03-29 16:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 16:49:23] Production.INFO: 43 MB #Memory Used# [2025-03-29 16:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 13:50:06 [end_date_ymd] => 2025-03-29 16:50:06 [RateCDR] => 1 ) [2025-03-29 16:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 13:50:06' and `end` < '2025-03-29 16:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 16:50:18] Production.INFO: count ==1963 [2025-03-29 16:50:19] Production.ERROR: pbx CDR StartTime 2025-03-29 13:50:06 - End Time 2025-03-29 16:50:06 [2025-03-29 16:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 16:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790180', 'tblTempUsageDetail_20' ) start [2025-03-29 16:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790180', 'tblTempUsageDetail_20' ) end [2025-03-29 16:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790180', 'tblTempVendorCDR_20' ) start [2025-03-29 16:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790180', 'tblTempVendorCDR_20' ) end [2025-03-29 16:50:19] Production.INFO: ProcessCDR(1,14790180,1,1,2) [2025-03-29 16:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790180', 'tblTempUsageDetail_20' ) start [2025-03-29 16:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790180', 'tblTempUsageDetail_20' ) end [2025-03-29 16:50:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 16:50:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 16:50:23] Production.INFO: ==23093== Releasing lock... [2025-03-29 16:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 16:50:23] Production.INFO: 42.75 MB #Memory Used# [2025-03-29 16:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 13:51:05 [end_date_ymd] => 2025-03-29 16:51:05 [RateCDR] => 1 ) [2025-03-29 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-29 13:51:05' and `end` < '2025-03-29 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-29 16:51:18] Production.INFO: count ==2019 [2025-03-29 16:51:19] Production.ERROR: pbx CDR StartTime 2025-03-29 13:51:05 - End Time 2025-03-29 16:51:05 [2025-03-29 16:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 16:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790185', 'tblTempUsageDetail_20' ) start [2025-03-29 16:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790185', 'tblTempUsageDetail_20' ) end [2025-03-29 16:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790185', 'tblTempVendorCDR_20' ) start [2025-03-29 16:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790185', 'tblTempVendorCDR_20' ) end [2025-03-29 16:51:19] Production.INFO: ProcessCDR(1,14790185,1,1,2) [2025-03-29 16:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790185', 'tblTempUsageDetail_20' ) start [2025-03-29 16:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790185', 'tblTempUsageDetail_20' ) end [2025-03-29 16:51:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 16:51:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 16:51:24] Production.INFO: ==23165== Releasing lock... [2025-03-29 16:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 16:51:24] Production.INFO: 43.25 MB #Memory Used# [2025-03-29 16:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 13:52:05 [end_date_ymd] => 2025-03-29 16:52:05 [RateCDR] => 1 ) [2025-03-29 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-29 13:52:05' and `end` < '2025-03-29 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-29 16:52:18] Production.INFO: count ==2016 [2025-03-29 16:52:18] Production.ERROR: pbx CDR StartTime 2025-03-29 13:52:05 - End Time 2025-03-29 16:52:05 [2025-03-29 16:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 16:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790190', 'tblTempUsageDetail_20' ) start [2025-03-29 16:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790190', 'tblTempUsageDetail_20' ) end [2025-03-29 16:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790190', 'tblTempVendorCDR_20' ) start [2025-03-29 16:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790190', 'tblTempVendorCDR_20' ) end [2025-03-29 16:52:18] Production.INFO: ProcessCDR(1,14790190,1,1,2) [2025-03-29 16:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790190', 'tblTempUsageDetail_20' ) start [2025-03-29 16:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790190', 'tblTempUsageDetail_20' ) end [2025-03-29 16:52:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 16:52:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 16:52:23] Production.INFO: ==23240== Releasing lock... [2025-03-29 16:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 16:52:23] Production.INFO: 43.25 MB #Memory Used# [2025-03-29 16:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 13:53:05 [end_date_ymd] => 2025-03-29 16:53:05 [RateCDR] => 1 ) [2025-03-29 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-29 13:53:05' and `end` < '2025-03-29 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-29 16:53:18] Production.INFO: count ==2020 [2025-03-29 16:53:18] Production.ERROR: pbx CDR StartTime 2025-03-29 13:53:05 - End Time 2025-03-29 16:53:05 [2025-03-29 16:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 16:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790195', 'tblTempUsageDetail_20' ) start [2025-03-29 16:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790195', 'tblTempUsageDetail_20' ) end [2025-03-29 16:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790195', 'tblTempVendorCDR_20' ) start [2025-03-29 16:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790195', 'tblTempVendorCDR_20' ) end [2025-03-29 16:53:18] Production.INFO: ProcessCDR(1,14790195,1,1,2) [2025-03-29 16:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790195', 'tblTempUsageDetail_20' ) start [2025-03-29 16:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790195', 'tblTempUsageDetail_20' ) end [2025-03-29 16:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 16:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 16:53:22] Production.INFO: ==23313== Releasing lock... [2025-03-29 16:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 16:53:22] Production.INFO: 43.25 MB #Memory Used# [2025-03-29 16:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 13:54:06 [end_date_ymd] => 2025-03-29 16:54:06 [RateCDR] => 1 ) [2025-03-29 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-29 13:54:06' and `end` < '2025-03-29 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-29 16:54:19] Production.INFO: count ==2032 [2025-03-29 16:54:19] Production.ERROR: pbx CDR StartTime 2025-03-29 13:54:06 - End Time 2025-03-29 16:54:06 [2025-03-29 16:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 16:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790200', 'tblTempUsageDetail_20' ) start [2025-03-29 16:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790200', 'tblTempUsageDetail_20' ) end [2025-03-29 16:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790200', 'tblTempVendorCDR_20' ) start [2025-03-29 16:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790200', 'tblTempVendorCDR_20' ) end [2025-03-29 16:54:19] Production.INFO: ProcessCDR(1,14790200,1,1,2) [2025-03-29 16:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790200', 'tblTempUsageDetail_20' ) start [2025-03-29 16:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790200', 'tblTempUsageDetail_20' ) end [2025-03-29 16:54:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 16:54:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 16:54:23] Production.INFO: ==23386== Releasing lock... [2025-03-29 16:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 16:54:23] Production.INFO: 43.25 MB #Memory Used# [2025-03-29 16:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 13:55:06 [end_date_ymd] => 2025-03-29 16:55:06 [RateCDR] => 1 ) [2025-03-29 16: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-29 13:55:06' and `end` < '2025-03-29 16: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-29 16:55:18] Production.INFO: count ==2048 [2025-03-29 16:55:19] Production.ERROR: pbx CDR StartTime 2025-03-29 13:55:06 - End Time 2025-03-29 16:55:06 [2025-03-29 16:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 16:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790205', 'tblTempUsageDetail_20' ) start [2025-03-29 16:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790205', 'tblTempUsageDetail_20' ) end [2025-03-29 16:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790205', 'tblTempVendorCDR_20' ) start [2025-03-29 16:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790205', 'tblTempVendorCDR_20' ) end [2025-03-29 16:55:19] Production.INFO: ProcessCDR(1,14790205,1,1,2) [2025-03-29 16:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790205', 'tblTempUsageDetail_20' ) start [2025-03-29 16:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790205', 'tblTempUsageDetail_20' ) end [2025-03-29 16:55:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 16:55:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 16:55:23] Production.INFO: ==23498== Releasing lock... [2025-03-29 16:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 16:55:23] Production.INFO: 43.5 MB #Memory Used# [2025-03-29 16:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 13:56:05 [end_date_ymd] => 2025-03-29 16:56:05 [RateCDR] => 1 ) [2025-03-29 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-29 13:56:05' and `end` < '2025-03-29 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-29 16:56:18] Production.INFO: count ==2047 [2025-03-29 16:56:18] Production.ERROR: pbx CDR StartTime 2025-03-29 13:56:05 - End Time 2025-03-29 16:56:05 [2025-03-29 16:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 16:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790210', 'tblTempUsageDetail_20' ) start [2025-03-29 16:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790210', 'tblTempUsageDetail_20' ) end [2025-03-29 16:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790210', 'tblTempVendorCDR_20' ) start [2025-03-29 16:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790210', 'tblTempVendorCDR_20' ) end [2025-03-29 16:56:18] Production.INFO: ProcessCDR(1,14790210,1,1,2) [2025-03-29 16:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790210', 'tblTempUsageDetail_20' ) start [2025-03-29 16:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790210', 'tblTempUsageDetail_20' ) end [2025-03-29 16:56:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 16:56:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 16:56:23] Production.INFO: ==23572== Releasing lock... [2025-03-29 16:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 16:56:23] Production.INFO: 43.75 MB #Memory Used# [2025-03-29 16:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 13:57:05 [end_date_ymd] => 2025-03-29 16:57:05 [RateCDR] => 1 ) [2025-03-29 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-29 13:57:05' and `end` < '2025-03-29 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-29 16:57:18] Production.INFO: count ==2053 [2025-03-29 16:57:18] Production.ERROR: pbx CDR StartTime 2025-03-29 13:57:05 - End Time 2025-03-29 16:57:05 [2025-03-29 16:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 16:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790215', 'tblTempUsageDetail_20' ) start [2025-03-29 16:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790215', 'tblTempUsageDetail_20' ) end [2025-03-29 16:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790215', 'tblTempVendorCDR_20' ) start [2025-03-29 16:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790215', 'tblTempVendorCDR_20' ) end [2025-03-29 16:57:18] Production.INFO: ProcessCDR(1,14790215,1,1,2) [2025-03-29 16:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790215', 'tblTempUsageDetail_20' ) start [2025-03-29 16:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790215', 'tblTempUsageDetail_20' ) end [2025-03-29 16:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 16:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 16:57:21] Production.INFO: ==23654== Releasing lock... [2025-03-29 16:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 16:57:21] Production.INFO: 43.5 MB #Memory Used# [2025-03-29 16:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 13:58:06 [end_date_ymd] => 2025-03-29 16:58:06 [RateCDR] => 1 ) [2025-03-29 16:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 13:58:06' and `end` < '2025-03-29 16:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 16:58:18] Production.INFO: count ==2057 [2025-03-29 16:58:19] Production.ERROR: pbx CDR StartTime 2025-03-29 13:58:06 - End Time 2025-03-29 16:58:06 [2025-03-29 16:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 16:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790220', 'tblTempUsageDetail_20' ) start [2025-03-29 16:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790220', 'tblTempUsageDetail_20' ) end [2025-03-29 16:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790220', 'tblTempVendorCDR_20' ) start [2025-03-29 16:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790220', 'tblTempVendorCDR_20' ) end [2025-03-29 16:58:19] Production.INFO: ProcessCDR(1,14790220,1,1,2) [2025-03-29 16:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790220', 'tblTempUsageDetail_20' ) start [2025-03-29 16:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790220', 'tblTempUsageDetail_20' ) end [2025-03-29 16:58:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 16:58:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 16:58:24] Production.INFO: ==23726== Releasing lock... [2025-03-29 16:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 16:58:24] Production.INFO: 44 MB #Memory Used# [2025-03-29 16:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 13:59:05 [end_date_ymd] => 2025-03-29 16:59:05 [RateCDR] => 1 ) [2025-03-29 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-29 13:59:05' and `end` < '2025-03-29 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-29 16:59:18] Production.INFO: count ==2056 [2025-03-29 16:59:18] Production.ERROR: pbx CDR StartTime 2025-03-29 13:59:05 - End Time 2025-03-29 16:59:05 [2025-03-29 16:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 16:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790225', 'tblTempUsageDetail_20' ) start [2025-03-29 16:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790225', 'tblTempUsageDetail_20' ) end [2025-03-29 16:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790225', 'tblTempVendorCDR_20' ) start [2025-03-29 16:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790225', 'tblTempVendorCDR_20' ) end [2025-03-29 16:59:19] Production.INFO: ProcessCDR(1,14790225,1,1,2) [2025-03-29 16:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 16:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 16:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790225', 'tblTempUsageDetail_20' ) start [2025-03-29 16:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790225', 'tblTempUsageDetail_20' ) end [2025-03-29 16:59:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 16:59:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 16:59:22] Production.INFO: ==23804== Releasing lock... [2025-03-29 16:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 16:59:22] Production.INFO: 43.5 MB #Memory Used# [2025-03-29 17:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 14:00:07 [end_date_ymd] => 2025-03-29 17:00:07 [RateCDR] => 1 ) [2025-03-29 17: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-29 14:00:07' and `end` < '2025-03-29 17: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-29 17:00:19] Production.INFO: count ==2044 [2025-03-29 17:00:20] Production.ERROR: pbx CDR StartTime 2025-03-29 14:00:07 - End Time 2025-03-29 17:00:07 [2025-03-29 17:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 17:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790231', 'tblTempUsageDetail_20' ) start [2025-03-29 17:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790231', 'tblTempUsageDetail_20' ) end [2025-03-29 17:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790231', 'tblTempVendorCDR_20' ) start [2025-03-29 17:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790231', 'tblTempVendorCDR_20' ) end [2025-03-29 17:00:20] Production.INFO: ProcessCDR(1,14790231,1,1,2) [2025-03-29 17:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790231', 'tblTempUsageDetail_20' ) start [2025-03-29 17:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790231', 'tblTempUsageDetail_20' ) end [2025-03-29 17:00:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 17:00:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 17:00:24] Production.INFO: ==23879== Releasing lock... [2025-03-29 17:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 17:00:24] Production.INFO: 43.25 MB #Memory Used# [2025-03-29 17:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 14:01:05 [end_date_ymd] => 2025-03-29 17:01:05 [RateCDR] => 1 ) [2025-03-29 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-29 14:01:05' and `end` < '2025-03-29 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-29 17:01:17] Production.INFO: count ==2094 [2025-03-29 17:01:18] Production.ERROR: pbx CDR StartTime 2025-03-29 14:01:05 - End Time 2025-03-29 17:01:05 [2025-03-29 17:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 17:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790232', 'tblTempUsageDetail_20' ) start [2025-03-29 17:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790232', 'tblTempUsageDetail_20' ) end [2025-03-29 17:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790232', 'tblTempVendorCDR_20' ) start [2025-03-29 17:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790232', 'tblTempVendorCDR_20' ) end [2025-03-29 17:01:18] Production.INFO: ProcessCDR(1,14790232,1,1,2) [2025-03-29 17:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790232', 'tblTempUsageDetail_20' ) start [2025-03-29 17:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790232', 'tblTempUsageDetail_20' ) end [2025-03-29 17:01:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 17:01:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 17:01:23] Production.INFO: ==23966== Releasing lock... [2025-03-29 17:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 17:01:23] Production.INFO: 44 MB #Memory Used# [2025-03-29 17:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 14:02:05 [end_date_ymd] => 2025-03-29 17:02:05 [RateCDR] => 1 ) [2025-03-29 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-29 14:02:05' and `end` < '2025-03-29 17:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 17:02:18] Production.INFO: count ==2092 [2025-03-29 17:02:19] Production.ERROR: pbx CDR StartTime 2025-03-29 14:02:05 - End Time 2025-03-29 17:02:05 [2025-03-29 17:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 17:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790241', 'tblTempUsageDetail_20' ) start [2025-03-29 17:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790241', 'tblTempUsageDetail_20' ) end [2025-03-29 17:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790241', 'tblTempVendorCDR_20' ) start [2025-03-29 17:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790241', 'tblTempVendorCDR_20' ) end [2025-03-29 17:02:19] Production.INFO: ProcessCDR(1,14790241,1,1,2) [2025-03-29 17:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790241', 'tblTempUsageDetail_20' ) start [2025-03-29 17:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790241', 'tblTempUsageDetail_20' ) end [2025-03-29 17:02:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 17:02:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 17:02:24] Production.INFO: ==24041== Releasing lock... [2025-03-29 17:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 17:02:24] Production.INFO: 43.75 MB #Memory Used# [2025-03-29 17:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 14:03:05 [end_date_ymd] => 2025-03-29 17:03:05 [RateCDR] => 1 ) [2025-03-29 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-29 14:03:05' and `end` < '2025-03-29 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-29 17:03:18] Production.INFO: count ==2098 [2025-03-29 17:03:18] Production.ERROR: pbx CDR StartTime 2025-03-29 14:03:05 - End Time 2025-03-29 17:03:05 [2025-03-29 17:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 17:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790246', 'tblTempUsageDetail_20' ) start [2025-03-29 17:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790246', 'tblTempUsageDetail_20' ) end [2025-03-29 17:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790246', 'tblTempVendorCDR_20' ) start [2025-03-29 17:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790246', 'tblTempVendorCDR_20' ) end [2025-03-29 17:03:18] Production.INFO: ProcessCDR(1,14790246,1,1,2) [2025-03-29 17:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790246', 'tblTempUsageDetail_20' ) start [2025-03-29 17:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790246', 'tblTempUsageDetail_20' ) end [2025-03-29 17:03:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 17:03:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 17:03:23] Production.INFO: ==24114== Releasing lock... [2025-03-29 17:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 17:03:23] Production.INFO: 43.75 MB #Memory Used# [2025-03-29 17:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 14:04:06 [end_date_ymd] => 2025-03-29 17:04:06 [RateCDR] => 1 ) [2025-03-29 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-29 14:04:06' and `end` < '2025-03-29 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-29 17:04:19] Production.INFO: count ==2086 [2025-03-29 17:04:19] Production.ERROR: pbx CDR StartTime 2025-03-29 14:04:06 - End Time 2025-03-29 17:04:06 [2025-03-29 17:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 17:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790251', 'tblTempUsageDetail_20' ) start [2025-03-29 17:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790251', 'tblTempUsageDetail_20' ) end [2025-03-29 17:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790251', 'tblTempVendorCDR_20' ) start [2025-03-29 17:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790251', 'tblTempVendorCDR_20' ) end [2025-03-29 17:04:19] Production.INFO: ProcessCDR(1,14790251,1,1,2) [2025-03-29 17:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790251', 'tblTempUsageDetail_20' ) start [2025-03-29 17:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790251', 'tblTempUsageDetail_20' ) end [2025-03-29 17:04:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 17:04:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 17:04:24] Production.INFO: ==24192== Releasing lock... [2025-03-29 17:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 17:04:24] Production.INFO: 43.75 MB #Memory Used# [2025-03-29 17:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 14:05:05 [end_date_ymd] => 2025-03-29 17:05:05 [RateCDR] => 1 ) [2025-03-29 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-29 14:05:05' and `end` < '2025-03-29 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-29 17:05:18] Production.INFO: count ==2095 [2025-03-29 17:05:19] Production.ERROR: pbx CDR StartTime 2025-03-29 14:05:05 - End Time 2025-03-29 17:05:05 [2025-03-29 17:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 17:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790256', 'tblTempUsageDetail_20' ) start [2025-03-29 17:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790256', 'tblTempUsageDetail_20' ) end [2025-03-29 17:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790256', 'tblTempVendorCDR_20' ) start [2025-03-29 17:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790256', 'tblTempVendorCDR_20' ) end [2025-03-29 17:05:19] Production.INFO: ProcessCDR(1,14790256,1,1,2) [2025-03-29 17:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790256', 'tblTempUsageDetail_20' ) start [2025-03-29 17:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790256', 'tblTempUsageDetail_20' ) end [2025-03-29 17:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 17:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 17:05:22] Production.INFO: ==24263== Releasing lock... [2025-03-29 17:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 17:05:22] Production.INFO: 43.75 MB #Memory Used# [2025-03-29 17:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 14:06:06 [end_date_ymd] => 2025-03-29 17:06:06 [RateCDR] => 1 ) [2025-03-29 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-29 14:06:06' and `end` < '2025-03-29 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-29 17:06:18] Production.INFO: count ==2103 [2025-03-29 17:06:19] Production.ERROR: pbx CDR StartTime 2025-03-29 14:06:06 - End Time 2025-03-29 17:06:06 [2025-03-29 17:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 17:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790261', 'tblTempUsageDetail_20' ) start [2025-03-29 17:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790261', 'tblTempUsageDetail_20' ) end [2025-03-29 17:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790261', 'tblTempVendorCDR_20' ) start [2025-03-29 17:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790261', 'tblTempVendorCDR_20' ) end [2025-03-29 17:06:19] Production.INFO: ProcessCDR(1,14790261,1,1,2) [2025-03-29 17:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790261', 'tblTempUsageDetail_20' ) start [2025-03-29 17:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790261', 'tblTempUsageDetail_20' ) end [2025-03-29 17:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 17:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 17:06:22] Production.INFO: ==24339== Releasing lock... [2025-03-29 17:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 17:06:22] Production.INFO: 44 MB #Memory Used# [2025-03-29 17:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 14:07:05 [end_date_ymd] => 2025-03-29 17:07:05 [RateCDR] => 1 ) [2025-03-29 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-29 14:07:05' and `end` < '2025-03-29 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-29 17:07:18] Production.INFO: count ==2126 [2025-03-29 17:07:18] Production.ERROR: pbx CDR StartTime 2025-03-29 14:07:05 - End Time 2025-03-29 17:07:05 [2025-03-29 17:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 17:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790266', 'tblTempUsageDetail_20' ) start [2025-03-29 17:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790266', 'tblTempUsageDetail_20' ) end [2025-03-29 17:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790266', 'tblTempVendorCDR_20' ) start [2025-03-29 17:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790266', 'tblTempVendorCDR_20' ) end [2025-03-29 17:07:18] Production.INFO: ProcessCDR(1,14790266,1,1,2) [2025-03-29 17:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790266', 'tblTempUsageDetail_20' ) start [2025-03-29 17:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790266', 'tblTempUsageDetail_20' ) end [2025-03-29 17:07:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 17:07:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 17:07:22] Production.INFO: ==24408== Releasing lock... [2025-03-29 17:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 17:07:22] Production.INFO: 44 MB #Memory Used# [2025-03-29 17:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 14:08:06 [end_date_ymd] => 2025-03-29 17:08:06 [RateCDR] => 1 ) [2025-03-29 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-29 14:08:06' and `end` < '2025-03-29 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-29 17:08:18] Production.INFO: count ==2128 [2025-03-29 17:08:19] Production.ERROR: pbx CDR StartTime 2025-03-29 14:08:06 - End Time 2025-03-29 17:08:06 [2025-03-29 17:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 17:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790271', 'tblTempUsageDetail_20' ) start [2025-03-29 17:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790271', 'tblTempUsageDetail_20' ) end [2025-03-29 17:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790271', 'tblTempVendorCDR_20' ) start [2025-03-29 17:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790271', 'tblTempVendorCDR_20' ) end [2025-03-29 17:08:19] Production.INFO: ProcessCDR(1,14790271,1,1,2) [2025-03-29 17:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790271', 'tblTempUsageDetail_20' ) start [2025-03-29 17:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790271', 'tblTempUsageDetail_20' ) end [2025-03-29 17:08:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 17:08:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 17:08:22] Production.INFO: ==24485== Releasing lock... [2025-03-29 17:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 17:08:22] Production.INFO: 44 MB #Memory Used# [2025-03-29 17:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 14:09:05 [end_date_ymd] => 2025-03-29 17:09:05 [RateCDR] => 1 ) [2025-03-29 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-29 14:09:05' and `end` < '2025-03-29 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-29 17:09:18] Production.INFO: count ==2124 [2025-03-29 17:09:18] Production.ERROR: pbx CDR StartTime 2025-03-29 14:09:05 - End Time 2025-03-29 17:09:05 [2025-03-29 17:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 17:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790276', 'tblTempUsageDetail_20' ) start [2025-03-29 17:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790276', 'tblTempUsageDetail_20' ) end [2025-03-29 17:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790276', 'tblTempVendorCDR_20' ) start [2025-03-29 17:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790276', 'tblTempVendorCDR_20' ) end [2025-03-29 17:09:18] Production.INFO: ProcessCDR(1,14790276,1,1,2) [2025-03-29 17:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790276', 'tblTempUsageDetail_20' ) start [2025-03-29 17:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790276', 'tblTempUsageDetail_20' ) end [2025-03-29 17:09:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 17:09:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 17:09:22] Production.INFO: ==24564== Releasing lock... [2025-03-29 17:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 17:09:22] Production.INFO: 44 MB #Memory Used# [2025-03-29 17:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 14:10:06 [end_date_ymd] => 2025-03-29 17:10:06 [RateCDR] => 1 ) [2025-03-29 17:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 14:10:06' and `end` < '2025-03-29 17:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 17:10:19] Production.INFO: count ==2115 [2025-03-29 17:10:20] Production.ERROR: pbx CDR StartTime 2025-03-29 14:10:06 - End Time 2025-03-29 17:10:06 [2025-03-29 17:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 17:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790282', 'tblTempUsageDetail_20' ) start [2025-03-29 17:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790282', 'tblTempUsageDetail_20' ) end [2025-03-29 17:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790282', 'tblTempVendorCDR_20' ) start [2025-03-29 17:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790282', 'tblTempVendorCDR_20' ) end [2025-03-29 17:10:20] Production.INFO: ProcessCDR(1,14790282,1,1,2) [2025-03-29 17:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790282', 'tblTempUsageDetail_20' ) start [2025-03-29 17:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790282', 'tblTempUsageDetail_20' ) end [2025-03-29 17:10:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 17:10:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 17:10:23] Production.INFO: ==24686== Releasing lock... [2025-03-29 17:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 17:10:23] Production.INFO: 44 MB #Memory Used# [2025-03-29 17:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 14:11:05 [end_date_ymd] => 2025-03-29 17:11:05 [RateCDR] => 1 ) [2025-03-29 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-29 14:11:05' and `end` < '2025-03-29 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-29 17:11:17] Production.INFO: count ==2134 [2025-03-29 17:11:18] Production.ERROR: pbx CDR StartTime 2025-03-29 14:11:05 - End Time 2025-03-29 17:11:05 [2025-03-29 17:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 17:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790287', 'tblTempUsageDetail_20' ) start [2025-03-29 17:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790287', 'tblTempUsageDetail_20' ) end [2025-03-29 17:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790287', 'tblTempVendorCDR_20' ) start [2025-03-29 17:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790287', 'tblTempVendorCDR_20' ) end [2025-03-29 17:11:18] Production.INFO: ProcessCDR(1,14790287,1,1,2) [2025-03-29 17:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790287', 'tblTempUsageDetail_20' ) start [2025-03-29 17:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790287', 'tblTempUsageDetail_20' ) end [2025-03-29 17:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 17:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 17:11:21] Production.INFO: ==24763== Releasing lock... [2025-03-29 17:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 17:11:21] Production.INFO: 44 MB #Memory Used# [2025-03-29 17:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 14:12:06 [end_date_ymd] => 2025-03-29 17:12:06 [RateCDR] => 1 ) [2025-03-29 17:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 14:12:06' and `end` < '2025-03-29 17:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 17:12:18] Production.INFO: count ==2133 [2025-03-29 17:12:19] Production.ERROR: pbx CDR StartTime 2025-03-29 14:12:06 - End Time 2025-03-29 17:12:06 [2025-03-29 17:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 17:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790292', 'tblTempUsageDetail_20' ) start [2025-03-29 17:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790292', 'tblTempUsageDetail_20' ) end [2025-03-29 17:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790292', 'tblTempVendorCDR_20' ) start [2025-03-29 17:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790292', 'tblTempVendorCDR_20' ) end [2025-03-29 17:12:19] Production.INFO: ProcessCDR(1,14790292,1,1,2) [2025-03-29 17:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790292', 'tblTempUsageDetail_20' ) start [2025-03-29 17:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790292', 'tblTempUsageDetail_20' ) end [2025-03-29 17:12:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 17:12:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 17:12:22] Production.INFO: ==24844== Releasing lock... [2025-03-29 17:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 17:12:22] Production.INFO: 44 MB #Memory Used# [2025-03-29 17:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 14:13:05 [end_date_ymd] => 2025-03-29 17:13:05 [RateCDR] => 1 ) [2025-03-29 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-29 14:13:05' and `end` < '2025-03-29 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-29 17:13:18] Production.INFO: count ==2133 [2025-03-29 17:13:19] Production.ERROR: pbx CDR StartTime 2025-03-29 14:13:05 - End Time 2025-03-29 17:13:05 [2025-03-29 17:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 17:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790297', 'tblTempUsageDetail_20' ) start [2025-03-29 17:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790297', 'tblTempUsageDetail_20' ) end [2025-03-29 17:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790297', 'tblTempVendorCDR_20' ) start [2025-03-29 17:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790297', 'tblTempVendorCDR_20' ) end [2025-03-29 17:13:19] Production.INFO: ProcessCDR(1,14790297,1,1,2) [2025-03-29 17:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790297', 'tblTempUsageDetail_20' ) start [2025-03-29 17:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790297', 'tblTempUsageDetail_20' ) end [2025-03-29 17:13:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 17:13:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 17:13:22] Production.INFO: ==24915== Releasing lock... [2025-03-29 17:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 17:13:22] Production.INFO: 44 MB #Memory Used# [2025-03-29 17:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 14:14:05 [end_date_ymd] => 2025-03-29 17:14:05 [RateCDR] => 1 ) [2025-03-29 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-29 14:14:05' and `end` < '2025-03-29 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-29 17:14:18] Production.INFO: count ==2130 [2025-03-29 17:14:19] Production.ERROR: pbx CDR StartTime 2025-03-29 14:14:05 - End Time 2025-03-29 17:14:05 [2025-03-29 17:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 17:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790302', 'tblTempUsageDetail_20' ) start [2025-03-29 17:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790302', 'tblTempUsageDetail_20' ) end [2025-03-29 17:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790302', 'tblTempVendorCDR_20' ) start [2025-03-29 17:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790302', 'tblTempVendorCDR_20' ) end [2025-03-29 17:14:19] Production.INFO: ProcessCDR(1,14790302,1,1,2) [2025-03-29 17:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790302', 'tblTempUsageDetail_20' ) start [2025-03-29 17:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790302', 'tblTempUsageDetail_20' ) end [2025-03-29 17:14:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 17:14:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 17:14:24] Production.INFO: ==24995== Releasing lock... [2025-03-29 17:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 17:14:24] Production.INFO: 44 MB #Memory Used# [2025-03-29 17:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 14:15:06 [end_date_ymd] => 2025-03-29 17:15:06 [RateCDR] => 1 ) [2025-03-29 17: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-29 14:15:06' and `end` < '2025-03-29 17: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-29 17:15:18] Production.INFO: count ==2112 [2025-03-29 17:15:19] Production.ERROR: pbx CDR StartTime 2025-03-29 14:15:06 - End Time 2025-03-29 17:15:06 [2025-03-29 17:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 17:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790307', 'tblTempUsageDetail_20' ) start [2025-03-29 17:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790307', 'tblTempUsageDetail_20' ) end [2025-03-29 17:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790307', 'tblTempVendorCDR_20' ) start [2025-03-29 17:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790307', 'tblTempVendorCDR_20' ) end [2025-03-29 17:15:19] Production.INFO: ProcessCDR(1,14790307,1,1,2) [2025-03-29 17:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790307', 'tblTempUsageDetail_20' ) start [2025-03-29 17:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790307', 'tblTempUsageDetail_20' ) end [2025-03-29 17:15:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 17:15:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 17:15:24] Production.INFO: ==25075== Releasing lock... [2025-03-29 17:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 17:15:24] Production.INFO: 44 MB #Memory Used# [2025-03-29 17:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 14:16:05 [end_date_ymd] => 2025-03-29 17:16:05 [RateCDR] => 1 ) [2025-03-29 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-29 14:16:05' and `end` < '2025-03-29 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-29 17:16:17] Production.INFO: count ==2089 [2025-03-29 17:16:18] Production.ERROR: pbx CDR StartTime 2025-03-29 14:16:05 - End Time 2025-03-29 17:16:05 [2025-03-29 17:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 17:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790312', 'tblTempUsageDetail_20' ) start [2025-03-29 17:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790312', 'tblTempUsageDetail_20' ) end [2025-03-29 17:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790312', 'tblTempVendorCDR_20' ) start [2025-03-29 17:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790312', 'tblTempVendorCDR_20' ) end [2025-03-29 17:16:18] Production.INFO: ProcessCDR(1,14790312,1,1,2) [2025-03-29 17:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790312', 'tblTempUsageDetail_20' ) start [2025-03-29 17:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790312', 'tblTempUsageDetail_20' ) end [2025-03-29 17:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 17:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 17:16:21] Production.INFO: ==25150== Releasing lock... [2025-03-29 17:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 17:16:21] Production.INFO: 43.75 MB #Memory Used# [2025-03-29 17:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 14:17:05 [end_date_ymd] => 2025-03-29 17:17:05 [RateCDR] => 1 ) [2025-03-29 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-29 14:17:05' and `end` < '2025-03-29 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-29 17:17:18] Production.INFO: count ==2085 [2025-03-29 17:17:19] Production.ERROR: pbx CDR StartTime 2025-03-29 14:17:05 - End Time 2025-03-29 17:17:05 [2025-03-29 17:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 17:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790317', 'tblTempUsageDetail_20' ) start [2025-03-29 17:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790317', 'tblTempUsageDetail_20' ) end [2025-03-29 17:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790317', 'tblTempVendorCDR_20' ) start [2025-03-29 17:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790317', 'tblTempVendorCDR_20' ) end [2025-03-29 17:17:19] Production.INFO: ProcessCDR(1,14790317,1,1,2) [2025-03-29 17:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790317', 'tblTempUsageDetail_20' ) start [2025-03-29 17:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790317', 'tblTempUsageDetail_20' ) end [2025-03-29 17:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 17:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 17:17:22] Production.INFO: ==25227== Releasing lock... [2025-03-29 17:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 17:17:22] Production.INFO: 43.75 MB #Memory Used# [2025-03-29 17:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 14:18:05 [end_date_ymd] => 2025-03-29 17:18:05 [RateCDR] => 1 ) [2025-03-29 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-29 14:18:05' and `end` < '2025-03-29 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-29 17:18:18] Production.INFO: count ==2076 [2025-03-29 17:18:18] Production.ERROR: pbx CDR StartTime 2025-03-29 14:18:05 - End Time 2025-03-29 17:18:05 [2025-03-29 17:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 17:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790322', 'tblTempUsageDetail_20' ) start [2025-03-29 17:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790322', 'tblTempUsageDetail_20' ) end [2025-03-29 17:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790322', 'tblTempVendorCDR_20' ) start [2025-03-29 17:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790322', 'tblTempVendorCDR_20' ) end [2025-03-29 17:18:18] Production.INFO: ProcessCDR(1,14790322,1,1,2) [2025-03-29 17:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790322', 'tblTempUsageDetail_20' ) start [2025-03-29 17:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790322', 'tblTempUsageDetail_20' ) end [2025-03-29 17:18:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 17:18:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 17:18:22] Production.INFO: ==25318== Releasing lock... [2025-03-29 17:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 17:18:22] Production.INFO: 43.75 MB #Memory Used# [2025-03-29 17:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 14:19:05 [end_date_ymd] => 2025-03-29 17:19:05 [RateCDR] => 1 ) [2025-03-29 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-29 14:19:05' and `end` < '2025-03-29 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-29 17:19:18] Production.INFO: count ==2070 [2025-03-29 17:19:19] Production.ERROR: pbx CDR StartTime 2025-03-29 14:19:05 - End Time 2025-03-29 17:19:05 [2025-03-29 17:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 17:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790327', 'tblTempUsageDetail_20' ) start [2025-03-29 17:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790327', 'tblTempUsageDetail_20' ) end [2025-03-29 17:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790327', 'tblTempVendorCDR_20' ) start [2025-03-29 17:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790327', 'tblTempVendorCDR_20' ) end [2025-03-29 17:19:19] Production.INFO: ProcessCDR(1,14790327,1,1,2) [2025-03-29 17:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790327', 'tblTempUsageDetail_20' ) start [2025-03-29 17:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790327', 'tblTempUsageDetail_20' ) end [2025-03-29 17:19:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 17:19:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 17:19:22] Production.INFO: ==25397== Releasing lock... [2025-03-29 17:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 17:19:22] Production.INFO: 43.75 MB #Memory Used# [2025-03-29 17:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 14:20:06 [end_date_ymd] => 2025-03-29 17:20:06 [RateCDR] => 1 ) [2025-03-29 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-29 14:20:06' and `end` < '2025-03-29 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-29 17:20:19] Production.INFO: count ==2067 [2025-03-29 17:20:20] Production.ERROR: pbx CDR StartTime 2025-03-29 14:20:06 - End Time 2025-03-29 17:20:06 [2025-03-29 17:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 17:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790333', 'tblTempUsageDetail_20' ) start [2025-03-29 17:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790333', 'tblTempUsageDetail_20' ) end [2025-03-29 17:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790333', 'tblTempVendorCDR_20' ) start [2025-03-29 17:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790333', 'tblTempVendorCDR_20' ) end [2025-03-29 17:20:20] Production.INFO: ProcessCDR(1,14790333,1,1,2) [2025-03-29 17:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790333', 'tblTempUsageDetail_20' ) start [2025-03-29 17:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790333', 'tblTempUsageDetail_20' ) end [2025-03-29 17:20:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 17:20:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 17:20:24] Production.INFO: ==25476== Releasing lock... [2025-03-29 17:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 17:20:24] Production.INFO: 43.5 MB #Memory Used# [2025-03-29 17:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 14:21:05 [end_date_ymd] => 2025-03-29 17:21:05 [RateCDR] => 1 ) [2025-03-29 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-29 14:21:05' and `end` < '2025-03-29 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-29 17:21:18] Production.INFO: count ==2116 [2025-03-29 17:21:18] Production.ERROR: pbx CDR StartTime 2025-03-29 14:21:05 - End Time 2025-03-29 17:21:05 [2025-03-29 17:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 17:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790338', 'tblTempUsageDetail_20' ) start [2025-03-29 17:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790338', 'tblTempUsageDetail_20' ) end [2025-03-29 17:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790338', 'tblTempVendorCDR_20' ) start [2025-03-29 17:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790338', 'tblTempVendorCDR_20' ) end [2025-03-29 17:21:19] Production.INFO: ProcessCDR(1,14790338,1,1,2) [2025-03-29 17:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790338', 'tblTempUsageDetail_20' ) start [2025-03-29 17:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790338', 'tblTempUsageDetail_20' ) end [2025-03-29 17:21:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 17:21:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 17:21:23] Production.INFO: ==25557== Releasing lock... [2025-03-29 17:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 17:21:23] Production.INFO: 44 MB #Memory Used# [2025-03-29 17:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 14:22:05 [end_date_ymd] => 2025-03-29 17:22:05 [RateCDR] => 1 ) [2025-03-29 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-29 14:22:05' and `end` < '2025-03-29 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-29 17:22:18] Production.INFO: count ==2116 [2025-03-29 17:22:19] Production.ERROR: pbx CDR StartTime 2025-03-29 14:22:05 - End Time 2025-03-29 17:22:05 [2025-03-29 17:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 17:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790343', 'tblTempUsageDetail_20' ) start [2025-03-29 17:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790343', 'tblTempUsageDetail_20' ) end [2025-03-29 17:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790343', 'tblTempVendorCDR_20' ) start [2025-03-29 17:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790343', 'tblTempVendorCDR_20' ) end [2025-03-29 17:22:19] Production.INFO: ProcessCDR(1,14790343,1,1,2) [2025-03-29 17:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790343', 'tblTempUsageDetail_20' ) start [2025-03-29 17:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790343', 'tblTempUsageDetail_20' ) end [2025-03-29 17:22:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 17:22:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 17:22:24] Production.INFO: ==25641== Releasing lock... [2025-03-29 17:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 17:22:24] Production.INFO: 44 MB #Memory Used# [2025-03-29 17:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 14:23:05 [end_date_ymd] => 2025-03-29 17:23:05 [RateCDR] => 1 ) [2025-03-29 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-29 14:23:05' and `end` < '2025-03-29 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-29 17:23:18] Production.INFO: count ==2112 [2025-03-29 17:23:19] Production.ERROR: pbx CDR StartTime 2025-03-29 14:23:05 - End Time 2025-03-29 17:23:05 [2025-03-29 17:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 17:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790348', 'tblTempUsageDetail_20' ) start [2025-03-29 17:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790348', 'tblTempUsageDetail_20' ) end [2025-03-29 17:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790348', 'tblTempVendorCDR_20' ) start [2025-03-29 17:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790348', 'tblTempVendorCDR_20' ) end [2025-03-29 17:23:19] Production.INFO: ProcessCDR(1,14790348,1,1,2) [2025-03-29 17:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790348', 'tblTempUsageDetail_20' ) start [2025-03-29 17:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790348', 'tblTempUsageDetail_20' ) end [2025-03-29 17:23:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 17:23:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 17:23:22] Production.INFO: ==25722== Releasing lock... [2025-03-29 17:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 17:23:22] Production.INFO: 44.25 MB #Memory Used# [2025-03-29 17:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 14:24:06 [end_date_ymd] => 2025-03-29 17:24:06 [RateCDR] => 1 ) [2025-03-29 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-29 14:24:06' and `end` < '2025-03-29 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-29 17:24:19] Production.INFO: count ==2111 [2025-03-29 17:24:19] Production.ERROR: pbx CDR StartTime 2025-03-29 14:24:06 - End Time 2025-03-29 17:24:06 [2025-03-29 17:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 17:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790353', 'tblTempUsageDetail_20' ) start [2025-03-29 17:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790353', 'tblTempUsageDetail_20' ) end [2025-03-29 17:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790353', 'tblTempVendorCDR_20' ) start [2025-03-29 17:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790353', 'tblTempVendorCDR_20' ) end [2025-03-29 17:24:19] Production.INFO: ProcessCDR(1,14790353,1,1,2) [2025-03-29 17:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790353', 'tblTempUsageDetail_20' ) start [2025-03-29 17:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790353', 'tblTempUsageDetail_20' ) end [2025-03-29 17:24:25] Production.ERROR: pbx prc_insertCDR start [2025-03-29 17:24:25] Production.ERROR: pbx prc_insertCDR end [2025-03-29 17:24:25] Production.INFO: ==25804== Releasing lock... [2025-03-29 17:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 17:24:25] Production.INFO: 44 MB #Memory Used# [2025-03-29 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 14:25:05 [end_date_ymd] => 2025-03-29 17:25:05 [RateCDR] => 1 ) [2025-03-29 17:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 14:25:05' and `end` < '2025-03-29 17:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 17:25:18] Production.INFO: count ==2108 [2025-03-29 17:25:18] Production.ERROR: pbx CDR StartTime 2025-03-29 14:25:05 - End Time 2025-03-29 17:25:05 [2025-03-29 17:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790358', 'tblTempUsageDetail_20' ) start [2025-03-29 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790358', 'tblTempUsageDetail_20' ) end [2025-03-29 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790358', 'tblTempVendorCDR_20' ) start [2025-03-29 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790358', 'tblTempVendorCDR_20' ) end [2025-03-29 17:25:18] Production.INFO: ProcessCDR(1,14790358,1,1,2) [2025-03-29 17:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790358', 'tblTempUsageDetail_20' ) start [2025-03-29 17:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790358', 'tblTempUsageDetail_20' ) end [2025-03-29 17:25:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 17:25:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 17:25:22] Production.INFO: ==25887== Releasing lock... [2025-03-29 17:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 17:25:22] Production.INFO: 44 MB #Memory Used# [2025-03-29 17:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 14:26:06 [end_date_ymd] => 2025-03-29 17:26:06 [RateCDR] => 1 ) [2025-03-29 17: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-29 14:26:06' and `end` < '2025-03-29 17: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-29 17:26:19] Production.INFO: count ==2107 [2025-03-29 17:26:20] Production.ERROR: pbx CDR StartTime 2025-03-29 14:26:06 - End Time 2025-03-29 17:26:06 [2025-03-29 17:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 17:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790363', 'tblTempUsageDetail_20' ) start [2025-03-29 17:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790363', 'tblTempUsageDetail_20' ) end [2025-03-29 17:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790363', 'tblTempVendorCDR_20' ) start [2025-03-29 17:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790363', 'tblTempVendorCDR_20' ) end [2025-03-29 17:26:20] Production.INFO: ProcessCDR(1,14790363,1,1,2) [2025-03-29 17:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790363', 'tblTempUsageDetail_20' ) start [2025-03-29 17:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790363', 'tblTempUsageDetail_20' ) end [2025-03-29 17:26:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 17:26:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 17:26:23] Production.INFO: ==26012== Releasing lock... [2025-03-29 17:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 17:26:23] Production.INFO: 44 MB #Memory Used# [2025-03-29 17:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 14:27:05 [end_date_ymd] => 2025-03-29 17:27:05 [RateCDR] => 1 ) [2025-03-29 17: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-29 14:27:05' and `end` < '2025-03-29 17: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-29 17:27:18] Production.INFO: count ==2104 [2025-03-29 17:27:19] Production.ERROR: pbx CDR StartTime 2025-03-29 14:27:05 - End Time 2025-03-29 17:27:05 [2025-03-29 17:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 17:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790368', 'tblTempUsageDetail_20' ) start [2025-03-29 17:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790368', 'tblTempUsageDetail_20' ) end [2025-03-29 17:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790368', 'tblTempVendorCDR_20' ) start [2025-03-29 17:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790368', 'tblTempVendorCDR_20' ) end [2025-03-29 17:27:19] Production.INFO: ProcessCDR(1,14790368,1,1,2) [2025-03-29 17:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790368', 'tblTempUsageDetail_20' ) start [2025-03-29 17:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790368', 'tblTempUsageDetail_20' ) end [2025-03-29 17:27:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 17:27:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 17:27:22] Production.INFO: ==26093== Releasing lock... [2025-03-29 17:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 17:27:22] Production.INFO: 43.75 MB #Memory Used# [2025-03-29 17:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 14:28:05 [end_date_ymd] => 2025-03-29 17:28:05 [RateCDR] => 1 ) [2025-03-29 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-29 14:28:05' and `end` < '2025-03-29 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-29 17:28:18] Production.INFO: count ==2104 [2025-03-29 17:28:19] Production.ERROR: pbx CDR StartTime 2025-03-29 14:28:05 - End Time 2025-03-29 17:28:05 [2025-03-29 17:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 17:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790373', 'tblTempUsageDetail_20' ) start [2025-03-29 17:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790373', 'tblTempUsageDetail_20' ) end [2025-03-29 17:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790373', 'tblTempVendorCDR_20' ) start [2025-03-29 17:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790373', 'tblTempVendorCDR_20' ) end [2025-03-29 17:28:19] Production.INFO: ProcessCDR(1,14790373,1,1,2) [2025-03-29 17:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790373', 'tblTempUsageDetail_20' ) start [2025-03-29 17:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790373', 'tblTempUsageDetail_20' ) end [2025-03-29 17:28:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 17:28:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 17:28:22] Production.INFO: ==26178== Releasing lock... [2025-03-29 17:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 17:28:22] Production.INFO: 43.75 MB #Memory Used# [2025-03-29 17:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 14:29:05 [end_date_ymd] => 2025-03-29 17:29:05 [RateCDR] => 1 ) [2025-03-29 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-29 14:29:05' and `end` < '2025-03-29 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-29 17:29:18] Production.INFO: count ==2102 [2025-03-29 17:29:18] Production.ERROR: pbx CDR StartTime 2025-03-29 14:29:05 - End Time 2025-03-29 17:29:05 [2025-03-29 17:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 17:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790378', 'tblTempUsageDetail_20' ) start [2025-03-29 17:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790378', 'tblTempUsageDetail_20' ) end [2025-03-29 17:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790378', 'tblTempVendorCDR_20' ) start [2025-03-29 17:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790378', 'tblTempVendorCDR_20' ) end [2025-03-29 17:29:18] Production.INFO: ProcessCDR(1,14790378,1,1,2) [2025-03-29 17:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790378', 'tblTempUsageDetail_20' ) start [2025-03-29 17:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790378', 'tblTempUsageDetail_20' ) end [2025-03-29 17:29:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 17:29:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 17:29:22] Production.INFO: ==26262== Releasing lock... [2025-03-29 17:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 17:29:22] Production.INFO: 43.75 MB #Memory Used# [2025-03-29 17:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 14:30:06 [end_date_ymd] => 2025-03-29 17:30:06 [RateCDR] => 1 ) [2025-03-29 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-29 14:30:06' and `end` < '2025-03-29 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-29 17:30:19] Production.INFO: count ==2091 [2025-03-29 17:30:20] Production.ERROR: pbx CDR StartTime 2025-03-29 14:30:06 - End Time 2025-03-29 17:30:06 [2025-03-29 17:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 17:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790384', 'tblTempUsageDetail_20' ) start [2025-03-29 17:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790384', 'tblTempUsageDetail_20' ) end [2025-03-29 17:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790384', 'tblTempVendorCDR_20' ) start [2025-03-29 17:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790384', 'tblTempVendorCDR_20' ) end [2025-03-29 17:30:20] Production.INFO: ProcessCDR(1,14790384,1,1,2) [2025-03-29 17:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790384', 'tblTempUsageDetail_20' ) start [2025-03-29 17:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790384', 'tblTempUsageDetail_20' ) end [2025-03-29 17:30:25] Production.ERROR: pbx prc_insertCDR start [2025-03-29 17:30:25] Production.ERROR: pbx prc_insertCDR end [2025-03-29 17:30:25] Production.INFO: ==26348== Releasing lock... [2025-03-29 17:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 17:30:25] Production.INFO: 44 MB #Memory Used# [2025-03-29 17:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 14:31:05 [end_date_ymd] => 2025-03-29 17:31:05 [RateCDR] => 1 ) [2025-03-29 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-29 14:31:05' and `end` < '2025-03-29 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-29 17:31:17] Production.INFO: count ==2132 [2025-03-29 17:31:18] Production.ERROR: pbx CDR StartTime 2025-03-29 14:31:05 - End Time 2025-03-29 17:31:05 [2025-03-29 17:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 17:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790389', 'tblTempUsageDetail_20' ) start [2025-03-29 17:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790389', 'tblTempUsageDetail_20' ) end [2025-03-29 17:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790389', 'tblTempVendorCDR_20' ) start [2025-03-29 17:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790389', 'tblTempVendorCDR_20' ) end [2025-03-29 17:31:18] Production.INFO: ProcessCDR(1,14790389,1,1,2) [2025-03-29 17:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790389', 'tblTempUsageDetail_20' ) start [2025-03-29 17:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790389', 'tblTempUsageDetail_20' ) end [2025-03-29 17:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 17:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 17:31:22] Production.INFO: ==26435== Releasing lock... [2025-03-29 17:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 17:31:22] Production.INFO: 44 MB #Memory Used# [2025-03-29 17:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 14:32:06 [end_date_ymd] => 2025-03-29 17:32:06 [RateCDR] => 1 ) [2025-03-29 17: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-29 14:32:06' and `end` < '2025-03-29 17: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-29 17:32:19] Production.INFO: count ==2137 [2025-03-29 17:32:19] Production.ERROR: pbx CDR StartTime 2025-03-29 14:32:06 - End Time 2025-03-29 17:32:06 [2025-03-29 17:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 17:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790394', 'tblTempUsageDetail_20' ) start [2025-03-29 17:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790394', 'tblTempUsageDetail_20' ) end [2025-03-29 17:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790394', 'tblTempVendorCDR_20' ) start [2025-03-29 17:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790394', 'tblTempVendorCDR_20' ) end [2025-03-29 17:32:19] Production.INFO: ProcessCDR(1,14790394,1,1,2) [2025-03-29 17:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790394', 'tblTempUsageDetail_20' ) start [2025-03-29 17:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790394', 'tblTempUsageDetail_20' ) end [2025-03-29 17:32:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 17:32:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 17:32:24] Production.INFO: ==26524== Releasing lock... [2025-03-29 17:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 17:32:24] Production.INFO: 44 MB #Memory Used# [2025-03-29 17:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 14:33:05 [end_date_ymd] => 2025-03-29 17:33:05 [RateCDR] => 1 ) [2025-03-29 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-29 14:33:05' and `end` < '2025-03-29 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-29 17:33:18] Production.INFO: count ==2147 [2025-03-29 17:33:18] Production.ERROR: pbx CDR StartTime 2025-03-29 14:33:05 - End Time 2025-03-29 17:33:05 [2025-03-29 17:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 17:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790399', 'tblTempUsageDetail_20' ) start [2025-03-29 17:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790399', 'tblTempUsageDetail_20' ) end [2025-03-29 17:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790399', 'tblTempVendorCDR_20' ) start [2025-03-29 17:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790399', 'tblTempVendorCDR_20' ) end [2025-03-29 17:33:18] Production.INFO: ProcessCDR(1,14790399,1,1,2) [2025-03-29 17:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790399', 'tblTempUsageDetail_20' ) start [2025-03-29 17:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790399', 'tblTempUsageDetail_20' ) end [2025-03-29 17:33:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 17:33:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 17:33:23] Production.INFO: ==26602== Releasing lock... [2025-03-29 17:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 17:33:23] Production.INFO: 44.25 MB #Memory Used# [2025-03-29 17:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 14:34:05 [end_date_ymd] => 2025-03-29 17:34:05 [RateCDR] => 1 ) [2025-03-29 17:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 14:34:05' and `end` < '2025-03-29 17:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 17:34:18] Production.INFO: count ==2149 [2025-03-29 17:34:18] Production.ERROR: pbx CDR StartTime 2025-03-29 14:34:05 - End Time 2025-03-29 17:34:05 [2025-03-29 17:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 17:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790404', 'tblTempUsageDetail_20' ) start [2025-03-29 17:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790404', 'tblTempUsageDetail_20' ) end [2025-03-29 17:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790404', 'tblTempVendorCDR_20' ) start [2025-03-29 17:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790404', 'tblTempVendorCDR_20' ) end [2025-03-29 17:34:19] Production.INFO: ProcessCDR(1,14790404,1,1,2) [2025-03-29 17:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790404', 'tblTempUsageDetail_20' ) start [2025-03-29 17:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790404', 'tblTempUsageDetail_20' ) end [2025-03-29 17:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 17:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 17:34:22] Production.INFO: ==26680== Releasing lock... [2025-03-29 17:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 17:34:22] Production.INFO: 44.5 MB #Memory Used# [2025-03-29 17:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 14:35:05 [end_date_ymd] => 2025-03-29 17:35:05 [RateCDR] => 1 ) [2025-03-29 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-29 14:35:05' and `end` < '2025-03-29 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-29 17:35:18] Production.INFO: count ==2164 [2025-03-29 17:35:19] Production.ERROR: pbx CDR StartTime 2025-03-29 14:35:05 - End Time 2025-03-29 17:35:05 [2025-03-29 17:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 17:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790409', 'tblTempUsageDetail_20' ) start [2025-03-29 17:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790409', 'tblTempUsageDetail_20' ) end [2025-03-29 17:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790409', 'tblTempVendorCDR_20' ) start [2025-03-29 17:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790409', 'tblTempVendorCDR_20' ) end [2025-03-29 17:35:19] Production.INFO: ProcessCDR(1,14790409,1,1,2) [2025-03-29 17:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790409', 'tblTempUsageDetail_20' ) start [2025-03-29 17:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790409', 'tblTempUsageDetail_20' ) end [2025-03-29 17:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 17:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 17:35:22] Production.INFO: ==26769== Releasing lock... [2025-03-29 17:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 17:35:22] Production.INFO: 44.25 MB #Memory Used# [2025-03-29 17:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 14:36:06 [end_date_ymd] => 2025-03-29 17:36:06 [RateCDR] => 1 ) [2025-03-29 17:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 14:36:06' and `end` < '2025-03-29 17:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 17:36:18] Production.INFO: count ==2170 [2025-03-29 17:36:19] Production.ERROR: pbx CDR StartTime 2025-03-29 14:36:06 - End Time 2025-03-29 17:36:06 [2025-03-29 17:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 17:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790414', 'tblTempUsageDetail_20' ) start [2025-03-29 17:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790414', 'tblTempUsageDetail_20' ) end [2025-03-29 17:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790414', 'tblTempVendorCDR_20' ) start [2025-03-29 17:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790414', 'tblTempVendorCDR_20' ) end [2025-03-29 17:36:19] Production.INFO: ProcessCDR(1,14790414,1,1,2) [2025-03-29 17:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790414', 'tblTempUsageDetail_20' ) start [2025-03-29 17:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790414', 'tblTempUsageDetail_20' ) end [2025-03-29 17:36:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 17:36:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 17:36:24] Production.INFO: ==26856== Releasing lock... [2025-03-29 17:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 17:36:24] Production.INFO: 44.25 MB #Memory Used# [2025-03-29 17:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 14:37:04 [end_date_ymd] => 2025-03-29 17:37:04 [RateCDR] => 1 ) [2025-03-29 17:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 14:37:04' and `end` < '2025-03-29 17:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 17:37:17] Production.INFO: count ==2174 [2025-03-29 17:37:18] Production.ERROR: pbx CDR StartTime 2025-03-29 14:37:04 - End Time 2025-03-29 17:37:04 [2025-03-29 17:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 17:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790419', 'tblTempUsageDetail_20' ) start [2025-03-29 17:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790419', 'tblTempUsageDetail_20' ) end [2025-03-29 17:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790419', 'tblTempVendorCDR_20' ) start [2025-03-29 17:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790419', 'tblTempVendorCDR_20' ) end [2025-03-29 17:37:18] Production.INFO: ProcessCDR(1,14790419,1,1,2) [2025-03-29 17:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790419', 'tblTempUsageDetail_20' ) start [2025-03-29 17:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790419', 'tblTempUsageDetail_20' ) end [2025-03-29 17:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 17:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 17:37:21] Production.INFO: ==26939== Releasing lock... [2025-03-29 17:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 17:37:21] Production.INFO: 44.25 MB #Memory Used# [2025-03-29 17:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 14:38:05 [end_date_ymd] => 2025-03-29 17:38:05 [RateCDR] => 1 ) [2025-03-29 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-29 14:38:05' and `end` < '2025-03-29 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-29 17:38:18] Production.INFO: count ==2173 [2025-03-29 17:38:18] Production.ERROR: pbx CDR StartTime 2025-03-29 14:38:05 - End Time 2025-03-29 17:38:05 [2025-03-29 17:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 17:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790424', 'tblTempUsageDetail_20' ) start [2025-03-29 17:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790424', 'tblTempUsageDetail_20' ) end [2025-03-29 17:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790424', 'tblTempVendorCDR_20' ) start [2025-03-29 17:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790424', 'tblTempVendorCDR_20' ) end [2025-03-29 17:38:18] Production.INFO: ProcessCDR(1,14790424,1,1,2) [2025-03-29 17:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790424', 'tblTempUsageDetail_20' ) start [2025-03-29 17:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790424', 'tblTempUsageDetail_20' ) end [2025-03-29 17:38:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 17:38:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 17:38:23] Production.INFO: ==27021== Releasing lock... [2025-03-29 17:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 17:38:23] Production.INFO: 44.25 MB #Memory Used# [2025-03-29 17:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 14:39:04 [end_date_ymd] => 2025-03-29 17:39:04 [RateCDR] => 1 ) [2025-03-29 17:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 14:39:04' and `end` < '2025-03-29 17:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 17:39:17] Production.INFO: count ==2170 [2025-03-29 17:39:17] Production.ERROR: pbx CDR StartTime 2025-03-29 14:39:04 - End Time 2025-03-29 17:39:04 [2025-03-29 17:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 17:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790429', 'tblTempUsageDetail_20' ) start [2025-03-29 17:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790429', 'tblTempUsageDetail_20' ) end [2025-03-29 17:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790429', 'tblTempVendorCDR_20' ) start [2025-03-29 17:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790429', 'tblTempVendorCDR_20' ) end [2025-03-29 17:39:17] Production.INFO: ProcessCDR(1,14790429,1,1,2) [2025-03-29 17:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790429', 'tblTempUsageDetail_20' ) start [2025-03-29 17:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790429', 'tblTempUsageDetail_20' ) end [2025-03-29 17:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 17:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 17:39:21] Production.INFO: ==27103== Releasing lock... [2025-03-29 17:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 17:39:21] Production.INFO: 44.25 MB #Memory Used# [2025-03-29 17:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 14:40:06 [end_date_ymd] => 2025-03-29 17:40:06 [RateCDR] => 1 ) [2025-03-29 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-29 14:40:06' and `end` < '2025-03-29 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-29 17:40:19] Production.INFO: count ==2185 [2025-03-29 17:40:20] Production.ERROR: pbx CDR StartTime 2025-03-29 14:40:06 - End Time 2025-03-29 17:40:06 [2025-03-29 17:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 17:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790435', 'tblTempUsageDetail_20' ) start [2025-03-29 17:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790435', 'tblTempUsageDetail_20' ) end [2025-03-29 17:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790435', 'tblTempVendorCDR_20' ) start [2025-03-29 17:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790435', 'tblTempVendorCDR_20' ) end [2025-03-29 17:40:20] Production.INFO: ProcessCDR(1,14790435,1,1,2) [2025-03-29 17:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790435', 'tblTempUsageDetail_20' ) start [2025-03-29 17:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790435', 'tblTempUsageDetail_20' ) end [2025-03-29 17:40:25] Production.ERROR: pbx prc_insertCDR start [2025-03-29 17:40:25] Production.ERROR: pbx prc_insertCDR end [2025-03-29 17:40:25] Production.INFO: ==27189== Releasing lock... [2025-03-29 17:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 17:40:25] Production.INFO: 45 MB #Memory Used# [2025-03-29 17:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 14:41:05 [end_date_ymd] => 2025-03-29 17:41:05 [RateCDR] => 1 ) [2025-03-29 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-29 14:41:05' and `end` < '2025-03-29 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-29 17:41:18] Production.INFO: count ==2241 [2025-03-29 17:41:19] Production.ERROR: pbx CDR StartTime 2025-03-29 14:41:05 - End Time 2025-03-29 17:41:05 [2025-03-29 17:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 17:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790440', 'tblTempUsageDetail_20' ) start [2025-03-29 17:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790440', 'tblTempUsageDetail_20' ) end [2025-03-29 17:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790440', 'tblTempVendorCDR_20' ) start [2025-03-29 17:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790440', 'tblTempVendorCDR_20' ) end [2025-03-29 17:41:19] Production.INFO: ProcessCDR(1,14790440,1,1,2) [2025-03-29 17:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790440', 'tblTempUsageDetail_20' ) start [2025-03-29 17:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790440', 'tblTempUsageDetail_20' ) end [2025-03-29 17:41:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 17:41:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 17:41:24] Production.INFO: ==27314== Releasing lock... [2025-03-29 17:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 17:41:24] Production.INFO: 44.75 MB #Memory Used# [2025-03-29 17:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 14:42:06 [end_date_ymd] => 2025-03-29 17:42:06 [RateCDR] => 1 ) [2025-03-29 17:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 14:42:06' and `end` < '2025-03-29 17:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 17:42:18] Production.INFO: count ==2259 [2025-03-29 17:42:19] Production.ERROR: pbx CDR StartTime 2025-03-29 14:42:06 - End Time 2025-03-29 17:42:06 [2025-03-29 17:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 17:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790445', 'tblTempUsageDetail_20' ) start [2025-03-29 17:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790445', 'tblTempUsageDetail_20' ) end [2025-03-29 17:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790445', 'tblTempVendorCDR_20' ) start [2025-03-29 17:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790445', 'tblTempVendorCDR_20' ) end [2025-03-29 17:42:19] Production.INFO: ProcessCDR(1,14790445,1,1,2) [2025-03-29 17:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790445', 'tblTempUsageDetail_20' ) start [2025-03-29 17:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790445', 'tblTempUsageDetail_20' ) end [2025-03-29 17:42:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 17:42:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 17:42:23] Production.INFO: ==27392== Releasing lock... [2025-03-29 17:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 17:42:23] Production.INFO: 45 MB #Memory Used# [2025-03-29 17:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 14:43:06 [end_date_ymd] => 2025-03-29 17:43:06 [RateCDR] => 1 ) [2025-03-29 17:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 14:43:06' and `end` < '2025-03-29 17:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 17:43:19] Production.INFO: count ==2272 [2025-03-29 17:43:19] Production.ERROR: pbx CDR StartTime 2025-03-29 14:43:06 - End Time 2025-03-29 17:43:06 [2025-03-29 17:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 17:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790450', 'tblTempUsageDetail_20' ) start [2025-03-29 17:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790450', 'tblTempUsageDetail_20' ) end [2025-03-29 17:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790450', 'tblTempVendorCDR_20' ) start [2025-03-29 17:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790450', 'tblTempVendorCDR_20' ) end [2025-03-29 17:43:19] Production.INFO: ProcessCDR(1,14790450,1,1,2) [2025-03-29 17:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790450', 'tblTempUsageDetail_20' ) start [2025-03-29 17:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790450', 'tblTempUsageDetail_20' ) end [2025-03-29 17:43:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 17:43:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 17:43:24] Production.INFO: ==27479== Releasing lock... [2025-03-29 17:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 17:43:24] Production.INFO: 45 MB #Memory Used# [2025-03-29 17:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 14:44:05 [end_date_ymd] => 2025-03-29 17:44:05 [RateCDR] => 1 ) [2025-03-29 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-29 14:44:05' and `end` < '2025-03-29 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-29 17:44:18] Production.INFO: count ==2279 [2025-03-29 17:44:18] Production.ERROR: pbx CDR StartTime 2025-03-29 14:44:05 - End Time 2025-03-29 17:44:05 [2025-03-29 17:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 17:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790455', 'tblTempUsageDetail_20' ) start [2025-03-29 17:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790455', 'tblTempUsageDetail_20' ) end [2025-03-29 17:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790455', 'tblTempVendorCDR_20' ) start [2025-03-29 17:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790455', 'tblTempVendorCDR_20' ) end [2025-03-29 17:44:18] Production.INFO: ProcessCDR(1,14790455,1,1,2) [2025-03-29 17:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790455', 'tblTempUsageDetail_20' ) start [2025-03-29 17:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790455', 'tblTempUsageDetail_20' ) end [2025-03-29 17:44:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 17:44:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 17:44:23] Production.INFO: ==27563== Releasing lock... [2025-03-29 17:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 17:44:23] Production.INFO: 45.25 MB #Memory Used# [2025-03-29 17:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 14:45:06 [end_date_ymd] => 2025-03-29 17:45:06 [RateCDR] => 1 ) [2025-03-29 17:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 14:45:06' and `end` < '2025-03-29 17:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 17:45:18] Production.INFO: count ==2276 [2025-03-29 17:45:19] Production.ERROR: pbx CDR StartTime 2025-03-29 14:45:06 - End Time 2025-03-29 17:45:06 [2025-03-29 17:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 17:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790460', 'tblTempUsageDetail_20' ) start [2025-03-29 17:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790460', 'tblTempUsageDetail_20' ) end [2025-03-29 17:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790460', 'tblTempVendorCDR_20' ) start [2025-03-29 17:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790460', 'tblTempVendorCDR_20' ) end [2025-03-29 17:45:19] Production.INFO: ProcessCDR(1,14790460,1,1,2) [2025-03-29 17:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790460', 'tblTempUsageDetail_20' ) start [2025-03-29 17:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790460', 'tblTempUsageDetail_20' ) end [2025-03-29 17:45:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 17:45:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 17:45:24] Production.INFO: ==27647== Releasing lock... [2025-03-29 17:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 17:45:24] Production.INFO: 45 MB #Memory Used# [2025-03-29 17:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 14:46:06 [end_date_ymd] => 2025-03-29 17:46:06 [RateCDR] => 1 ) [2025-03-29 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-29 14:46:06' and `end` < '2025-03-29 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-29 17:46:18] Production.INFO: count ==2304 [2025-03-29 17:46:19] Production.ERROR: pbx CDR StartTime 2025-03-29 14:46:06 - End Time 2025-03-29 17:46:06 [2025-03-29 17:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 17:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790465', 'tblTempUsageDetail_20' ) start [2025-03-29 17:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790465', 'tblTempUsageDetail_20' ) end [2025-03-29 17:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790465', 'tblTempVendorCDR_20' ) start [2025-03-29 17:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790465', 'tblTempVendorCDR_20' ) end [2025-03-29 17:46:19] Production.INFO: ProcessCDR(1,14790465,1,1,2) [2025-03-29 17:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790465', 'tblTempUsageDetail_20' ) start [2025-03-29 17:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790465', 'tblTempUsageDetail_20' ) end [2025-03-29 17:46:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 17:46:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 17:46:24] Production.INFO: ==27728== Releasing lock... [2025-03-29 17:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 17:46:24] Production.INFO: 45.25 MB #Memory Used# [2025-03-29 17:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 14:47:05 [end_date_ymd] => 2025-03-29 17:47:05 [RateCDR] => 1 ) [2025-03-29 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-29 14:47:05' and `end` < '2025-03-29 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-29 17:47:18] Production.INFO: count ==2319 [2025-03-29 17:47:18] Production.ERROR: pbx CDR StartTime 2025-03-29 14:47:05 - End Time 2025-03-29 17:47:05 [2025-03-29 17:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 17:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790470', 'tblTempUsageDetail_20' ) start [2025-03-29 17:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790470', 'tblTempUsageDetail_20' ) end [2025-03-29 17:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790470', 'tblTempVendorCDR_20' ) start [2025-03-29 17:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790470', 'tblTempVendorCDR_20' ) end [2025-03-29 17:47:18] Production.INFO: ProcessCDR(1,14790470,1,1,2) [2025-03-29 17:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790470', 'tblTempUsageDetail_20' ) start [2025-03-29 17:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790470', 'tblTempUsageDetail_20' ) end [2025-03-29 17:47:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 17:47:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 17:47:23] Production.INFO: ==27819== Releasing lock... [2025-03-29 17:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 17:47:23] Production.INFO: 45.5 MB #Memory Used# [2025-03-29 17:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 14:48:05 [end_date_ymd] => 2025-03-29 17:48:05 [RateCDR] => 1 ) [2025-03-29 17:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 14:48:05' and `end` < '2025-03-29 17:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 17:48:18] Production.INFO: count ==2327 [2025-03-29 17:48:19] Production.ERROR: pbx CDR StartTime 2025-03-29 14:48:05 - End Time 2025-03-29 17:48:05 [2025-03-29 17:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 17:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790475', 'tblTempUsageDetail_20' ) start [2025-03-29 17:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790475', 'tblTempUsageDetail_20' ) end [2025-03-29 17:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790475', 'tblTempVendorCDR_20' ) start [2025-03-29 17:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790475', 'tblTempVendorCDR_20' ) end [2025-03-29 17:48:19] Production.INFO: ProcessCDR(1,14790475,1,1,2) [2025-03-29 17:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790475', 'tblTempUsageDetail_20' ) start [2025-03-29 17:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790475', 'tblTempUsageDetail_20' ) end [2025-03-29 17:48:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 17:48:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 17:48:24] Production.INFO: ==27904== Releasing lock... [2025-03-29 17:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 17:48:24] Production.INFO: 45.75 MB #Memory Used# [2025-03-29 17:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 14:49:06 [end_date_ymd] => 2025-03-29 17:49:06 [RateCDR] => 1 ) [2025-03-29 17:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 14:49:06' and `end` < '2025-03-29 17:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 17:49:18] Production.INFO: count ==2325 [2025-03-29 17:49:19] Production.ERROR: pbx CDR StartTime 2025-03-29 14:49:06 - End Time 2025-03-29 17:49:06 [2025-03-29 17:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 17:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790480', 'tblTempUsageDetail_20' ) start [2025-03-29 17:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790480', 'tblTempUsageDetail_20' ) end [2025-03-29 17:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790480', 'tblTempVendorCDR_20' ) start [2025-03-29 17:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790480', 'tblTempVendorCDR_20' ) end [2025-03-29 17:49:19] Production.INFO: ProcessCDR(1,14790480,1,1,2) [2025-03-29 17:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790480', 'tblTempUsageDetail_20' ) start [2025-03-29 17:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790480', 'tblTempUsageDetail_20' ) end [2025-03-29 17:49:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 17:49:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 17:49:23] Production.INFO: ==27993== Releasing lock... [2025-03-29 17:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 17:49:23] Production.INFO: 45.75 MB #Memory Used# [2025-03-29 17:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 14:50:05 [end_date_ymd] => 2025-03-29 17:50:05 [RateCDR] => 1 ) [2025-03-29 17:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 14:50:05' and `end` < '2025-03-29 17:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 17:50:18] Production.INFO: count ==2339 [2025-03-29 17:50:19] Production.ERROR: pbx CDR StartTime 2025-03-29 14:50:05 - End Time 2025-03-29 17:50:05 [2025-03-29 17:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 17:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790486', 'tblTempUsageDetail_20' ) start [2025-03-29 17:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790486', 'tblTempUsageDetail_20' ) end [2025-03-29 17:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790486', 'tblTempVendorCDR_20' ) start [2025-03-29 17:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790486', 'tblTempVendorCDR_20' ) end [2025-03-29 17:50:19] Production.INFO: ProcessCDR(1,14790486,1,1,2) [2025-03-29 17:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790486', 'tblTempUsageDetail_20' ) start [2025-03-29 17:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790486', 'tblTempUsageDetail_20' ) end [2025-03-29 17:50:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 17:50:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 17:50:24] Production.INFO: ==28080== Releasing lock... [2025-03-29 17:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 17:50:24] Production.INFO: 45.25 MB #Memory Used# [2025-03-29 17:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 14:51:06 [end_date_ymd] => 2025-03-29 17:51:06 [RateCDR] => 1 ) [2025-03-29 17:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 14:51:06' and `end` < '2025-03-29 17:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 17:51:19] Production.INFO: count ==2379 [2025-03-29 17:51:19] Production.ERROR: pbx CDR StartTime 2025-03-29 14:51:06 - End Time 2025-03-29 17:51:06 [2025-03-29 17:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 17:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790491', 'tblTempUsageDetail_20' ) start [2025-03-29 17:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790491', 'tblTempUsageDetail_20' ) end [2025-03-29 17:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790491', 'tblTempVendorCDR_20' ) start [2025-03-29 17:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790491', 'tblTempVendorCDR_20' ) end [2025-03-29 17:51:19] Production.INFO: ProcessCDR(1,14790491,1,1,2) [2025-03-29 17:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790491', 'tblTempUsageDetail_20' ) start [2025-03-29 17:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790491', 'tblTempUsageDetail_20' ) end [2025-03-29 17:51:25] Production.ERROR: pbx prc_insertCDR start [2025-03-29 17:51:25] Production.ERROR: pbx prc_insertCDR end [2025-03-29 17:51:25] Production.INFO: ==28162== Releasing lock... [2025-03-29 17:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 17:51:25] Production.INFO: 46 MB #Memory Used# [2025-03-29 17:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 14:52:05 [end_date_ymd] => 2025-03-29 17:52:05 [RateCDR] => 1 ) [2025-03-29 17:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 14:52:05' and `end` < '2025-03-29 17:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 17:52:18] Production.INFO: count ==2389 [2025-03-29 17:52:19] Production.ERROR: pbx CDR StartTime 2025-03-29 14:52:05 - End Time 2025-03-29 17:52:05 [2025-03-29 17:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 17:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790496', 'tblTempUsageDetail_20' ) start [2025-03-29 17:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790496', 'tblTempUsageDetail_20' ) end [2025-03-29 17:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790496', 'tblTempVendorCDR_20' ) start [2025-03-29 17:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790496', 'tblTempVendorCDR_20' ) end [2025-03-29 17:52:19] Production.INFO: ProcessCDR(1,14790496,1,1,2) [2025-03-29 17:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790496', 'tblTempUsageDetail_20' ) start [2025-03-29 17:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790496', 'tblTempUsageDetail_20' ) end [2025-03-29 17:52:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 17:52:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 17:52:24] Production.INFO: ==28243== Releasing lock... [2025-03-29 17:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 17:52:24] Production.INFO: 46 MB #Memory Used# [2025-03-29 17:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 14:53:06 [end_date_ymd] => 2025-03-29 17:53:06 [RateCDR] => 1 ) [2025-03-29 17:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 14:53:06' and `end` < '2025-03-29 17:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 17:53:19] Production.INFO: count ==2396 [2025-03-29 17:53:19] Production.ERROR: pbx CDR StartTime 2025-03-29 14:53:06 - End Time 2025-03-29 17:53:06 [2025-03-29 17:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 17:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790501', 'tblTempUsageDetail_20' ) start [2025-03-29 17:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790501', 'tblTempUsageDetail_20' ) end [2025-03-29 17:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790501', 'tblTempVendorCDR_20' ) start [2025-03-29 17:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790501', 'tblTempVendorCDR_20' ) end [2025-03-29 17:53:19] Production.INFO: ProcessCDR(1,14790501,1,1,2) [2025-03-29 17:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790501', 'tblTempUsageDetail_20' ) start [2025-03-29 17:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790501', 'tblTempUsageDetail_20' ) end [2025-03-29 17:53:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 17:53:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 17:53:24] Production.INFO: ==28325== Releasing lock... [2025-03-29 17:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 17:53:24] Production.INFO: 46.25 MB #Memory Used# [2025-03-29 17:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 14:54:05 [end_date_ymd] => 2025-03-29 17:54:05 [RateCDR] => 1 ) [2025-03-29 17:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 14:54:05' and `end` < '2025-03-29 17:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 17:54:18] Production.INFO: count ==2396 [2025-03-29 17:54:19] Production.ERROR: pbx CDR StartTime 2025-03-29 14:54:05 - End Time 2025-03-29 17:54:05 [2025-03-29 17:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 17:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790506', 'tblTempUsageDetail_20' ) start [2025-03-29 17:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790506', 'tblTempUsageDetail_20' ) end [2025-03-29 17:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790506', 'tblTempVendorCDR_20' ) start [2025-03-29 17:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790506', 'tblTempVendorCDR_20' ) end [2025-03-29 17:54:19] Production.INFO: ProcessCDR(1,14790506,1,1,2) [2025-03-29 17:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790506', 'tblTempUsageDetail_20' ) start [2025-03-29 17:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790506', 'tblTempUsageDetail_20' ) end [2025-03-29 17:54:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 17:54:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 17:54:24] Production.INFO: ==28402== Releasing lock... [2025-03-29 17:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 17:54:24] Production.INFO: 46 MB #Memory Used# [2025-03-29 17:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 14:55:05 [end_date_ymd] => 2025-03-29 17:55:05 [RateCDR] => 1 ) [2025-03-29 17:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 14:55:05' and `end` < '2025-03-29 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-29 17:55:18] Production.INFO: count ==2402 [2025-03-29 17:55:19] Production.ERROR: pbx CDR StartTime 2025-03-29 14:55:05 - End Time 2025-03-29 17:55:05 [2025-03-29 17:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 17:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790511', 'tblTempUsageDetail_20' ) start [2025-03-29 17:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790511', 'tblTempUsageDetail_20' ) end [2025-03-29 17:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790511', 'tblTempVendorCDR_20' ) start [2025-03-29 17:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790511', 'tblTempVendorCDR_20' ) end [2025-03-29 17:55:19] Production.INFO: ProcessCDR(1,14790511,1,1,2) [2025-03-29 17:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790511', 'tblTempUsageDetail_20' ) start [2025-03-29 17:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790511', 'tblTempUsageDetail_20' ) end [2025-03-29 17:55:25] Production.ERROR: pbx prc_insertCDR start [2025-03-29 17:55:25] Production.ERROR: pbx prc_insertCDR end [2025-03-29 17:55:25] Production.INFO: ==28486== Releasing lock... [2025-03-29 17:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 17:55:25] Production.INFO: 46 MB #Memory Used# [2025-03-29 17:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 14:56:05 [end_date_ymd] => 2025-03-29 17:56:05 [RateCDR] => 1 ) [2025-03-29 17:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 14:56:05' and `end` < '2025-03-29 17:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 17:56:18] Production.INFO: count ==2408 [2025-03-29 17:56:19] Production.ERROR: pbx CDR StartTime 2025-03-29 14:56:05 - End Time 2025-03-29 17:56:05 [2025-03-29 17:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 17:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790516', 'tblTempUsageDetail_20' ) start [2025-03-29 17:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790516', 'tblTempUsageDetail_20' ) end [2025-03-29 17:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790516', 'tblTempVendorCDR_20' ) start [2025-03-29 17:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790516', 'tblTempVendorCDR_20' ) end [2025-03-29 17:56:19] Production.INFO: ProcessCDR(1,14790516,1,1,2) [2025-03-29 17:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790516', 'tblTempUsageDetail_20' ) start [2025-03-29 17:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790516', 'tblTempUsageDetail_20' ) end [2025-03-29 17:56:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 17:56:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 17:56:24] Production.INFO: ==28569== Releasing lock... [2025-03-29 17:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 17:56:24] Production.INFO: 46 MB #Memory Used# [2025-03-29 17:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 14:57:06 [end_date_ymd] => 2025-03-29 17:57:06 [RateCDR] => 1 ) [2025-03-29 17: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-29 14:57:06' and `end` < '2025-03-29 17: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-29 17:57:18] Production.INFO: count ==2407 [2025-03-29 17:57:19] Production.ERROR: pbx CDR StartTime 2025-03-29 14:57:06 - End Time 2025-03-29 17:57:06 [2025-03-29 17:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 17:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790521', 'tblTempUsageDetail_20' ) start [2025-03-29 17:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790521', 'tblTempUsageDetail_20' ) end [2025-03-29 17:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790521', 'tblTempVendorCDR_20' ) start [2025-03-29 17:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790521', 'tblTempVendorCDR_20' ) end [2025-03-29 17:57:19] Production.INFO: ProcessCDR(1,14790521,1,1,2) [2025-03-29 17:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790521', 'tblTempUsageDetail_20' ) start [2025-03-29 17:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790521', 'tblTempUsageDetail_20' ) end [2025-03-29 17:57:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 17:57:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 17:57:23] Production.INFO: ==28684== Releasing lock... [2025-03-29 17:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 17:57:23] Production.INFO: 46 MB #Memory Used# [2025-03-29 17:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 14:58:05 [end_date_ymd] => 2025-03-29 17:58:05 [RateCDR] => 1 ) [2025-03-29 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-29 14:58:05' and `end` < '2025-03-29 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-29 17:58:18] Production.INFO: count ==2399 [2025-03-29 17:58:18] Production.ERROR: pbx CDR StartTime 2025-03-29 14:58:05 - End Time 2025-03-29 17:58:05 [2025-03-29 17:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 17:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790526', 'tblTempUsageDetail_20' ) start [2025-03-29 17:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790526', 'tblTempUsageDetail_20' ) end [2025-03-29 17:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790526', 'tblTempVendorCDR_20' ) start [2025-03-29 17:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790526', 'tblTempVendorCDR_20' ) end [2025-03-29 17:58:18] Production.INFO: ProcessCDR(1,14790526,1,1,2) [2025-03-29 17:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790526', 'tblTempUsageDetail_20' ) start [2025-03-29 17:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790526', 'tblTempUsageDetail_20' ) end [2025-03-29 17:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 17:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 17:58:22] Production.INFO: ==28758== Releasing lock... [2025-03-29 17:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 17:58:22] Production.INFO: 45.75 MB #Memory Used# [2025-03-29 17:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 14:59:05 [end_date_ymd] => 2025-03-29 17:59:05 [RateCDR] => 1 ) [2025-03-29 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-29 14:59:05' and `end` < '2025-03-29 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-29 17:59:18] Production.INFO: count ==2405 [2025-03-29 17:59:19] Production.ERROR: pbx CDR StartTime 2025-03-29 14:59:05 - End Time 2025-03-29 17:59:05 [2025-03-29 17:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 17:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790531', 'tblTempUsageDetail_20' ) start [2025-03-29 17:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790531', 'tblTempUsageDetail_20' ) end [2025-03-29 17:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790531', 'tblTempVendorCDR_20' ) start [2025-03-29 17:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790531', 'tblTempVendorCDR_20' ) end [2025-03-29 17:59:19] Production.INFO: ProcessCDR(1,14790531,1,1,2) [2025-03-29 17:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 17:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 17:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790531', 'tblTempUsageDetail_20' ) start [2025-03-29 17:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790531', 'tblTempUsageDetail_20' ) end [2025-03-29 17:59:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 17:59:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 17:59:24] Production.INFO: ==28838== Releasing lock... [2025-03-29 17:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 17:59:24] Production.INFO: 46 MB #Memory Used# [2025-03-29 18:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 15:00:06 [end_date_ymd] => 2025-03-29 18:00:06 [RateCDR] => 1 ) [2025-03-29 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-29 15:00:06' and `end` < '2025-03-29 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-29 18:00:19] Production.INFO: count ==2418 [2025-03-29 18:00:20] Production.ERROR: pbx CDR StartTime 2025-03-29 15:00:06 - End Time 2025-03-29 18:00:06 [2025-03-29 18:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790537', 'tblTempUsageDetail_20' ) start [2025-03-29 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790537', 'tblTempUsageDetail_20' ) end [2025-03-29 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790537', 'tblTempVendorCDR_20' ) start [2025-03-29 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790537', 'tblTempVendorCDR_20' ) end [2025-03-29 18:00:20] Production.INFO: ProcessCDR(1,14790537,1,1,2) [2025-03-29 18:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 18:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 18:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 18:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 18:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790537', 'tblTempUsageDetail_20' ) start [2025-03-29 18:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790537', 'tblTempUsageDetail_20' ) end [2025-03-29 18:00:25] Production.ERROR: pbx prc_insertCDR start [2025-03-29 18:00:25] Production.ERROR: pbx prc_insertCDR end [2025-03-29 18:00:25] Production.INFO: ==28920== Releasing lock... [2025-03-29 18:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 18:00:25] Production.INFO: 46.25 MB #Memory Used# [2025-03-29 18:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 15:01:06 [end_date_ymd] => 2025-03-29 18:01:06 [RateCDR] => 1 ) [2025-03-29 18: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-29 15:01:06' and `end` < '2025-03-29 18: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-29 18:01:18] Production.INFO: count ==2447 [2025-03-29 18:01:19] Production.ERROR: pbx CDR StartTime 2025-03-29 15:01:06 - End Time 2025-03-29 18:01:06 [2025-03-29 18:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 18:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790542', 'tblTempUsageDetail_20' ) start [2025-03-29 18:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790542', 'tblTempUsageDetail_20' ) end [2025-03-29 18:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790542', 'tblTempVendorCDR_20' ) start [2025-03-29 18:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790542', 'tblTempVendorCDR_20' ) end [2025-03-29 18:01:19] Production.INFO: ProcessCDR(1,14790542,1,1,2) [2025-03-29 18:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 18:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 18:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 18:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 18:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790542', 'tblTempUsageDetail_20' ) start [2025-03-29 18:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790542', 'tblTempUsageDetail_20' ) end [2025-03-29 18:01:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 18:01:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 18:01:23] Production.INFO: ==29014== Releasing lock... [2025-03-29 18:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 18:01:23] Production.INFO: 46.5 MB #Memory Used# [2025-03-29 18:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 15:02:05 [end_date_ymd] => 2025-03-29 18:02:05 [RateCDR] => 1 ) [2025-03-29 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-29 15:02:05' and `end` < '2025-03-29 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-29 18:02:18] Production.INFO: count ==2450 [2025-03-29 18:02:19] Production.ERROR: pbx CDR StartTime 2025-03-29 15:02:05 - End Time 2025-03-29 18:02:05 [2025-03-29 18:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 18:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790547', 'tblTempUsageDetail_20' ) start [2025-03-29 18:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790547', 'tblTempUsageDetail_20' ) end [2025-03-29 18:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790547', 'tblTempVendorCDR_20' ) start [2025-03-29 18:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790547', 'tblTempVendorCDR_20' ) end [2025-03-29 18:02:19] Production.INFO: ProcessCDR(1,14790547,1,1,2) [2025-03-29 18:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 18:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 18:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 18:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 18:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790547', 'tblTempUsageDetail_20' ) start [2025-03-29 18:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790547', 'tblTempUsageDetail_20' ) end [2025-03-29 18:02:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 18:02:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 18:02:23] Production.INFO: ==29089== Releasing lock... [2025-03-29 18:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 18:02:23] Production.INFO: 46.5 MB #Memory Used# [2025-03-29 18:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 15:03:06 [end_date_ymd] => 2025-03-29 18:03:06 [RateCDR] => 1 ) [2025-03-29 18:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 15:03:06' and `end` < '2025-03-29 18:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 18:03:19] Production.INFO: count ==2453 [2025-03-29 18:03:19] Production.ERROR: pbx CDR StartTime 2025-03-29 15:03:06 - End Time 2025-03-29 18:03:06 [2025-03-29 18:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 18:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790552', 'tblTempUsageDetail_20' ) start [2025-03-29 18:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790552', 'tblTempUsageDetail_20' ) end [2025-03-29 18:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790552', 'tblTempVendorCDR_20' ) start [2025-03-29 18:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790552', 'tblTempVendorCDR_20' ) end [2025-03-29 18:03:19] Production.INFO: ProcessCDR(1,14790552,1,1,2) [2025-03-29 18:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 18:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 18:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 18:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 18:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790552', 'tblTempUsageDetail_20' ) start [2025-03-29 18:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790552', 'tblTempUsageDetail_20' ) end [2025-03-29 18:03:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 18:03:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 18:03:23] Production.INFO: ==29169== Releasing lock... [2025-03-29 18:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 18:03:23] Production.INFO: 46.5 MB #Memory Used# [2025-03-29 18:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 15:04:05 [end_date_ymd] => 2025-03-29 18:04:05 [RateCDR] => 1 ) [2025-03-29 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-29 15:04:05' and `end` < '2025-03-29 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-29 18:04:17] Production.INFO: count ==2464 [2025-03-29 18:04:18] Production.ERROR: pbx CDR StartTime 2025-03-29 15:04:05 - End Time 2025-03-29 18:04:05 [2025-03-29 18:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 18:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790557', 'tblTempUsageDetail_20' ) start [2025-03-29 18:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790557', 'tblTempUsageDetail_20' ) end [2025-03-29 18:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790557', 'tblTempVendorCDR_20' ) start [2025-03-29 18:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790557', 'tblTempVendorCDR_20' ) end [2025-03-29 18:04:18] Production.INFO: ProcessCDR(1,14790557,1,1,2) [2025-03-29 18:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 18:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 18:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 18:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 18:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790557', 'tblTempUsageDetail_20' ) start [2025-03-29 18:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790557', 'tblTempUsageDetail_20' ) end [2025-03-29 18:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 18:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 18:04:22] Production.INFO: ==29246== Releasing lock... [2025-03-29 18:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 18:04:22] Production.INFO: 46.5 MB #Memory Used# [2025-03-29 18:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 15:05:06 [end_date_ymd] => 2025-03-29 18:05:06 [RateCDR] => 1 ) [2025-03-29 18: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-29 15:05:06' and `end` < '2025-03-29 18: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-29 18:05:18] Production.INFO: count ==2446 [2025-03-29 18:05:19] Production.ERROR: pbx CDR StartTime 2025-03-29 15:05:06 - End Time 2025-03-29 18:05:06 [2025-03-29 18:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 18:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790562', 'tblTempUsageDetail_20' ) start [2025-03-29 18:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790562', 'tblTempUsageDetail_20' ) end [2025-03-29 18:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790562', 'tblTempVendorCDR_20' ) start [2025-03-29 18:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790562', 'tblTempVendorCDR_20' ) end [2025-03-29 18:05:19] Production.INFO: ProcessCDR(1,14790562,1,1,2) [2025-03-29 18:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 18:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 18:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 18:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 18:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790562', 'tblTempUsageDetail_20' ) start [2025-03-29 18:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790562', 'tblTempUsageDetail_20' ) end [2025-03-29 18:05:25] Production.ERROR: pbx prc_insertCDR start [2025-03-29 18:05:25] Production.ERROR: pbx prc_insertCDR end [2025-03-29 18:05:25] Production.INFO: ==29322== Releasing lock... [2025-03-29 18:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 18:05:25] Production.INFO: 46.5 MB #Memory Used# [2025-03-29 18:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 15:06:06 [end_date_ymd] => 2025-03-29 18:06:06 [RateCDR] => 1 ) [2025-03-29 18: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-29 15:06:06' and `end` < '2025-03-29 18: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-29 18:06:19] Production.INFO: count ==2452 [2025-03-29 18:06:19] Production.ERROR: pbx CDR StartTime 2025-03-29 15:06:06 - End Time 2025-03-29 18:06:06 [2025-03-29 18:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 18:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790567', 'tblTempUsageDetail_20' ) start [2025-03-29 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790567', 'tblTempUsageDetail_20' ) end [2025-03-29 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790567', 'tblTempVendorCDR_20' ) start [2025-03-29 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790567', 'tblTempVendorCDR_20' ) end [2025-03-29 18:06:20] Production.INFO: ProcessCDR(1,14790567,1,1,2) [2025-03-29 18:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 18:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 18:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 18:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 18:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790567', 'tblTempUsageDetail_20' ) start [2025-03-29 18:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790567', 'tblTempUsageDetail_20' ) end [2025-03-29 18:06:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 18:06:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 18:06:23] Production.INFO: ==29396== Releasing lock... [2025-03-29 18:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 18:06:23] Production.INFO: 46.5 MB #Memory Used# [2025-03-29 18:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 15:07:05 [end_date_ymd] => 2025-03-29 18:07:05 [RateCDR] => 1 ) [2025-03-29 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-29 15:07:05' and `end` < '2025-03-29 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-29 18:07:18] Production.INFO: count ==2455 [2025-03-29 18:07:19] Production.ERROR: pbx CDR StartTime 2025-03-29 15:07:05 - End Time 2025-03-29 18:07:05 [2025-03-29 18:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 18:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790572', 'tblTempUsageDetail_20' ) start [2025-03-29 18:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790572', 'tblTempUsageDetail_20' ) end [2025-03-29 18:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790572', 'tblTempVendorCDR_20' ) start [2025-03-29 18:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790572', 'tblTempVendorCDR_20' ) end [2025-03-29 18:07:19] Production.INFO: ProcessCDR(1,14790572,1,1,2) [2025-03-29 18:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 18:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 18:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 18:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 18:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790572', 'tblTempUsageDetail_20' ) start [2025-03-29 18:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790572', 'tblTempUsageDetail_20' ) end [2025-03-29 18:07:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 18:07:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 18:07:22] Production.INFO: ==29472== Releasing lock... [2025-03-29 18:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 18:07:22] Production.INFO: 46.5 MB #Memory Used# [2025-03-29 18:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 15:08:05 [end_date_ymd] => 2025-03-29 18:08:05 [RateCDR] => 1 ) [2025-03-29 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-29 15:08:05' and `end` < '2025-03-29 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-29 18:08:18] Production.INFO: count ==2480 [2025-03-29 18:08:19] Production.ERROR: pbx CDR StartTime 2025-03-29 15:08:05 - End Time 2025-03-29 18:08:05 [2025-03-29 18:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 18:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790577', 'tblTempUsageDetail_20' ) start [2025-03-29 18:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790577', 'tblTempUsageDetail_20' ) end [2025-03-29 18:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790577', 'tblTempVendorCDR_20' ) start [2025-03-29 18:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790577', 'tblTempVendorCDR_20' ) end [2025-03-29 18:08:19] Production.INFO: ProcessCDR(1,14790577,1,1,2) [2025-03-29 18:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 18:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 18:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 18:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 18:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790577', 'tblTempUsageDetail_20' ) start [2025-03-29 18:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790577', 'tblTempUsageDetail_20' ) end [2025-03-29 18:08:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 18:08:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 18:08:22] Production.INFO: ==29548== Releasing lock... [2025-03-29 18:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 18:08:22] Production.INFO: 46.75 MB #Memory Used# [2025-03-29 18:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 15:09:05 [end_date_ymd] => 2025-03-29 18:09:05 [RateCDR] => 1 ) [2025-03-29 18:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 15:09:05' and `end` < '2025-03-29 18:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 18:09:18] Production.INFO: count ==2479 [2025-03-29 18:09:18] Production.ERROR: pbx CDR StartTime 2025-03-29 15:09:05 - End Time 2025-03-29 18:09:05 [2025-03-29 18:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 18:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790582', 'tblTempUsageDetail_20' ) start [2025-03-29 18:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790582', 'tblTempUsageDetail_20' ) end [2025-03-29 18:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790582', 'tblTempVendorCDR_20' ) start [2025-03-29 18:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790582', 'tblTempVendorCDR_20' ) end [2025-03-29 18:09:19] Production.INFO: ProcessCDR(1,14790582,1,1,2) [2025-03-29 18:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 18:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 18:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 18:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 18:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790582', 'tblTempUsageDetail_20' ) start [2025-03-29 18:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790582', 'tblTempUsageDetail_20' ) end [2025-03-29 18:09:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 18:09:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 18:09:22] Production.INFO: ==29622== Releasing lock... [2025-03-29 18:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 18:09:22] Production.INFO: 46.75 MB #Memory Used# [2025-03-29 18:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 15:10:06 [end_date_ymd] => 2025-03-29 18:10:06 [RateCDR] => 1 ) [2025-03-29 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-29 15:10:06' and `end` < '2025-03-29 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-29 18:10:19] Production.INFO: count ==2491 [2025-03-29 18:10:20] Production.ERROR: pbx CDR StartTime 2025-03-29 15:10:06 - End Time 2025-03-29 18:10:06 [2025-03-29 18:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 18:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790588', 'tblTempUsageDetail_20' ) start [2025-03-29 18:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790588', 'tblTempUsageDetail_20' ) end [2025-03-29 18:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790588', 'tblTempVendorCDR_20' ) start [2025-03-29 18:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790588', 'tblTempVendorCDR_20' ) end [2025-03-29 18:10:20] Production.INFO: ProcessCDR(1,14790588,1,1,2) [2025-03-29 18:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 18:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 18:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 18:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 18:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790588', 'tblTempUsageDetail_20' ) start [2025-03-29 18:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790588', 'tblTempUsageDetail_20' ) end [2025-03-29 18:10:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 18:10:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 18:10:24] Production.INFO: ==29697== Releasing lock... [2025-03-29 18:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 18:10:24] Production.INFO: 46.75 MB #Memory Used# [2025-03-29 18:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 15:11:05 [end_date_ymd] => 2025-03-29 18:11:05 [RateCDR] => 1 ) [2025-03-29 18:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 15:11:05' and `end` < '2025-03-29 18:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 18:11:18] Production.INFO: count ==2568 [2025-03-29 18:11:19] Production.ERROR: pbx CDR StartTime 2025-03-29 15:11:05 - End Time 2025-03-29 18:11:05 [2025-03-29 18:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 18:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790593', 'tblTempUsageDetail_20' ) start [2025-03-29 18:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790593', 'tblTempUsageDetail_20' ) end [2025-03-29 18:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790593', 'tblTempVendorCDR_20' ) start [2025-03-29 18:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790593', 'tblTempVendorCDR_20' ) end [2025-03-29 18:11:19] Production.INFO: ProcessCDR(1,14790593,1,1,2) [2025-03-29 18:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 18:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 18:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 18:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 18:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790593', 'tblTempUsageDetail_20' ) start [2025-03-29 18:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790593', 'tblTempUsageDetail_20' ) end [2025-03-29 18:11:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 18:11:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 18:11:23] Production.INFO: ==29774== Releasing lock... [2025-03-29 18:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 18:11:23] Production.INFO: 47.25 MB #Memory Used# [2025-03-29 18:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 15:12:05 [end_date_ymd] => 2025-03-29 18:12:05 [RateCDR] => 1 ) [2025-03-29 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-29 15:12:05' and `end` < '2025-03-29 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-29 18:12:18] Production.INFO: count ==2577 [2025-03-29 18:12:19] Production.ERROR: pbx CDR StartTime 2025-03-29 15:12:05 - End Time 2025-03-29 18:12:05 [2025-03-29 18:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 18:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790598', 'tblTempUsageDetail_20' ) start [2025-03-29 18:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790598', 'tblTempUsageDetail_20' ) end [2025-03-29 18:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790598', 'tblTempVendorCDR_20' ) start [2025-03-29 18:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790598', 'tblTempVendorCDR_20' ) end [2025-03-29 18:12:19] Production.INFO: ProcessCDR(1,14790598,1,1,2) [2025-03-29 18:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 18:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 18:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 18:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 18:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790598', 'tblTempUsageDetail_20' ) start [2025-03-29 18:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790598', 'tblTempUsageDetail_20' ) end [2025-03-29 18:12:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 18:12:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 18:12:22] Production.INFO: ==29885== Releasing lock... [2025-03-29 18:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 18:12:22] Production.INFO: 47.25 MB #Memory Used# [2025-03-29 18:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 15:13:05 [end_date_ymd] => 2025-03-29 18:13:05 [RateCDR] => 1 ) [2025-03-29 18:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 15:13:05' and `end` < '2025-03-29 18:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 18:13:18] Production.INFO: count ==2583 [2025-03-29 18:13:19] Production.ERROR: pbx CDR StartTime 2025-03-29 15:13:05 - End Time 2025-03-29 18:13:05 [2025-03-29 18:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 18:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790603', 'tblTempUsageDetail_20' ) start [2025-03-29 18:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790603', 'tblTempUsageDetail_20' ) end [2025-03-29 18:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790603', 'tblTempVendorCDR_20' ) start [2025-03-29 18:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790603', 'tblTempVendorCDR_20' ) end [2025-03-29 18:13:19] Production.INFO: ProcessCDR(1,14790603,1,1,2) [2025-03-29 18:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 18:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 18:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 18:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 18:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790603', 'tblTempUsageDetail_20' ) start [2025-03-29 18:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790603', 'tblTempUsageDetail_20' ) end [2025-03-29 18:13:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 18:13:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 18:13:22] Production.INFO: ==29958== Releasing lock... [2025-03-29 18:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 18:13:22] Production.INFO: 47.5 MB #Memory Used# [2025-03-29 18:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 15:14:06 [end_date_ymd] => 2025-03-29 18:14:06 [RateCDR] => 1 ) [2025-03-29 18:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 15:14:06' and `end` < '2025-03-29 18:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 18:14:18] Production.INFO: count ==2589 [2025-03-29 18:14:19] Production.ERROR: pbx CDR StartTime 2025-03-29 15:14:06 - End Time 2025-03-29 18:14:06 [2025-03-29 18:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 18:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790608', 'tblTempUsageDetail_20' ) start [2025-03-29 18:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790608', 'tblTempUsageDetail_20' ) end [2025-03-29 18:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790608', 'tblTempVendorCDR_20' ) start [2025-03-29 18:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790608', 'tblTempVendorCDR_20' ) end [2025-03-29 18:14:19] Production.INFO: ProcessCDR(1,14790608,1,1,2) [2025-03-29 18:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 18:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 18:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 18:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 18:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790608', 'tblTempUsageDetail_20' ) start [2025-03-29 18:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790608', 'tblTempUsageDetail_20' ) end [2025-03-29 18:14:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 18:14:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 18:14:23] Production.INFO: ==30037== Releasing lock... [2025-03-29 18:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 18:14:23] Production.INFO: 47.5 MB #Memory Used# [2025-03-29 18:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 15:15:05 [end_date_ymd] => 2025-03-29 18:15:05 [RateCDR] => 1 ) [2025-03-29 18:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 15:15:05' and `end` < '2025-03-29 18:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 18:15:18] Production.INFO: count ==2590 [2025-03-29 18:15:18] Production.ERROR: pbx CDR StartTime 2025-03-29 15:15:05 - End Time 2025-03-29 18:15:05 [2025-03-29 18:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 18:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790613', 'tblTempUsageDetail_20' ) start [2025-03-29 18:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790613', 'tblTempUsageDetail_20' ) end [2025-03-29 18:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790613', 'tblTempVendorCDR_20' ) start [2025-03-29 18:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790613', 'tblTempVendorCDR_20' ) end [2025-03-29 18:15:18] Production.INFO: ProcessCDR(1,14790613,1,1,2) [2025-03-29 18:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 18:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 18:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 18:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 18:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790613', 'tblTempUsageDetail_20' ) start [2025-03-29 18:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790613', 'tblTempUsageDetail_20' ) end [2025-03-29 18:15:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 18:15:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 18:15:22] Production.INFO: ==30110== Releasing lock... [2025-03-29 18:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 18:15:22] Production.INFO: 47.5 MB #Memory Used# [2025-03-29 18:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 15:16:06 [end_date_ymd] => 2025-03-29 18:16:06 [RateCDR] => 1 ) [2025-03-29 18: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-29 15:16:06' and `end` < '2025-03-29 18: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-29 18:16:18] Production.INFO: count ==2592 [2025-03-29 18:16:19] Production.ERROR: pbx CDR StartTime 2025-03-29 15:16:06 - End Time 2025-03-29 18:16:06 [2025-03-29 18:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 18:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790618', 'tblTempUsageDetail_20' ) start [2025-03-29 18:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790618', 'tblTempUsageDetail_20' ) end [2025-03-29 18:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790618', 'tblTempVendorCDR_20' ) start [2025-03-29 18:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790618', 'tblTempVendorCDR_20' ) end [2025-03-29 18:16:19] Production.INFO: ProcessCDR(1,14790618,1,1,2) [2025-03-29 18:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 18:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 18:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 18:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 18:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790618', 'tblTempUsageDetail_20' ) start [2025-03-29 18:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790618', 'tblTempUsageDetail_20' ) end [2025-03-29 18:16:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 18:16:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 18:16:24] Production.INFO: ==30184== Releasing lock... [2025-03-29 18:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 18:16:24] Production.INFO: 47.25 MB #Memory Used# [2025-03-29 18:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 15:17:06 [end_date_ymd] => 2025-03-29 18:17:06 [RateCDR] => 1 ) [2025-03-29 18: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-29 15:17:06' and `end` < '2025-03-29 18: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-29 18:17:19] Production.INFO: count ==2587 [2025-03-29 18:17:19] Production.ERROR: pbx CDR StartTime 2025-03-29 15:17:06 - End Time 2025-03-29 18:17:06 [2025-03-29 18:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 18:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790623', 'tblTempUsageDetail_20' ) start [2025-03-29 18:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790623', 'tblTempUsageDetail_20' ) end [2025-03-29 18:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790623', 'tblTempVendorCDR_20' ) start [2025-03-29 18:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790623', 'tblTempVendorCDR_20' ) end [2025-03-29 18:17:19] Production.INFO: ProcessCDR(1,14790623,1,1,2) [2025-03-29 18:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 18:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 18:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 18:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 18:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790623', 'tblTempUsageDetail_20' ) start [2025-03-29 18:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790623', 'tblTempUsageDetail_20' ) end [2025-03-29 18:17:25] Production.ERROR: pbx prc_insertCDR start [2025-03-29 18:17:25] Production.ERROR: pbx prc_insertCDR end [2025-03-29 18:17:25] Production.INFO: ==30260== Releasing lock... [2025-03-29 18:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 18:17:25] Production.INFO: 47.5 MB #Memory Used# [2025-03-29 18:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 15:18:05 [end_date_ymd] => 2025-03-29 18:18:05 [RateCDR] => 1 ) [2025-03-29 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-29 15:18:05' and `end` < '2025-03-29 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-29 18:18:18] Production.INFO: count ==2580 [2025-03-29 18:18:19] Production.ERROR: pbx CDR StartTime 2025-03-29 15:18:05 - End Time 2025-03-29 18:18:05 [2025-03-29 18:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 18:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790628', 'tblTempUsageDetail_20' ) start [2025-03-29 18:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790628', 'tblTempUsageDetail_20' ) end [2025-03-29 18:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790628', 'tblTempVendorCDR_20' ) start [2025-03-29 18:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790628', 'tblTempVendorCDR_20' ) end [2025-03-29 18:18:19] Production.INFO: ProcessCDR(1,14790628,1,1,2) [2025-03-29 18:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 18:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 18:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 18:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 18:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790628', 'tblTempUsageDetail_20' ) start [2025-03-29 18:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790628', 'tblTempUsageDetail_20' ) end [2025-03-29 18:18:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 18:18:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 18:18:23] Production.INFO: ==30337== Releasing lock... [2025-03-29 18:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 18:18:23] Production.INFO: 47.5 MB #Memory Used# [2025-03-29 18:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 15:19:06 [end_date_ymd] => 2025-03-29 18:19:06 [RateCDR] => 1 ) [2025-03-29 18: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-29 15:19:06' and `end` < '2025-03-29 18: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-29 18:19:19] Production.INFO: count ==2578 [2025-03-29 18:19:19] Production.ERROR: pbx CDR StartTime 2025-03-29 15:19:06 - End Time 2025-03-29 18:19:06 [2025-03-29 18:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 18:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790633', 'tblTempUsageDetail_20' ) start [2025-03-29 18:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790633', 'tblTempUsageDetail_20' ) end [2025-03-29 18:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790633', 'tblTempVendorCDR_20' ) start [2025-03-29 18:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790633', 'tblTempVendorCDR_20' ) end [2025-03-29 18:19:19] Production.INFO: ProcessCDR(1,14790633,1,1,2) [2025-03-29 18:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 18:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 18:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 18:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 18:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790633', 'tblTempUsageDetail_20' ) start [2025-03-29 18:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790633', 'tblTempUsageDetail_20' ) end [2025-03-29 18:19:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 18:19:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 18:19:23] Production.INFO: ==30409== Releasing lock... [2025-03-29 18:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 18:19:23] Production.INFO: 47.5 MB #Memory Used# [2025-03-29 18:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 15:20:06 [end_date_ymd] => 2025-03-29 18:20:06 [RateCDR] => 1 ) [2025-03-29 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-29 15:20:06' and `end` < '2025-03-29 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-29 18:20:19] Production.INFO: count ==2586 [2025-03-29 18:20:20] Production.ERROR: pbx CDR StartTime 2025-03-29 15:20:06 - End Time 2025-03-29 18:20:06 [2025-03-29 18:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 18:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790639', 'tblTempUsageDetail_20' ) start [2025-03-29 18:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790639', 'tblTempUsageDetail_20' ) end [2025-03-29 18:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790639', 'tblTempVendorCDR_20' ) start [2025-03-29 18:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790639', 'tblTempVendorCDR_20' ) end [2025-03-29 18:20:20] Production.INFO: ProcessCDR(1,14790639,1,1,2) [2025-03-29 18:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 18:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 18:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 18:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 18:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790639', 'tblTempUsageDetail_20' ) start [2025-03-29 18:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790639', 'tblTempUsageDetail_20' ) end [2025-03-29 18:20:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 18:20:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 18:20:23] Production.INFO: ==30483== Releasing lock... [2025-03-29 18:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 18:20:23] Production.INFO: 47.5 MB #Memory Used# [2025-03-29 18:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 15:21:06 [end_date_ymd] => 2025-03-29 18:21:06 [RateCDR] => 1 ) [2025-03-29 18: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-29 15:21:06' and `end` < '2025-03-29 18: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-29 18:21:19] Production.INFO: count ==2648 [2025-03-29 18:21:19] Production.ERROR: pbx CDR StartTime 2025-03-29 15:21:06 - End Time 2025-03-29 18:21:06 [2025-03-29 18:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 18:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790644', 'tblTempUsageDetail_20' ) start [2025-03-29 18:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790644', 'tblTempUsageDetail_20' ) end [2025-03-29 18:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790644', 'tblTempVendorCDR_20' ) start [2025-03-29 18:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790644', 'tblTempVendorCDR_20' ) end [2025-03-29 18:21:19] Production.INFO: ProcessCDR(1,14790644,1,1,2) [2025-03-29 18:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 18:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 18:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 18:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 18:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790644', 'tblTempUsageDetail_20' ) start [2025-03-29 18:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790644', 'tblTempUsageDetail_20' ) end [2025-03-29 18:21:25] Production.ERROR: pbx prc_insertCDR start [2025-03-29 18:21:25] Production.ERROR: pbx prc_insertCDR end [2025-03-29 18:21:25] Production.INFO: ==30556== Releasing lock... [2025-03-29 18:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 18:21:25] Production.INFO: 48 MB #Memory Used# [2025-03-29 18:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 15:22:05 [end_date_ymd] => 2025-03-29 18:22:05 [RateCDR] => 1 ) [2025-03-29 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-29 15:22:05' and `end` < '2025-03-29 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-29 18:22:18] Production.INFO: count ==2648 [2025-03-29 18:22:19] Production.ERROR: pbx CDR StartTime 2025-03-29 15:22:05 - End Time 2025-03-29 18:22:05 [2025-03-29 18:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 18:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790649', 'tblTempUsageDetail_20' ) start [2025-03-29 18:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790649', 'tblTempUsageDetail_20' ) end [2025-03-29 18:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790649', 'tblTempVendorCDR_20' ) start [2025-03-29 18:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790649', 'tblTempVendorCDR_20' ) end [2025-03-29 18:22:19] Production.INFO: ProcessCDR(1,14790649,1,1,2) [2025-03-29 18:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 18:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 18:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 18:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 18:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790649', 'tblTempUsageDetail_20' ) start [2025-03-29 18:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790649', 'tblTempUsageDetail_20' ) end [2025-03-29 18:22:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 18:22:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 18:22:24] Production.INFO: ==30635== Releasing lock... [2025-03-29 18:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 18:22:24] Production.INFO: 48 MB #Memory Used# [2025-03-29 18:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 15:23:05 [end_date_ymd] => 2025-03-29 18:23:05 [RateCDR] => 1 ) [2025-03-29 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-29 15:23:05' and `end` < '2025-03-29 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-29 18:23:18] Production.INFO: count ==2614 [2025-03-29 18:23:19] Production.ERROR: pbx CDR StartTime 2025-03-29 15:23:05 - End Time 2025-03-29 18:23:05 [2025-03-29 18:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 18:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790654', 'tblTempUsageDetail_20' ) start [2025-03-29 18:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790654', 'tblTempUsageDetail_20' ) end [2025-03-29 18:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790654', 'tblTempVendorCDR_20' ) start [2025-03-29 18:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790654', 'tblTempVendorCDR_20' ) end [2025-03-29 18:23:19] Production.INFO: ProcessCDR(1,14790654,1,1,2) [2025-03-29 18:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 18:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 18:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 18:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 18:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790654', 'tblTempUsageDetail_20' ) start [2025-03-29 18:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790654', 'tblTempUsageDetail_20' ) end [2025-03-29 18:23:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 18:23:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 18:23:23] Production.INFO: ==30710== Releasing lock... [2025-03-29 18:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 18:23:23] Production.INFO: 48 MB #Memory Used# [2025-03-29 18:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 15:24:05 [end_date_ymd] => 2025-03-29 18:24:05 [RateCDR] => 1 ) [2025-03-29 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-29 15:24:05' and `end` < '2025-03-29 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-29 18:24:18] Production.INFO: count ==2626 [2025-03-29 18:24:19] Production.ERROR: pbx CDR StartTime 2025-03-29 15:24:05 - End Time 2025-03-29 18:24:05 [2025-03-29 18:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 18:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790659', 'tblTempUsageDetail_20' ) start [2025-03-29 18:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790659', 'tblTempUsageDetail_20' ) end [2025-03-29 18:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790659', 'tblTempVendorCDR_20' ) start [2025-03-29 18:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790659', 'tblTempVendorCDR_20' ) end [2025-03-29 18:24:19] Production.INFO: ProcessCDR(1,14790659,1,1,2) [2025-03-29 18:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 18:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 18:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 18:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 18:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790659', 'tblTempUsageDetail_20' ) start [2025-03-29 18:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790659', 'tblTempUsageDetail_20' ) end [2025-03-29 18:24:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 18:24:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 18:24:24] Production.INFO: ==30783== Releasing lock... [2025-03-29 18:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 18:24:24] Production.INFO: 48 MB #Memory Used# [2025-03-29 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 15:25:05 [end_date_ymd] => 2025-03-29 18:25:05 [RateCDR] => 1 ) [2025-03-29 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-29 15:25:05' and `end` < '2025-03-29 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-29 18:25:18] Production.INFO: count ==2632 [2025-03-29 18:25:19] Production.ERROR: pbx CDR StartTime 2025-03-29 15:25:05 - End Time 2025-03-29 18:25:05 [2025-03-29 18:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790664', 'tblTempUsageDetail_20' ) start [2025-03-29 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790664', 'tblTempUsageDetail_20' ) end [2025-03-29 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790664', 'tblTempVendorCDR_20' ) start [2025-03-29 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790664', 'tblTempVendorCDR_20' ) end [2025-03-29 18:25:19] Production.INFO: ProcessCDR(1,14790664,1,1,2) [2025-03-29 18:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 18:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 18:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 18:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 18:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790664', 'tblTempUsageDetail_20' ) start [2025-03-29 18:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790664', 'tblTempUsageDetail_20' ) end [2025-03-29 18:25:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 18:25:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 18:25:24] Production.INFO: ==30857== Releasing lock... [2025-03-29 18:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 18:25:24] Production.INFO: 48.25 MB #Memory Used# [2025-03-29 18:26:26] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 15:26:26 [end_date_ymd] => 2025-03-29 18:26:26 [RateCDR] => 1 ) [2025-03-29 18:26:26] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 15:26:26' and `end` < '2025-03-29 18:26:26' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 18:26:39] Production.INFO: count ==2643 [2025-03-29 18:27:17] Production.ERROR: pbx CDR StartTime 2025-03-29 15:26:26 - End Time 2025-03-29 18:26:26 [2025-03-29 18:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 18:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790669', 'tblTempUsageDetail_20' ) start [2025-03-29 18:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790669', 'tblTempUsageDetail_20' ) end [2025-03-29 18:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790669', 'tblTempVendorCDR_20' ) start [2025-03-29 18:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790669', 'tblTempVendorCDR_20' ) end [2025-03-29 18:27:25] Production.INFO: ProcessCDR(1,14790669,1,1,2) [2025-03-29 18:27:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 18:27:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 18:27:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 18:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 18:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790669', 'tblTempUsageDetail_20' ) start [2025-03-29 18:28:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790669', 'tblTempUsageDetail_20' ) end [2025-03-29 18:28:29] Production.ERROR: pbx prc_insertCDR start [2025-03-29 18:28:29] Production.ERROR: pbx prc_insertCDR end [2025-03-29 18:28:29] Production.INFO: ==30940== Releasing lock... [2025-03-29 18:28:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 18:28:29] Production.INFO: 47.75 MB #Memory Used# [2025-03-29 18:29:24] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 15:29:24 [end_date_ymd] => 2025-03-29 18:29:24 [RateCDR] => 1 ) [2025-03-29 18:29:24] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 15:29:24' and `end` < '2025-03-29 18:29:24' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 18:29:37] Production.INFO: count ==2633 [2025-03-29 18:29:54] Production.ERROR: pbx CDR StartTime 2025-03-29 15:29:24 - End Time 2025-03-29 18:29:24 [2025-03-29 18:29:54] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 18:29:54] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790680', 'tblTempUsageDetail_20' ) start [2025-03-29 18:29:59] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790680', 'tblTempUsageDetail_20' ) end [2025-03-29 18:29:59] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790680', 'tblTempVendorCDR_20' ) start [2025-03-29 18:29:59] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790680', 'tblTempVendorCDR_20' ) end [2025-03-29 18:29:59] Production.INFO: ProcessCDR(1,14790680,1,1,2) [2025-03-29 18:29:59] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 18:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 18:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 18:30:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 18:30:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790680', 'tblTempUsageDetail_20' ) start [2025-03-29 18:30:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790680', 'tblTempUsageDetail_20' ) end [2025-03-29 18:30:41] Production.ERROR: pbx prc_insertCDR start [2025-03-29 18:30:41] Production.ERROR: pbx prc_insertCDR end [2025-03-29 18:30:50] Production.INFO: ==31195== Releasing lock... [2025-03-29 18:30:50] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 18:30:50] Production.INFO: 47.75 MB #Memory Used# [2025-03-29 18:31:22] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 15:31:22 [end_date_ymd] => 2025-03-29 18:31:22 [RateCDR] => 1 ) [2025-03-29 18:31: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-29 15:31:22' and `end` < '2025-03-29 18:31: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-29 18:31:35] Production.INFO: count ==2661 [2025-03-29 18:32:23] Production.ERROR: pbx CDR StartTime 2025-03-29 15:31:22 - End Time 2025-03-29 18:31:22 [2025-03-29 18:32:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 18:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790688', 'tblTempUsageDetail_20' ) start [2025-03-29 18:32:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790688', 'tblTempUsageDetail_20' ) end [2025-03-29 18:32:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790688', 'tblTempVendorCDR_20' ) start [2025-03-29 18:32:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790688', 'tblTempVendorCDR_20' ) end [2025-03-29 18:32:30] Production.INFO: ProcessCDR(1,14790688,1,1,2) [2025-03-29 18:32:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 18:32:48] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 18:32:48] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 18:33:18] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 18:33:18] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790688', 'tblTempUsageDetail_20' ) start [2025-03-29 18:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790688', 'tblTempUsageDetail_20' ) end [2025-03-29 18:33:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 18:33:25] Production.ERROR: pbx prc_insertCDR end [2025-03-29 18:33:31] Production.INFO: ==31344== Releasing lock... [2025-03-29 18:33:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 18:33:31] Production.INFO: 48 MB #Memory Used# [2025-03-29 18:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 15:34:05 [end_date_ymd] => 2025-03-29 18:34:05 [RateCDR] => 1 ) [2025-03-29 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-29 15:34:05' and `end` < '2025-03-29 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-29 18:34:18] Production.INFO: count ==2678 [2025-03-29 18:34:19] Production.ERROR: pbx CDR StartTime 2025-03-29 15:34:05 - End Time 2025-03-29 18:34:05 [2025-03-29 18:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790700', 'tblTempUsageDetail_20' ) start [2025-03-29 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790700', 'tblTempUsageDetail_20' ) end [2025-03-29 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790700', 'tblTempVendorCDR_20' ) start [2025-03-29 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790700', 'tblTempVendorCDR_20' ) end [2025-03-29 18:34:19] Production.INFO: ProcessCDR(1,14790700,1,1,2) [2025-03-29 18:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 18:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 18:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 18:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 18:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790700', 'tblTempUsageDetail_20' ) start [2025-03-29 18:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790700', 'tblTempUsageDetail_20' ) end [2025-03-29 18:34:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 18:34:25] Production.ERROR: pbx prc_insertCDR end [2025-03-29 18:34:25] Production.INFO: ==31573== Releasing lock... [2025-03-29 18:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 18:34:25] Production.INFO: 48.5 MB #Memory Used# [2025-03-29 18:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 15:35:05 [end_date_ymd] => 2025-03-29 18:35:05 [RateCDR] => 1 ) [2025-03-29 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-29 15:35:05' and `end` < '2025-03-29 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-29 18:35:18] Production.INFO: count ==2654 [2025-03-29 18:35:19] Production.ERROR: pbx CDR StartTime 2025-03-29 15:35:05 - End Time 2025-03-29 18:35:05 [2025-03-29 18:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790705', 'tblTempUsageDetail_20' ) start [2025-03-29 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790705', 'tblTempUsageDetail_20' ) end [2025-03-29 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790705', 'tblTempVendorCDR_20' ) start [2025-03-29 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790705', 'tblTempVendorCDR_20' ) end [2025-03-29 18:35:19] Production.INFO: ProcessCDR(1,14790705,1,1,2) [2025-03-29 18:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 18:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 18:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 18:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 18:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790705', 'tblTempUsageDetail_20' ) start [2025-03-29 18:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790705', 'tblTempUsageDetail_20' ) end [2025-03-29 18:35:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 18:35:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 18:35:24] Production.INFO: ==31652== Releasing lock... [2025-03-29 18:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 18:35:24] Production.INFO: 48 MB #Memory Used# [2025-03-29 18:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 15:36:05 [end_date_ymd] => 2025-03-29 18:36:05 [RateCDR] => 1 ) [2025-03-29 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-29 15:36:05' and `end` < '2025-03-29 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-29 18:36:18] Production.INFO: count ==2602 [2025-03-29 18:36:19] Production.ERROR: pbx CDR StartTime 2025-03-29 15:36:05 - End Time 2025-03-29 18:36:05 [2025-03-29 18:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790710', 'tblTempUsageDetail_20' ) start [2025-03-29 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790710', 'tblTempUsageDetail_20' ) end [2025-03-29 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790710', 'tblTempVendorCDR_20' ) start [2025-03-29 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790710', 'tblTempVendorCDR_20' ) end [2025-03-29 18:36:19] Production.INFO: ProcessCDR(1,14790710,1,1,2) [2025-03-29 18:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 18:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 18:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 18:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 18:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790710', 'tblTempUsageDetail_20' ) start [2025-03-29 18:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790710', 'tblTempUsageDetail_20' ) end [2025-03-29 18:36:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 18:36:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 18:36:24] Production.INFO: ==31734== Releasing lock... [2025-03-29 18:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 18:36:24] Production.INFO: 47.5 MB #Memory Used# [2025-03-29 18:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 15:37:06 [end_date_ymd] => 2025-03-29 18:37:06 [RateCDR] => 1 ) [2025-03-29 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-29 15:37:06' and `end` < '2025-03-29 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-29 18:37:19] Production.INFO: count ==2605 [2025-03-29 18:37:19] Production.ERROR: pbx CDR StartTime 2025-03-29 15:37:06 - End Time 2025-03-29 18:37:06 [2025-03-29 18:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790715', 'tblTempUsageDetail_20' ) start [2025-03-29 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790715', 'tblTempUsageDetail_20' ) end [2025-03-29 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790715', 'tblTempVendorCDR_20' ) start [2025-03-29 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790715', 'tblTempVendorCDR_20' ) end [2025-03-29 18:37:20] Production.INFO: ProcessCDR(1,14790715,1,1,2) [2025-03-29 18:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 18:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 18:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 18:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 18:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790715', 'tblTempUsageDetail_20' ) start [2025-03-29 18:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790715', 'tblTempUsageDetail_20' ) end [2025-03-29 18:37:25] Production.ERROR: pbx prc_insertCDR start [2025-03-29 18:37:25] Production.ERROR: pbx prc_insertCDR end [2025-03-29 18:37:25] Production.INFO: ==31814== Releasing lock... [2025-03-29 18:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 18:37:25] Production.INFO: 47.75 MB #Memory Used# [2025-03-29 18:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 15:38:05 [end_date_ymd] => 2025-03-29 18:38:05 [RateCDR] => 1 ) [2025-03-29 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-29 15:38:05' and `end` < '2025-03-29 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-29 18:38:17] Production.INFO: count ==2598 [2025-03-29 18:38:18] Production.ERROR: pbx CDR StartTime 2025-03-29 15:38:05 - End Time 2025-03-29 18:38:05 [2025-03-29 18:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 18:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790720', 'tblTempUsageDetail_20' ) start [2025-03-29 18:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790720', 'tblTempUsageDetail_20' ) end [2025-03-29 18:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790720', 'tblTempVendorCDR_20' ) start [2025-03-29 18:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790720', 'tblTempVendorCDR_20' ) end [2025-03-29 18:38:18] Production.INFO: ProcessCDR(1,14790720,1,1,2) [2025-03-29 18:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 18:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 18:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 18:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 18:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790720', 'tblTempUsageDetail_20' ) start [2025-03-29 18:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790720', 'tblTempUsageDetail_20' ) end [2025-03-29 18:38:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 18:38:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 18:38:24] Production.INFO: ==31891== Releasing lock... [2025-03-29 18:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 18:38:24] Production.INFO: 47.5 MB #Memory Used# [2025-03-29 18:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 15:39:05 [end_date_ymd] => 2025-03-29 18:39:05 [RateCDR] => 1 ) [2025-03-29 18:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 15:39:05' and `end` < '2025-03-29 18:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 18:39:18] Production.INFO: count ==2597 [2025-03-29 18:39:19] Production.ERROR: pbx CDR StartTime 2025-03-29 15:39:05 - End Time 2025-03-29 18:39:05 [2025-03-29 18:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790725', 'tblTempUsageDetail_20' ) start [2025-03-29 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790725', 'tblTempUsageDetail_20' ) end [2025-03-29 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790725', 'tblTempVendorCDR_20' ) start [2025-03-29 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790725', 'tblTempVendorCDR_20' ) end [2025-03-29 18:39:19] Production.INFO: ProcessCDR(1,14790725,1,1,2) [2025-03-29 18:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 18:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 18:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 18:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 18:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790725', 'tblTempUsageDetail_20' ) start [2025-03-29 18:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790725', 'tblTempUsageDetail_20' ) end [2025-03-29 18:39:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 18:39:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 18:39:24] Production.INFO: ==31974== Releasing lock... [2025-03-29 18:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 18:39:24] Production.INFO: 47.5 MB #Memory Used# [2025-03-29 18:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 15:40:07 [end_date_ymd] => 2025-03-29 18:40:07 [RateCDR] => 1 ) [2025-03-29 18: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-29 15:40:07' and `end` < '2025-03-29 18: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-29 18:40:19] Production.INFO: count ==2584 [2025-03-29 18:40:20] Production.ERROR: pbx CDR StartTime 2025-03-29 15:40:07 - End Time 2025-03-29 18:40:07 [2025-03-29 18:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790731', 'tblTempUsageDetail_20' ) start [2025-03-29 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790731', 'tblTempUsageDetail_20' ) end [2025-03-29 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790731', 'tblTempVendorCDR_20' ) start [2025-03-29 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790731', 'tblTempVendorCDR_20' ) end [2025-03-29 18:40:20] Production.INFO: ProcessCDR(1,14790731,1,1,2) [2025-03-29 18:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 18:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 18:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 18:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 18:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790731', 'tblTempUsageDetail_20' ) start [2025-03-29 18:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790731', 'tblTempUsageDetail_20' ) end [2025-03-29 18:40:25] Production.ERROR: pbx prc_insertCDR start [2025-03-29 18:40:25] Production.ERROR: pbx prc_insertCDR end [2025-03-29 18:40:25] Production.INFO: ==32063== Releasing lock... [2025-03-29 18:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 18:40:25] Production.INFO: 47.25 MB #Memory Used# [2025-03-29 18:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 15:41:06 [end_date_ymd] => 2025-03-29 18:41:06 [RateCDR] => 1 ) [2025-03-29 18: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-29 15:41:06' and `end` < '2025-03-29 18: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-29 18:41:19] Production.INFO: count ==2568 [2025-03-29 18:41:19] Production.ERROR: pbx CDR StartTime 2025-03-29 15:41:06 - End Time 2025-03-29 18:41:06 [2025-03-29 18:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790736', 'tblTempUsageDetail_20' ) start [2025-03-29 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790736', 'tblTempUsageDetail_20' ) end [2025-03-29 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790736', 'tblTempVendorCDR_20' ) start [2025-03-29 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790736', 'tblTempVendorCDR_20' ) end [2025-03-29 18:41:20] Production.INFO: ProcessCDR(1,14790736,1,1,2) [2025-03-29 18:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 18:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 18:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 18:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 18:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790736', 'tblTempUsageDetail_20' ) start [2025-03-29 18:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790736', 'tblTempUsageDetail_20' ) end [2025-03-29 18:41:25] Production.ERROR: pbx prc_insertCDR start [2025-03-29 18:41:25] Production.ERROR: pbx prc_insertCDR end [2025-03-29 18:41:25] Production.INFO: ==32144== Releasing lock... [2025-03-29 18:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 18:41:25] Production.INFO: 47.25 MB #Memory Used# [2025-03-29 18:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 15:42:06 [end_date_ymd] => 2025-03-29 18:42:06 [RateCDR] => 1 ) [2025-03-29 18:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 15:42:06' and `end` < '2025-03-29 18:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 18:42:18] Production.INFO: count ==2585 [2025-03-29 18:42:19] Production.ERROR: pbx CDR StartTime 2025-03-29 15:42:06 - End Time 2025-03-29 18:42:06 [2025-03-29 18:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790741', 'tblTempUsageDetail_20' ) start [2025-03-29 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790741', 'tblTempUsageDetail_20' ) end [2025-03-29 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790741', 'tblTempVendorCDR_20' ) start [2025-03-29 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790741', 'tblTempVendorCDR_20' ) end [2025-03-29 18:42:19] Production.INFO: ProcessCDR(1,14790741,1,1,2) [2025-03-29 18:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 18:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 18:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 18:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 18:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790741', 'tblTempUsageDetail_20' ) start [2025-03-29 18:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790741', 'tblTempUsageDetail_20' ) end [2025-03-29 18:42:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 18:42:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 18:42:24] Production.INFO: ==32226== Releasing lock... [2025-03-29 18:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 18:42:24] Production.INFO: 47.5 MB #Memory Used# [2025-03-29 18:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 15:43:05 [end_date_ymd] => 2025-03-29 18:43:05 [RateCDR] => 1 ) [2025-03-29 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-29 15:43:05' and `end` < '2025-03-29 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-29 18:43:18] Production.INFO: count ==2590 [2025-03-29 18:43:19] Production.ERROR: pbx CDR StartTime 2025-03-29 15:43:05 - End Time 2025-03-29 18:43:05 [2025-03-29 18:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 18:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790746', 'tblTempUsageDetail_20' ) start [2025-03-29 18:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790746', 'tblTempUsageDetail_20' ) end [2025-03-29 18:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790746', 'tblTempVendorCDR_20' ) start [2025-03-29 18:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790746', 'tblTempVendorCDR_20' ) end [2025-03-29 18:43:19] Production.INFO: ProcessCDR(1,14790746,1,1,2) [2025-03-29 18:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 18:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 18:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 18:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 18:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790746', 'tblTempUsageDetail_20' ) start [2025-03-29 18:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790746', 'tblTempUsageDetail_20' ) end [2025-03-29 18:43:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 18:43:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 18:43:24] Production.INFO: ==32343== Releasing lock... [2025-03-29 18:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 18:43:24] Production.INFO: 47.5 MB #Memory Used# [2025-03-29 18:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 15:44:06 [end_date_ymd] => 2025-03-29 18:44:06 [RateCDR] => 1 ) [2025-03-29 18:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 15:44:06' and `end` < '2025-03-29 18:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 18:44:19] Production.INFO: count ==2595 [2025-03-29 18:44:19] Production.ERROR: pbx CDR StartTime 2025-03-29 15:44:06 - End Time 2025-03-29 18:44:06 [2025-03-29 18:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790751', 'tblTempUsageDetail_20' ) start [2025-03-29 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790751', 'tblTempUsageDetail_20' ) end [2025-03-29 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790751', 'tblTempVendorCDR_20' ) start [2025-03-29 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790751', 'tblTempVendorCDR_20' ) end [2025-03-29 18:44:19] Production.INFO: ProcessCDR(1,14790751,1,1,2) [2025-03-29 18:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 18:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 18:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 18:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 18:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790751', 'tblTempUsageDetail_20' ) start [2025-03-29 18:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790751', 'tblTempUsageDetail_20' ) end [2025-03-29 18:44:25] Production.ERROR: pbx prc_insertCDR start [2025-03-29 18:44:25] Production.ERROR: pbx prc_insertCDR end [2025-03-29 18:44:25] Production.INFO: ==32436== Releasing lock... [2025-03-29 18:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 18:44:25] Production.INFO: 47.5 MB #Memory Used# [2025-03-29 18:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 15:45:05 [end_date_ymd] => 2025-03-29 18:45:05 [RateCDR] => 1 ) [2025-03-29 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-29 15:45:05' and `end` < '2025-03-29 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-29 18:45:18] Production.INFO: count ==2595 [2025-03-29 18:45:19] Production.ERROR: pbx CDR StartTime 2025-03-29 15:45:05 - End Time 2025-03-29 18:45:05 [2025-03-29 18:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790756', 'tblTempUsageDetail_20' ) start [2025-03-29 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790756', 'tblTempUsageDetail_20' ) end [2025-03-29 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790756', 'tblTempVendorCDR_20' ) start [2025-03-29 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790756', 'tblTempVendorCDR_20' ) end [2025-03-29 18:45:19] Production.INFO: ProcessCDR(1,14790756,1,1,2) [2025-03-29 18:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 18:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 18:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 18:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 18:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790756', 'tblTempUsageDetail_20' ) start [2025-03-29 18:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790756', 'tblTempUsageDetail_20' ) end [2025-03-29 18:45:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 18:45:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 18:45:24] Production.INFO: ==32543== Releasing lock... [2025-03-29 18:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 18:45:24] Production.INFO: 47.5 MB #Memory Used# [2025-03-29 18:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 15:46:06 [end_date_ymd] => 2025-03-29 18:46:06 [RateCDR] => 1 ) [2025-03-29 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-29 15:46:06' and `end` < '2025-03-29 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-29 18:46:19] Production.INFO: count ==2599 [2025-03-29 18:46:20] Production.ERROR: pbx CDR StartTime 2025-03-29 15:46:06 - End Time 2025-03-29 18:46:06 [2025-03-29 18:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790761', 'tblTempUsageDetail_20' ) start [2025-03-29 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790761', 'tblTempUsageDetail_20' ) end [2025-03-29 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790761', 'tblTempVendorCDR_20' ) start [2025-03-29 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790761', 'tblTempVendorCDR_20' ) end [2025-03-29 18:46:20] Production.INFO: ProcessCDR(1,14790761,1,1,2) [2025-03-29 18:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 18:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 18:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 18:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 18:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790761', 'tblTempUsageDetail_20' ) start [2025-03-29 18:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790761', 'tblTempUsageDetail_20' ) end [2025-03-29 18:46:25] Production.ERROR: pbx prc_insertCDR start [2025-03-29 18:46:25] Production.ERROR: pbx prc_insertCDR end [2025-03-29 18:46:25] Production.INFO: ==32634== Releasing lock... [2025-03-29 18:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 18:46:25] Production.INFO: 47.5 MB #Memory Used# [2025-03-29 18:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 15:47:05 [end_date_ymd] => 2025-03-29 18:47:05 [RateCDR] => 1 ) [2025-03-29 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-29 15:47:05' and `end` < '2025-03-29 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-29 18:47:18] Production.INFO: count ==2601 [2025-03-29 18:47:18] Production.ERROR: pbx CDR StartTime 2025-03-29 15:47:05 - End Time 2025-03-29 18:47:05 [2025-03-29 18:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 18:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790766', 'tblTempUsageDetail_20' ) start [2025-03-29 18:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790766', 'tblTempUsageDetail_20' ) end [2025-03-29 18:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790766', 'tblTempVendorCDR_20' ) start [2025-03-29 18:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790766', 'tblTempVendorCDR_20' ) end [2025-03-29 18:47:18] Production.INFO: ProcessCDR(1,14790766,1,1,2) [2025-03-29 18:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 18:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 18:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 18:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 18:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790766', 'tblTempUsageDetail_20' ) start [2025-03-29 18:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790766', 'tblTempUsageDetail_20' ) end [2025-03-29 18:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 18:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 18:47:22] Production.INFO: ==32745== Releasing lock... [2025-03-29 18:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 18:47:22] Production.INFO: 47.5 MB #Memory Used# [2025-03-29 18:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 15:48:06 [end_date_ymd] => 2025-03-29 18:48:06 [RateCDR] => 1 ) [2025-03-29 18: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-29 15:48:06' and `end` < '2025-03-29 18: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-29 18:48:18] Production.INFO: count ==2601 [2025-03-29 18:48:19] Production.ERROR: pbx CDR StartTime 2025-03-29 15:48:06 - End Time 2025-03-29 18:48:06 [2025-03-29 18:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790771', 'tblTempUsageDetail_20' ) start [2025-03-29 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790771', 'tblTempUsageDetail_20' ) end [2025-03-29 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790771', 'tblTempVendorCDR_20' ) start [2025-03-29 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790771', 'tblTempVendorCDR_20' ) end [2025-03-29 18:48:19] Production.INFO: ProcessCDR(1,14790771,1,1,2) [2025-03-29 18:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 18:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 18:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 18:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 18:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790771', 'tblTempUsageDetail_20' ) start [2025-03-29 18:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790771', 'tblTempUsageDetail_20' ) end [2025-03-29 18:48:25] Production.ERROR: pbx prc_insertCDR start [2025-03-29 18:48:25] Production.ERROR: pbx prc_insertCDR end [2025-03-29 18:48:25] Production.INFO: ==393== Releasing lock... [2025-03-29 18:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 18:48:25] Production.INFO: 47.75 MB #Memory Used# [2025-03-29 18:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 15:49:05 [end_date_ymd] => 2025-03-29 18:49:05 [RateCDR] => 1 ) [2025-03-29 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-29 15:49:05' and `end` < '2025-03-29 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-29 18:49:18] Production.INFO: count ==2605 [2025-03-29 18:49:18] Production.ERROR: pbx CDR StartTime 2025-03-29 15:49:05 - End Time 2025-03-29 18:49:05 [2025-03-29 18:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 18:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790776', 'tblTempUsageDetail_20' ) start [2025-03-29 18:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790776', 'tblTempUsageDetail_20' ) end [2025-03-29 18:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790776', 'tblTempVendorCDR_20' ) start [2025-03-29 18:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790776', 'tblTempVendorCDR_20' ) end [2025-03-29 18:49:18] Production.INFO: ProcessCDR(1,14790776,1,1,2) [2025-03-29 18:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 18:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 18:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 18:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 18:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790776', 'tblTempUsageDetail_20' ) start [2025-03-29 18:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790776', 'tblTempUsageDetail_20' ) end [2025-03-29 18:49:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 18:49:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 18:49:23] Production.INFO: ==508== Releasing lock... [2025-03-29 18:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 18:49:23] Production.INFO: 47.5 MB #Memory Used# [2025-03-29 18:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 15:50:06 [end_date_ymd] => 2025-03-29 18:50:06 [RateCDR] => 1 ) [2025-03-29 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-29 15:50:06' and `end` < '2025-03-29 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-29 18:50:19] Production.INFO: count ==2602 [2025-03-29 18:50:20] Production.ERROR: pbx CDR StartTime 2025-03-29 15:50:06 - End Time 2025-03-29 18:50:06 [2025-03-29 18:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790782', 'tblTempUsageDetail_20' ) start [2025-03-29 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790782', 'tblTempUsageDetail_20' ) end [2025-03-29 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790782', 'tblTempVendorCDR_20' ) start [2025-03-29 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790782', 'tblTempVendorCDR_20' ) end [2025-03-29 18:50:20] Production.INFO: ProcessCDR(1,14790782,1,1,2) [2025-03-29 18:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 18:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 18:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 18:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 18:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790782', 'tblTempUsageDetail_20' ) start [2025-03-29 18:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790782', 'tblTempUsageDetail_20' ) end [2025-03-29 18:50:25] Production.ERROR: pbx prc_insertCDR start [2025-03-29 18:50:25] Production.ERROR: pbx prc_insertCDR end [2025-03-29 18:50:25] Production.INFO: ==610== Releasing lock... [2025-03-29 18:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 18:50:25] Production.INFO: 47.5 MB #Memory Used# [2025-03-29 18:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 15:51:05 [end_date_ymd] => 2025-03-29 18:51:05 [RateCDR] => 1 ) [2025-03-29 18:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 15:51:05' and `end` < '2025-03-29 18:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 18:51:18] Production.INFO: count ==2601 [2025-03-29 18:51:19] Production.ERROR: pbx CDR StartTime 2025-03-29 15:51:05 - End Time 2025-03-29 18:51:05 [2025-03-29 18:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790787', 'tblTempUsageDetail_20' ) start [2025-03-29 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790787', 'tblTempUsageDetail_20' ) end [2025-03-29 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790787', 'tblTempVendorCDR_20' ) start [2025-03-29 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790787', 'tblTempVendorCDR_20' ) end [2025-03-29 18:51:19] Production.INFO: ProcessCDR(1,14790787,1,1,2) [2025-03-29 18:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 18:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 18:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 18:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 18:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790787', 'tblTempUsageDetail_20' ) start [2025-03-29 18:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790787', 'tblTempUsageDetail_20' ) end [2025-03-29 18:51:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 18:51:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 18:51:24] Production.INFO: ==742== Releasing lock... [2025-03-29 18:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 18:51:24] Production.INFO: 47.5 MB #Memory Used# [2025-03-29 18:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 15:52:05 [end_date_ymd] => 2025-03-29 18:52:05 [RateCDR] => 1 ) [2025-03-29 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-29 15:52:05' and `end` < '2025-03-29 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-29 18:52:18] Production.INFO: count ==2597 [2025-03-29 18:52:19] Production.ERROR: pbx CDR StartTime 2025-03-29 15:52:05 - End Time 2025-03-29 18:52:05 [2025-03-29 18:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790792', 'tblTempUsageDetail_20' ) start [2025-03-29 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790792', 'tblTempUsageDetail_20' ) end [2025-03-29 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790792', 'tblTempVendorCDR_20' ) start [2025-03-29 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790792', 'tblTempVendorCDR_20' ) end [2025-03-29 18:52:19] Production.INFO: ProcessCDR(1,14790792,1,1,2) [2025-03-29 18:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 18:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 18:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 18:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 18:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790792', 'tblTempUsageDetail_20' ) start [2025-03-29 18:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790792', 'tblTempUsageDetail_20' ) end [2025-03-29 18:52:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 18:52:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 18:52:24] Production.INFO: ==842== Releasing lock... [2025-03-29 18:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 18:52:24] Production.INFO: 47.5 MB #Memory Used# [2025-03-29 18:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 15:53:05 [end_date_ymd] => 2025-03-29 18:53:05 [RateCDR] => 1 ) [2025-03-29 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-29 15:53:05' and `end` < '2025-03-29 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-29 18:53:18] Production.INFO: count ==2599 [2025-03-29 18:53:18] Production.ERROR: pbx CDR StartTime 2025-03-29 15:53:05 - End Time 2025-03-29 18:53:05 [2025-03-29 18:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 18:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790797', 'tblTempUsageDetail_20' ) start [2025-03-29 18:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790797', 'tblTempUsageDetail_20' ) end [2025-03-29 18:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790797', 'tblTempVendorCDR_20' ) start [2025-03-29 18:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790797', 'tblTempVendorCDR_20' ) end [2025-03-29 18:53:18] Production.INFO: ProcessCDR(1,14790797,1,1,2) [2025-03-29 18:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 18:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 18:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 18:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 18:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790797', 'tblTempUsageDetail_20' ) start [2025-03-29 18:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790797', 'tblTempUsageDetail_20' ) end [2025-03-29 18:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 18:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 18:53:22] Production.INFO: ==947== Releasing lock... [2025-03-29 18:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 18:53:22] Production.INFO: 47.5 MB #Memory Used# [2025-03-29 18:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 15:54:05 [end_date_ymd] => 2025-03-29 18:54:05 [RateCDR] => 1 ) [2025-03-29 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-29 15:54:05' and `end` < '2025-03-29 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-29 18:54:18] Production.INFO: count ==2608 [2025-03-29 18:54:19] Production.ERROR: pbx CDR StartTime 2025-03-29 15:54:05 - End Time 2025-03-29 18:54:05 [2025-03-29 18:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790802', 'tblTempUsageDetail_20' ) start [2025-03-29 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790802', 'tblTempUsageDetail_20' ) end [2025-03-29 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790802', 'tblTempVendorCDR_20' ) start [2025-03-29 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790802', 'tblTempVendorCDR_20' ) end [2025-03-29 18:54:19] Production.INFO: ProcessCDR(1,14790802,1,1,2) [2025-03-29 18:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 18:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 18:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 18:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 18:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790802', 'tblTempUsageDetail_20' ) start [2025-03-29 18:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790802', 'tblTempUsageDetail_20' ) end [2025-03-29 18:54:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 18:54:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 18:54:23] Production.INFO: ==1049== Releasing lock... [2025-03-29 18:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 18:54:23] Production.INFO: 47.5 MB #Memory Used# [2025-03-29 18:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 15:55:06 [end_date_ymd] => 2025-03-29 18:55:06 [RateCDR] => 1 ) [2025-03-29 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-29 15:55:06' and `end` < '2025-03-29 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-29 18:55:19] Production.INFO: count ==2636 [2025-03-29 18:55:20] Production.ERROR: pbx CDR StartTime 2025-03-29 15:55:06 - End Time 2025-03-29 18:55:06 [2025-03-29 18:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790807', 'tblTempUsageDetail_20' ) start [2025-03-29 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790807', 'tblTempUsageDetail_20' ) end [2025-03-29 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790807', 'tblTempVendorCDR_20' ) start [2025-03-29 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790807', 'tblTempVendorCDR_20' ) end [2025-03-29 18:55:20] Production.INFO: ProcessCDR(1,14790807,1,1,2) [2025-03-29 18:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 18:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 18:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 18:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 18:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790807', 'tblTempUsageDetail_20' ) start [2025-03-29 18:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790807', 'tblTempUsageDetail_20' ) end [2025-03-29 18:55:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 18:55:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 18:55:23] Production.INFO: ==1155== Releasing lock... [2025-03-29 18:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 18:55:23] Production.INFO: 47.75 MB #Memory Used# [2025-03-29 18:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 15:56:05 [end_date_ymd] => 2025-03-29 18:56:05 [RateCDR] => 1 ) [2025-03-29 18:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 15:56:05' and `end` < '2025-03-29 18:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 18:56:18] Production.INFO: count ==2633 [2025-03-29 18:56:19] Production.ERROR: pbx CDR StartTime 2025-03-29 15:56:05 - End Time 2025-03-29 18:56:05 [2025-03-29 18:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790812', 'tblTempUsageDetail_20' ) start [2025-03-29 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790812', 'tblTempUsageDetail_20' ) end [2025-03-29 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790812', 'tblTempVendorCDR_20' ) start [2025-03-29 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790812', 'tblTempVendorCDR_20' ) end [2025-03-29 18:56:19] Production.INFO: ProcessCDR(1,14790812,1,1,2) [2025-03-29 18:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 18:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 18:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 18:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 18:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790812', 'tblTempUsageDetail_20' ) start [2025-03-29 18:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790812', 'tblTempUsageDetail_20' ) end [2025-03-29 18:56:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 18:56:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 18:56:23] Production.INFO: ==1264== Releasing lock... [2025-03-29 18:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 18:56:23] Production.INFO: 47.75 MB #Memory Used# [2025-03-29 18:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 15:57:06 [end_date_ymd] => 2025-03-29 18:57:06 [RateCDR] => 1 ) [2025-03-29 18: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-29 15:57:06' and `end` < '2025-03-29 18: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-29 18:57:18] Production.INFO: count ==2641 [2025-03-29 18:57:19] Production.ERROR: pbx CDR StartTime 2025-03-29 15:57:06 - End Time 2025-03-29 18:57:06 [2025-03-29 18:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790817', 'tblTempUsageDetail_20' ) start [2025-03-29 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790817', 'tblTempUsageDetail_20' ) end [2025-03-29 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790817', 'tblTempVendorCDR_20' ) start [2025-03-29 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790817', 'tblTempVendorCDR_20' ) end [2025-03-29 18:57:19] Production.INFO: ProcessCDR(1,14790817,1,1,2) [2025-03-29 18:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 18:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 18:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 18:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 18:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790817', 'tblTempUsageDetail_20' ) start [2025-03-29 18:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790817', 'tblTempUsageDetail_20' ) end [2025-03-29 18:57:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 18:57:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 18:57:24] Production.INFO: ==1364== Releasing lock... [2025-03-29 18:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 18:57:24] Production.INFO: 47.75 MB #Memory Used# [2025-03-29 18:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 15:58:06 [end_date_ymd] => 2025-03-29 18:58:06 [RateCDR] => 1 ) [2025-03-29 18:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 15:58:06' and `end` < '2025-03-29 18:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 18:58:19] Production.INFO: count ==2650 [2025-03-29 18:58:19] Production.ERROR: pbx CDR StartTime 2025-03-29 15:58:06 - End Time 2025-03-29 18:58:06 [2025-03-29 18:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790822', 'tblTempUsageDetail_20' ) start [2025-03-29 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790822', 'tblTempUsageDetail_20' ) end [2025-03-29 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790822', 'tblTempVendorCDR_20' ) start [2025-03-29 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790822', 'tblTempVendorCDR_20' ) end [2025-03-29 18:58:19] Production.INFO: ProcessCDR(1,14790822,1,1,2) [2025-03-29 18:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 18:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 18:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 18:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 18:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790822', 'tblTempUsageDetail_20' ) start [2025-03-29 18:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790822', 'tblTempUsageDetail_20' ) end [2025-03-29 18:58:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 18:58:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 18:58:24] Production.INFO: ==1474== Releasing lock... [2025-03-29 18:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 18:58:24] Production.INFO: 48 MB #Memory Used# [2025-03-29 18:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 15:59:05 [end_date_ymd] => 2025-03-29 18:59:05 [RateCDR] => 1 ) [2025-03-29 18:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 15:59:05' and `end` < '2025-03-29 18:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 18:59:18] Production.INFO: count ==2658 [2025-03-29 18:59:19] Production.ERROR: pbx CDR StartTime 2025-03-29 15:59:05 - End Time 2025-03-29 18:59:05 [2025-03-29 18:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790827', 'tblTempUsageDetail_20' ) start [2025-03-29 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790827', 'tblTempUsageDetail_20' ) end [2025-03-29 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790827', 'tblTempVendorCDR_20' ) start [2025-03-29 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790827', 'tblTempVendorCDR_20' ) end [2025-03-29 18:59:19] Production.INFO: ProcessCDR(1,14790827,1,1,2) [2025-03-29 18:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 18:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 18:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 18:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 18:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790827', 'tblTempUsageDetail_20' ) start [2025-03-29 18:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790827', 'tblTempUsageDetail_20' ) end [2025-03-29 18:59:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 18:59:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 18:59:25] Production.INFO: ==1649== Releasing lock... [2025-03-29 18:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 18:59:25] Production.INFO: 47.75 MB #Memory Used# [2025-03-29 19:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 16:00:06 [end_date_ymd] => 2025-03-29 19:00:06 [RateCDR] => 1 ) [2025-03-29 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-29 16:00:06' and `end` < '2025-03-29 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-29 19:00:19] Production.INFO: count ==2661 [2025-03-29 19:00:20] Production.ERROR: pbx CDR StartTime 2025-03-29 16:00:06 - End Time 2025-03-29 19:00:06 [2025-03-29 19:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790833', 'tblTempUsageDetail_20' ) start [2025-03-29 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790833', 'tblTempUsageDetail_20' ) end [2025-03-29 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790833', 'tblTempVendorCDR_20' ) start [2025-03-29 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790833', 'tblTempVendorCDR_20' ) end [2025-03-29 19:00:20] Production.INFO: ProcessCDR(1,14790833,1,1,2) [2025-03-29 19:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790833', 'tblTempUsageDetail_20' ) start [2025-03-29 19:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790833', 'tblTempUsageDetail_20' ) end [2025-03-29 19:00:25] Production.ERROR: pbx prc_insertCDR start [2025-03-29 19:00:25] Production.ERROR: pbx prc_insertCDR end [2025-03-29 19:00:25] Production.INFO: ==1735== Releasing lock... [2025-03-29 19:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 19:00:25] Production.INFO: 48 MB #Memory Used# [2025-03-29 19:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 16:01:05 [end_date_ymd] => 2025-03-29 19:01:05 [RateCDR] => 1 ) [2025-03-29 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-29 16:01:05' and `end` < '2025-03-29 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-29 19:01:18] Production.INFO: count ==2682 [2025-03-29 19:01:19] Production.ERROR: pbx CDR StartTime 2025-03-29 16:01:05 - End Time 2025-03-29 19:01:05 [2025-03-29 19:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790838', 'tblTempUsageDetail_20' ) start [2025-03-29 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790838', 'tblTempUsageDetail_20' ) end [2025-03-29 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790838', 'tblTempVendorCDR_20' ) start [2025-03-29 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790838', 'tblTempVendorCDR_20' ) end [2025-03-29 19:01:19] Production.INFO: ProcessCDR(1,14790838,1,1,2) [2025-03-29 19:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790838', 'tblTempUsageDetail_20' ) start [2025-03-29 19:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790838', 'tblTempUsageDetail_20' ) end [2025-03-29 19:01:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 19:01:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 19:01:24] Production.INFO: ==1853== Releasing lock... [2025-03-29 19:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 19:01:24] Production.INFO: 48.75 MB #Memory Used# [2025-03-29 19:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 16:02:05 [end_date_ymd] => 2025-03-29 19:02:05 [RateCDR] => 1 ) [2025-03-29 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-29 16:02:05' and `end` < '2025-03-29 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-29 19:02:18] Production.INFO: count ==2688 [2025-03-29 19:02:19] Production.ERROR: pbx CDR StartTime 2025-03-29 16:02:05 - End Time 2025-03-29 19:02:05 [2025-03-29 19:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790843', 'tblTempUsageDetail_20' ) start [2025-03-29 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790843', 'tblTempUsageDetail_20' ) end [2025-03-29 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790843', 'tblTempVendorCDR_20' ) start [2025-03-29 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790843', 'tblTempVendorCDR_20' ) end [2025-03-29 19:02:19] Production.INFO: ProcessCDR(1,14790843,1,1,2) [2025-03-29 19:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790843', 'tblTempUsageDetail_20' ) start [2025-03-29 19:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790843', 'tblTempUsageDetail_20' ) end [2025-03-29 19:02:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 19:02:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 19:02:24] Production.INFO: ==2044== Releasing lock... [2025-03-29 19:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 19:02:24] Production.INFO: 48.25 MB #Memory Used# [2025-03-29 19:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 16:03:06 [end_date_ymd] => 2025-03-29 19:03:06 [RateCDR] => 1 ) [2025-03-29 19: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-29 16:03:06' and `end` < '2025-03-29 19: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-29 19:03:19] Production.INFO: count ==2696 [2025-03-29 19:03:20] Production.ERROR: pbx CDR StartTime 2025-03-29 16:03:06 - End Time 2025-03-29 19:03:06 [2025-03-29 19:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790848', 'tblTempUsageDetail_20' ) start [2025-03-29 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790848', 'tblTempUsageDetail_20' ) end [2025-03-29 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790848', 'tblTempVendorCDR_20' ) start [2025-03-29 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790848', 'tblTempVendorCDR_20' ) end [2025-03-29 19:03:20] Production.INFO: ProcessCDR(1,14790848,1,1,2) [2025-03-29 19:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790848', 'tblTempUsageDetail_20' ) start [2025-03-29 19:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790848', 'tblTempUsageDetail_20' ) end [2025-03-29 19:03:25] Production.ERROR: pbx prc_insertCDR start [2025-03-29 19:03:25] Production.ERROR: pbx prc_insertCDR end [2025-03-29 19:03:25] Production.INFO: ==2151== Releasing lock... [2025-03-29 19:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 19:03:25] Production.INFO: 48.25 MB #Memory Used# [2025-03-29 19:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 16:04:05 [end_date_ymd] => 2025-03-29 19:04:05 [RateCDR] => 1 ) [2025-03-29 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-29 16:04:05' and `end` < '2025-03-29 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-29 19:04:18] Production.INFO: count ==2691 [2025-03-29 19:04:19] Production.ERROR: pbx CDR StartTime 2025-03-29 16:04:05 - End Time 2025-03-29 19:04:05 [2025-03-29 19:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790853', 'tblTempUsageDetail_20' ) start [2025-03-29 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790853', 'tblTempUsageDetail_20' ) end [2025-03-29 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790853', 'tblTempVendorCDR_20' ) start [2025-03-29 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790853', 'tblTempVendorCDR_20' ) end [2025-03-29 19:04:19] Production.INFO: ProcessCDR(1,14790853,1,1,2) [2025-03-29 19:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790853', 'tblTempUsageDetail_20' ) start [2025-03-29 19:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790853', 'tblTempUsageDetail_20' ) end [2025-03-29 19:04:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 19:04:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 19:04:24] Production.INFO: ==2258== Releasing lock... [2025-03-29 19:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 19:04:24] Production.INFO: 48.25 MB #Memory Used# [2025-03-29 19:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 16:05:06 [end_date_ymd] => 2025-03-29 19:05:06 [RateCDR] => 1 ) [2025-03-29 19: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-29 16:05:06' and `end` < '2025-03-29 19: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-29 19:05:19] Production.INFO: count ==2691 [2025-03-29 19:05:20] Production.ERROR: pbx CDR StartTime 2025-03-29 16:05:06 - End Time 2025-03-29 19:05:06 [2025-03-29 19:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790858', 'tblTempUsageDetail_20' ) start [2025-03-29 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790858', 'tblTempUsageDetail_20' ) end [2025-03-29 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790858', 'tblTempVendorCDR_20' ) start [2025-03-29 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790858', 'tblTempVendorCDR_20' ) end [2025-03-29 19:05:20] Production.INFO: ProcessCDR(1,14790858,1,1,2) [2025-03-29 19:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790858', 'tblTempUsageDetail_20' ) start [2025-03-29 19:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790858', 'tblTempUsageDetail_20' ) end [2025-03-29 19:05:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 19:05:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 19:05:23] Production.INFO: ==2452== Releasing lock... [2025-03-29 19:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 19:05:23] Production.INFO: 48.25 MB #Memory Used# [2025-03-29 19:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 16:06:05 [end_date_ymd] => 2025-03-29 19:06:05 [RateCDR] => 1 ) [2025-03-29 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-29 16:06:05' and `end` < '2025-03-29 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-29 19:06:18] Production.INFO: count ==2686 [2025-03-29 19:06:19] Production.ERROR: pbx CDR StartTime 2025-03-29 16:06:05 - End Time 2025-03-29 19:06:05 [2025-03-29 19:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790863', 'tblTempUsageDetail_20' ) start [2025-03-29 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790863', 'tblTempUsageDetail_20' ) end [2025-03-29 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790863', 'tblTempVendorCDR_20' ) start [2025-03-29 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790863', 'tblTempVendorCDR_20' ) end [2025-03-29 19:06:19] Production.INFO: ProcessCDR(1,14790863,1,1,2) [2025-03-29 19:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790863', 'tblTempUsageDetail_20' ) start [2025-03-29 19:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790863', 'tblTempUsageDetail_20' ) end [2025-03-29 19:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 19:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 19:06:22] Production.INFO: ==2556== Releasing lock... [2025-03-29 19:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 19:06:22] Production.INFO: 48.25 MB #Memory Used# [2025-03-29 19:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 16:07:06 [end_date_ymd] => 2025-03-29 19:07:06 [RateCDR] => 1 ) [2025-03-29 19: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-29 16:07:06' and `end` < '2025-03-29 19: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-29 19:07:19] Production.INFO: count ==2686 [2025-03-29 19:07:19] Production.ERROR: pbx CDR StartTime 2025-03-29 16:07:06 - End Time 2025-03-29 19:07:06 [2025-03-29 19:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790868', 'tblTempUsageDetail_20' ) start [2025-03-29 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790868', 'tblTempUsageDetail_20' ) end [2025-03-29 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790868', 'tblTempVendorCDR_20' ) start [2025-03-29 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790868', 'tblTempVendorCDR_20' ) end [2025-03-29 19:07:19] Production.INFO: ProcessCDR(1,14790868,1,1,2) [2025-03-29 19:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790868', 'tblTempUsageDetail_20' ) start [2025-03-29 19:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790868', 'tblTempUsageDetail_20' ) end [2025-03-29 19:07:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 19:07:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 19:07:23] Production.INFO: ==2665== Releasing lock... [2025-03-29 19:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 19:07:23] Production.INFO: 48.25 MB #Memory Used# [2025-03-29 19:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 16:08:05 [end_date_ymd] => 2025-03-29 19:08:05 [RateCDR] => 1 ) [2025-03-29 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-29 16:08:05' and `end` < '2025-03-29 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-29 19:08:18] Production.INFO: count ==2689 [2025-03-29 19:08:19] Production.ERROR: pbx CDR StartTime 2025-03-29 16:08:05 - End Time 2025-03-29 19:08:05 [2025-03-29 19:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790873', 'tblTempUsageDetail_20' ) start [2025-03-29 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790873', 'tblTempUsageDetail_20' ) end [2025-03-29 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790873', 'tblTempVendorCDR_20' ) start [2025-03-29 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790873', 'tblTempVendorCDR_20' ) end [2025-03-29 19:08:19] Production.INFO: ProcessCDR(1,14790873,1,1,2) [2025-03-29 19:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790873', 'tblTempUsageDetail_20' ) start [2025-03-29 19:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790873', 'tblTempUsageDetail_20' ) end [2025-03-29 19:08:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 19:08:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 19:08:22] Production.INFO: ==2776== Releasing lock... [2025-03-29 19:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 19:08:22] Production.INFO: 48.75 MB #Memory Used# [2025-03-29 19:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 16:09:05 [end_date_ymd] => 2025-03-29 19:09:05 [RateCDR] => 1 ) [2025-03-29 19:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 16:09:05' and `end` < '2025-03-29 19:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 19:09:18] Production.INFO: count ==2675 [2025-03-29 19:09:19] Production.ERROR: pbx CDR StartTime 2025-03-29 16:09:05 - End Time 2025-03-29 19:09:05 [2025-03-29 19:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790878', 'tblTempUsageDetail_20' ) start [2025-03-29 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790878', 'tblTempUsageDetail_20' ) end [2025-03-29 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790878', 'tblTempVendorCDR_20' ) start [2025-03-29 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790878', 'tblTempVendorCDR_20' ) end [2025-03-29 19:09:19] Production.INFO: ProcessCDR(1,14790878,1,1,2) [2025-03-29 19:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790878', 'tblTempUsageDetail_20' ) start [2025-03-29 19:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790878', 'tblTempUsageDetail_20' ) end [2025-03-29 19:09:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 19:09:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 19:09:22] Production.INFO: ==2956== Releasing lock... [2025-03-29 19:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 19:09:22] Production.INFO: 48 MB #Memory Used# [2025-03-29 19:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 16:10:06 [end_date_ymd] => 2025-03-29 19:10:06 [RateCDR] => 1 ) [2025-03-29 19:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 16:10:06' and `end` < '2025-03-29 19:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 19:10:19] Production.INFO: count ==2676 [2025-03-29 19:10:20] Production.ERROR: pbx CDR StartTime 2025-03-29 16:10:06 - End Time 2025-03-29 19:10:06 [2025-03-29 19:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790884', 'tblTempUsageDetail_20' ) start [2025-03-29 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790884', 'tblTempUsageDetail_20' ) end [2025-03-29 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790884', 'tblTempVendorCDR_20' ) start [2025-03-29 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790884', 'tblTempVendorCDR_20' ) end [2025-03-29 19:10:20] Production.INFO: ProcessCDR(1,14790884,1,1,2) [2025-03-29 19:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790884', 'tblTempUsageDetail_20' ) start [2025-03-29 19:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790884', 'tblTempUsageDetail_20' ) end [2025-03-29 19:10:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 19:10:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 19:10:23] Production.INFO: ==3064== Releasing lock... [2025-03-29 19:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 19:10:23] Production.INFO: 48.25 MB #Memory Used# [2025-03-29 19:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 16:11:06 [end_date_ymd] => 2025-03-29 19:11:06 [RateCDR] => 1 ) [2025-03-29 19:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 16:11:06' and `end` < '2025-03-29 19:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 19:11:18] Production.INFO: count ==2675 [2025-03-29 19:11:19] Production.ERROR: pbx CDR StartTime 2025-03-29 16:11:06 - End Time 2025-03-29 19:11:06 [2025-03-29 19:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790889', 'tblTempUsageDetail_20' ) start [2025-03-29 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790889', 'tblTempUsageDetail_20' ) end [2025-03-29 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790889', 'tblTempVendorCDR_20' ) start [2025-03-29 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790889', 'tblTempVendorCDR_20' ) end [2025-03-29 19:11:19] Production.INFO: ProcessCDR(1,14790889,1,1,2) [2025-03-29 19:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790889', 'tblTempUsageDetail_20' ) start [2025-03-29 19:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790889', 'tblTempUsageDetail_20' ) end [2025-03-29 19:11:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 19:11:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 19:11:23] Production.INFO: ==3175== Releasing lock... [2025-03-29 19:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 19:11:23] Production.INFO: 48 MB #Memory Used# [2025-03-29 19:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 16:12:05 [end_date_ymd] => 2025-03-29 19:12:05 [RateCDR] => 1 ) [2025-03-29 19:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 16:12:05' and `end` < '2025-03-29 19:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 19:12:18] Production.INFO: count ==2683 [2025-03-29 19:12:19] Production.ERROR: pbx CDR StartTime 2025-03-29 16:12:05 - End Time 2025-03-29 19:12:05 [2025-03-29 19:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790894', 'tblTempUsageDetail_20' ) start [2025-03-29 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790894', 'tblTempUsageDetail_20' ) end [2025-03-29 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790894', 'tblTempVendorCDR_20' ) start [2025-03-29 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790894', 'tblTempVendorCDR_20' ) end [2025-03-29 19:12:19] Production.INFO: ProcessCDR(1,14790894,1,1,2) [2025-03-29 19:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790894', 'tblTempUsageDetail_20' ) start [2025-03-29 19:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790894', 'tblTempUsageDetail_20' ) end [2025-03-29 19:12:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 19:12:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 19:12:24] Production.INFO: ==3358== Releasing lock... [2025-03-29 19:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 19:12:24] Production.INFO: 48.25 MB #Memory Used# [2025-03-29 19:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 16:13:06 [end_date_ymd] => 2025-03-29 19:13:06 [RateCDR] => 1 ) [2025-03-29 19:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 16:13:06' and `end` < '2025-03-29 19:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 19:13:18] Production.INFO: count ==2678 [2025-03-29 19:13:19] Production.ERROR: pbx CDR StartTime 2025-03-29 16:13:06 - End Time 2025-03-29 19:13:06 [2025-03-29 19:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790899', 'tblTempUsageDetail_20' ) start [2025-03-29 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790899', 'tblTempUsageDetail_20' ) end [2025-03-29 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790899', 'tblTempVendorCDR_20' ) start [2025-03-29 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790899', 'tblTempVendorCDR_20' ) end [2025-03-29 19:13:19] Production.INFO: ProcessCDR(1,14790899,1,1,2) [2025-03-29 19:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790899', 'tblTempUsageDetail_20' ) start [2025-03-29 19:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790899', 'tblTempUsageDetail_20' ) end [2025-03-29 19:13:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 19:13:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 19:13:24] Production.INFO: ==3466== Releasing lock... [2025-03-29 19:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 19:13:24] Production.INFO: 48.25 MB #Memory Used# [2025-03-29 19:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 16:14:06 [end_date_ymd] => 2025-03-29 19:14:06 [RateCDR] => 1 ) [2025-03-29 19:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 16:14:06' and `end` < '2025-03-29 19:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 19:14:19] Production.INFO: count ==2667 [2025-03-29 19:14:19] Production.ERROR: pbx CDR StartTime 2025-03-29 16:14:06 - End Time 2025-03-29 19:14:06 [2025-03-29 19:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790904', 'tblTempUsageDetail_20' ) start [2025-03-29 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790904', 'tblTempUsageDetail_20' ) end [2025-03-29 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790904', 'tblTempVendorCDR_20' ) start [2025-03-29 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790904', 'tblTempVendorCDR_20' ) end [2025-03-29 19:14:19] Production.INFO: ProcessCDR(1,14790904,1,1,2) [2025-03-29 19:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790904', 'tblTempUsageDetail_20' ) start [2025-03-29 19:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790904', 'tblTempUsageDetail_20' ) end [2025-03-29 19:14:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 19:14:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 19:14:24] Production.INFO: ==3613== Releasing lock... [2025-03-29 19:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 19:14:24] Production.INFO: 48 MB #Memory Used# [2025-03-29 19:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 16:15:05 [end_date_ymd] => 2025-03-29 19:15:05 [RateCDR] => 1 ) [2025-03-29 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-29 16:15:05' and `end` < '2025-03-29 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-29 19:15:18] Production.INFO: count ==2655 [2025-03-29 19:15:19] Production.ERROR: pbx CDR StartTime 2025-03-29 16:15:05 - End Time 2025-03-29 19:15:05 [2025-03-29 19:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790909', 'tblTempUsageDetail_20' ) start [2025-03-29 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790909', 'tblTempUsageDetail_20' ) end [2025-03-29 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790909', 'tblTempVendorCDR_20' ) start [2025-03-29 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790909', 'tblTempVendorCDR_20' ) end [2025-03-29 19:15:19] Production.INFO: ProcessCDR(1,14790909,1,1,2) [2025-03-29 19:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790909', 'tblTempUsageDetail_20' ) start [2025-03-29 19:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790909', 'tblTempUsageDetail_20' ) end [2025-03-29 19:15:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 19:15:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 19:15:22] Production.INFO: ==3727== Releasing lock... [2025-03-29 19:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 19:15:22] Production.INFO: 48 MB #Memory Used# [2025-03-29 19:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 16:16:06 [end_date_ymd] => 2025-03-29 19:16:06 [RateCDR] => 1 ) [2025-03-29 19: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-29 16:16:06' and `end` < '2025-03-29 19: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-29 19:16:19] Production.INFO: count ==2671 [2025-03-29 19:16:19] Production.ERROR: pbx CDR StartTime 2025-03-29 16:16:06 - End Time 2025-03-29 19:16:06 [2025-03-29 19:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790914', 'tblTempUsageDetail_20' ) start [2025-03-29 19:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790914', 'tblTempUsageDetail_20' ) end [2025-03-29 19:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790914', 'tblTempVendorCDR_20' ) start [2025-03-29 19:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790914', 'tblTempVendorCDR_20' ) end [2025-03-29 19:16:20] Production.INFO: ProcessCDR(1,14790914,1,1,2) [2025-03-29 19:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790914', 'tblTempUsageDetail_20' ) start [2025-03-29 19:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790914', 'tblTempUsageDetail_20' ) end [2025-03-29 19:16:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 19:16:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 19:16:24] Production.INFO: ==3898== Releasing lock... [2025-03-29 19:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 19:16:24] Production.INFO: 48 MB #Memory Used# [2025-03-29 19:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 16:17:05 [end_date_ymd] => 2025-03-29 19:17:05 [RateCDR] => 1 ) [2025-03-29 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-29 16:17:05' and `end` < '2025-03-29 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-29 19:17:18] Production.INFO: count ==2686 [2025-03-29 19:17:19] Production.ERROR: pbx CDR StartTime 2025-03-29 16:17:05 - End Time 2025-03-29 19:17:05 [2025-03-29 19:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790919', 'tblTempUsageDetail_20' ) start [2025-03-29 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790919', 'tblTempUsageDetail_20' ) end [2025-03-29 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790919', 'tblTempVendorCDR_20' ) start [2025-03-29 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790919', 'tblTempVendorCDR_20' ) end [2025-03-29 19:17:19] Production.INFO: ProcessCDR(1,14790919,1,1,2) [2025-03-29 19:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790919', 'tblTempUsageDetail_20' ) start [2025-03-29 19:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790919', 'tblTempUsageDetail_20' ) end [2025-03-29 19:17:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 19:17:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 19:17:23] Production.INFO: ==4008== Releasing lock... [2025-03-29 19:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 19:17:23] Production.INFO: 48.25 MB #Memory Used# [2025-03-29 19:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 16:18:06 [end_date_ymd] => 2025-03-29 19:18:06 [RateCDR] => 1 ) [2025-03-29 19: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-29 16:18:06' and `end` < '2025-03-29 19: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-29 19:18:19] Production.INFO: count ==2687 [2025-03-29 19:18:19] Production.ERROR: pbx CDR StartTime 2025-03-29 16:18:06 - End Time 2025-03-29 19:18:06 [2025-03-29 19:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790924', 'tblTempUsageDetail_20' ) start [2025-03-29 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790924', 'tblTempUsageDetail_20' ) end [2025-03-29 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790924', 'tblTempVendorCDR_20' ) start [2025-03-29 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790924', 'tblTempVendorCDR_20' ) end [2025-03-29 19:18:19] Production.INFO: ProcessCDR(1,14790924,1,1,2) [2025-03-29 19:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790924', 'tblTempUsageDetail_20' ) start [2025-03-29 19:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790924', 'tblTempUsageDetail_20' ) end [2025-03-29 19:18:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 19:18:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 19:18:23] Production.INFO: ==4115== Releasing lock... [2025-03-29 19:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 19:18:23] Production.INFO: 48.25 MB #Memory Used# [2025-03-29 19:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 16:19:05 [end_date_ymd] => 2025-03-29 19:19:05 [RateCDR] => 1 ) [2025-03-29 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-29 16:19:05' and `end` < '2025-03-29 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-29 19:19:18] Production.INFO: count ==2693 [2025-03-29 19:19:19] Production.ERROR: pbx CDR StartTime 2025-03-29 16:19:05 - End Time 2025-03-29 19:19:05 [2025-03-29 19:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790929', 'tblTempUsageDetail_20' ) start [2025-03-29 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790929', 'tblTempUsageDetail_20' ) end [2025-03-29 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790929', 'tblTempVendorCDR_20' ) start [2025-03-29 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790929', 'tblTempVendorCDR_20' ) end [2025-03-29 19:19:19] Production.INFO: ProcessCDR(1,14790929,1,1,2) [2025-03-29 19:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790929', 'tblTempUsageDetail_20' ) start [2025-03-29 19:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790929', 'tblTempUsageDetail_20' ) end [2025-03-29 19:19:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 19:19:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 19:19:23] Production.INFO: ==4218== Releasing lock... [2025-03-29 19:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 19:19:23] Production.INFO: 48.25 MB #Memory Used# [2025-03-29 19:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 16:20:07 [end_date_ymd] => 2025-03-29 19:20:07 [RateCDR] => 1 ) [2025-03-29 19:20:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 16:20:07' and `end` < '2025-03-29 19:20:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 19:20:20] Production.INFO: count ==2689 [2025-03-29 19:20:21] Production.ERROR: pbx CDR StartTime 2025-03-29 16:20:07 - End Time 2025-03-29 19:20:07 [2025-03-29 19:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 19:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790935', 'tblTempUsageDetail_20' ) start [2025-03-29 19:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790935', 'tblTempUsageDetail_20' ) end [2025-03-29 19:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790935', 'tblTempVendorCDR_20' ) start [2025-03-29 19:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790935', 'tblTempVendorCDR_20' ) end [2025-03-29 19:20:21] Production.INFO: ProcessCDR(1,14790935,1,1,2) [2025-03-29 19:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790935', 'tblTempUsageDetail_20' ) start [2025-03-29 19:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790935', 'tblTempUsageDetail_20' ) end [2025-03-29 19:20:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 19:20:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 19:20:24] Production.INFO: ==4327== Releasing lock... [2025-03-29 19:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 19:20:24] Production.INFO: 48.25 MB #Memory Used# [2025-03-29 19:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 16:21:05 [end_date_ymd] => 2025-03-29 19:21:05 [RateCDR] => 1 ) [2025-03-29 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-29 16:21:05' and `end` < '2025-03-29 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-29 19:21:18] Production.INFO: count ==2706 [2025-03-29 19:21:19] Production.ERROR: pbx CDR StartTime 2025-03-29 16:21:05 - End Time 2025-03-29 19:21:05 [2025-03-29 19:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790940', 'tblTempUsageDetail_20' ) start [2025-03-29 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790940', 'tblTempUsageDetail_20' ) end [2025-03-29 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790940', 'tblTempVendorCDR_20' ) start [2025-03-29 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790940', 'tblTempVendorCDR_20' ) end [2025-03-29 19:21:19] Production.INFO: ProcessCDR(1,14790940,1,1,2) [2025-03-29 19:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790940', 'tblTempUsageDetail_20' ) start [2025-03-29 19:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790940', 'tblTempUsageDetail_20' ) end [2025-03-29 19:21:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 19:21:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 19:21:24] Production.INFO: ==4433== Releasing lock... [2025-03-29 19:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 19:21:24] Production.INFO: 48.25 MB #Memory Used# [2025-03-29 19:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 16:22:05 [end_date_ymd] => 2025-03-29 19:22:05 [RateCDR] => 1 ) [2025-03-29 19:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 16:22:05' and `end` < '2025-03-29 19:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 19:22:18] Production.INFO: count ==2705 [2025-03-29 19:22:19] Production.ERROR: pbx CDR StartTime 2025-03-29 16:22:05 - End Time 2025-03-29 19:22:05 [2025-03-29 19:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790945', 'tblTempUsageDetail_20' ) start [2025-03-29 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790945', 'tblTempUsageDetail_20' ) end [2025-03-29 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790945', 'tblTempVendorCDR_20' ) start [2025-03-29 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790945', 'tblTempVendorCDR_20' ) end [2025-03-29 19:22:19] Production.INFO: ProcessCDR(1,14790945,1,1,2) [2025-03-29 19:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790945', 'tblTempUsageDetail_20' ) start [2025-03-29 19:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790945', 'tblTempUsageDetail_20' ) end [2025-03-29 19:22:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 19:22:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 19:22:24] Production.INFO: ==4540== Releasing lock... [2025-03-29 19:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 19:22:24] Production.INFO: 48.25 MB #Memory Used# [2025-03-29 19:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 16:23:05 [end_date_ymd] => 2025-03-29 19:23:05 [RateCDR] => 1 ) [2025-03-29 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-29 16:23:05' and `end` < '2025-03-29 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-29 19:23:18] Production.INFO: count ==2712 [2025-03-29 19:23:19] Production.ERROR: pbx CDR StartTime 2025-03-29 16:23:05 - End Time 2025-03-29 19:23:05 [2025-03-29 19:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790950', 'tblTempUsageDetail_20' ) start [2025-03-29 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790950', 'tblTempUsageDetail_20' ) end [2025-03-29 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790950', 'tblTempVendorCDR_20' ) start [2025-03-29 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790950', 'tblTempVendorCDR_20' ) end [2025-03-29 19:23:19] Production.INFO: ProcessCDR(1,14790950,1,1,2) [2025-03-29 19:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790950', 'tblTempUsageDetail_20' ) start [2025-03-29 19:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790950', 'tblTempUsageDetail_20' ) end [2025-03-29 19:23:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 19:23:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 19:23:24] Production.INFO: ==4653== Releasing lock... [2025-03-29 19:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 19:23:24] Production.INFO: 49.25 MB #Memory Used# [2025-03-29 19:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 16:24:06 [end_date_ymd] => 2025-03-29 19:24:06 [RateCDR] => 1 ) [2025-03-29 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-29 16:24:06' and `end` < '2025-03-29 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-29 19:24:18] Production.INFO: count ==2713 [2025-03-29 19:24:19] Production.ERROR: pbx CDR StartTime 2025-03-29 16:24:06 - End Time 2025-03-29 19:24:06 [2025-03-29 19:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790955', 'tblTempUsageDetail_20' ) start [2025-03-29 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790955', 'tblTempUsageDetail_20' ) end [2025-03-29 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790955', 'tblTempVendorCDR_20' ) start [2025-03-29 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790955', 'tblTempVendorCDR_20' ) end [2025-03-29 19:24:19] Production.INFO: ProcessCDR(1,14790955,1,1,2) [2025-03-29 19:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790955', 'tblTempUsageDetail_20' ) start [2025-03-29 19:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790955', 'tblTempUsageDetail_20' ) end [2025-03-29 19:24:25] Production.ERROR: pbx prc_insertCDR start [2025-03-29 19:24:25] Production.ERROR: pbx prc_insertCDR end [2025-03-29 19:24:25] Production.INFO: ==4774== Releasing lock... [2025-03-29 19:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 19:24:25] Production.INFO: 48.5 MB #Memory Used# [2025-03-29 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 16:25:05 [end_date_ymd] => 2025-03-29 19:25:05 [RateCDR] => 1 ) [2025-03-29 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-29 16:25:05' and `end` < '2025-03-29 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-29 19:25:18] Production.INFO: count ==2720 [2025-03-29 19:25:19] Production.ERROR: pbx CDR StartTime 2025-03-29 16:25:05 - End Time 2025-03-29 19:25:05 [2025-03-29 19:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790960', 'tblTempUsageDetail_20' ) start [2025-03-29 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790960', 'tblTempUsageDetail_20' ) end [2025-03-29 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790960', 'tblTempVendorCDR_20' ) start [2025-03-29 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790960', 'tblTempVendorCDR_20' ) end [2025-03-29 19:25:19] Production.INFO: ProcessCDR(1,14790960,1,1,2) [2025-03-29 19:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790960', 'tblTempUsageDetail_20' ) start [2025-03-29 19:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790960', 'tblTempUsageDetail_20' ) end [2025-03-29 19:25:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 19:25:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 19:25:24] Production.INFO: ==4906== Releasing lock... [2025-03-29 19:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 19:25:24] Production.INFO: 48.5 MB #Memory Used# [2025-03-29 19:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 16:26:05 [end_date_ymd] => 2025-03-29 19:26:05 [RateCDR] => 1 ) [2025-03-29 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-29 16:26:05' and `end` < '2025-03-29 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-29 19:26:18] Production.INFO: count ==2721 [2025-03-29 19:26:19] Production.ERROR: pbx CDR StartTime 2025-03-29 16:26:05 - End Time 2025-03-29 19:26:05 [2025-03-29 19:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790965', 'tblTempUsageDetail_20' ) start [2025-03-29 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790965', 'tblTempUsageDetail_20' ) end [2025-03-29 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790965', 'tblTempVendorCDR_20' ) start [2025-03-29 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790965', 'tblTempVendorCDR_20' ) end [2025-03-29 19:26:19] Production.INFO: ProcessCDR(1,14790965,1,1,2) [2025-03-29 19:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790965', 'tblTempUsageDetail_20' ) start [2025-03-29 19:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790965', 'tblTempUsageDetail_20' ) end [2025-03-29 19:26:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 19:26:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 19:26:24] Production.INFO: ==5038== Releasing lock... [2025-03-29 19:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 19:26:24] Production.INFO: 48.5 MB #Memory Used# [2025-03-29 19:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 16:27:05 [end_date_ymd] => 2025-03-29 19:27:05 [RateCDR] => 1 ) [2025-03-29 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-29 16:27:05' and `end` < '2025-03-29 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-29 19:27:18] Production.INFO: count ==2731 [2025-03-29 19:27:19] Production.ERROR: pbx CDR StartTime 2025-03-29 16:27:05 - End Time 2025-03-29 19:27:05 [2025-03-29 19:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790970', 'tblTempUsageDetail_20' ) start [2025-03-29 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790970', 'tblTempUsageDetail_20' ) end [2025-03-29 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790970', 'tblTempVendorCDR_20' ) start [2025-03-29 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790970', 'tblTempVendorCDR_20' ) end [2025-03-29 19:27:19] Production.INFO: ProcessCDR(1,14790970,1,1,2) [2025-03-29 19:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790970', 'tblTempUsageDetail_20' ) start [2025-03-29 19:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790970', 'tblTempUsageDetail_20' ) end [2025-03-29 19:27:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 19:27:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 19:27:24] Production.INFO: ==5173== Releasing lock... [2025-03-29 19:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 19:27:24] Production.INFO: 48.5 MB #Memory Used# [2025-03-29 19:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 16:28:05 [end_date_ymd] => 2025-03-29 19:28:05 [RateCDR] => 1 ) [2025-03-29 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-29 16:28:05' and `end` < '2025-03-29 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-29 19:28:18] Production.INFO: count ==2733 [2025-03-29 19:28:19] Production.ERROR: pbx CDR StartTime 2025-03-29 16:28:05 - End Time 2025-03-29 19:28:05 [2025-03-29 19:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790975', 'tblTempUsageDetail_20' ) start [2025-03-29 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790975', 'tblTempUsageDetail_20' ) end [2025-03-29 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790975', 'tblTempVendorCDR_20' ) start [2025-03-29 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790975', 'tblTempVendorCDR_20' ) end [2025-03-29 19:28:19] Production.INFO: ProcessCDR(1,14790975,1,1,2) [2025-03-29 19:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790975', 'tblTempUsageDetail_20' ) start [2025-03-29 19:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790975', 'tblTempUsageDetail_20' ) end [2025-03-29 19:28:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 19:28:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 19:28:24] Production.INFO: ==5298== Releasing lock... [2025-03-29 19:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 19:28:24] Production.INFO: 48.5 MB #Memory Used# [2025-03-29 19:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 16:29:05 [end_date_ymd] => 2025-03-29 19:29:05 [RateCDR] => 1 ) [2025-03-29 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-29 16:29:05' and `end` < '2025-03-29 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-29 19:29:18] Production.INFO: count ==2710 [2025-03-29 19:29:19] Production.ERROR: pbx CDR StartTime 2025-03-29 16:29:05 - End Time 2025-03-29 19:29:05 [2025-03-29 19:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790980', 'tblTempUsageDetail_20' ) start [2025-03-29 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790980', 'tblTempUsageDetail_20' ) end [2025-03-29 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790980', 'tblTempVendorCDR_20' ) start [2025-03-29 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790980', 'tblTempVendorCDR_20' ) end [2025-03-29 19:29:19] Production.INFO: ProcessCDR(1,14790980,1,1,2) [2025-03-29 19:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790980', 'tblTempUsageDetail_20' ) start [2025-03-29 19:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790980', 'tblTempUsageDetail_20' ) end [2025-03-29 19:29:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 19:29:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 19:29:22] Production.INFO: ==5420== Releasing lock... [2025-03-29 19:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 19:29:22] Production.INFO: 48.5 MB #Memory Used# [2025-03-29 19:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 16:30:07 [end_date_ymd] => 2025-03-29 19:30:07 [RateCDR] => 1 ) [2025-03-29 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-29 16:30:07' and `end` < '2025-03-29 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-29 19:30:20] Production.INFO: count ==2693 [2025-03-29 19:30:20] Production.ERROR: pbx CDR StartTime 2025-03-29 16:30:07 - End Time 2025-03-29 19:30:07 [2025-03-29 19:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790986', 'tblTempUsageDetail_20' ) start [2025-03-29 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790986', 'tblTempUsageDetail_20' ) end [2025-03-29 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790986', 'tblTempVendorCDR_20' ) start [2025-03-29 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790986', 'tblTempVendorCDR_20' ) end [2025-03-29 19:30:20] Production.INFO: ProcessCDR(1,14790986,1,1,2) [2025-03-29 19:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790986', 'tblTempUsageDetail_20' ) start [2025-03-29 19:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790986', 'tblTempUsageDetail_20' ) end [2025-03-29 19:30:25] Production.ERROR: pbx prc_insertCDR start [2025-03-29 19:30:25] Production.ERROR: pbx prc_insertCDR end [2025-03-29 19:30:25] Production.INFO: ==5570== Releasing lock... [2025-03-29 19:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 19:30:25] Production.INFO: 48.25 MB #Memory Used# [2025-03-29 19:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 16:31:05 [end_date_ymd] => 2025-03-29 19:31:05 [RateCDR] => 1 ) [2025-03-29 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-29 16:31:05' and `end` < '2025-03-29 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-29 19:31:18] Production.INFO: count ==2692 [2025-03-29 19:31:18] Production.ERROR: pbx CDR StartTime 2025-03-29 16:31:05 - End Time 2025-03-29 19:31:05 [2025-03-29 19:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 19:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790991', 'tblTempUsageDetail_20' ) start [2025-03-29 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790991', 'tblTempUsageDetail_20' ) end [2025-03-29 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790991', 'tblTempVendorCDR_20' ) start [2025-03-29 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790991', 'tblTempVendorCDR_20' ) end [2025-03-29 19:31:19] Production.INFO: ProcessCDR(1,14790991,1,1,2) [2025-03-29 19:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790991', 'tblTempUsageDetail_20' ) start [2025-03-29 19:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790991', 'tblTempUsageDetail_20' ) end [2025-03-29 19:31:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 19:31:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 19:31:24] Production.INFO: ==5673== Releasing lock... [2025-03-29 19:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 19:31:24] Production.INFO: 48.25 MB #Memory Used# [2025-03-29 19:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 16:32:05 [end_date_ymd] => 2025-03-29 19:32:05 [RateCDR] => 1 ) [2025-03-29 19:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 16:32:05' and `end` < '2025-03-29 19:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 19:32:18] Production.INFO: count ==2693 [2025-03-29 19:32:19] Production.ERROR: pbx CDR StartTime 2025-03-29 16:32:05 - End Time 2025-03-29 19:32:05 [2025-03-29 19:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790996', 'tblTempUsageDetail_20' ) start [2025-03-29 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14790996', 'tblTempUsageDetail_20' ) end [2025-03-29 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790996', 'tblTempVendorCDR_20' ) start [2025-03-29 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14790996', 'tblTempVendorCDR_20' ) end [2025-03-29 19:32:19] Production.INFO: ProcessCDR(1,14790996,1,1,2) [2025-03-29 19:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14790996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14790996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14790996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14790996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790996', 'tblTempUsageDetail_20' ) start [2025-03-29 19:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14790996', 'tblTempUsageDetail_20' ) end [2025-03-29 19:32:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 19:32:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 19:32:24] Production.INFO: ==5770== Releasing lock... [2025-03-29 19:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 19:32:24] Production.INFO: 48.25 MB #Memory Used# [2025-03-29 19:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 16:33:05 [end_date_ymd] => 2025-03-29 19:33:05 [RateCDR] => 1 ) [2025-03-29 19:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 16:33:05' and `end` < '2025-03-29 19:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 19:33:18] Production.INFO: count ==2702 [2025-03-29 19:33:18] Production.ERROR: pbx CDR StartTime 2025-03-29 16:33:05 - End Time 2025-03-29 19:33:05 [2025-03-29 19:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791001', 'tblTempUsageDetail_20' ) start [2025-03-29 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791001', 'tblTempUsageDetail_20' ) end [2025-03-29 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791001', 'tblTempVendorCDR_20' ) start [2025-03-29 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791001', 'tblTempVendorCDR_20' ) end [2025-03-29 19:33:18] Production.INFO: ProcessCDR(1,14791001,1,1,2) [2025-03-29 19:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791001', 'tblTempUsageDetail_20' ) start [2025-03-29 19:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791001', 'tblTempUsageDetail_20' ) end [2025-03-29 19:33:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 19:33:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 19:33:23] Production.INFO: ==5871== Releasing lock... [2025-03-29 19:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 19:33:23] Production.INFO: 48.25 MB #Memory Used# [2025-03-29 19:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 16:34:06 [end_date_ymd] => 2025-03-29 19:34:06 [RateCDR] => 1 ) [2025-03-29 19:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 16:34:06' and `end` < '2025-03-29 19:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 19:34:18] Production.INFO: count ==2684 [2025-03-29 19:34:19] Production.ERROR: pbx CDR StartTime 2025-03-29 16:34:06 - End Time 2025-03-29 19:34:06 [2025-03-29 19:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791006', 'tblTempUsageDetail_20' ) start [2025-03-29 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791006', 'tblTempUsageDetail_20' ) end [2025-03-29 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791006', 'tblTempVendorCDR_20' ) start [2025-03-29 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791006', 'tblTempVendorCDR_20' ) end [2025-03-29 19:34:19] Production.INFO: ProcessCDR(1,14791006,1,1,2) [2025-03-29 19:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791006', 'tblTempUsageDetail_20' ) start [2025-03-29 19:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791006', 'tblTempUsageDetail_20' ) end [2025-03-29 19:34:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 19:34:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 19:34:24] Production.INFO: ==5975== Releasing lock... [2025-03-29 19:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 19:34:24] Production.INFO: 48.25 MB #Memory Used# [2025-03-29 19:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 16:35:06 [end_date_ymd] => 2025-03-29 19:35:06 [RateCDR] => 1 ) [2025-03-29 19:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 16:35:06' and `end` < '2025-03-29 19:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 19:35:18] Production.INFO: count ==2684 [2025-03-29 19:35:19] Production.ERROR: pbx CDR StartTime 2025-03-29 16:35:06 - End Time 2025-03-29 19:35:06 [2025-03-29 19:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791011', 'tblTempUsageDetail_20' ) start [2025-03-29 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791011', 'tblTempUsageDetail_20' ) end [2025-03-29 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791011', 'tblTempVendorCDR_20' ) start [2025-03-29 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791011', 'tblTempVendorCDR_20' ) end [2025-03-29 19:35:19] Production.INFO: ProcessCDR(1,14791011,1,1,2) [2025-03-29 19:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791011', 'tblTempUsageDetail_20' ) start [2025-03-29 19:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791011', 'tblTempUsageDetail_20' ) end [2025-03-29 19:35:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 19:35:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 19:35:24] Production.INFO: ==6076== Releasing lock... [2025-03-29 19:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 19:35:24] Production.INFO: 48.25 MB #Memory Used# [2025-03-29 19:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 16:36:05 [end_date_ymd] => 2025-03-29 19:36:05 [RateCDR] => 1 ) [2025-03-29 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-29 16:36:05' and `end` < '2025-03-29 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-29 19:36:18] Production.INFO: count ==2670 [2025-03-29 19:36:19] Production.ERROR: pbx CDR StartTime 2025-03-29 16:36:05 - End Time 2025-03-29 19:36:05 [2025-03-29 19:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791016', 'tblTempUsageDetail_20' ) start [2025-03-29 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791016', 'tblTempUsageDetail_20' ) end [2025-03-29 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791016', 'tblTempVendorCDR_20' ) start [2025-03-29 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791016', 'tblTempVendorCDR_20' ) end [2025-03-29 19:36:19] Production.INFO: ProcessCDR(1,14791016,1,1,2) [2025-03-29 19:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791016', 'tblTempUsageDetail_20' ) start [2025-03-29 19:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791016', 'tblTempUsageDetail_20' ) end [2025-03-29 19:36:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 19:36:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 19:36:22] Production.INFO: ==6201== Releasing lock... [2025-03-29 19:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 19:36:22] Production.INFO: 48 MB #Memory Used# [2025-03-29 19:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 16:37:06 [end_date_ymd] => 2025-03-29 19:37:06 [RateCDR] => 1 ) [2025-03-29 19:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 16:37:06' and `end` < '2025-03-29 19:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 19:37:19] Production.INFO: count ==2681 [2025-03-29 19:37:20] Production.ERROR: pbx CDR StartTime 2025-03-29 16:37:06 - End Time 2025-03-29 19:37:06 [2025-03-29 19:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 19:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791021', 'tblTempUsageDetail_20' ) start [2025-03-29 19:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791021', 'tblTempUsageDetail_20' ) end [2025-03-29 19:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791021', 'tblTempVendorCDR_20' ) start [2025-03-29 19:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791021', 'tblTempVendorCDR_20' ) end [2025-03-29 19:37:20] Production.INFO: ProcessCDR(1,14791021,1,1,2) [2025-03-29 19:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791021', 'tblTempUsageDetail_20' ) start [2025-03-29 19:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791021', 'tblTempUsageDetail_20' ) end [2025-03-29 19:37:25] Production.ERROR: pbx prc_insertCDR start [2025-03-29 19:37:25] Production.ERROR: pbx prc_insertCDR end [2025-03-29 19:37:25] Production.INFO: ==6337== Releasing lock... [2025-03-29 19:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 19:37:25] Production.INFO: 48.25 MB #Memory Used# [2025-03-29 19:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 16:38:05 [end_date_ymd] => 2025-03-29 19:38:05 [RateCDR] => 1 ) [2025-03-29 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-29 16:38:05' and `end` < '2025-03-29 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-29 19:38:18] Production.INFO: count ==2689 [2025-03-29 19:38:18] Production.ERROR: pbx CDR StartTime 2025-03-29 16:38:05 - End Time 2025-03-29 19:38:05 [2025-03-29 19:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 19:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791026', 'tblTempUsageDetail_20' ) start [2025-03-29 19:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791026', 'tblTempUsageDetail_20' ) end [2025-03-29 19:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791026', 'tblTempVendorCDR_20' ) start [2025-03-29 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791026', 'tblTempVendorCDR_20' ) end [2025-03-29 19:38:19] Production.INFO: ProcessCDR(1,14791026,1,1,2) [2025-03-29 19:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791026', 'tblTempUsageDetail_20' ) start [2025-03-29 19:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791026', 'tblTempUsageDetail_20' ) end [2025-03-29 19:38:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 19:38:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 19:38:24] Production.INFO: ==6463== Releasing lock... [2025-03-29 19:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 19:38:24] Production.INFO: 48.25 MB #Memory Used# [2025-03-29 19:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 16:39:06 [end_date_ymd] => 2025-03-29 19:39:06 [RateCDR] => 1 ) [2025-03-29 19: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-29 16:39:06' and `end` < '2025-03-29 19: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-29 19:39:19] Production.INFO: count ==2705 [2025-03-29 19:39:19] Production.ERROR: pbx CDR StartTime 2025-03-29 16:39:06 - End Time 2025-03-29 19:39:06 [2025-03-29 19:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791031', 'tblTempUsageDetail_20' ) start [2025-03-29 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791031', 'tblTempUsageDetail_20' ) end [2025-03-29 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791031', 'tblTempVendorCDR_20' ) start [2025-03-29 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791031', 'tblTempVendorCDR_20' ) end [2025-03-29 19:39:19] Production.INFO: ProcessCDR(1,14791031,1,1,2) [2025-03-29 19:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791031', 'tblTempUsageDetail_20' ) start [2025-03-29 19:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791031', 'tblTempUsageDetail_20' ) end [2025-03-29 19:39:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 19:39:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 19:39:23] Production.INFO: ==6564== Releasing lock... [2025-03-29 19:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 19:39:23] Production.INFO: 48.25 MB #Memory Used# [2025-03-29 19:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 16:40:06 [end_date_ymd] => 2025-03-29 19:40:06 [RateCDR] => 1 ) [2025-03-29 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-29 16:40:06' and `end` < '2025-03-29 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-29 19:40:18] Production.INFO: count ==2726 [2025-03-29 19:40:19] Production.ERROR: pbx CDR StartTime 2025-03-29 16:40:06 - End Time 2025-03-29 19:40:06 [2025-03-29 19:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791037', 'tblTempUsageDetail_20' ) start [2025-03-29 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791037', 'tblTempUsageDetail_20' ) end [2025-03-29 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791037', 'tblTempVendorCDR_20' ) start [2025-03-29 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791037', 'tblTempVendorCDR_20' ) end [2025-03-29 19:40:19] Production.INFO: ProcessCDR(1,14791037,1,1,2) [2025-03-29 19:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791037', 'tblTempUsageDetail_20' ) start [2025-03-29 19:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791037', 'tblTempUsageDetail_20' ) end [2025-03-29 19:40:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 19:40:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 19:40:24] Production.INFO: ==6667== Releasing lock... [2025-03-29 19:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 19:40:24] Production.INFO: 48.5 MB #Memory Used# [2025-03-29 19:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 16:41:05 [end_date_ymd] => 2025-03-29 19:41:05 [RateCDR] => 1 ) [2025-03-29 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-29 16:41:05' and `end` < '2025-03-29 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-29 19:41:18] Production.INFO: count ==2690 [2025-03-29 19:41:19] Production.ERROR: pbx CDR StartTime 2025-03-29 16:41:05 - End Time 2025-03-29 19:41:05 [2025-03-29 19:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791042', 'tblTempUsageDetail_20' ) start [2025-03-29 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791042', 'tblTempUsageDetail_20' ) end [2025-03-29 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791042', 'tblTempVendorCDR_20' ) start [2025-03-29 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791042', 'tblTempVendorCDR_20' ) end [2025-03-29 19:41:19] Production.INFO: ProcessCDR(1,14791042,1,1,2) [2025-03-29 19:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791042', 'tblTempUsageDetail_20' ) start [2025-03-29 19:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791042', 'tblTempUsageDetail_20' ) end [2025-03-29 19:41:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 19:41:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 19:41:24] Production.INFO: ==6772== Releasing lock... [2025-03-29 19:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 19:41:24] Production.INFO: 48.25 MB #Memory Used# [2025-03-29 19:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 16:42:06 [end_date_ymd] => 2025-03-29 19:42:06 [RateCDR] => 1 ) [2025-03-29 19:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 16:42:06' and `end` < '2025-03-29 19:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 19:42:18] Production.INFO: count ==2677 [2025-03-29 19:42:19] Production.ERROR: pbx CDR StartTime 2025-03-29 16:42:06 - End Time 2025-03-29 19:42:06 [2025-03-29 19:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791047', 'tblTempUsageDetail_20' ) start [2025-03-29 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791047', 'tblTempUsageDetail_20' ) end [2025-03-29 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791047', 'tblTempVendorCDR_20' ) start [2025-03-29 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791047', 'tblTempVendorCDR_20' ) end [2025-03-29 19:42:19] Production.INFO: ProcessCDR(1,14791047,1,1,2) [2025-03-29 19:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791047', 'tblTempUsageDetail_20' ) start [2025-03-29 19:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791047', 'tblTempUsageDetail_20' ) end [2025-03-29 19:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 19:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 19:42:22] Production.INFO: ==6855== Releasing lock... [2025-03-29 19:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 19:42:22] Production.INFO: 48.25 MB #Memory Used# [2025-03-29 19:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 16:43:05 [end_date_ymd] => 2025-03-29 19:43:05 [RateCDR] => 1 ) [2025-03-29 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-29 16:43:05' and `end` < '2025-03-29 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-29 19:43:18] Production.INFO: count ==2680 [2025-03-29 19:43:19] Production.ERROR: pbx CDR StartTime 2025-03-29 16:43:05 - End Time 2025-03-29 19:43:05 [2025-03-29 19:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791052', 'tblTempUsageDetail_20' ) start [2025-03-29 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791052', 'tblTempUsageDetail_20' ) end [2025-03-29 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791052', 'tblTempVendorCDR_20' ) start [2025-03-29 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791052', 'tblTempVendorCDR_20' ) end [2025-03-29 19:43:19] Production.INFO: ProcessCDR(1,14791052,1,1,2) [2025-03-29 19:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791052', 'tblTempUsageDetail_20' ) start [2025-03-29 19:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791052', 'tblTempUsageDetail_20' ) end [2025-03-29 19:43:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 19:43:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 19:43:23] Production.INFO: ==6931== Releasing lock... [2025-03-29 19:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 19:43:23] Production.INFO: 48.25 MB #Memory Used# [2025-03-29 19:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 16:44:05 [end_date_ymd] => 2025-03-29 19:44:05 [RateCDR] => 1 ) [2025-03-29 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-29 16:44:05' and `end` < '2025-03-29 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-29 19:44:18] Production.INFO: count ==2667 [2025-03-29 19:44:18] Production.ERROR: pbx CDR StartTime 2025-03-29 16:44:05 - End Time 2025-03-29 19:44:05 [2025-03-29 19:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791057', 'tblTempUsageDetail_20' ) start [2025-03-29 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791057', 'tblTempUsageDetail_20' ) end [2025-03-29 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791057', 'tblTempVendorCDR_20' ) start [2025-03-29 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791057', 'tblTempVendorCDR_20' ) end [2025-03-29 19:44:18] Production.INFO: ProcessCDR(1,14791057,1,1,2) [2025-03-29 19:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791057', 'tblTempUsageDetail_20' ) start [2025-03-29 19:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791057', 'tblTempUsageDetail_20' ) end [2025-03-29 19:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 19:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 19:44:22] Production.INFO: ==7012== Releasing lock... [2025-03-29 19:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 19:44:22] Production.INFO: 48 MB #Memory Used# [2025-03-29 19:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 16:45:05 [end_date_ymd] => 2025-03-29 19:45:05 [RateCDR] => 1 ) [2025-03-29 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-29 16:45:05' and `end` < '2025-03-29 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-29 19:45:18] Production.INFO: count ==2667 [2025-03-29 19:45:19] Production.ERROR: pbx CDR StartTime 2025-03-29 16:45:05 - End Time 2025-03-29 19:45:05 [2025-03-29 19:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791062', 'tblTempUsageDetail_20' ) start [2025-03-29 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791062', 'tblTempUsageDetail_20' ) end [2025-03-29 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791062', 'tblTempVendorCDR_20' ) start [2025-03-29 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791062', 'tblTempVendorCDR_20' ) end [2025-03-29 19:45:19] Production.INFO: ProcessCDR(1,14791062,1,1,2) [2025-03-29 19:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791062', 'tblTempUsageDetail_20' ) start [2025-03-29 19:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791062', 'tblTempUsageDetail_20' ) end [2025-03-29 19:45:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 19:45:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 19:45:22] Production.INFO: ==7124== Releasing lock... [2025-03-29 19:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 19:45:22] Production.INFO: 48 MB #Memory Used# [2025-03-29 19:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 16:46:05 [end_date_ymd] => 2025-03-29 19:46:05 [RateCDR] => 1 ) [2025-03-29 19:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 16:46:05' and `end` < '2025-03-29 19:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 19:46:18] Production.INFO: count ==2632 [2025-03-29 19:46:19] Production.ERROR: pbx CDR StartTime 2025-03-29 16:46:05 - End Time 2025-03-29 19:46:05 [2025-03-29 19:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791067', 'tblTempUsageDetail_20' ) start [2025-03-29 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791067', 'tblTempUsageDetail_20' ) end [2025-03-29 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791067', 'tblTempVendorCDR_20' ) start [2025-03-29 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791067', 'tblTempVendorCDR_20' ) end [2025-03-29 19:46:19] Production.INFO: ProcessCDR(1,14791067,1,1,2) [2025-03-29 19:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791067', 'tblTempUsageDetail_20' ) start [2025-03-29 19:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791067', 'tblTempUsageDetail_20' ) end [2025-03-29 19:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 19:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 19:46:22] Production.INFO: ==7199== Releasing lock... [2025-03-29 19:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 19:46:22] Production.INFO: 47.75 MB #Memory Used# [2025-03-29 19:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 16:47:06 [end_date_ymd] => 2025-03-29 19:47:06 [RateCDR] => 1 ) [2025-03-29 19:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 16:47:06' and `end` < '2025-03-29 19:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 19:47:19] Production.INFO: count ==2643 [2025-03-29 19:47:19] Production.ERROR: pbx CDR StartTime 2025-03-29 16:47:06 - End Time 2025-03-29 19:47:06 [2025-03-29 19:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791072', 'tblTempUsageDetail_20' ) start [2025-03-29 19:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791072', 'tblTempUsageDetail_20' ) end [2025-03-29 19:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791072', 'tblTempVendorCDR_20' ) start [2025-03-29 19:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791072', 'tblTempVendorCDR_20' ) end [2025-03-29 19:47:20] Production.INFO: ProcessCDR(1,14791072,1,1,2) [2025-03-29 19:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791072', 'tblTempUsageDetail_20' ) start [2025-03-29 19:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791072', 'tblTempUsageDetail_20' ) end [2025-03-29 19:47:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 19:47:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 19:47:23] Production.INFO: ==7274== Releasing lock... [2025-03-29 19:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 19:47:23] Production.INFO: 47.75 MB #Memory Used# [2025-03-29 19:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 16:48:05 [end_date_ymd] => 2025-03-29 19:48:05 [RateCDR] => 1 ) [2025-03-29 19:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 16:48:05' and `end` < '2025-03-29 19:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 19:48:18] Production.INFO: count ==2639 [2025-03-29 19:48:19] Production.ERROR: pbx CDR StartTime 2025-03-29 16:48:05 - End Time 2025-03-29 19:48:05 [2025-03-29 19:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791077', 'tblTempUsageDetail_20' ) start [2025-03-29 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791077', 'tblTempUsageDetail_20' ) end [2025-03-29 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791077', 'tblTempVendorCDR_20' ) start [2025-03-29 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791077', 'tblTempVendorCDR_20' ) end [2025-03-29 19:48:19] Production.INFO: ProcessCDR(1,14791077,1,1,2) [2025-03-29 19:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791077', 'tblTempUsageDetail_20' ) start [2025-03-29 19:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791077', 'tblTempUsageDetail_20' ) end [2025-03-29 19:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 19:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 19:48:22] Production.INFO: ==7346== Releasing lock... [2025-03-29 19:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 19:48:22] Production.INFO: 48 MB #Memory Used# [2025-03-29 19:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 16:49:05 [end_date_ymd] => 2025-03-29 19:49:05 [RateCDR] => 1 ) [2025-03-29 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-29 16:49:05' and `end` < '2025-03-29 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-29 19:49:18] Production.INFO: count ==2640 [2025-03-29 19:49:19] Production.ERROR: pbx CDR StartTime 2025-03-29 16:49:05 - End Time 2025-03-29 19:49:05 [2025-03-29 19:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791082', 'tblTempUsageDetail_20' ) start [2025-03-29 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791082', 'tblTempUsageDetail_20' ) end [2025-03-29 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791082', 'tblTempVendorCDR_20' ) start [2025-03-29 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791082', 'tblTempVendorCDR_20' ) end [2025-03-29 19:49:19] Production.INFO: ProcessCDR(1,14791082,1,1,2) [2025-03-29 19:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791082', 'tblTempUsageDetail_20' ) start [2025-03-29 19:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791082', 'tblTempUsageDetail_20' ) end [2025-03-29 19:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 19:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 19:49:22] Production.INFO: ==7424== Releasing lock... [2025-03-29 19:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 19:49:22] Production.INFO: 47.75 MB #Memory Used# [2025-03-29 19:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 16:50:06 [end_date_ymd] => 2025-03-29 19:50:06 [RateCDR] => 1 ) [2025-03-29 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-29 16:50:06' and `end` < '2025-03-29 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-29 19:50:19] Production.INFO: count ==2642 [2025-03-29 19:50:19] Production.ERROR: pbx CDR StartTime 2025-03-29 16:50:06 - End Time 2025-03-29 19:50:06 [2025-03-29 19:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791088', 'tblTempUsageDetail_20' ) start [2025-03-29 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791088', 'tblTempUsageDetail_20' ) end [2025-03-29 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791088', 'tblTempVendorCDR_20' ) start [2025-03-29 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791088', 'tblTempVendorCDR_20' ) end [2025-03-29 19:50:19] Production.INFO: ProcessCDR(1,14791088,1,1,2) [2025-03-29 19:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791088', 'tblTempUsageDetail_20' ) start [2025-03-29 19:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791088', 'tblTempUsageDetail_20' ) end [2025-03-29 19:50:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 19:50:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 19:50:23] Production.INFO: ==7497== Releasing lock... [2025-03-29 19:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 19:50:23] Production.INFO: 47.75 MB #Memory Used# [2025-03-29 19:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 16:51:05 [end_date_ymd] => 2025-03-29 19:51:05 [RateCDR] => 1 ) [2025-03-29 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-29 16:51:05' and `end` < '2025-03-29 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-29 19:51:18] Production.INFO: count ==2655 [2025-03-29 19:51:19] Production.ERROR: pbx CDR StartTime 2025-03-29 16:51:05 - End Time 2025-03-29 19:51:05 [2025-03-29 19:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791093', 'tblTempUsageDetail_20' ) start [2025-03-29 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791093', 'tblTempUsageDetail_20' ) end [2025-03-29 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791093', 'tblTempVendorCDR_20' ) start [2025-03-29 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791093', 'tblTempVendorCDR_20' ) end [2025-03-29 19:51:19] Production.INFO: ProcessCDR(1,14791093,1,1,2) [2025-03-29 19:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791093', 'tblTempUsageDetail_20' ) start [2025-03-29 19:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791093', 'tblTempUsageDetail_20' ) end [2025-03-29 19:51:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 19:51:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 19:51:24] Production.INFO: ==7569== Releasing lock... [2025-03-29 19:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 19:51:24] Production.INFO: 48 MB #Memory Used# [2025-03-29 19:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 16:52:05 [end_date_ymd] => 2025-03-29 19:52:05 [RateCDR] => 1 ) [2025-03-29 19:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 16:52:05' and `end` < '2025-03-29 19:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 19:52:18] Production.INFO: count ==2655 [2025-03-29 19:52:19] Production.ERROR: pbx CDR StartTime 2025-03-29 16:52:05 - End Time 2025-03-29 19:52:05 [2025-03-29 19:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791098', 'tblTempUsageDetail_20' ) start [2025-03-29 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791098', 'tblTempUsageDetail_20' ) end [2025-03-29 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791098', 'tblTempVendorCDR_20' ) start [2025-03-29 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791098', 'tblTempVendorCDR_20' ) end [2025-03-29 19:52:19] Production.INFO: ProcessCDR(1,14791098,1,1,2) [2025-03-29 19:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791098', 'tblTempUsageDetail_20' ) start [2025-03-29 19:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791098', 'tblTempUsageDetail_20' ) end [2025-03-29 19:52:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 19:52:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 19:52:24] Production.INFO: ==7644== Releasing lock... [2025-03-29 19:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 19:52:24] Production.INFO: 48 MB #Memory Used# [2025-03-29 19:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 16:53:05 [end_date_ymd] => 2025-03-29 19:53:05 [RateCDR] => 1 ) [2025-03-29 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-29 16:53:05' and `end` < '2025-03-29 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-29 19:53:18] Production.INFO: count ==2651 [2025-03-29 19:53:19] Production.ERROR: pbx CDR StartTime 2025-03-29 16:53:05 - End Time 2025-03-29 19:53:05 [2025-03-29 19:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791103', 'tblTempUsageDetail_20' ) start [2025-03-29 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791103', 'tblTempUsageDetail_20' ) end [2025-03-29 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791103', 'tblTempVendorCDR_20' ) start [2025-03-29 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791103', 'tblTempVendorCDR_20' ) end [2025-03-29 19:53:19] Production.INFO: ProcessCDR(1,14791103,1,1,2) [2025-03-29 19:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791103', 'tblTempUsageDetail_20' ) start [2025-03-29 19:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791103', 'tblTempUsageDetail_20' ) end [2025-03-29 19:53:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 19:53:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 19:53:23] Production.INFO: ==7719== Releasing lock... [2025-03-29 19:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 19:53:23] Production.INFO: 48 MB #Memory Used# [2025-03-29 19:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 16:54:06 [end_date_ymd] => 2025-03-29 19:54:06 [RateCDR] => 1 ) [2025-03-29 19: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-29 16:54:06' and `end` < '2025-03-29 19: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-29 19:54:19] Production.INFO: count ==2626 [2025-03-29 19:54:20] Production.ERROR: pbx CDR StartTime 2025-03-29 16:54:06 - End Time 2025-03-29 19:54:06 [2025-03-29 19:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 19:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791108', 'tblTempUsageDetail_20' ) start [2025-03-29 19:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791108', 'tblTempUsageDetail_20' ) end [2025-03-29 19:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791108', 'tblTempVendorCDR_20' ) start [2025-03-29 19:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791108', 'tblTempVendorCDR_20' ) end [2025-03-29 19:54:20] Production.INFO: ProcessCDR(1,14791108,1,1,2) [2025-03-29 19:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791108', 'tblTempUsageDetail_20' ) start [2025-03-29 19:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791108', 'tblTempUsageDetail_20' ) end [2025-03-29 19:54:25] Production.ERROR: pbx prc_insertCDR start [2025-03-29 19:54:25] Production.ERROR: pbx prc_insertCDR end [2025-03-29 19:54:25] Production.INFO: ==7795== Releasing lock... [2025-03-29 19:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 19:54:25] Production.INFO: 47.75 MB #Memory Used# [2025-03-29 19:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 16:55:05 [end_date_ymd] => 2025-03-29 19:55:05 [RateCDR] => 1 ) [2025-03-29 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-29 16:55:05' and `end` < '2025-03-29 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-29 19:55:18] Production.INFO: count ==2626 [2025-03-29 19:55:19] Production.ERROR: pbx CDR StartTime 2025-03-29 16:55:05 - End Time 2025-03-29 19:55:05 [2025-03-29 19:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791113', 'tblTempUsageDetail_20' ) start [2025-03-29 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791113', 'tblTempUsageDetail_20' ) end [2025-03-29 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791113', 'tblTempVendorCDR_20' ) start [2025-03-29 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791113', 'tblTempVendorCDR_20' ) end [2025-03-29 19:55:19] Production.INFO: ProcessCDR(1,14791113,1,1,2) [2025-03-29 19:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791113', 'tblTempUsageDetail_20' ) start [2025-03-29 19:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791113', 'tblTempUsageDetail_20' ) end [2025-03-29 19:55:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 19:55:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 19:55:24] Production.INFO: ==7868== Releasing lock... [2025-03-29 19:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 19:55:24] Production.INFO: 47.75 MB #Memory Used# [2025-03-29 19:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 16:56:06 [end_date_ymd] => 2025-03-29 19:56:06 [RateCDR] => 1 ) [2025-03-29 19: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-29 16:56:06' and `end` < '2025-03-29 19: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-29 19:56:19] Production.INFO: count ==2625 [2025-03-29 19:56:20] Production.ERROR: pbx CDR StartTime 2025-03-29 16:56:06 - End Time 2025-03-29 19:56:06 [2025-03-29 19:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 19:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791118', 'tblTempUsageDetail_20' ) start [2025-03-29 19:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791118', 'tblTempUsageDetail_20' ) end [2025-03-29 19:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791118', 'tblTempVendorCDR_20' ) start [2025-03-29 19:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791118', 'tblTempVendorCDR_20' ) end [2025-03-29 19:56:20] Production.INFO: ProcessCDR(1,14791118,1,1,2) [2025-03-29 19:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791118', 'tblTempUsageDetail_20' ) start [2025-03-29 19:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791118', 'tblTempUsageDetail_20' ) end [2025-03-29 19:56:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 19:56:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 19:56:23] Production.INFO: ==7945== Releasing lock... [2025-03-29 19:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 19:56:23] Production.INFO: 47.75 MB #Memory Used# [2025-03-29 19:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 16:57:05 [end_date_ymd] => 2025-03-29 19:57:05 [RateCDR] => 1 ) [2025-03-29 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-29 16:57:05' and `end` < '2025-03-29 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-29 19:57:18] Production.INFO: count ==2630 [2025-03-29 19:57:18] Production.ERROR: pbx CDR StartTime 2025-03-29 16:57:05 - End Time 2025-03-29 19:57:05 [2025-03-29 19:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791123', 'tblTempUsageDetail_20' ) start [2025-03-29 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791123', 'tblTempUsageDetail_20' ) end [2025-03-29 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791123', 'tblTempVendorCDR_20' ) start [2025-03-29 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791123', 'tblTempVendorCDR_20' ) end [2025-03-29 19:57:18] Production.INFO: ProcessCDR(1,14791123,1,1,2) [2025-03-29 19:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791123', 'tblTempUsageDetail_20' ) start [2025-03-29 19:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791123', 'tblTempUsageDetail_20' ) end [2025-03-29 19:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 19:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 19:57:22] Production.INFO: ==8018== Releasing lock... [2025-03-29 19:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 19:57:22] Production.INFO: 47.75 MB #Memory Used# [2025-03-29 19:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 16:58:06 [end_date_ymd] => 2025-03-29 19:58:06 [RateCDR] => 1 ) [2025-03-29 19: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-29 16:58:06' and `end` < '2025-03-29 19: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-29 19:58:19] Production.INFO: count ==2629 [2025-03-29 19:58:19] Production.ERROR: pbx CDR StartTime 2025-03-29 16:58:06 - End Time 2025-03-29 19:58:06 [2025-03-29 19:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791128', 'tblTempUsageDetail_20' ) start [2025-03-29 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791128', 'tblTempUsageDetail_20' ) end [2025-03-29 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791128', 'tblTempVendorCDR_20' ) start [2025-03-29 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791128', 'tblTempVendorCDR_20' ) end [2025-03-29 19:58:19] Production.INFO: ProcessCDR(1,14791128,1,1,2) [2025-03-29 19:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791128', 'tblTempUsageDetail_20' ) start [2025-03-29 19:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791128', 'tblTempUsageDetail_20' ) end [2025-03-29 19:58:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 19:58:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 19:58:23] Production.INFO: ==8091== Releasing lock... [2025-03-29 19:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 19:58:23] Production.INFO: 47.75 MB #Memory Used# [2025-03-29 19:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 16:59:05 [end_date_ymd] => 2025-03-29 19:59:05 [RateCDR] => 1 ) [2025-03-29 19:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 16:59:05' and `end` < '2025-03-29 19:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 19:59:18] Production.INFO: count ==2639 [2025-03-29 19:59:18] Production.ERROR: pbx CDR StartTime 2025-03-29 16:59:05 - End Time 2025-03-29 19:59:05 [2025-03-29 19:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791133', 'tblTempUsageDetail_20' ) start [2025-03-29 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791133', 'tblTempUsageDetail_20' ) end [2025-03-29 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791133', 'tblTempVendorCDR_20' ) start [2025-03-29 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791133', 'tblTempVendorCDR_20' ) end [2025-03-29 19:59:18] Production.INFO: ProcessCDR(1,14791133,1,1,2) [2025-03-29 19:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 19:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 19:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791133', 'tblTempUsageDetail_20' ) start [2025-03-29 19:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791133', 'tblTempUsageDetail_20' ) end [2025-03-29 19:59:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 19:59:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 19:59:23] Production.INFO: ==8167== Releasing lock... [2025-03-29 19:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 19:59:23] Production.INFO: 47.75 MB #Memory Used# [2025-03-29 20:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 17:00:06 [end_date_ymd] => 2025-03-29 20:00:06 [RateCDR] => 1 ) [2025-03-29 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-29 17:00:06' and `end` < '2025-03-29 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-29 20:00:19] Production.INFO: count ==2643 [2025-03-29 20:00:20] Production.ERROR: pbx CDR StartTime 2025-03-29 17:00:06 - End Time 2025-03-29 20:00:06 [2025-03-29 20:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791139', 'tblTempUsageDetail_20' ) start [2025-03-29 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791139', 'tblTempUsageDetail_20' ) end [2025-03-29 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791139', 'tblTempVendorCDR_20' ) start [2025-03-29 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791139', 'tblTempVendorCDR_20' ) end [2025-03-29 20:00:20] Production.INFO: ProcessCDR(1,14791139,1,1,2) [2025-03-29 20:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791139', 'tblTempUsageDetail_20' ) start [2025-03-29 20:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791139', 'tblTempUsageDetail_20' ) end [2025-03-29 20:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 20:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 20:00:23] Production.INFO: ==8281== Releasing lock... [2025-03-29 20:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 20:00:23] Production.INFO: 47.75 MB #Memory Used# [2025-03-29 20:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 17:01:04 [end_date_ymd] => 2025-03-29 20:01:04 [RateCDR] => 1 ) [2025-03-29 20: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-29 17:01:04' and `end` < '2025-03-29 20: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-29 20:01:17] Production.INFO: count ==2603 [2025-03-29 20:01:18] Production.ERROR: pbx CDR StartTime 2025-03-29 17:01:04 - End Time 2025-03-29 20:01:04 [2025-03-29 20:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791144', 'tblTempUsageDetail_20' ) start [2025-03-29 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791144', 'tblTempUsageDetail_20' ) end [2025-03-29 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791144', 'tblTempVendorCDR_20' ) start [2025-03-29 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791144', 'tblTempVendorCDR_20' ) end [2025-03-29 20:01:18] Production.INFO: ProcessCDR(1,14791144,1,1,2) [2025-03-29 20:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791144', 'tblTempUsageDetail_20' ) start [2025-03-29 20:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791144', 'tblTempUsageDetail_20' ) end [2025-03-29 20:01:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 20:01:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 20:01:23] Production.INFO: ==8409== Releasing lock... [2025-03-29 20:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 20:01:23] Production.INFO: 47.5 MB #Memory Used# [2025-03-29 20:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 17:02:05 [end_date_ymd] => 2025-03-29 20:02:05 [RateCDR] => 1 ) [2025-03-29 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-29 17:02:05' and `end` < '2025-03-29 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-29 20:02:18] Production.INFO: count ==2611 [2025-03-29 20:02:19] Production.ERROR: pbx CDR StartTime 2025-03-29 17:02:05 - End Time 2025-03-29 20:02:05 [2025-03-29 20:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791149', 'tblTempUsageDetail_20' ) start [2025-03-29 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791149', 'tblTempUsageDetail_20' ) end [2025-03-29 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791149', 'tblTempVendorCDR_20' ) start [2025-03-29 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791149', 'tblTempVendorCDR_20' ) end [2025-03-29 20:02:19] Production.INFO: ProcessCDR(1,14791149,1,1,2) [2025-03-29 20:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791149', 'tblTempUsageDetail_20' ) start [2025-03-29 20:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791149', 'tblTempUsageDetail_20' ) end [2025-03-29 20:02:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 20:02:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 20:02:24] Production.INFO: ==8482== Releasing lock... [2025-03-29 20:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 20:02:24] Production.INFO: 47.75 MB #Memory Used# [2025-03-29 20:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 17:03:05 [end_date_ymd] => 2025-03-29 20:03:05 [RateCDR] => 1 ) [2025-03-29 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-29 17:03:05' and `end` < '2025-03-29 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-29 20:03:18] Production.INFO: count ==2623 [2025-03-29 20:03:19] Production.ERROR: pbx CDR StartTime 2025-03-29 17:03:05 - End Time 2025-03-29 20:03:05 [2025-03-29 20:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791154', 'tblTempUsageDetail_20' ) start [2025-03-29 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791154', 'tblTempUsageDetail_20' ) end [2025-03-29 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791154', 'tblTempVendorCDR_20' ) start [2025-03-29 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791154', 'tblTempVendorCDR_20' ) end [2025-03-29 20:03:19] Production.INFO: ProcessCDR(1,14791154,1,1,2) [2025-03-29 20:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791154', 'tblTempUsageDetail_20' ) start [2025-03-29 20:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791154', 'tblTempUsageDetail_20' ) end [2025-03-29 20:03:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 20:03:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 20:03:23] Production.INFO: ==8561== Releasing lock... [2025-03-29 20:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 20:03:23] Production.INFO: 47.75 MB #Memory Used# [2025-03-29 20:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 17:04:06 [end_date_ymd] => 2025-03-29 20:04:06 [RateCDR] => 1 ) [2025-03-29 20:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 17:04:06' and `end` < '2025-03-29 20:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 20:04:18] Production.INFO: count ==2619 [2025-03-29 20:04:19] Production.ERROR: pbx CDR StartTime 2025-03-29 17:04:06 - End Time 2025-03-29 20:04:06 [2025-03-29 20:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791159', 'tblTempUsageDetail_20' ) start [2025-03-29 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791159', 'tblTempUsageDetail_20' ) end [2025-03-29 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791159', 'tblTempVendorCDR_20' ) start [2025-03-29 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791159', 'tblTempVendorCDR_20' ) end [2025-03-29 20:04:19] Production.INFO: ProcessCDR(1,14791159,1,1,2) [2025-03-29 20:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791159', 'tblTempUsageDetail_20' ) start [2025-03-29 20:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791159', 'tblTempUsageDetail_20' ) end [2025-03-29 20:04:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 20:04:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 20:04:23] Production.INFO: ==8636== Releasing lock... [2025-03-29 20:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 20:04:23] Production.INFO: 47.75 MB #Memory Used# [2025-03-29 20:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 17:05:05 [end_date_ymd] => 2025-03-29 20:05:05 [RateCDR] => 1 ) [2025-03-29 20:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 17:05:05' and `end` < '2025-03-29 20:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 20:05:17] Production.INFO: count ==2622 [2025-03-29 20:05:18] Production.ERROR: pbx CDR StartTime 2025-03-29 17:05:05 - End Time 2025-03-29 20:05:05 [2025-03-29 20:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791164', 'tblTempUsageDetail_20' ) start [2025-03-29 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791164', 'tblTempUsageDetail_20' ) end [2025-03-29 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791164', 'tblTempVendorCDR_20' ) start [2025-03-29 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791164', 'tblTempVendorCDR_20' ) end [2025-03-29 20:05:18] Production.INFO: ProcessCDR(1,14791164,1,1,2) [2025-03-29 20:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791164', 'tblTempUsageDetail_20' ) start [2025-03-29 20:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791164', 'tblTempUsageDetail_20' ) end [2025-03-29 20:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 20:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 20:05:21] Production.INFO: ==8708== Releasing lock... [2025-03-29 20:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 20:05:21] Production.INFO: 47.75 MB #Memory Used# [2025-03-29 20:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 17:06:05 [end_date_ymd] => 2025-03-29 20:06:05 [RateCDR] => 1 ) [2025-03-29 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-29 17:06:05' and `end` < '2025-03-29 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-29 20:06:18] Production.INFO: count ==2604 [2025-03-29 20:06:19] Production.ERROR: pbx CDR StartTime 2025-03-29 17:06:05 - End Time 2025-03-29 20:06:05 [2025-03-29 20:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791169', 'tblTempUsageDetail_20' ) start [2025-03-29 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791169', 'tblTempUsageDetail_20' ) end [2025-03-29 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791169', 'tblTempVendorCDR_20' ) start [2025-03-29 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791169', 'tblTempVendorCDR_20' ) end [2025-03-29 20:06:19] Production.INFO: ProcessCDR(1,14791169,1,1,2) [2025-03-29 20:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791169', 'tblTempUsageDetail_20' ) start [2025-03-29 20:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791169', 'tblTempUsageDetail_20' ) end [2025-03-29 20:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 20:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 20:06:22] Production.INFO: ==8781== Releasing lock... [2025-03-29 20:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 20:06:22] Production.INFO: 47.5 MB #Memory Used# [2025-03-29 20:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 17:07:05 [end_date_ymd] => 2025-03-29 20:07:05 [RateCDR] => 1 ) [2025-03-29 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-29 17:07:05' and `end` < '2025-03-29 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-29 20:07:17] Production.INFO: count ==2593 [2025-03-29 20:07:18] Production.ERROR: pbx CDR StartTime 2025-03-29 17:07:05 - End Time 2025-03-29 20:07:05 [2025-03-29 20:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 20:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791174', 'tblTempUsageDetail_20' ) start [2025-03-29 20:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791174', 'tblTempUsageDetail_20' ) end [2025-03-29 20:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791174', 'tblTempVendorCDR_20' ) start [2025-03-29 20:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791174', 'tblTempVendorCDR_20' ) end [2025-03-29 20:07:18] Production.INFO: ProcessCDR(1,14791174,1,1,2) [2025-03-29 20:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791174', 'tblTempUsageDetail_20' ) start [2025-03-29 20:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791174', 'tblTempUsageDetail_20' ) end [2025-03-29 20:07:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 20:07:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 20:07:22] Production.INFO: ==8852== Releasing lock... [2025-03-29 20:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 20:07:22] Production.INFO: 47.5 MB #Memory Used# [2025-03-29 20:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 17:08:06 [end_date_ymd] => 2025-03-29 20:08:06 [RateCDR] => 1 ) [2025-03-29 20: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-29 17:08:06' and `end` < '2025-03-29 20: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-29 20:08:19] Production.INFO: count ==2608 [2025-03-29 20:08:19] Production.ERROR: pbx CDR StartTime 2025-03-29 17:08:06 - End Time 2025-03-29 20:08:06 [2025-03-29 20:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791179', 'tblTempUsageDetail_20' ) start [2025-03-29 20:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791179', 'tblTempUsageDetail_20' ) end [2025-03-29 20:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791179', 'tblTempVendorCDR_20' ) start [2025-03-29 20:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791179', 'tblTempVendorCDR_20' ) end [2025-03-29 20:08:20] Production.INFO: ProcessCDR(1,14791179,1,1,2) [2025-03-29 20:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791179', 'tblTempUsageDetail_20' ) start [2025-03-29 20:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791179', 'tblTempUsageDetail_20' ) end [2025-03-29 20:08:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 20:08:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 20:08:23] Production.INFO: ==8928== Releasing lock... [2025-03-29 20:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 20:08:23] Production.INFO: 47.5 MB #Memory Used# [2025-03-29 20:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 17:09:05 [end_date_ymd] => 2025-03-29 20:09:05 [RateCDR] => 1 ) [2025-03-29 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-29 17:09:05' and `end` < '2025-03-29 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-29 20:09:18] Production.INFO: count ==2617 [2025-03-29 20:09:18] Production.ERROR: pbx CDR StartTime 2025-03-29 17:09:05 - End Time 2025-03-29 20:09:05 [2025-03-29 20:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791184', 'tblTempUsageDetail_20' ) start [2025-03-29 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791184', 'tblTempUsageDetail_20' ) end [2025-03-29 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791184', 'tblTempVendorCDR_20' ) start [2025-03-29 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791184', 'tblTempVendorCDR_20' ) end [2025-03-29 20:09:19] Production.INFO: ProcessCDR(1,14791184,1,1,2) [2025-03-29 20:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791184', 'tblTempUsageDetail_20' ) start [2025-03-29 20:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791184', 'tblTempUsageDetail_20' ) end [2025-03-29 20:09:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 20:09:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 20:09:22] Production.INFO: ==9005== Releasing lock... [2025-03-29 20:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 20:09:22] Production.INFO: 47.75 MB #Memory Used# [2025-03-29 20:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 17:10:06 [end_date_ymd] => 2025-03-29 20:10:06 [RateCDR] => 1 ) [2025-03-29 20:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 17:10:06' and `end` < '2025-03-29 20:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 20:10:19] Production.INFO: count ==2633 [2025-03-29 20:10:20] Production.ERROR: pbx CDR StartTime 2025-03-29 17:10:06 - End Time 2025-03-29 20:10:06 [2025-03-29 20:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791190', 'tblTempUsageDetail_20' ) start [2025-03-29 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791190', 'tblTempUsageDetail_20' ) end [2025-03-29 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791190', 'tblTempVendorCDR_20' ) start [2025-03-29 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791190', 'tblTempVendorCDR_20' ) end [2025-03-29 20:10:20] Production.INFO: ProcessCDR(1,14791190,1,1,2) [2025-03-29 20:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791190', 'tblTempUsageDetail_20' ) start [2025-03-29 20:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791190', 'tblTempUsageDetail_20' ) end [2025-03-29 20:10:25] Production.ERROR: pbx prc_insertCDR start [2025-03-29 20:10:25] Production.ERROR: pbx prc_insertCDR end [2025-03-29 20:10:25] Production.INFO: ==9079== Releasing lock... [2025-03-29 20:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 20:10:25] Production.INFO: 47.75 MB #Memory Used# [2025-03-29 20:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 17:11:05 [end_date_ymd] => 2025-03-29 20:11:05 [RateCDR] => 1 ) [2025-03-29 20:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 17:11:05' and `end` < '2025-03-29 20:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 20:11:18] Production.INFO: count ==2633 [2025-03-29 20:11:18] Production.ERROR: pbx CDR StartTime 2025-03-29 17:11:05 - End Time 2025-03-29 20:11:05 [2025-03-29 20:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791195', 'tblTempUsageDetail_20' ) start [2025-03-29 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791195', 'tblTempUsageDetail_20' ) end [2025-03-29 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791195', 'tblTempVendorCDR_20' ) start [2025-03-29 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791195', 'tblTempVendorCDR_20' ) end [2025-03-29 20:11:18] Production.INFO: ProcessCDR(1,14791195,1,1,2) [2025-03-29 20:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791195', 'tblTempUsageDetail_20' ) start [2025-03-29 20:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791195', 'tblTempUsageDetail_20' ) end [2025-03-29 20:11:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 20:11:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 20:11:23] Production.INFO: ==9155== Releasing lock... [2025-03-29 20:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 20:11:23] Production.INFO: 48 MB #Memory Used# [2025-03-29 20:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 17:12:05 [end_date_ymd] => 2025-03-29 20:12:05 [RateCDR] => 1 ) [2025-03-29 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-29 17:12:05' and `end` < '2025-03-29 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-29 20:12:18] Production.INFO: count ==2634 [2025-03-29 20:12:19] Production.ERROR: pbx CDR StartTime 2025-03-29 17:12:05 - End Time 2025-03-29 20:12:05 [2025-03-29 20:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791200', 'tblTempUsageDetail_20' ) start [2025-03-29 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791200', 'tblTempUsageDetail_20' ) end [2025-03-29 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791200', 'tblTempVendorCDR_20' ) start [2025-03-29 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791200', 'tblTempVendorCDR_20' ) end [2025-03-29 20:12:19] Production.INFO: ProcessCDR(1,14791200,1,1,2) [2025-03-29 20:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791200', 'tblTempUsageDetail_20' ) start [2025-03-29 20:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791200', 'tblTempUsageDetail_20' ) end [2025-03-29 20:12:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 20:12:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 20:12:24] Production.INFO: ==9232== Releasing lock... [2025-03-29 20:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 20:12:24] Production.INFO: 47.75 MB #Memory Used# [2025-03-29 20:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 17:13:06 [end_date_ymd] => 2025-03-29 20:13:06 [RateCDR] => 1 ) [2025-03-29 20: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-29 17:13:06' and `end` < '2025-03-29 20: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-29 20:13:19] Production.INFO: count ==2638 [2025-03-29 20:13:20] Production.ERROR: pbx CDR StartTime 2025-03-29 17:13:06 - End Time 2025-03-29 20:13:06 [2025-03-29 20:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 20:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791205', 'tblTempUsageDetail_20' ) start [2025-03-29 20:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791205', 'tblTempUsageDetail_20' ) end [2025-03-29 20:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791205', 'tblTempVendorCDR_20' ) start [2025-03-29 20:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791205', 'tblTempVendorCDR_20' ) end [2025-03-29 20:13:20] Production.INFO: ProcessCDR(1,14791205,1,1,2) [2025-03-29 20:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791205', 'tblTempUsageDetail_20' ) start [2025-03-29 20:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791205', 'tblTempUsageDetail_20' ) end [2025-03-29 20:13:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 20:13:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 20:13:23] Production.INFO: ==9303== Releasing lock... [2025-03-29 20:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 20:13:23] Production.INFO: 47.5 MB #Memory Used# [2025-03-29 20:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 17:14:06 [end_date_ymd] => 2025-03-29 20:14:06 [RateCDR] => 1 ) [2025-03-29 20: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-29 17:14:06' and `end` < '2025-03-29 20: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-29 20:14:18] Production.INFO: count ==2641 [2025-03-29 20:14:19] Production.ERROR: pbx CDR StartTime 2025-03-29 17:14:06 - End Time 2025-03-29 20:14:06 [2025-03-29 20:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791210', 'tblTempUsageDetail_20' ) start [2025-03-29 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791210', 'tblTempUsageDetail_20' ) end [2025-03-29 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791210', 'tblTempVendorCDR_20' ) start [2025-03-29 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791210', 'tblTempVendorCDR_20' ) end [2025-03-29 20:14:19] Production.INFO: ProcessCDR(1,14791210,1,1,2) [2025-03-29 20:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791210', 'tblTempUsageDetail_20' ) start [2025-03-29 20:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791210', 'tblTempUsageDetail_20' ) end [2025-03-29 20:14:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 20:14:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 20:14:22] Production.INFO: ==9378== Releasing lock... [2025-03-29 20:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 20:14:22] Production.INFO: 47.75 MB #Memory Used# [2025-03-29 20:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 17:15:06 [end_date_ymd] => 2025-03-29 20:15:06 [RateCDR] => 1 ) [2025-03-29 20:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 17:15:06' and `end` < '2025-03-29 20:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 20:15:19] Production.INFO: count ==2639 [2025-03-29 20:15:19] Production.ERROR: pbx CDR StartTime 2025-03-29 17:15:06 - End Time 2025-03-29 20:15:06 [2025-03-29 20:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791215', 'tblTempUsageDetail_20' ) start [2025-03-29 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791215', 'tblTempUsageDetail_20' ) end [2025-03-29 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791215', 'tblTempVendorCDR_20' ) start [2025-03-29 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791215', 'tblTempVendorCDR_20' ) end [2025-03-29 20:15:19] Production.INFO: ProcessCDR(1,14791215,1,1,2) [2025-03-29 20:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791215', 'tblTempUsageDetail_20' ) start [2025-03-29 20:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791215', 'tblTempUsageDetail_20' ) end [2025-03-29 20:15:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 20:15:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 20:15:23] Production.INFO: ==9452== Releasing lock... [2025-03-29 20:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 20:15:23] Production.INFO: 47.75 MB #Memory Used# [2025-03-29 20:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 17:16:05 [end_date_ymd] => 2025-03-29 20:16:05 [RateCDR] => 1 ) [2025-03-29 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-29 17:16:05' and `end` < '2025-03-29 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-29 20:16:18] Production.INFO: count ==2648 [2025-03-29 20:16:18] Production.ERROR: pbx CDR StartTime 2025-03-29 17:16:05 - End Time 2025-03-29 20:16:05 [2025-03-29 20:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791220', 'tblTempUsageDetail_20' ) start [2025-03-29 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791220', 'tblTempUsageDetail_20' ) end [2025-03-29 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791220', 'tblTempVendorCDR_20' ) start [2025-03-29 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791220', 'tblTempVendorCDR_20' ) end [2025-03-29 20:16:18] Production.INFO: ProcessCDR(1,14791220,1,1,2) [2025-03-29 20:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791220', 'tblTempUsageDetail_20' ) start [2025-03-29 20:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791220', 'tblTempUsageDetail_20' ) end [2025-03-29 20:16:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 20:16:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 20:16:22] Production.INFO: ==9565== Releasing lock... [2025-03-29 20:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 20:16:22] Production.INFO: 48 MB #Memory Used# [2025-03-29 20:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 17:17:06 [end_date_ymd] => 2025-03-29 20:17:06 [RateCDR] => 1 ) [2025-03-29 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-29 17:17:06' and `end` < '2025-03-29 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-29 20:17:18] Production.INFO: count ==2639 [2025-03-29 20:17:19] Production.ERROR: pbx CDR StartTime 2025-03-29 17:17:06 - End Time 2025-03-29 20:17:06 [2025-03-29 20:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791225', 'tblTempUsageDetail_20' ) start [2025-03-29 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791225', 'tblTempUsageDetail_20' ) end [2025-03-29 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791225', 'tblTempVendorCDR_20' ) start [2025-03-29 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791225', 'tblTempVendorCDR_20' ) end [2025-03-29 20:17:19] Production.INFO: ProcessCDR(1,14791225,1,1,2) [2025-03-29 20:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791225', 'tblTempUsageDetail_20' ) start [2025-03-29 20:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791225', 'tblTempUsageDetail_20' ) end [2025-03-29 20:17:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 20:17:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 20:17:23] Production.INFO: ==9639== Releasing lock... [2025-03-29 20:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 20:17:23] Production.INFO: 47.75 MB #Memory Used# [2025-03-29 20:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 17:18:05 [end_date_ymd] => 2025-03-29 20:18:05 [RateCDR] => 1 ) [2025-03-29 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-29 17:18:05' and `end` < '2025-03-29 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-29 20:18:18] Production.INFO: count ==2622 [2025-03-29 20:18:19] Production.ERROR: pbx CDR StartTime 2025-03-29 17:18:05 - End Time 2025-03-29 20:18:05 [2025-03-29 20:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791230', 'tblTempUsageDetail_20' ) start [2025-03-29 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791230', 'tblTempUsageDetail_20' ) end [2025-03-29 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791230', 'tblTempVendorCDR_20' ) start [2025-03-29 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791230', 'tblTempVendorCDR_20' ) end [2025-03-29 20:18:19] Production.INFO: ProcessCDR(1,14791230,1,1,2) [2025-03-29 20:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791230', 'tblTempUsageDetail_20' ) start [2025-03-29 20:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791230', 'tblTempUsageDetail_20' ) end [2025-03-29 20:18:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 20:18:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 20:18:24] Production.INFO: ==9715== Releasing lock... [2025-03-29 20:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 20:18:24] Production.INFO: 47.75 MB #Memory Used# [2025-03-29 20:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 17:19:06 [end_date_ymd] => 2025-03-29 20:19:06 [RateCDR] => 1 ) [2025-03-29 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-29 17:19:06' and `end` < '2025-03-29 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-29 20:19:18] Production.INFO: count ==2629 [2025-03-29 20:19:19] Production.ERROR: pbx CDR StartTime 2025-03-29 17:19:06 - End Time 2025-03-29 20:19:06 [2025-03-29 20:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791235', 'tblTempUsageDetail_20' ) start [2025-03-29 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791235', 'tblTempUsageDetail_20' ) end [2025-03-29 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791235', 'tblTempVendorCDR_20' ) start [2025-03-29 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791235', 'tblTempVendorCDR_20' ) end [2025-03-29 20:19:19] Production.INFO: ProcessCDR(1,14791235,1,1,2) [2025-03-29 20:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791235', 'tblTempUsageDetail_20' ) start [2025-03-29 20:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791235', 'tblTempUsageDetail_20' ) end [2025-03-29 20:19:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 20:19:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 20:19:23] Production.INFO: ==9788== Releasing lock... [2025-03-29 20:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 20:19:23] Production.INFO: 47.75 MB #Memory Used# [2025-03-29 20:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 17:20:05 [end_date_ymd] => 2025-03-29 20:20:05 [RateCDR] => 1 ) [2025-03-29 20: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-29 17:20:05' and `end` < '2025-03-29 20: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-29 20:20:18] Production.INFO: count ==2635 [2025-03-29 20:20:19] Production.ERROR: pbx CDR StartTime 2025-03-29 17:20:05 - End Time 2025-03-29 20:20:05 [2025-03-29 20:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791241', 'tblTempUsageDetail_20' ) start [2025-03-29 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791241', 'tblTempUsageDetail_20' ) end [2025-03-29 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791241', 'tblTempVendorCDR_20' ) start [2025-03-29 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791241', 'tblTempVendorCDR_20' ) end [2025-03-29 20:20:19] Production.INFO: ProcessCDR(1,14791241,1,1,2) [2025-03-29 20:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791241', 'tblTempUsageDetail_20' ) start [2025-03-29 20:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791241', 'tblTempUsageDetail_20' ) end [2025-03-29 20:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 20:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 20:20:22] Production.INFO: ==9863== Releasing lock... [2025-03-29 20:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 20:20:22] Production.INFO: 47.75 MB #Memory Used# [2025-03-29 20:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 17:21:05 [end_date_ymd] => 2025-03-29 20:21:05 [RateCDR] => 1 ) [2025-03-29 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-29 17:21:05' and `end` < '2025-03-29 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-29 20:21:18] Production.INFO: count ==2592 [2025-03-29 20:21:19] Production.ERROR: pbx CDR StartTime 2025-03-29 17:21:05 - End Time 2025-03-29 20:21:05 [2025-03-29 20:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791246', 'tblTempUsageDetail_20' ) start [2025-03-29 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791246', 'tblTempUsageDetail_20' ) end [2025-03-29 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791246', 'tblTempVendorCDR_20' ) start [2025-03-29 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791246', 'tblTempVendorCDR_20' ) end [2025-03-29 20:21:19] Production.INFO: ProcessCDR(1,14791246,1,1,2) [2025-03-29 20:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791246', 'tblTempUsageDetail_20' ) start [2025-03-29 20:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791246', 'tblTempUsageDetail_20' ) end [2025-03-29 20:21:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 20:21:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 20:21:22] Production.INFO: ==9939== Releasing lock... [2025-03-29 20:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 20:21:22] Production.INFO: 47.5 MB #Memory Used# [2025-03-29 20:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 17:22:05 [end_date_ymd] => 2025-03-29 20:22:05 [RateCDR] => 1 ) [2025-03-29 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-29 17:22:05' and `end` < '2025-03-29 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-29 20:22:18] Production.INFO: count ==2596 [2025-03-29 20:22:19] Production.ERROR: pbx CDR StartTime 2025-03-29 17:22:05 - End Time 2025-03-29 20:22:05 [2025-03-29 20:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791251', 'tblTempUsageDetail_20' ) start [2025-03-29 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791251', 'tblTempUsageDetail_20' ) end [2025-03-29 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791251', 'tblTempVendorCDR_20' ) start [2025-03-29 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791251', 'tblTempVendorCDR_20' ) end [2025-03-29 20:22:19] Production.INFO: ProcessCDR(1,14791251,1,1,2) [2025-03-29 20:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791251', 'tblTempUsageDetail_20' ) start [2025-03-29 20:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791251', 'tblTempUsageDetail_20' ) end [2025-03-29 20:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 20:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 20:22:22] Production.INFO: ==10020== Releasing lock... [2025-03-29 20:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 20:22:22] Production.INFO: 47.5 MB #Memory Used# [2025-03-29 20:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 17:23:05 [end_date_ymd] => 2025-03-29 20:23:05 [RateCDR] => 1 ) [2025-03-29 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-29 17:23:05' and `end` < '2025-03-29 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-29 20:23:18] Production.INFO: count ==2593 [2025-03-29 20:23:18] Production.ERROR: pbx CDR StartTime 2025-03-29 17:23:05 - End Time 2025-03-29 20:23:05 [2025-03-29 20:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791256', 'tblTempUsageDetail_20' ) start [2025-03-29 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791256', 'tblTempUsageDetail_20' ) end [2025-03-29 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791256', 'tblTempVendorCDR_20' ) start [2025-03-29 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791256', 'tblTempVendorCDR_20' ) end [2025-03-29 20:23:18] Production.INFO: ProcessCDR(1,14791256,1,1,2) [2025-03-29 20:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791256', 'tblTempUsageDetail_20' ) start [2025-03-29 20:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791256', 'tblTempUsageDetail_20' ) end [2025-03-29 20:23:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 20:23:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 20:23:22] Production.INFO: ==10096== Releasing lock... [2025-03-29 20:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 20:23:22] Production.INFO: 47.5 MB #Memory Used# [2025-03-29 20:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 17:24:05 [end_date_ymd] => 2025-03-29 20:24:05 [RateCDR] => 1 ) [2025-03-29 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-29 17:24:05' and `end` < '2025-03-29 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-29 20:24:18] Production.INFO: count ==2591 [2025-03-29 20:24:19] Production.ERROR: pbx CDR StartTime 2025-03-29 17:24:05 - End Time 2025-03-29 20:24:05 [2025-03-29 20:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791261', 'tblTempUsageDetail_20' ) start [2025-03-29 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791261', 'tblTempUsageDetail_20' ) end [2025-03-29 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791261', 'tblTempVendorCDR_20' ) start [2025-03-29 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791261', 'tblTempVendorCDR_20' ) end [2025-03-29 20:24:19] Production.INFO: ProcessCDR(1,14791261,1,1,2) [2025-03-29 20:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791261', 'tblTempUsageDetail_20' ) start [2025-03-29 20:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791261', 'tblTempUsageDetail_20' ) end [2025-03-29 20:24:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 20:24:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 20:24:22] Production.INFO: ==10167== Releasing lock... [2025-03-29 20:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 20:24:22] Production.INFO: 47.5 MB #Memory Used# [2025-03-29 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 17:25:05 [end_date_ymd] => 2025-03-29 20:25:05 [RateCDR] => 1 ) [2025-03-29 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-29 17:25:05' and `end` < '2025-03-29 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-29 20:25:18] Production.INFO: count ==2598 [2025-03-29 20:25:19] Production.ERROR: pbx CDR StartTime 2025-03-29 17:25:05 - End Time 2025-03-29 20:25:05 [2025-03-29 20:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791266', 'tblTempUsageDetail_20' ) start [2025-03-29 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791266', 'tblTempUsageDetail_20' ) end [2025-03-29 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791266', 'tblTempVendorCDR_20' ) start [2025-03-29 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791266', 'tblTempVendorCDR_20' ) end [2025-03-29 20:25:19] Production.INFO: ProcessCDR(1,14791266,1,1,2) [2025-03-29 20:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791266', 'tblTempUsageDetail_20' ) start [2025-03-29 20:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791266', 'tblTempUsageDetail_20' ) end [2025-03-29 20:25:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 20:25:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 20:25:22] Production.INFO: ==10246== Releasing lock... [2025-03-29 20:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 20:25:22] Production.INFO: 47.5 MB #Memory Used# [2025-03-29 20:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 17:26:06 [end_date_ymd] => 2025-03-29 20:26:06 [RateCDR] => 1 ) [2025-03-29 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-29 17:26:06' and `end` < '2025-03-29 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-29 20:26:19] Production.INFO: count ==2600 [2025-03-29 20:26:19] Production.ERROR: pbx CDR StartTime 2025-03-29 17:26:06 - End Time 2025-03-29 20:26:06 [2025-03-29 20:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791271', 'tblTempUsageDetail_20' ) start [2025-03-29 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791271', 'tblTempUsageDetail_20' ) end [2025-03-29 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791271', 'tblTempVendorCDR_20' ) start [2025-03-29 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791271', 'tblTempVendorCDR_20' ) end [2025-03-29 20:26:19] Production.INFO: ProcessCDR(1,14791271,1,1,2) [2025-03-29 20:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791271', 'tblTempUsageDetail_20' ) start [2025-03-29 20:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791271', 'tblTempUsageDetail_20' ) end [2025-03-29 20:26:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 20:26:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 20:26:22] Production.INFO: ==10319== Releasing lock... [2025-03-29 20:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 20:26:22] Production.INFO: 47.5 MB #Memory Used# [2025-03-29 20:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 17:27:05 [end_date_ymd] => 2025-03-29 20:27:05 [RateCDR] => 1 ) [2025-03-29 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-29 17:27:05' and `end` < '2025-03-29 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-29 20:27:18] Production.INFO: count ==2601 [2025-03-29 20:27:19] Production.ERROR: pbx CDR StartTime 2025-03-29 17:27:05 - End Time 2025-03-29 20:27:05 [2025-03-29 20:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791276', 'tblTempUsageDetail_20' ) start [2025-03-29 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791276', 'tblTempUsageDetail_20' ) end [2025-03-29 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791276', 'tblTempVendorCDR_20' ) start [2025-03-29 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791276', 'tblTempVendorCDR_20' ) end [2025-03-29 20:27:19] Production.INFO: ProcessCDR(1,14791276,1,1,2) [2025-03-29 20:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791276', 'tblTempUsageDetail_20' ) start [2025-03-29 20:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791276', 'tblTempUsageDetail_20' ) end [2025-03-29 20:27:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 20:27:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 20:27:22] Production.INFO: ==10390== Releasing lock... [2025-03-29 20:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 20:27:22] Production.INFO: 47.5 MB #Memory Used# [2025-03-29 20:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 17:28:06 [end_date_ymd] => 2025-03-29 20:28:06 [RateCDR] => 1 ) [2025-03-29 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-29 17:28:06' and `end` < '2025-03-29 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-29 20:28:19] Production.INFO: count ==2601 [2025-03-29 20:28:19] Production.ERROR: pbx CDR StartTime 2025-03-29 17:28:06 - End Time 2025-03-29 20:28:06 [2025-03-29 20:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791281', 'tblTempUsageDetail_20' ) start [2025-03-29 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791281', 'tblTempUsageDetail_20' ) end [2025-03-29 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791281', 'tblTempVendorCDR_20' ) start [2025-03-29 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791281', 'tblTempVendorCDR_20' ) end [2025-03-29 20:28:19] Production.INFO: ProcessCDR(1,14791281,1,1,2) [2025-03-29 20:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791281', 'tblTempUsageDetail_20' ) start [2025-03-29 20:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791281', 'tblTempUsageDetail_20' ) end [2025-03-29 20:28:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 20:28:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 20:28:23] Production.INFO: ==10464== Releasing lock... [2025-03-29 20:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 20:28:23] Production.INFO: 47.5 MB #Memory Used# [2025-03-29 20:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 17:29:05 [end_date_ymd] => 2025-03-29 20:29:05 [RateCDR] => 1 ) [2025-03-29 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-29 17:29:05' and `end` < '2025-03-29 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-29 20:29:18] Production.INFO: count ==2611 [2025-03-29 20:29:19] Production.ERROR: pbx CDR StartTime 2025-03-29 17:29:05 - End Time 2025-03-29 20:29:05 [2025-03-29 20:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791286', 'tblTempUsageDetail_20' ) start [2025-03-29 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791286', 'tblTempUsageDetail_20' ) end [2025-03-29 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791286', 'tblTempVendorCDR_20' ) start [2025-03-29 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791286', 'tblTempVendorCDR_20' ) end [2025-03-29 20:29:19] Production.INFO: ProcessCDR(1,14791286,1,1,2) [2025-03-29 20:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791286', 'tblTempUsageDetail_20' ) start [2025-03-29 20:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791286', 'tblTempUsageDetail_20' ) end [2025-03-29 20:29:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 20:29:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 20:29:24] Production.INFO: ==10534== Releasing lock... [2025-03-29 20:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 20:29:24] Production.INFO: 47.75 MB #Memory Used# [2025-03-29 20:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 17:30:06 [end_date_ymd] => 2025-03-29 20:30:06 [RateCDR] => 1 ) [2025-03-29 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-29 17:30:06' and `end` < '2025-03-29 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-29 20:30:19] Production.INFO: count ==2617 [2025-03-29 20:30:19] Production.ERROR: pbx CDR StartTime 2025-03-29 17:30:06 - End Time 2025-03-29 20:30:06 [2025-03-29 20:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791291', 'tblTempUsageDetail_20' ) start [2025-03-29 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791291', 'tblTempUsageDetail_20' ) end [2025-03-29 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791291', 'tblTempVendorCDR_20' ) start [2025-03-29 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791291', 'tblTempVendorCDR_20' ) end [2025-03-29 20:30:20] Production.INFO: ProcessCDR(1,14791291,1,1,2) [2025-03-29 20:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791291', 'tblTempUsageDetail_20' ) start [2025-03-29 20:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791291', 'tblTempUsageDetail_20' ) end [2025-03-29 20:30:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 20:30:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 20:30:23] Production.INFO: ==10611== Releasing lock... [2025-03-29 20:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 20:30:23] Production.INFO: 47.75 MB #Memory Used# [2025-03-29 20:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 17:31:05 [end_date_ymd] => 2025-03-29 20:31:05 [RateCDR] => 1 ) [2025-03-29 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-29 17:31:05' and `end` < '2025-03-29 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-29 20:31:18] Production.INFO: count ==2675 [2025-03-29 20:31:19] Production.ERROR: pbx CDR StartTime 2025-03-29 17:31:05 - End Time 2025-03-29 20:31:05 [2025-03-29 20:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791297', 'tblTempUsageDetail_20' ) start [2025-03-29 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791297', 'tblTempUsageDetail_20' ) end [2025-03-29 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791297', 'tblTempVendorCDR_20' ) start [2025-03-29 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791297', 'tblTempVendorCDR_20' ) end [2025-03-29 20:31:19] Production.INFO: ProcessCDR(1,14791297,1,1,2) [2025-03-29 20:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791297', 'tblTempUsageDetail_20' ) start [2025-03-29 20:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791297', 'tblTempUsageDetail_20' ) end [2025-03-29 20:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 20:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 20:31:22] Production.INFO: ==10728== Releasing lock... [2025-03-29 20:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 20:31:22] Production.INFO: 48.25 MB #Memory Used# [2025-03-29 20:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 17:32:05 [end_date_ymd] => 2025-03-29 20:32:05 [RateCDR] => 1 ) [2025-03-29 20:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 17:32:05' and `end` < '2025-03-29 20:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 20:32:18] Production.INFO: count ==2669 [2025-03-29 20:32:19] Production.ERROR: pbx CDR StartTime 2025-03-29 17:32:05 - End Time 2025-03-29 20:32:05 [2025-03-29 20:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791302', 'tblTempUsageDetail_20' ) start [2025-03-29 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791302', 'tblTempUsageDetail_20' ) end [2025-03-29 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791302', 'tblTempVendorCDR_20' ) start [2025-03-29 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791302', 'tblTempVendorCDR_20' ) end [2025-03-29 20:32:19] Production.INFO: ProcessCDR(1,14791302,1,1,2) [2025-03-29 20:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791302', 'tblTempUsageDetail_20' ) start [2025-03-29 20:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791302', 'tblTempUsageDetail_20' ) end [2025-03-29 20:32:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 20:32:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 20:32:24] Production.INFO: ==10800== Releasing lock... [2025-03-29 20:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 20:32:24] Production.INFO: 48 MB #Memory Used# [2025-03-29 20:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 17:33:05 [end_date_ymd] => 2025-03-29 20:33:05 [RateCDR] => 1 ) [2025-03-29 20:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 17:33:05' and `end` < '2025-03-29 20:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 20:33:18] Production.INFO: count ==2677 [2025-03-29 20:33:19] Production.ERROR: pbx CDR StartTime 2025-03-29 17:33:05 - End Time 2025-03-29 20:33:05 [2025-03-29 20:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791307', 'tblTempUsageDetail_20' ) start [2025-03-29 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791307', 'tblTempUsageDetail_20' ) end [2025-03-29 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791307', 'tblTempVendorCDR_20' ) start [2025-03-29 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791307', 'tblTempVendorCDR_20' ) end [2025-03-29 20:33:19] Production.INFO: ProcessCDR(1,14791307,1,1,2) [2025-03-29 20:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791307', 'tblTempUsageDetail_20' ) start [2025-03-29 20:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791307', 'tblTempUsageDetail_20' ) end [2025-03-29 20:33:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 20:33:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 20:33:24] Production.INFO: ==10874== Releasing lock... [2025-03-29 20:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 20:33:24] Production.INFO: 48.25 MB #Memory Used# [2025-03-29 20:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 17:34:05 [end_date_ymd] => 2025-03-29 20:34:05 [RateCDR] => 1 ) [2025-03-29 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-29 17:34:05' and `end` < '2025-03-29 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-29 20:34:18] Production.INFO: count ==2680 [2025-03-29 20:34:19] Production.ERROR: pbx CDR StartTime 2025-03-29 17:34:05 - End Time 2025-03-29 20:34:05 [2025-03-29 20:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791312', 'tblTempUsageDetail_20' ) start [2025-03-29 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791312', 'tblTempUsageDetail_20' ) end [2025-03-29 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791312', 'tblTempVendorCDR_20' ) start [2025-03-29 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791312', 'tblTempVendorCDR_20' ) end [2025-03-29 20:34:19] Production.INFO: ProcessCDR(1,14791312,1,1,2) [2025-03-29 20:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791312', 'tblTempUsageDetail_20' ) start [2025-03-29 20:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791312', 'tblTempUsageDetail_20' ) end [2025-03-29 20:34:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 20:34:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 20:34:23] Production.INFO: ==10950== Releasing lock... [2025-03-29 20:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 20:34:23] Production.INFO: 48.25 MB #Memory Used# [2025-03-29 20:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 17:35:05 [end_date_ymd] => 2025-03-29 20:35:05 [RateCDR] => 1 ) [2025-03-29 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-29 17:35:05' and `end` < '2025-03-29 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-29 20:35:18] Production.INFO: count ==2668 [2025-03-29 20:35:19] Production.ERROR: pbx CDR StartTime 2025-03-29 17:35:05 - End Time 2025-03-29 20:35:05 [2025-03-29 20:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791317', 'tblTempUsageDetail_20' ) start [2025-03-29 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791317', 'tblTempUsageDetail_20' ) end [2025-03-29 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791317', 'tblTempVendorCDR_20' ) start [2025-03-29 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791317', 'tblTempVendorCDR_20' ) end [2025-03-29 20:35:19] Production.INFO: ProcessCDR(1,14791317,1,1,2) [2025-03-29 20:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791317', 'tblTempUsageDetail_20' ) start [2025-03-29 20:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791317', 'tblTempUsageDetail_20' ) end [2025-03-29 20:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 20:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 20:35:22] Production.INFO: ==11025== Releasing lock... [2025-03-29 20:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 20:35:22] Production.INFO: 48 MB #Memory Used# [2025-03-29 20:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 17:36:06 [end_date_ymd] => 2025-03-29 20:36:06 [RateCDR] => 1 ) [2025-03-29 20: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-29 17:36:06' and `end` < '2025-03-29 20: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-29 20:36:19] Production.INFO: count ==2670 [2025-03-29 20:36:19] Production.ERROR: pbx CDR StartTime 2025-03-29 17:36:06 - End Time 2025-03-29 20:36:06 [2025-03-29 20:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791322', 'tblTempUsageDetail_20' ) start [2025-03-29 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791322', 'tblTempUsageDetail_20' ) end [2025-03-29 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791322', 'tblTempVendorCDR_20' ) start [2025-03-29 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791322', 'tblTempVendorCDR_20' ) end [2025-03-29 20:36:19] Production.INFO: ProcessCDR(1,14791322,1,1,2) [2025-03-29 20:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791322', 'tblTempUsageDetail_20' ) start [2025-03-29 20:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791322', 'tblTempUsageDetail_20' ) end [2025-03-29 20:36:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 20:36:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 20:36:23] Production.INFO: ==11096== Releasing lock... [2025-03-29 20:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 20:36:23] Production.INFO: 48 MB #Memory Used# [2025-03-29 20:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 17:37:05 [end_date_ymd] => 2025-03-29 20:37:05 [RateCDR] => 1 ) [2025-03-29 20:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 17:37:05' and `end` < '2025-03-29 20:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 20:37:18] Production.INFO: count ==2691 [2025-03-29 20:37:19] Production.ERROR: pbx CDR StartTime 2025-03-29 17:37:05 - End Time 2025-03-29 20:37:05 [2025-03-29 20:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791327', 'tblTempUsageDetail_20' ) start [2025-03-29 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791327', 'tblTempUsageDetail_20' ) end [2025-03-29 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791327', 'tblTempVendorCDR_20' ) start [2025-03-29 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791327', 'tblTempVendorCDR_20' ) end [2025-03-29 20:37:19] Production.INFO: ProcessCDR(1,14791327,1,1,2) [2025-03-29 20:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791327', 'tblTempUsageDetail_20' ) start [2025-03-29 20:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791327', 'tblTempUsageDetail_20' ) end [2025-03-29 20:37:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 20:37:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 20:37:23] Production.INFO: ==11168== Releasing lock... [2025-03-29 20:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 20:37:23] Production.INFO: 48.25 MB #Memory Used# [2025-03-29 20:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 17:38:06 [end_date_ymd] => 2025-03-29 20:38:06 [RateCDR] => 1 ) [2025-03-29 20:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 17:38:06' and `end` < '2025-03-29 20:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 20:38:19] Production.INFO: count ==2732 [2025-03-29 20:38:20] Production.ERROR: pbx CDR StartTime 2025-03-29 17:38:06 - End Time 2025-03-29 20:38:06 [2025-03-29 20:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 20:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791332', 'tblTempUsageDetail_20' ) start [2025-03-29 20:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791332', 'tblTempUsageDetail_20' ) end [2025-03-29 20:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791332', 'tblTempVendorCDR_20' ) start [2025-03-29 20:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791332', 'tblTempVendorCDR_20' ) end [2025-03-29 20:38:20] Production.INFO: ProcessCDR(1,14791332,1,1,2) [2025-03-29 20:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791332', 'tblTempUsageDetail_20' ) start [2025-03-29 20:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791332', 'tblTempUsageDetail_20' ) end [2025-03-29 20:38:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 20:38:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 20:38:23] Production.INFO: ==11242== Releasing lock... [2025-03-29 20:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 20:38:23] Production.INFO: 48.5 MB #Memory Used# [2025-03-29 20:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 17:39:05 [end_date_ymd] => 2025-03-29 20:39:05 [RateCDR] => 1 ) [2025-03-29 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-29 17:39:05' and `end` < '2025-03-29 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-29 20:39:18] Production.INFO: count ==2740 [2025-03-29 20:39:19] Production.ERROR: pbx CDR StartTime 2025-03-29 17:39:05 - End Time 2025-03-29 20:39:05 [2025-03-29 20:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791337', 'tblTempUsageDetail_20' ) start [2025-03-29 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791337', 'tblTempUsageDetail_20' ) end [2025-03-29 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791337', 'tblTempVendorCDR_20' ) start [2025-03-29 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791337', 'tblTempVendorCDR_20' ) end [2025-03-29 20:39:19] Production.INFO: ProcessCDR(1,14791337,1,1,2) [2025-03-29 20:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791337', 'tblTempUsageDetail_20' ) start [2025-03-29 20:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791337', 'tblTempUsageDetail_20' ) end [2025-03-29 20:39:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 20:39:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 20:39:22] Production.INFO: ==11319== Releasing lock... [2025-03-29 20:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 20:39:22] Production.INFO: 48.5 MB #Memory Used# [2025-03-29 20:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 17:40:06 [end_date_ymd] => 2025-03-29 20:40:06 [RateCDR] => 1 ) [2025-03-29 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-29 17:40:06' and `end` < '2025-03-29 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-29 20:40:19] Production.INFO: count ==2721 [2025-03-29 20:40:19] Production.ERROR: pbx CDR StartTime 2025-03-29 17:40:06 - End Time 2025-03-29 20:40:06 [2025-03-29 20:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791342', 'tblTempUsageDetail_20' ) start [2025-03-29 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791342', 'tblTempUsageDetail_20' ) end [2025-03-29 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791342', 'tblTempVendorCDR_20' ) start [2025-03-29 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791342', 'tblTempVendorCDR_20' ) end [2025-03-29 20:40:19] Production.INFO: ProcessCDR(1,14791342,1,1,2) [2025-03-29 20:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791342', 'tblTempUsageDetail_20' ) start [2025-03-29 20:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791342', 'tblTempUsageDetail_20' ) end [2025-03-29 20:40:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 20:40:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 20:40:23] Production.INFO: ==11397== Releasing lock... [2025-03-29 20:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 20:40:23] Production.INFO: 48.5 MB #Memory Used# [2025-03-29 20:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 17:41:05 [end_date_ymd] => 2025-03-29 20:41:05 [RateCDR] => 1 ) [2025-03-29 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-29 17:41:05' and `end` < '2025-03-29 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-29 20:41:18] Production.INFO: count ==2698 [2025-03-29 20:41:19] Production.ERROR: pbx CDR StartTime 2025-03-29 17:41:05 - End Time 2025-03-29 20:41:05 [2025-03-29 20:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791348', 'tblTempUsageDetail_20' ) start [2025-03-29 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791348', 'tblTempUsageDetail_20' ) end [2025-03-29 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791348', 'tblTempVendorCDR_20' ) start [2025-03-29 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791348', 'tblTempVendorCDR_20' ) end [2025-03-29 20:41:19] Production.INFO: ProcessCDR(1,14791348,1,1,2) [2025-03-29 20:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791348', 'tblTempUsageDetail_20' ) start [2025-03-29 20:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791348', 'tblTempUsageDetail_20' ) end [2025-03-29 20:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 20:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 20:41:22] Production.INFO: ==11474== Releasing lock... [2025-03-29 20:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 20:41:22] Production.INFO: 48.25 MB #Memory Used# [2025-03-29 20:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 17:42:05 [end_date_ymd] => 2025-03-29 20:42:05 [RateCDR] => 1 ) [2025-03-29 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-29 17:42:05' and `end` < '2025-03-29 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-29 20:42:18] Production.INFO: count ==2696 [2025-03-29 20:42:19] Production.ERROR: pbx CDR StartTime 2025-03-29 17:42:05 - End Time 2025-03-29 20:42:05 [2025-03-29 20:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791353', 'tblTempUsageDetail_20' ) start [2025-03-29 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791353', 'tblTempUsageDetail_20' ) end [2025-03-29 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791353', 'tblTempVendorCDR_20' ) start [2025-03-29 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791353', 'tblTempVendorCDR_20' ) end [2025-03-29 20:42:19] Production.INFO: ProcessCDR(1,14791353,1,1,2) [2025-03-29 20:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791353', 'tblTempUsageDetail_20' ) start [2025-03-29 20:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791353', 'tblTempUsageDetail_20' ) end [2025-03-29 20:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 20:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 20:42:22] Production.INFO: ==11552== Releasing lock... [2025-03-29 20:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 20:42:22] Production.INFO: 48.25 MB #Memory Used# [2025-03-29 20:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 17:43:05 [end_date_ymd] => 2025-03-29 20:43:05 [RateCDR] => 1 ) [2025-03-29 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-29 17:43:05' and `end` < '2025-03-29 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-29 20:43:17] Production.INFO: count ==2664 [2025-03-29 20:43:18] Production.ERROR: pbx CDR StartTime 2025-03-29 17:43:05 - End Time 2025-03-29 20:43:05 [2025-03-29 20:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791358', 'tblTempUsageDetail_20' ) start [2025-03-29 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791358', 'tblTempUsageDetail_20' ) end [2025-03-29 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791358', 'tblTempVendorCDR_20' ) start [2025-03-29 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791358', 'tblTempVendorCDR_20' ) end [2025-03-29 20:43:18] Production.INFO: ProcessCDR(1,14791358,1,1,2) [2025-03-29 20:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791358', 'tblTempUsageDetail_20' ) start [2025-03-29 20:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791358', 'tblTempUsageDetail_20' ) end [2025-03-29 20:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 20:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 20:43:22] Production.INFO: ==11631== Releasing lock... [2025-03-29 20:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 20:43:22] Production.INFO: 48 MB #Memory Used# [2025-03-29 20:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 17:44:05 [end_date_ymd] => 2025-03-29 20:44:05 [RateCDR] => 1 ) [2025-03-29 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-29 17:44:05' and `end` < '2025-03-29 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-29 20:44:18] Production.INFO: count ==2657 [2025-03-29 20:44:19] Production.ERROR: pbx CDR StartTime 2025-03-29 17:44:05 - End Time 2025-03-29 20:44:05 [2025-03-29 20:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791363', 'tblTempUsageDetail_20' ) start [2025-03-29 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791363', 'tblTempUsageDetail_20' ) end [2025-03-29 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791363', 'tblTempVendorCDR_20' ) start [2025-03-29 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791363', 'tblTempVendorCDR_20' ) end [2025-03-29 20:44:19] Production.INFO: ProcessCDR(1,14791363,1,1,2) [2025-03-29 20:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791363', 'tblTempUsageDetail_20' ) start [2025-03-29 20:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791363', 'tblTempUsageDetail_20' ) end [2025-03-29 20:44:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 20:44:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 20:44:23] Production.INFO: ==11721== Releasing lock... [2025-03-29 20:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 20:44:23] Production.INFO: 48 MB #Memory Used# [2025-03-29 20:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 17:45:05 [end_date_ymd] => 2025-03-29 20:45:05 [RateCDR] => 1 ) [2025-03-29 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-29 17:45:05' and `end` < '2025-03-29 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-29 20:45:18] Production.INFO: count ==2665 [2025-03-29 20:45:19] Production.ERROR: pbx CDR StartTime 2025-03-29 17:45:05 - End Time 2025-03-29 20:45:05 [2025-03-29 20:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 20:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791368', 'tblTempUsageDetail_20' ) start [2025-03-29 20:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791368', 'tblTempUsageDetail_20' ) end [2025-03-29 20:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791368', 'tblTempVendorCDR_20' ) start [2025-03-29 20:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791368', 'tblTempVendorCDR_20' ) end [2025-03-29 20:45:19] Production.INFO: ProcessCDR(1,14791368,1,1,2) [2025-03-29 20:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791368', 'tblTempUsageDetail_20' ) start [2025-03-29 20:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791368', 'tblTempUsageDetail_20' ) end [2025-03-29 20:45:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 20:45:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 20:45:24] Production.INFO: ==11802== Releasing lock... [2025-03-29 20:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 20:45:24] Production.INFO: 48 MB #Memory Used# [2025-03-29 20:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 17:46:05 [end_date_ymd] => 2025-03-29 20:46:05 [RateCDR] => 1 ) [2025-03-29 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-29 17:46:05' and `end` < '2025-03-29 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-29 20:46:18] Production.INFO: count ==2634 [2025-03-29 20:46:19] Production.ERROR: pbx CDR StartTime 2025-03-29 17:46:05 - End Time 2025-03-29 20:46:05 [2025-03-29 20:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791373', 'tblTempUsageDetail_20' ) start [2025-03-29 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791373', 'tblTempUsageDetail_20' ) end [2025-03-29 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791373', 'tblTempVendorCDR_20' ) start [2025-03-29 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791373', 'tblTempVendorCDR_20' ) end [2025-03-29 20:46:19] Production.INFO: ProcessCDR(1,14791373,1,1,2) [2025-03-29 20:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791373', 'tblTempUsageDetail_20' ) start [2025-03-29 20:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791373', 'tblTempUsageDetail_20' ) end [2025-03-29 20:46:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 20:46:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 20:46:24] Production.INFO: ==11884== Releasing lock... [2025-03-29 20:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 20:46:24] Production.INFO: 47.75 MB #Memory Used# [2025-03-29 20:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 17:47:05 [end_date_ymd] => 2025-03-29 20:47:05 [RateCDR] => 1 ) [2025-03-29 20:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 17:47:05' and `end` < '2025-03-29 20:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 20:47:18] Production.INFO: count ==2601 [2025-03-29 20:47:19] Production.ERROR: pbx CDR StartTime 2025-03-29 17:47:05 - End Time 2025-03-29 20:47:05 [2025-03-29 20:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791378', 'tblTempUsageDetail_20' ) start [2025-03-29 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791378', 'tblTempUsageDetail_20' ) end [2025-03-29 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791378', 'tblTempVendorCDR_20' ) start [2025-03-29 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791378', 'tblTempVendorCDR_20' ) end [2025-03-29 20:47:19] Production.INFO: ProcessCDR(1,14791378,1,1,2) [2025-03-29 20:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791378', 'tblTempUsageDetail_20' ) start [2025-03-29 20:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791378', 'tblTempUsageDetail_20' ) end [2025-03-29 20:47:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 20:47:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 20:47:24] Production.INFO: ==12009== Releasing lock... [2025-03-29 20:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 20:47:24] Production.INFO: 47.5 MB #Memory Used# [2025-03-29 20:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 17:48:05 [end_date_ymd] => 2025-03-29 20:48:05 [RateCDR] => 1 ) [2025-03-29 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-29 17:48:05' and `end` < '2025-03-29 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-29 20:48:18] Production.INFO: count ==2597 [2025-03-29 20:48:19] Production.ERROR: pbx CDR StartTime 2025-03-29 17:48:05 - End Time 2025-03-29 20:48:05 [2025-03-29 20:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791383', 'tblTempUsageDetail_20' ) start [2025-03-29 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791383', 'tblTempUsageDetail_20' ) end [2025-03-29 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791383', 'tblTempVendorCDR_20' ) start [2025-03-29 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791383', 'tblTempVendorCDR_20' ) end [2025-03-29 20:48:19] Production.INFO: ProcessCDR(1,14791383,1,1,2) [2025-03-29 20:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791383', 'tblTempUsageDetail_20' ) start [2025-03-29 20:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791383', 'tblTempUsageDetail_20' ) end [2025-03-29 20:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 20:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 20:48:22] Production.INFO: ==12098== Releasing lock... [2025-03-29 20:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 20:48:22] Production.INFO: 47.5 MB #Memory Used# [2025-03-29 20:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 17:49:05 [end_date_ymd] => 2025-03-29 20:49:05 [RateCDR] => 1 ) [2025-03-29 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-29 17:49:05' and `end` < '2025-03-29 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-29 20:49:18] Production.INFO: count ==2597 [2025-03-29 20:49:19] Production.ERROR: pbx CDR StartTime 2025-03-29 17:49:05 - End Time 2025-03-29 20:49:05 [2025-03-29 20:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791388', 'tblTempUsageDetail_20' ) start [2025-03-29 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791388', 'tblTempUsageDetail_20' ) end [2025-03-29 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791388', 'tblTempVendorCDR_20' ) start [2025-03-29 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791388', 'tblTempVendorCDR_20' ) end [2025-03-29 20:49:19] Production.INFO: ProcessCDR(1,14791388,1,1,2) [2025-03-29 20:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791388', 'tblTempUsageDetail_20' ) start [2025-03-29 20:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791388', 'tblTempUsageDetail_20' ) end [2025-03-29 20:49:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 20:49:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 20:49:24] Production.INFO: ==12181== Releasing lock... [2025-03-29 20:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 20:49:24] Production.INFO: 47.5 MB #Memory Used# [2025-03-29 20:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 17:50:06 [end_date_ymd] => 2025-03-29 20:50:06 [RateCDR] => 1 ) [2025-03-29 20:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 17:50:06' and `end` < '2025-03-29 20:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 20:50:19] Production.INFO: count ==2586 [2025-03-29 20:50:20] Production.ERROR: pbx CDR StartTime 2025-03-29 17:50:06 - End Time 2025-03-29 20:50:06 [2025-03-29 20:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791394', 'tblTempUsageDetail_20' ) start [2025-03-29 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791394', 'tblTempUsageDetail_20' ) end [2025-03-29 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791394', 'tblTempVendorCDR_20' ) start [2025-03-29 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791394', 'tblTempVendorCDR_20' ) end [2025-03-29 20:50:20] Production.INFO: ProcessCDR(1,14791394,1,1,2) [2025-03-29 20:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791394', 'tblTempUsageDetail_20' ) start [2025-03-29 20:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791394', 'tblTempUsageDetail_20' ) end [2025-03-29 20:50:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 20:50:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 20:50:23] Production.INFO: ==12263== Releasing lock... [2025-03-29 20:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 20:50:23] Production.INFO: 47.5 MB #Memory Used# [2025-03-29 20:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 17:51:06 [end_date_ymd] => 2025-03-29 20:51:06 [RateCDR] => 1 ) [2025-03-29 20:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 17:51:06' and `end` < '2025-03-29 20:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 20:51:19] Production.INFO: count ==2548 [2025-03-29 20:51:20] Production.ERROR: pbx CDR StartTime 2025-03-29 17:51:06 - End Time 2025-03-29 20:51:06 [2025-03-29 20:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 20:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791399', 'tblTempUsageDetail_20' ) start [2025-03-29 20:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791399', 'tblTempUsageDetail_20' ) end [2025-03-29 20:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791399', 'tblTempVendorCDR_20' ) start [2025-03-29 20:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791399', 'tblTempVendorCDR_20' ) end [2025-03-29 20:51:20] Production.INFO: ProcessCDR(1,14791399,1,1,2) [2025-03-29 20:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791399', 'tblTempUsageDetail_20' ) start [2025-03-29 20:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791399', 'tblTempUsageDetail_20' ) end [2025-03-29 20:51:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 20:51:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 20:51:23] Production.INFO: ==12350== Releasing lock... [2025-03-29 20:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 20:51:23] Production.INFO: 47.25 MB #Memory Used# [2025-03-29 20:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 17:52:05 [end_date_ymd] => 2025-03-29 20:52:05 [RateCDR] => 1 ) [2025-03-29 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-29 17:52:05' and `end` < '2025-03-29 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-29 20:52:18] Production.INFO: count ==2534 [2025-03-29 20:52:19] Production.ERROR: pbx CDR StartTime 2025-03-29 17:52:05 - End Time 2025-03-29 20:52:05 [2025-03-29 20:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791404', 'tblTempUsageDetail_20' ) start [2025-03-29 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791404', 'tblTempUsageDetail_20' ) end [2025-03-29 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791404', 'tblTempVendorCDR_20' ) start [2025-03-29 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791404', 'tblTempVendorCDR_20' ) end [2025-03-29 20:52:19] Production.INFO: ProcessCDR(1,14791404,1,1,2) [2025-03-29 20:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791404', 'tblTempUsageDetail_20' ) start [2025-03-29 20:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791404', 'tblTempUsageDetail_20' ) end [2025-03-29 20:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 20:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 20:52:22] Production.INFO: ==12434== Releasing lock... [2025-03-29 20:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 20:52:22] Production.INFO: 47 MB #Memory Used# [2025-03-29 20:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 17:53:06 [end_date_ymd] => 2025-03-29 20:53:06 [RateCDR] => 1 ) [2025-03-29 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-29 17:53:06' and `end` < '2025-03-29 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-29 20:53:19] Production.INFO: count ==2533 [2025-03-29 20:53:19] Production.ERROR: pbx CDR StartTime 2025-03-29 17:53:06 - End Time 2025-03-29 20:53:06 [2025-03-29 20:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791409', 'tblTempUsageDetail_20' ) start [2025-03-29 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791409', 'tblTempUsageDetail_20' ) end [2025-03-29 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791409', 'tblTempVendorCDR_20' ) start [2025-03-29 20:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791409', 'tblTempVendorCDR_20' ) end [2025-03-29 20:53:20] Production.INFO: ProcessCDR(1,14791409,1,1,2) [2025-03-29 20:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791409', 'tblTempUsageDetail_20' ) start [2025-03-29 20:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791409', 'tblTempUsageDetail_20' ) end [2025-03-29 20:53:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 20:53:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 20:53:23] Production.INFO: ==12523== Releasing lock... [2025-03-29 20:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 20:53:23] Production.INFO: 47 MB #Memory Used# [2025-03-29 20:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 17:54:05 [end_date_ymd] => 2025-03-29 20:54:05 [RateCDR] => 1 ) [2025-03-29 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-29 17:54:05' and `end` < '2025-03-29 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-29 20:54:18] Production.INFO: count ==2539 [2025-03-29 20:54:19] Production.ERROR: pbx CDR StartTime 2025-03-29 17:54:05 - End Time 2025-03-29 20:54:05 [2025-03-29 20:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791414', 'tblTempUsageDetail_20' ) start [2025-03-29 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791414', 'tblTempUsageDetail_20' ) end [2025-03-29 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791414', 'tblTempVendorCDR_20' ) start [2025-03-29 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791414', 'tblTempVendorCDR_20' ) end [2025-03-29 20:54:19] Production.INFO: ProcessCDR(1,14791414,1,1,2) [2025-03-29 20:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791414', 'tblTempUsageDetail_20' ) start [2025-03-29 20:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791414', 'tblTempUsageDetail_20' ) end [2025-03-29 20:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 20:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 20:54:22] Production.INFO: ==12603== Releasing lock... [2025-03-29 20:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 20:54:22] Production.INFO: 47 MB #Memory Used# [2025-03-29 20:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 17:55:05 [end_date_ymd] => 2025-03-29 20:55:05 [RateCDR] => 1 ) [2025-03-29 20:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 17:55:05' and `end` < '2025-03-29 20:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 20:55:18] Production.INFO: count ==2543 [2025-03-29 20:55:19] Production.ERROR: pbx CDR StartTime 2025-03-29 17:55:05 - End Time 2025-03-29 20:55:05 [2025-03-29 20:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791418', 'tblTempUsageDetail_20' ) start [2025-03-29 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791418', 'tblTempUsageDetail_20' ) end [2025-03-29 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791418', 'tblTempVendorCDR_20' ) start [2025-03-29 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791418', 'tblTempVendorCDR_20' ) end [2025-03-29 20:55:19] Production.INFO: ProcessCDR(1,14791418,1,1,2) [2025-03-29 20:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791418', 'tblTempUsageDetail_20' ) start [2025-03-29 20:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791418', 'tblTempUsageDetail_20' ) end [2025-03-29 20:55:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 20:55:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 20:55:23] Production.INFO: ==12686== Releasing lock... [2025-03-29 20:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 20:55:23] Production.INFO: 47 MB #Memory Used# [2025-03-29 20:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 17:56:05 [end_date_ymd] => 2025-03-29 20:56:05 [RateCDR] => 1 ) [2025-03-29 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-29 17:56:05' and `end` < '2025-03-29 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-29 20:56:18] Production.INFO: count ==2543 [2025-03-29 20:56:19] Production.ERROR: pbx CDR StartTime 2025-03-29 17:56:05 - End Time 2025-03-29 20:56:05 [2025-03-29 20:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791424', 'tblTempUsageDetail_20' ) start [2025-03-29 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791424', 'tblTempUsageDetail_20' ) end [2025-03-29 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791424', 'tblTempVendorCDR_20' ) start [2025-03-29 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791424', 'tblTempVendorCDR_20' ) end [2025-03-29 20:56:19] Production.INFO: ProcessCDR(1,14791424,1,1,2) [2025-03-29 20:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791424', 'tblTempUsageDetail_20' ) start [2025-03-29 20:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791424', 'tblTempUsageDetail_20' ) end [2025-03-29 20:56:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 20:56:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 20:56:23] Production.INFO: ==12769== Releasing lock... [2025-03-29 20:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 20:56:23] Production.INFO: 47.25 MB #Memory Used# [2025-03-29 20:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 17:57:05 [end_date_ymd] => 2025-03-29 20:57:05 [RateCDR] => 1 ) [2025-03-29 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-29 17:57:05' and `end` < '2025-03-29 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-29 20:57:18] Production.INFO: count ==2551 [2025-03-29 20:57:19] Production.ERROR: pbx CDR StartTime 2025-03-29 17:57:05 - End Time 2025-03-29 20:57:05 [2025-03-29 20:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791429', 'tblTempUsageDetail_20' ) start [2025-03-29 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791429', 'tblTempUsageDetail_20' ) end [2025-03-29 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791429', 'tblTempVendorCDR_20' ) start [2025-03-29 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791429', 'tblTempVendorCDR_20' ) end [2025-03-29 20:57:19] Production.INFO: ProcessCDR(1,14791429,1,1,2) [2025-03-29 20:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791429', 'tblTempUsageDetail_20' ) start [2025-03-29 20:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791429', 'tblTempUsageDetail_20' ) end [2025-03-29 20:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 20:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 20:57:22] Production.INFO: ==12858== Releasing lock... [2025-03-29 20:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 20:57:22] Production.INFO: 47.25 MB #Memory Used# [2025-03-29 20:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 17:58:04 [end_date_ymd] => 2025-03-29 20:58:04 [RateCDR] => 1 ) [2025-03-29 20:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 17:58:04' and `end` < '2025-03-29 20:58:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 20:58:17] Production.INFO: count ==2571 [2025-03-29 20:58:18] Production.ERROR: pbx CDR StartTime 2025-03-29 17:58:04 - End Time 2025-03-29 20:58:04 [2025-03-29 20:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791434', 'tblTempUsageDetail_20' ) start [2025-03-29 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791434', 'tblTempUsageDetail_20' ) end [2025-03-29 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791434', 'tblTempVendorCDR_20' ) start [2025-03-29 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791434', 'tblTempVendorCDR_20' ) end [2025-03-29 20:58:18] Production.INFO: ProcessCDR(1,14791434,1,1,2) [2025-03-29 20:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791434', 'tblTempUsageDetail_20' ) start [2025-03-29 20:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791434', 'tblTempUsageDetail_20' ) end [2025-03-29 20:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 20:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 20:58:22] Production.INFO: ==12945== Releasing lock... [2025-03-29 20:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 20:58:22] Production.INFO: 47 MB #Memory Used# [2025-03-29 20:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 17:59:05 [end_date_ymd] => 2025-03-29 20:59:05 [RateCDR] => 1 ) [2025-03-29 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-29 17:59:05' and `end` < '2025-03-29 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-29 20:59:18] Production.INFO: count ==2588 [2025-03-29 20:59:19] Production.ERROR: pbx CDR StartTime 2025-03-29 17:59:05 - End Time 2025-03-29 20:59:05 [2025-03-29 20:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791439', 'tblTempUsageDetail_20' ) start [2025-03-29 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791439', 'tblTempUsageDetail_20' ) end [2025-03-29 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791439', 'tblTempVendorCDR_20' ) start [2025-03-29 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791439', 'tblTempVendorCDR_20' ) end [2025-03-29 20:59:19] Production.INFO: ProcessCDR(1,14791439,1,1,2) [2025-03-29 20:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 20:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 20:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791439', 'tblTempUsageDetail_20' ) start [2025-03-29 20:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791439', 'tblTempUsageDetail_20' ) end [2025-03-29 20:59:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 20:59:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 20:59:22] Production.INFO: ==13036== Releasing lock... [2025-03-29 20:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 20:59:22] Production.INFO: 47.5 MB #Memory Used# [2025-03-29 21:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 18:00:06 [end_date_ymd] => 2025-03-29 21:00:06 [RateCDR] => 1 ) [2025-03-29 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-29 18:00:06' and `end` < '2025-03-29 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-29 21:00:19] Production.INFO: count ==2580 [2025-03-29 21:00:19] Production.ERROR: pbx CDR StartTime 2025-03-29 18:00:06 - End Time 2025-03-29 21:00:06 [2025-03-29 21:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791444', 'tblTempUsageDetail_20' ) start [2025-03-29 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791444', 'tblTempUsageDetail_20' ) end [2025-03-29 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791444', 'tblTempVendorCDR_20' ) start [2025-03-29 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791444', 'tblTempVendorCDR_20' ) end [2025-03-29 21:00:19] Production.INFO: ProcessCDR(1,14791444,1,1,2) [2025-03-29 21:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791444', 'tblTempUsageDetail_20' ) start [2025-03-29 21:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791444', 'tblTempUsageDetail_20' ) end [2025-03-29 21:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 21:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 21:00:23] Production.INFO: ==13127== Releasing lock... [2025-03-29 21:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 21:00:23] Production.INFO: 47.5 MB #Memory Used# [2025-03-29 21:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 18:01:05 [end_date_ymd] => 2025-03-29 21:01:05 [RateCDR] => 1 ) [2025-03-29 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-29 18:01:05' and `end` < '2025-03-29 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-29 21:01:18] Production.INFO: count ==2566 [2025-03-29 21:01:18] Production.ERROR: pbx CDR StartTime 2025-03-29 18:01:05 - End Time 2025-03-29 21:01:05 [2025-03-29 21:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791450', 'tblTempUsageDetail_20' ) start [2025-03-29 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791450', 'tblTempUsageDetail_20' ) end [2025-03-29 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791450', 'tblTempVendorCDR_20' ) start [2025-03-29 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791450', 'tblTempVendorCDR_20' ) end [2025-03-29 21:01:18] Production.INFO: ProcessCDR(1,14791450,1,1,2) [2025-03-29 21:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791450', 'tblTempUsageDetail_20' ) start [2025-03-29 21:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791450', 'tblTempUsageDetail_20' ) end [2025-03-29 21:01:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 21:01:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 21:01:23] Production.INFO: ==13235== Releasing lock... [2025-03-29 21:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 21:01:23] Production.INFO: 47.25 MB #Memory Used# [2025-03-29 21:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 18:02:05 [end_date_ymd] => 2025-03-29 21:02:05 [RateCDR] => 1 ) [2025-03-29 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-29 18:02:05' and `end` < '2025-03-29 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-29 21:02:18] Production.INFO: count ==2577 [2025-03-29 21:02:19] Production.ERROR: pbx CDR StartTime 2025-03-29 18:02:05 - End Time 2025-03-29 21:02:05 [2025-03-29 21:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791455', 'tblTempUsageDetail_20' ) start [2025-03-29 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791455', 'tblTempUsageDetail_20' ) end [2025-03-29 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791455', 'tblTempVendorCDR_20' ) start [2025-03-29 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791455', 'tblTempVendorCDR_20' ) end [2025-03-29 21:02:19] Production.INFO: ProcessCDR(1,14791455,1,1,2) [2025-03-29 21:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791455', 'tblTempUsageDetail_20' ) start [2025-03-29 21:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791455', 'tblTempUsageDetail_20' ) end [2025-03-29 21:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 21:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 21:02:22] Production.INFO: ==13369== Releasing lock... [2025-03-29 21:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 21:02:22] Production.INFO: 47.5 MB #Memory Used# [2025-03-29 21:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 18:03:05 [end_date_ymd] => 2025-03-29 21:03:05 [RateCDR] => 1 ) [2025-03-29 21:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 18:03:05' and `end` < '2025-03-29 21:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 21:03:18] Production.INFO: count ==2582 [2025-03-29 21:03:19] Production.ERROR: pbx CDR StartTime 2025-03-29 18:03:05 - End Time 2025-03-29 21:03:05 [2025-03-29 21:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791460', 'tblTempUsageDetail_20' ) start [2025-03-29 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791460', 'tblTempUsageDetail_20' ) end [2025-03-29 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791460', 'tblTempVendorCDR_20' ) start [2025-03-29 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791460', 'tblTempVendorCDR_20' ) end [2025-03-29 21:03:19] Production.INFO: ProcessCDR(1,14791460,1,1,2) [2025-03-29 21:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791460', 'tblTempUsageDetail_20' ) start [2025-03-29 21:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791460', 'tblTempUsageDetail_20' ) end [2025-03-29 21:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 21:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 21:03:22] Production.INFO: ==13465== Releasing lock... [2025-03-29 21:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 21:03:22] Production.INFO: 47.5 MB #Memory Used# [2025-03-29 21:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 18:04:06 [end_date_ymd] => 2025-03-29 21:04:06 [RateCDR] => 1 ) [2025-03-29 21:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 18:04:06' and `end` < '2025-03-29 21:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 21:04:19] Production.INFO: count ==2566 [2025-03-29 21:04:19] Production.ERROR: pbx CDR StartTime 2025-03-29 18:04:06 - End Time 2025-03-29 21:04:06 [2025-03-29 21:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791465', 'tblTempUsageDetail_20' ) start [2025-03-29 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791465', 'tblTempUsageDetail_20' ) end [2025-03-29 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791465', 'tblTempVendorCDR_20' ) start [2025-03-29 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791465', 'tblTempVendorCDR_20' ) end [2025-03-29 21:04:19] Production.INFO: ProcessCDR(1,14791465,1,1,2) [2025-03-29 21:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791465', 'tblTempUsageDetail_20' ) start [2025-03-29 21:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791465', 'tblTempUsageDetail_20' ) end [2025-03-29 21:04:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 21:04:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 21:04:23] Production.INFO: ==13558== Releasing lock... [2025-03-29 21:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 21:04:23] Production.INFO: 47.25 MB #Memory Used# [2025-03-29 21:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 18:05:05 [end_date_ymd] => 2025-03-29 21:05:05 [RateCDR] => 1 ) [2025-03-29 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-29 18:05:05' and `end` < '2025-03-29 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-29 21:05:18] Production.INFO: count ==2567 [2025-03-29 21:05:18] Production.ERROR: pbx CDR StartTime 2025-03-29 18:05:05 - End Time 2025-03-29 21:05:05 [2025-03-29 21:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791470', 'tblTempUsageDetail_20' ) start [2025-03-29 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791470', 'tblTempUsageDetail_20' ) end [2025-03-29 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791470', 'tblTempVendorCDR_20' ) start [2025-03-29 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791470', 'tblTempVendorCDR_20' ) end [2025-03-29 21:05:18] Production.INFO: ProcessCDR(1,14791470,1,1,2) [2025-03-29 21:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791470', 'tblTempUsageDetail_20' ) start [2025-03-29 21:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791470', 'tblTempUsageDetail_20' ) end [2025-03-29 21:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 21:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 21:05:22] Production.INFO: ==13646== Releasing lock... [2025-03-29 21:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 21:05:22] Production.INFO: 47.25 MB #Memory Used# [2025-03-29 21:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 18:06:05 [end_date_ymd] => 2025-03-29 21:06:05 [RateCDR] => 1 ) [2025-03-29 21:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 18:06:05' and `end` < '2025-03-29 21:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 21:06:18] Production.INFO: count ==2567 [2025-03-29 21:06:19] Production.ERROR: pbx CDR StartTime 2025-03-29 18:06:05 - End Time 2025-03-29 21:06:05 [2025-03-29 21:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791475', 'tblTempUsageDetail_20' ) start [2025-03-29 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791475', 'tblTempUsageDetail_20' ) end [2025-03-29 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791475', 'tblTempVendorCDR_20' ) start [2025-03-29 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791475', 'tblTempVendorCDR_20' ) end [2025-03-29 21:06:19] Production.INFO: ProcessCDR(1,14791475,1,1,2) [2025-03-29 21:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791475', 'tblTempUsageDetail_20' ) start [2025-03-29 21:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791475', 'tblTempUsageDetail_20' ) end [2025-03-29 21:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 21:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 21:06:22] Production.INFO: ==13732== Releasing lock... [2025-03-29 21:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 21:06:22] Production.INFO: 47.25 MB #Memory Used# [2025-03-29 21:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 18:07:05 [end_date_ymd] => 2025-03-29 21:07:05 [RateCDR] => 1 ) [2025-03-29 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-29 18:07:05' and `end` < '2025-03-29 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-29 21:07:18] Production.INFO: count ==2570 [2025-03-29 21:07:19] Production.ERROR: pbx CDR StartTime 2025-03-29 18:07:05 - End Time 2025-03-29 21:07:05 [2025-03-29 21:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791480', 'tblTempUsageDetail_20' ) start [2025-03-29 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791480', 'tblTempUsageDetail_20' ) end [2025-03-29 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791480', 'tblTempVendorCDR_20' ) start [2025-03-29 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791480', 'tblTempVendorCDR_20' ) end [2025-03-29 21:07:19] Production.INFO: ProcessCDR(1,14791480,1,1,2) [2025-03-29 21:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791480', 'tblTempUsageDetail_20' ) start [2025-03-29 21:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791480', 'tblTempUsageDetail_20' ) end [2025-03-29 21:07:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 21:07:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 21:07:24] Production.INFO: ==13814== Releasing lock... [2025-03-29 21:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 21:07:24] Production.INFO: 47.25 MB #Memory Used# [2025-03-29 21:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 18:08:05 [end_date_ymd] => 2025-03-29 21:08:05 [RateCDR] => 1 ) [2025-03-29 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-29 18:08:05' and `end` < '2025-03-29 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-29 21:08:18] Production.INFO: count ==2558 [2025-03-29 21:08:19] Production.ERROR: pbx CDR StartTime 2025-03-29 18:08:05 - End Time 2025-03-29 21:08:05 [2025-03-29 21:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791485', 'tblTempUsageDetail_20' ) start [2025-03-29 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791485', 'tblTempUsageDetail_20' ) end [2025-03-29 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791485', 'tblTempVendorCDR_20' ) start [2025-03-29 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791485', 'tblTempVendorCDR_20' ) end [2025-03-29 21:08:19] Production.INFO: ProcessCDR(1,14791485,1,1,2) [2025-03-29 21:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791485', 'tblTempUsageDetail_20' ) start [2025-03-29 21:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791485', 'tblTempUsageDetail_20' ) end [2025-03-29 21:08:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 21:08:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 21:08:24] Production.INFO: ==13905== Releasing lock... [2025-03-29 21:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 21:08:24] Production.INFO: 47.25 MB #Memory Used# [2025-03-29 21:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 18:09:04 [end_date_ymd] => 2025-03-29 21:09:04 [RateCDR] => 1 ) [2025-03-29 21:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 18:09:04' and `end` < '2025-03-29 21:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 21:09:17] Production.INFO: count ==2562 [2025-03-29 21:09:18] Production.ERROR: pbx CDR StartTime 2025-03-29 18:09:04 - End Time 2025-03-29 21:09:04 [2025-03-29 21:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791490', 'tblTempUsageDetail_20' ) start [2025-03-29 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791490', 'tblTempUsageDetail_20' ) end [2025-03-29 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791490', 'tblTempVendorCDR_20' ) start [2025-03-29 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791490', 'tblTempVendorCDR_20' ) end [2025-03-29 21:09:18] Production.INFO: ProcessCDR(1,14791490,1,1,2) [2025-03-29 21:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791490', 'tblTempUsageDetail_20' ) start [2025-03-29 21:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791490', 'tblTempUsageDetail_20' ) end [2025-03-29 21:09:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 21:09:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 21:09:22] Production.INFO: ==13999== Releasing lock... [2025-03-29 21:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 21:09:22] Production.INFO: 47.75 MB #Memory Used# [2025-03-29 21:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 18:10:05 [end_date_ymd] => 2025-03-29 21:10:05 [RateCDR] => 1 ) [2025-03-29 21:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 18:10:05' and `end` < '2025-03-29 21:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 21:10:18] Production.INFO: count ==2528 [2025-03-29 21:10:19] Production.ERROR: pbx CDR StartTime 2025-03-29 18:10:05 - End Time 2025-03-29 21:10:05 [2025-03-29 21:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791496', 'tblTempUsageDetail_20' ) start [2025-03-29 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791496', 'tblTempUsageDetail_20' ) end [2025-03-29 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791496', 'tblTempVendorCDR_20' ) start [2025-03-29 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791496', 'tblTempVendorCDR_20' ) end [2025-03-29 21:10:19] Production.INFO: ProcessCDR(1,14791496,1,1,2) [2025-03-29 21:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791496', 'tblTempUsageDetail_20' ) start [2025-03-29 21:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791496', 'tblTempUsageDetail_20' ) end [2025-03-29 21:10:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 21:10:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 21:10:23] Production.INFO: ==14089== Releasing lock... [2025-03-29 21:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 21:10:23] Production.INFO: 47 MB #Memory Used# [2025-03-29 21:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 18:11:05 [end_date_ymd] => 2025-03-29 21:11:05 [RateCDR] => 1 ) [2025-03-29 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-29 18:11:05' and `end` < '2025-03-29 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-29 21:11:18] Production.INFO: count ==2453 [2025-03-29 21:11:19] Production.ERROR: pbx CDR StartTime 2025-03-29 18:11:05 - End Time 2025-03-29 21:11:05 [2025-03-29 21:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791501', 'tblTempUsageDetail_20' ) start [2025-03-29 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791501', 'tblTempUsageDetail_20' ) end [2025-03-29 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791501', 'tblTempVendorCDR_20' ) start [2025-03-29 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791501', 'tblTempVendorCDR_20' ) end [2025-03-29 21:11:19] Production.INFO: ProcessCDR(1,14791501,1,1,2) [2025-03-29 21:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791501', 'tblTempUsageDetail_20' ) start [2025-03-29 21:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791501', 'tblTempUsageDetail_20' ) end [2025-03-29 21:11:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 21:11:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 21:11:23] Production.INFO: ==14179== Releasing lock... [2025-03-29 21:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 21:11:23] Production.INFO: 46.5 MB #Memory Used# [2025-03-29 21:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 18:12:05 [end_date_ymd] => 2025-03-29 21:12:05 [RateCDR] => 1 ) [2025-03-29 21:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 18:12:05' and `end` < '2025-03-29 21:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 21:12:18] Production.INFO: count ==2453 [2025-03-29 21:12:19] Production.ERROR: pbx CDR StartTime 2025-03-29 18:12:05 - End Time 2025-03-29 21:12:05 [2025-03-29 21:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791506', 'tblTempUsageDetail_20' ) start [2025-03-29 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791506', 'tblTempUsageDetail_20' ) end [2025-03-29 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791506', 'tblTempVendorCDR_20' ) start [2025-03-29 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791506', 'tblTempVendorCDR_20' ) end [2025-03-29 21:12:19] Production.INFO: ProcessCDR(1,14791506,1,1,2) [2025-03-29 21:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791506', 'tblTempUsageDetail_20' ) start [2025-03-29 21:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791506', 'tblTempUsageDetail_20' ) end [2025-03-29 21:12:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 21:12:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 21:12:22] Production.INFO: ==14276== Releasing lock... [2025-03-29 21:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 21:12:22] Production.INFO: 46.5 MB #Memory Used# [2025-03-29 21:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 18:13:05 [end_date_ymd] => 2025-03-29 21:13:05 [RateCDR] => 1 ) [2025-03-29 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-29 18:13:05' and `end` < '2025-03-29 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-29 21:13:18] Production.INFO: count ==2461 [2025-03-29 21:13:19] Production.ERROR: pbx CDR StartTime 2025-03-29 18:13:05 - End Time 2025-03-29 21:13:05 [2025-03-29 21:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791511', 'tblTempUsageDetail_20' ) start [2025-03-29 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791511', 'tblTempUsageDetail_20' ) end [2025-03-29 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791511', 'tblTempVendorCDR_20' ) start [2025-03-29 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791511', 'tblTempVendorCDR_20' ) end [2025-03-29 21:13:19] Production.INFO: ProcessCDR(1,14791511,1,1,2) [2025-03-29 21:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791511', 'tblTempUsageDetail_20' ) start [2025-03-29 21:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791511', 'tblTempUsageDetail_20' ) end [2025-03-29 21:13:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 21:13:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 21:13:24] Production.INFO: ==14377== Releasing lock... [2025-03-29 21:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 21:13:24] Production.INFO: 46.5 MB #Memory Used# [2025-03-29 21:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 18:14:05 [end_date_ymd] => 2025-03-29 21:14:05 [RateCDR] => 1 ) [2025-03-29 21:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 18:14:05' and `end` < '2025-03-29 21:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 21:14:18] Production.INFO: count ==2467 [2025-03-29 21:14:19] Production.ERROR: pbx CDR StartTime 2025-03-29 18:14:05 - End Time 2025-03-29 21:14:05 [2025-03-29 21:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791516', 'tblTempUsageDetail_20' ) start [2025-03-29 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791516', 'tblTempUsageDetail_20' ) end [2025-03-29 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791516', 'tblTempVendorCDR_20' ) start [2025-03-29 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791516', 'tblTempVendorCDR_20' ) end [2025-03-29 21:14:19] Production.INFO: ProcessCDR(1,14791516,1,1,2) [2025-03-29 21:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791516', 'tblTempUsageDetail_20' ) start [2025-03-29 21:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791516', 'tblTempUsageDetail_20' ) end [2025-03-29 21:14:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 21:14:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 21:14:22] Production.INFO: ==14470== Releasing lock... [2025-03-29 21:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 21:14:22] Production.INFO: 46.5 MB #Memory Used# [2025-03-29 21:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 18:15:05 [end_date_ymd] => 2025-03-29 21:15:05 [RateCDR] => 1 ) [2025-03-29 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-29 18:15:05' and `end` < '2025-03-29 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-29 21:15:18] Production.INFO: count ==2465 [2025-03-29 21:15:19] Production.ERROR: pbx CDR StartTime 2025-03-29 18:15:05 - End Time 2025-03-29 21:15:05 [2025-03-29 21:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791521', 'tblTempUsageDetail_20' ) start [2025-03-29 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791521', 'tblTempUsageDetail_20' ) end [2025-03-29 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791521', 'tblTempVendorCDR_20' ) start [2025-03-29 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791521', 'tblTempVendorCDR_20' ) end [2025-03-29 21:15:19] Production.INFO: ProcessCDR(1,14791521,1,1,2) [2025-03-29 21:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791521', 'tblTempUsageDetail_20' ) start [2025-03-29 21:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791521', 'tblTempUsageDetail_20' ) end [2025-03-29 21:15:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 21:15:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 21:15:22] Production.INFO: ==14562== Releasing lock... [2025-03-29 21:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 21:15:22] Production.INFO: 46.5 MB #Memory Used# [2025-03-29 21:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 18:16:05 [end_date_ymd] => 2025-03-29 21:16:05 [RateCDR] => 1 ) [2025-03-29 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-29 18:16:05' and `end` < '2025-03-29 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-29 21:16:17] Production.INFO: count ==2461 [2025-03-29 21:16:18] Production.ERROR: pbx CDR StartTime 2025-03-29 18:16:05 - End Time 2025-03-29 21:16:05 [2025-03-29 21:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791526', 'tblTempUsageDetail_20' ) start [2025-03-29 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791526', 'tblTempUsageDetail_20' ) end [2025-03-29 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791526', 'tblTempVendorCDR_20' ) start [2025-03-29 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791526', 'tblTempVendorCDR_20' ) end [2025-03-29 21:16:18] Production.INFO: ProcessCDR(1,14791526,1,1,2) [2025-03-29 21:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791526', 'tblTempUsageDetail_20' ) start [2025-03-29 21:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791526', 'tblTempUsageDetail_20' ) end [2025-03-29 21:16:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 21:16:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 21:16:22] Production.INFO: ==14651== Releasing lock... [2025-03-29 21:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 21:16:22] Production.INFO: 46.5 MB #Memory Used# [2025-03-29 21:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 18:17:06 [end_date_ymd] => 2025-03-29 21:17:06 [RateCDR] => 1 ) [2025-03-29 21: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-29 18:17:06' and `end` < '2025-03-29 21: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-29 21:17:19] Production.INFO: count ==2460 [2025-03-29 21:17:19] Production.ERROR: pbx CDR StartTime 2025-03-29 18:17:06 - End Time 2025-03-29 21:17:06 [2025-03-29 21:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791531', 'tblTempUsageDetail_20' ) start [2025-03-29 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791531', 'tblTempUsageDetail_20' ) end [2025-03-29 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791531', 'tblTempVendorCDR_20' ) start [2025-03-29 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791531', 'tblTempVendorCDR_20' ) end [2025-03-29 21:17:19] Production.INFO: ProcessCDR(1,14791531,1,1,2) [2025-03-29 21:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791531', 'tblTempUsageDetail_20' ) start [2025-03-29 21:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791531', 'tblTempUsageDetail_20' ) end [2025-03-29 21:17:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 21:17:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 21:17:23] Production.INFO: ==14750== Releasing lock... [2025-03-29 21:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 21:17:23] Production.INFO: 46.5 MB #Memory Used# [2025-03-29 21:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 18:18:05 [end_date_ymd] => 2025-03-29 21:18:05 [RateCDR] => 1 ) [2025-03-29 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-29 18:18:05' and `end` < '2025-03-29 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-29 21:18:17] Production.INFO: count ==2460 [2025-03-29 21:18:18] Production.ERROR: pbx CDR StartTime 2025-03-29 18:18:05 - End Time 2025-03-29 21:18:05 [2025-03-29 21:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791536', 'tblTempUsageDetail_20' ) start [2025-03-29 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791536', 'tblTempUsageDetail_20' ) end [2025-03-29 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791536', 'tblTempVendorCDR_20' ) start [2025-03-29 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791536', 'tblTempVendorCDR_20' ) end [2025-03-29 21:18:18] Production.INFO: ProcessCDR(1,14791536,1,1,2) [2025-03-29 21:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791536', 'tblTempUsageDetail_20' ) start [2025-03-29 21:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791536', 'tblTempUsageDetail_20' ) end [2025-03-29 21:18:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 21:18:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 21:18:22] Production.INFO: ==14887== Releasing lock... [2025-03-29 21:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 21:18:22] Production.INFO: 46.5 MB #Memory Used# [2025-03-29 21:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 18:19:06 [end_date_ymd] => 2025-03-29 21:19:06 [RateCDR] => 1 ) [2025-03-29 21: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-29 18:19:06' and `end` < '2025-03-29 21: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-29 21:19:18] Production.INFO: count ==2464 [2025-03-29 21:19:19] Production.ERROR: pbx CDR StartTime 2025-03-29 18:19:06 - End Time 2025-03-29 21:19:06 [2025-03-29 21:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791541', 'tblTempUsageDetail_20' ) start [2025-03-29 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791541', 'tblTempUsageDetail_20' ) end [2025-03-29 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791541', 'tblTempVendorCDR_20' ) start [2025-03-29 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791541', 'tblTempVendorCDR_20' ) end [2025-03-29 21:19:19] Production.INFO: ProcessCDR(1,14791541,1,1,2) [2025-03-29 21:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791541', 'tblTempUsageDetail_20' ) start [2025-03-29 21:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791541', 'tblTempUsageDetail_20' ) end [2025-03-29 21:19:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 21:19:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 21:19:23] Production.INFO: ==14978== Releasing lock... [2025-03-29 21:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 21:19:23] Production.INFO: 46.5 MB #Memory Used# [2025-03-29 21:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 18:20:06 [end_date_ymd] => 2025-03-29 21:20:06 [RateCDR] => 1 ) [2025-03-29 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-29 18:20:06' and `end` < '2025-03-29 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-29 21:20:19] Production.INFO: count ==2447 [2025-03-29 21:20:20] Production.ERROR: pbx CDR StartTime 2025-03-29 18:20:06 - End Time 2025-03-29 21:20:06 [2025-03-29 21:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 21:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791546', 'tblTempUsageDetail_20' ) start [2025-03-29 21:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791546', 'tblTempUsageDetail_20' ) end [2025-03-29 21:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791546', 'tblTempVendorCDR_20' ) start [2025-03-29 21:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791546', 'tblTempVendorCDR_20' ) end [2025-03-29 21:20:20] Production.INFO: ProcessCDR(1,14791546,1,1,2) [2025-03-29 21:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791546', 'tblTempUsageDetail_20' ) start [2025-03-29 21:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791546', 'tblTempUsageDetail_20' ) end [2025-03-29 21:20:25] Production.ERROR: pbx prc_insertCDR start [2025-03-29 21:20:25] Production.ERROR: pbx prc_insertCDR end [2025-03-29 21:20:25] Production.INFO: ==15076== Releasing lock... [2025-03-29 21:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 21:20:25] Production.INFO: 46.5 MB #Memory Used# [2025-03-29 21:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 18:21:06 [end_date_ymd] => 2025-03-29 21:21:06 [RateCDR] => 1 ) [2025-03-29 21:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 18:21:06' and `end` < '2025-03-29 21:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 21:21:18] Production.INFO: count ==2406 [2025-03-29 21:21:19] Production.ERROR: pbx CDR StartTime 2025-03-29 18:21:06 - End Time 2025-03-29 21:21:06 [2025-03-29 21:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791552', 'tblTempUsageDetail_20' ) start [2025-03-29 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791552', 'tblTempUsageDetail_20' ) end [2025-03-29 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791552', 'tblTempVendorCDR_20' ) start [2025-03-29 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791552', 'tblTempVendorCDR_20' ) end [2025-03-29 21:21:19] Production.INFO: ProcessCDR(1,14791552,1,1,2) [2025-03-29 21:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791552', 'tblTempUsageDetail_20' ) start [2025-03-29 21:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791552', 'tblTempUsageDetail_20' ) end [2025-03-29 21:21:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 21:21:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 21:21:23] Production.INFO: ==15164== Releasing lock... [2025-03-29 21:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 21:21:23] Production.INFO: 46 MB #Memory Used# [2025-03-29 21:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 18:22:05 [end_date_ymd] => 2025-03-29 21:22:05 [RateCDR] => 1 ) [2025-03-29 21:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 18:22:05' and `end` < '2025-03-29 21:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 21:22:18] Production.INFO: count ==2406 [2025-03-29 21:22:18] Production.ERROR: pbx CDR StartTime 2025-03-29 18:22:05 - End Time 2025-03-29 21:22:05 [2025-03-29 21:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791557', 'tblTempUsageDetail_20' ) start [2025-03-29 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791557', 'tblTempUsageDetail_20' ) end [2025-03-29 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791557', 'tblTempVendorCDR_20' ) start [2025-03-29 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791557', 'tblTempVendorCDR_20' ) end [2025-03-29 21:22:18] Production.INFO: ProcessCDR(1,14791557,1,1,2) [2025-03-29 21:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791557', 'tblTempUsageDetail_20' ) start [2025-03-29 21:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791557', 'tblTempUsageDetail_20' ) end [2025-03-29 21:22:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 21:22:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 21:22:23] Production.INFO: ==15251== Releasing lock... [2025-03-29 21:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 21:22:23] Production.INFO: 46 MB #Memory Used# [2025-03-29 21:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 18:23:06 [end_date_ymd] => 2025-03-29 21:23:06 [RateCDR] => 1 ) [2025-03-29 21:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 18:23:06' and `end` < '2025-03-29 21:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 21:23:18] Production.INFO: count ==2408 [2025-03-29 21:23:19] Production.ERROR: pbx CDR StartTime 2025-03-29 18:23:06 - End Time 2025-03-29 21:23:06 [2025-03-29 21:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791562', 'tblTempUsageDetail_20' ) start [2025-03-29 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791562', 'tblTempUsageDetail_20' ) end [2025-03-29 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791562', 'tblTempVendorCDR_20' ) start [2025-03-29 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791562', 'tblTempVendorCDR_20' ) end [2025-03-29 21:23:19] Production.INFO: ProcessCDR(1,14791562,1,1,2) [2025-03-29 21:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791562', 'tblTempUsageDetail_20' ) start [2025-03-29 21:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791562', 'tblTempUsageDetail_20' ) end [2025-03-29 21:23:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 21:23:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 21:23:23] Production.INFO: ==15336== Releasing lock... [2025-03-29 21:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 21:23:23] Production.INFO: 46.25 MB #Memory Used# [2025-03-29 21:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 18:24:05 [end_date_ymd] => 2025-03-29 21:24:05 [RateCDR] => 1 ) [2025-03-29 21:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 18:24:05' and `end` < '2025-03-29 21:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 21:24:18] Production.INFO: count ==2412 [2025-03-29 21:24:19] Production.ERROR: pbx CDR StartTime 2025-03-29 18:24:05 - End Time 2025-03-29 21:24:05 [2025-03-29 21:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791567', 'tblTempUsageDetail_20' ) start [2025-03-29 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791567', 'tblTempUsageDetail_20' ) end [2025-03-29 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791567', 'tblTempVendorCDR_20' ) start [2025-03-29 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791567', 'tblTempVendorCDR_20' ) end [2025-03-29 21:24:19] Production.INFO: ProcessCDR(1,14791567,1,1,2) [2025-03-29 21:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791567', 'tblTempUsageDetail_20' ) start [2025-03-29 21:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791567', 'tblTempUsageDetail_20' ) end [2025-03-29 21:24:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 21:24:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 21:24:24] Production.INFO: ==15414== Releasing lock... [2025-03-29 21:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 21:24:24] Production.INFO: 46.25 MB #Memory Used# [2025-03-29 21:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 18:25:06 [end_date_ymd] => 2025-03-29 21:25:06 [RateCDR] => 1 ) [2025-03-29 21:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 18:25:06' and `end` < '2025-03-29 21:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 21:25:18] Production.INFO: count ==2401 [2025-03-29 21:25:19] Production.ERROR: pbx CDR StartTime 2025-03-29 18:25:06 - End Time 2025-03-29 21:25:06 [2025-03-29 21:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791572', 'tblTempUsageDetail_20' ) start [2025-03-29 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791572', 'tblTempUsageDetail_20' ) end [2025-03-29 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791572', 'tblTempVendorCDR_20' ) start [2025-03-29 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791572', 'tblTempVendorCDR_20' ) end [2025-03-29 21:25:19] Production.INFO: ProcessCDR(1,14791572,1,1,2) [2025-03-29 21:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791572', 'tblTempUsageDetail_20' ) start [2025-03-29 21:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791572', 'tblTempUsageDetail_20' ) end [2025-03-29 21:25:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 21:25:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 21:25:23] Production.INFO: ==15500== Releasing lock... [2025-03-29 21:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 21:25:23] Production.INFO: 46.25 MB #Memory Used# [2025-03-29 21:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 18:26:05 [end_date_ymd] => 2025-03-29 21:26:05 [RateCDR] => 1 ) [2025-03-29 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-29 18:26:05' and `end` < '2025-03-29 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-29 21:26:18] Production.INFO: count ==2397 [2025-03-29 21:26:18] Production.ERROR: pbx CDR StartTime 2025-03-29 18:26:05 - End Time 2025-03-29 21:26:05 [2025-03-29 21:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791577', 'tblTempUsageDetail_20' ) start [2025-03-29 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791577', 'tblTempUsageDetail_20' ) end [2025-03-29 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791577', 'tblTempVendorCDR_20' ) start [2025-03-29 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791577', 'tblTempVendorCDR_20' ) end [2025-03-29 21:26:18] Production.INFO: ProcessCDR(1,14791577,1,1,2) [2025-03-29 21:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791577', 'tblTempUsageDetail_20' ) start [2025-03-29 21:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791577', 'tblTempUsageDetail_20' ) end [2025-03-29 21:26:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 21:26:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 21:26:22] Production.INFO: ==15586== Releasing lock... [2025-03-29 21:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 21:26:22] Production.INFO: 46 MB #Memory Used# [2025-03-29 21:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 18:27:05 [end_date_ymd] => 2025-03-29 21:27:05 [RateCDR] => 1 ) [2025-03-29 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-29 18:27:05' and `end` < '2025-03-29 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-29 21:27:18] Production.INFO: count ==2392 [2025-03-29 21:27:18] Production.ERROR: pbx CDR StartTime 2025-03-29 18:27:05 - End Time 2025-03-29 21:27:05 [2025-03-29 21:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791582', 'tblTempUsageDetail_20' ) start [2025-03-29 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791582', 'tblTempUsageDetail_20' ) end [2025-03-29 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791582', 'tblTempVendorCDR_20' ) start [2025-03-29 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791582', 'tblTempVendorCDR_20' ) end [2025-03-29 21:27:18] Production.INFO: ProcessCDR(1,14791582,1,1,2) [2025-03-29 21:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791582', 'tblTempUsageDetail_20' ) start [2025-03-29 21:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791582', 'tblTempUsageDetail_20' ) end [2025-03-29 21:27:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 21:27:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 21:27:22] Production.INFO: ==15668== Releasing lock... [2025-03-29 21:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 21:27:22] Production.INFO: 46 MB #Memory Used# [2025-03-29 21:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 18:28:05 [end_date_ymd] => 2025-03-29 21:28:05 [RateCDR] => 1 ) [2025-03-29 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-29 18:28:05' and `end` < '2025-03-29 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-29 21:28:18] Production.INFO: count ==2384 [2025-03-29 21:28:18] Production.ERROR: pbx CDR StartTime 2025-03-29 18:28:05 - End Time 2025-03-29 21:28:05 [2025-03-29 21:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791587', 'tblTempUsageDetail_20' ) start [2025-03-29 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791587', 'tblTempUsageDetail_20' ) end [2025-03-29 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791587', 'tblTempVendorCDR_20' ) start [2025-03-29 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791587', 'tblTempVendorCDR_20' ) end [2025-03-29 21:28:19] Production.INFO: ProcessCDR(1,14791587,1,1,2) [2025-03-29 21:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791587', 'tblTempUsageDetail_20' ) start [2025-03-29 21:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791587', 'tblTempUsageDetail_20' ) end [2025-03-29 21:28:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 21:28:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 21:28:23] Production.INFO: ==15755== Releasing lock... [2025-03-29 21:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 21:28:23] Production.INFO: 46 MB #Memory Used# [2025-03-29 21:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 18:29:05 [end_date_ymd] => 2025-03-29 21:29:05 [RateCDR] => 1 ) [2025-03-29 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-29 18:29:05' and `end` < '2025-03-29 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-29 21:29:18] Production.INFO: count ==2398 [2025-03-29 21:29:19] Production.ERROR: pbx CDR StartTime 2025-03-29 18:29:05 - End Time 2025-03-29 21:29:05 [2025-03-29 21:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791592', 'tblTempUsageDetail_20' ) start [2025-03-29 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791592', 'tblTempUsageDetail_20' ) end [2025-03-29 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791592', 'tblTempVendorCDR_20' ) start [2025-03-29 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791592', 'tblTempVendorCDR_20' ) end [2025-03-29 21:29:19] Production.INFO: ProcessCDR(1,14791592,1,1,2) [2025-03-29 21:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791592', 'tblTempUsageDetail_20' ) start [2025-03-29 21:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791592', 'tblTempUsageDetail_20' ) end [2025-03-29 21:29:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 21:29:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 21:29:22] Production.INFO: ==15839== Releasing lock... [2025-03-29 21:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 21:29:22] Production.INFO: 46 MB #Memory Used# [2025-03-29 21:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 18:30:07 [end_date_ymd] => 2025-03-29 21:30:07 [RateCDR] => 1 ) [2025-03-29 21: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-29 18:30:07' and `end` < '2025-03-29 21: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-29 21:30:20] Production.INFO: count ==2381 [2025-03-29 21:30:21] Production.ERROR: pbx CDR StartTime 2025-03-29 18:30:07 - End Time 2025-03-29 21:30:07 [2025-03-29 21:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 21:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791598', 'tblTempUsageDetail_20' ) start [2025-03-29 21:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791598', 'tblTempUsageDetail_20' ) end [2025-03-29 21:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791598', 'tblTempVendorCDR_20' ) start [2025-03-29 21:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791598', 'tblTempVendorCDR_20' ) end [2025-03-29 21:30:21] Production.INFO: ProcessCDR(1,14791598,1,1,2) [2025-03-29 21:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791598', 'tblTempUsageDetail_20' ) start [2025-03-29 21:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791598', 'tblTempUsageDetail_20' ) end [2025-03-29 21:30:26] Production.ERROR: pbx prc_insertCDR start [2025-03-29 21:30:26] Production.ERROR: pbx prc_insertCDR end [2025-03-29 21:30:26] Production.INFO: ==15929== Releasing lock... [2025-03-29 21:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 21:30:26] Production.INFO: 46 MB #Memory Used# [2025-03-29 21:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 18:31:06 [end_date_ymd] => 2025-03-29 21:31:06 [RateCDR] => 1 ) [2025-03-29 21:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 18:31:06' and `end` < '2025-03-29 21:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 21:31:19] Production.INFO: count ==2358 [2025-03-29 21:31:19] Production.ERROR: pbx CDR StartTime 2025-03-29 18:31:06 - End Time 2025-03-29 21:31:06 [2025-03-29 21:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791603', 'tblTempUsageDetail_20' ) start [2025-03-29 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791603', 'tblTempUsageDetail_20' ) end [2025-03-29 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791603', 'tblTempVendorCDR_20' ) start [2025-03-29 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791603', 'tblTempVendorCDR_20' ) end [2025-03-29 21:31:19] Production.INFO: ProcessCDR(1,14791603,1,1,2) [2025-03-29 21:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791603', 'tblTempUsageDetail_20' ) start [2025-03-29 21:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791603', 'tblTempUsageDetail_20' ) end [2025-03-29 21:31:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 21:31:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 21:31:23] Production.INFO: ==16020== Releasing lock... [2025-03-29 21:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 21:31:23] Production.INFO: 45.75 MB #Memory Used# [2025-03-29 21:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 18:32:06 [end_date_ymd] => 2025-03-29 21:32:06 [RateCDR] => 1 ) [2025-03-29 21: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-29 18:32:06' and `end` < '2025-03-29 21: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-29 21:32:19] Production.INFO: count ==2354 [2025-03-29 21:32:19] Production.ERROR: pbx CDR StartTime 2025-03-29 18:32:06 - End Time 2025-03-29 21:32:06 [2025-03-29 21:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791608', 'tblTempUsageDetail_20' ) start [2025-03-29 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791608', 'tblTempUsageDetail_20' ) end [2025-03-29 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791608', 'tblTempVendorCDR_20' ) start [2025-03-29 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791608', 'tblTempVendorCDR_20' ) end [2025-03-29 21:32:19] Production.INFO: ProcessCDR(1,14791608,1,1,2) [2025-03-29 21:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791608', 'tblTempUsageDetail_20' ) start [2025-03-29 21:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791608', 'tblTempUsageDetail_20' ) end [2025-03-29 21:32:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 21:32:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 21:32:23] Production.INFO: ==16098== Releasing lock... [2025-03-29 21:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 21:32:23] Production.INFO: 45.75 MB #Memory Used# [2025-03-29 21:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 18:33:05 [end_date_ymd] => 2025-03-29 21:33:05 [RateCDR] => 1 ) [2025-03-29 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-29 18:33:05' and `end` < '2025-03-29 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-29 21:33:18] Production.INFO: count ==2345 [2025-03-29 21:33:19] Production.ERROR: pbx CDR StartTime 2025-03-29 18:33:05 - End Time 2025-03-29 21:33:05 [2025-03-29 21:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791613', 'tblTempUsageDetail_20' ) start [2025-03-29 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791613', 'tblTempUsageDetail_20' ) end [2025-03-29 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791613', 'tblTempVendorCDR_20' ) start [2025-03-29 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791613', 'tblTempVendorCDR_20' ) end [2025-03-29 21:33:19] Production.INFO: ProcessCDR(1,14791613,1,1,2) [2025-03-29 21:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791613', 'tblTempUsageDetail_20' ) start [2025-03-29 21:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791613', 'tblTempUsageDetail_20' ) end [2025-03-29 21:33:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 21:33:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 21:33:22] Production.INFO: ==16221== Releasing lock... [2025-03-29 21:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 21:33:22] Production.INFO: 45.75 MB #Memory Used# [2025-03-29 21:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 18:34:06 [end_date_ymd] => 2025-03-29 21:34:06 [RateCDR] => 1 ) [2025-03-29 21:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 18:34:06' and `end` < '2025-03-29 21:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 21:34:19] Production.INFO: count ==2344 [2025-03-29 21:34:19] Production.ERROR: pbx CDR StartTime 2025-03-29 18:34:06 - End Time 2025-03-29 21:34:06 [2025-03-29 21:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791618', 'tblTempUsageDetail_20' ) start [2025-03-29 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791618', 'tblTempUsageDetail_20' ) end [2025-03-29 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791618', 'tblTempVendorCDR_20' ) start [2025-03-29 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791618', 'tblTempVendorCDR_20' ) end [2025-03-29 21:34:19] Production.INFO: ProcessCDR(1,14791618,1,1,2) [2025-03-29 21:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791618', 'tblTempUsageDetail_20' ) start [2025-03-29 21:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791618', 'tblTempUsageDetail_20' ) end [2025-03-29 21:34:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 21:34:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 21:34:24] Production.INFO: ==16306== Releasing lock... [2025-03-29 21:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 21:34:24] Production.INFO: 46 MB #Memory Used# [2025-03-29 21:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 18:35:05 [end_date_ymd] => 2025-03-29 21:35:05 [RateCDR] => 1 ) [2025-03-29 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-29 18:35:05' and `end` < '2025-03-29 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-29 21:35:18] Production.INFO: count ==2328 [2025-03-29 21:35:18] Production.ERROR: pbx CDR StartTime 2025-03-29 18:35:05 - End Time 2025-03-29 21:35:05 [2025-03-29 21:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791623', 'tblTempUsageDetail_20' ) start [2025-03-29 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791623', 'tblTempUsageDetail_20' ) end [2025-03-29 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791623', 'tblTempVendorCDR_20' ) start [2025-03-29 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791623', 'tblTempVendorCDR_20' ) end [2025-03-29 21:35:18] Production.INFO: ProcessCDR(1,14791623,1,1,2) [2025-03-29 21:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791623', 'tblTempUsageDetail_20' ) start [2025-03-29 21:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791623', 'tblTempUsageDetail_20' ) end [2025-03-29 21:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 21:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 21:35:22] Production.INFO: ==16391== Releasing lock... [2025-03-29 21:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 21:35:22] Production.INFO: 45.5 MB #Memory Used# [2025-03-29 21:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 18:36:06 [end_date_ymd] => 2025-03-29 21:36:06 [RateCDR] => 1 ) [2025-03-29 21:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 18:36:06' and `end` < '2025-03-29 21: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-29 21:36:19] Production.INFO: count ==2333 [2025-03-29 21:36:19] Production.ERROR: pbx CDR StartTime 2025-03-29 18:36:06 - End Time 2025-03-29 21:36:06 [2025-03-29 21:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791628', 'tblTempUsageDetail_20' ) start [2025-03-29 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791628', 'tblTempUsageDetail_20' ) end [2025-03-29 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791628', 'tblTempVendorCDR_20' ) start [2025-03-29 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791628', 'tblTempVendorCDR_20' ) end [2025-03-29 21:36:19] Production.INFO: ProcessCDR(1,14791628,1,1,2) [2025-03-29 21:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791628', 'tblTempUsageDetail_20' ) start [2025-03-29 21:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791628', 'tblTempUsageDetail_20' ) end [2025-03-29 21:36:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 21:36:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 21:36:23] Production.INFO: ==16473== Releasing lock... [2025-03-29 21:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 21:36:23] Production.INFO: 45.5 MB #Memory Used# [2025-03-29 21:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 18:37:05 [end_date_ymd] => 2025-03-29 21:37:05 [RateCDR] => 1 ) [2025-03-29 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-29 18:37:05' and `end` < '2025-03-29 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-29 21:37:17] Production.INFO: count ==2339 [2025-03-29 21:37:18] Production.ERROR: pbx CDR StartTime 2025-03-29 18:37:05 - End Time 2025-03-29 21:37:05 [2025-03-29 21:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791633', 'tblTempUsageDetail_20' ) start [2025-03-29 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791633', 'tblTempUsageDetail_20' ) end [2025-03-29 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791633', 'tblTempVendorCDR_20' ) start [2025-03-29 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791633', 'tblTempVendorCDR_20' ) end [2025-03-29 21:37:18] Production.INFO: ProcessCDR(1,14791633,1,1,2) [2025-03-29 21:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791633', 'tblTempUsageDetail_20' ) start [2025-03-29 21:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791633', 'tblTempUsageDetail_20' ) end [2025-03-29 21:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 21:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 21:37:22] Production.INFO: ==16560== Releasing lock... [2025-03-29 21:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 21:37:22] Production.INFO: 45.5 MB #Memory Used# [2025-03-29 21:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 18:38:05 [end_date_ymd] => 2025-03-29 21:38:05 [RateCDR] => 1 ) [2025-03-29 21:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 18:38:05' and `end` < '2025-03-29 21:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 21:38:18] Production.INFO: count ==2347 [2025-03-29 21:38:18] Production.ERROR: pbx CDR StartTime 2025-03-29 18:38:05 - End Time 2025-03-29 21:38:05 [2025-03-29 21:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791638', 'tblTempUsageDetail_20' ) start [2025-03-29 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791638', 'tblTempUsageDetail_20' ) end [2025-03-29 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791638', 'tblTempVendorCDR_20' ) start [2025-03-29 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791638', 'tblTempVendorCDR_20' ) end [2025-03-29 21:38:19] Production.INFO: ProcessCDR(1,14791638,1,1,2) [2025-03-29 21:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791638', 'tblTempUsageDetail_20' ) start [2025-03-29 21:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791638', 'tblTempUsageDetail_20' ) end [2025-03-29 21:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 21:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 21:38:22] Production.INFO: ==16644== Releasing lock... [2025-03-29 21:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 21:38:22] Production.INFO: 45.75 MB #Memory Used# [2025-03-29 21:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 18:39:05 [end_date_ymd] => 2025-03-29 21:39:05 [RateCDR] => 1 ) [2025-03-29 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-29 18:39:05' and `end` < '2025-03-29 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-29 21:39:18] Production.INFO: count ==2349 [2025-03-29 21:39:19] Production.ERROR: pbx CDR StartTime 2025-03-29 18:39:05 - End Time 2025-03-29 21:39:05 [2025-03-29 21:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791643', 'tblTempUsageDetail_20' ) start [2025-03-29 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791643', 'tblTempUsageDetail_20' ) end [2025-03-29 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791643', 'tblTempVendorCDR_20' ) start [2025-03-29 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791643', 'tblTempVendorCDR_20' ) end [2025-03-29 21:39:19] Production.INFO: ProcessCDR(1,14791643,1,1,2) [2025-03-29 21:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791643', 'tblTempUsageDetail_20' ) start [2025-03-29 21:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791643', 'tblTempUsageDetail_20' ) end [2025-03-29 21:39:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 21:39:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 21:39:24] Production.INFO: ==16728== Releasing lock... [2025-03-29 21:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 21:39:24] Production.INFO: 45.75 MB #Memory Used# [2025-03-29 21:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 18:40:06 [end_date_ymd] => 2025-03-29 21:40:06 [RateCDR] => 1 ) [2025-03-29 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-29 18:40:06' and `end` < '2025-03-29 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-29 21:40:19] Production.INFO: count ==2353 [2025-03-29 21:40:20] Production.ERROR: pbx CDR StartTime 2025-03-29 18:40:06 - End Time 2025-03-29 21:40:06 [2025-03-29 21:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 21:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791649', 'tblTempUsageDetail_20' ) start [2025-03-29 21:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791649', 'tblTempUsageDetail_20' ) end [2025-03-29 21:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791649', 'tblTempVendorCDR_20' ) start [2025-03-29 21:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791649', 'tblTempVendorCDR_20' ) end [2025-03-29 21:40:20] Production.INFO: ProcessCDR(1,14791649,1,1,2) [2025-03-29 21:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791649', 'tblTempUsageDetail_20' ) start [2025-03-29 21:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791649', 'tblTempUsageDetail_20' ) end [2025-03-29 21:40:25] Production.ERROR: pbx prc_insertCDR start [2025-03-29 21:40:25] Production.ERROR: pbx prc_insertCDR end [2025-03-29 21:40:25] Production.INFO: ==16819== Releasing lock... [2025-03-29 21:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 21:40:25] Production.INFO: 45.75 MB #Memory Used# [2025-03-29 21:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 18:41:05 [end_date_ymd] => 2025-03-29 21:41:05 [RateCDR] => 1 ) [2025-03-29 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-29 18:41:05' and `end` < '2025-03-29 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-29 21:41:17] Production.INFO: count ==2337 [2025-03-29 21:41:18] Production.ERROR: pbx CDR StartTime 2025-03-29 18:41:05 - End Time 2025-03-29 21:41:05 [2025-03-29 21:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791654', 'tblTempUsageDetail_20' ) start [2025-03-29 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791654', 'tblTempUsageDetail_20' ) end [2025-03-29 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791654', 'tblTempVendorCDR_20' ) start [2025-03-29 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791654', 'tblTempVendorCDR_20' ) end [2025-03-29 21:41:18] Production.INFO: ProcessCDR(1,14791654,1,1,2) [2025-03-29 21:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791654', 'tblTempUsageDetail_20' ) start [2025-03-29 21:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791654', 'tblTempUsageDetail_20' ) end [2025-03-29 21:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 21:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 21:41:22] Production.INFO: ==16904== Releasing lock... [2025-03-29 21:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 21:41:22] Production.INFO: 45.5 MB #Memory Used# [2025-03-29 21:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 18:42:05 [end_date_ymd] => 2025-03-29 21:42:05 [RateCDR] => 1 ) [2025-03-29 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-29 18:42:05' and `end` < '2025-03-29 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-29 21:42:18] Production.INFO: count ==2320 [2025-03-29 21:42:18] Production.ERROR: pbx CDR StartTime 2025-03-29 18:42:05 - End Time 2025-03-29 21:42:05 [2025-03-29 21:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791659', 'tblTempUsageDetail_20' ) start [2025-03-29 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791659', 'tblTempUsageDetail_20' ) end [2025-03-29 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791659', 'tblTempVendorCDR_20' ) start [2025-03-29 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791659', 'tblTempVendorCDR_20' ) end [2025-03-29 21:42:19] Production.INFO: ProcessCDR(1,14791659,1,1,2) [2025-03-29 21:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791659', 'tblTempUsageDetail_20' ) start [2025-03-29 21:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791659', 'tblTempUsageDetail_20' ) end [2025-03-29 21:42:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 21:42:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 21:42:23] Production.INFO: ==16984== Releasing lock... [2025-03-29 21:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 21:42:23] Production.INFO: 45.5 MB #Memory Used# [2025-03-29 21:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 18:43:06 [end_date_ymd] => 2025-03-29 21:43:06 [RateCDR] => 1 ) [2025-03-29 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-29 18:43:06' and `end` < '2025-03-29 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-29 21:43:19] Production.INFO: count ==2313 [2025-03-29 21:43:20] Production.ERROR: pbx CDR StartTime 2025-03-29 18:43:06 - End Time 2025-03-29 21:43:06 [2025-03-29 21:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 21:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791664', 'tblTempUsageDetail_20' ) start [2025-03-29 21:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791664', 'tblTempUsageDetail_20' ) end [2025-03-29 21:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791664', 'tblTempVendorCDR_20' ) start [2025-03-29 21:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791664', 'tblTempVendorCDR_20' ) end [2025-03-29 21:43:20] Production.INFO: ProcessCDR(1,14791664,1,1,2) [2025-03-29 21:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791664', 'tblTempUsageDetail_20' ) start [2025-03-29 21:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791664', 'tblTempUsageDetail_20' ) end [2025-03-29 21:43:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 21:43:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 21:43:23] Production.INFO: ==17068== Releasing lock... [2025-03-29 21:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 21:43:23] Production.INFO: 45.5 MB #Memory Used# [2025-03-29 21:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 18:44:05 [end_date_ymd] => 2025-03-29 21:44:05 [RateCDR] => 1 ) [2025-03-29 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-29 18:44:05' and `end` < '2025-03-29 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-29 21:44:18] Production.INFO: count ==2305 [2025-03-29 21:44:18] Production.ERROR: pbx CDR StartTime 2025-03-29 18:44:05 - End Time 2025-03-29 21:44:05 [2025-03-29 21:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791669', 'tblTempUsageDetail_20' ) start [2025-03-29 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791669', 'tblTempUsageDetail_20' ) end [2025-03-29 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791669', 'tblTempVendorCDR_20' ) start [2025-03-29 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791669', 'tblTempVendorCDR_20' ) end [2025-03-29 21:44:18] Production.INFO: ProcessCDR(1,14791669,1,1,2) [2025-03-29 21:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791669', 'tblTempUsageDetail_20' ) start [2025-03-29 21:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791669', 'tblTempUsageDetail_20' ) end [2025-03-29 21:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 21:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 21:44:22] Production.INFO: ==17148== Releasing lock... [2025-03-29 21:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 21:44:22] Production.INFO: 45.25 MB #Memory Used# [2025-03-29 21:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 18:45:06 [end_date_ymd] => 2025-03-29 21:45:06 [RateCDR] => 1 ) [2025-03-29 21: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-29 18:45:06' and `end` < '2025-03-29 21: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-29 21:45:18] Production.INFO: count ==2310 [2025-03-29 21:45:19] Production.ERROR: pbx CDR StartTime 2025-03-29 18:45:06 - End Time 2025-03-29 21:45:06 [2025-03-29 21:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791674', 'tblTempUsageDetail_20' ) start [2025-03-29 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791674', 'tblTempUsageDetail_20' ) end [2025-03-29 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791674', 'tblTempVendorCDR_20' ) start [2025-03-29 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791674', 'tblTempVendorCDR_20' ) end [2025-03-29 21:45:19] Production.INFO: ProcessCDR(1,14791674,1,1,2) [2025-03-29 21:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791674', 'tblTempUsageDetail_20' ) start [2025-03-29 21:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791674', 'tblTempUsageDetail_20' ) end [2025-03-29 21:45:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 21:45:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 21:45:23] Production.INFO: ==17230== Releasing lock... [2025-03-29 21:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 21:45:23] Production.INFO: 45.5 MB #Memory Used# [2025-03-29 21:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 18:46:05 [end_date_ymd] => 2025-03-29 21:46:05 [RateCDR] => 1 ) [2025-03-29 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-29 18:46:05' and `end` < '2025-03-29 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-29 21:46:18] Production.INFO: count ==2306 [2025-03-29 21:46:19] Production.ERROR: pbx CDR StartTime 2025-03-29 18:46:05 - End Time 2025-03-29 21:46:05 [2025-03-29 21:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791679', 'tblTempUsageDetail_20' ) start [2025-03-29 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791679', 'tblTempUsageDetail_20' ) end [2025-03-29 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791679', 'tblTempVendorCDR_20' ) start [2025-03-29 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791679', 'tblTempVendorCDR_20' ) end [2025-03-29 21:46:19] Production.INFO: ProcessCDR(1,14791679,1,1,2) [2025-03-29 21:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791679', 'tblTempUsageDetail_20' ) start [2025-03-29 21:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791679', 'tblTempUsageDetail_20' ) end [2025-03-29 21:46:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 21:46:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 21:46:23] Production.INFO: ==17310== Releasing lock... [2025-03-29 21:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 21:46:23] Production.INFO: 45.5 MB #Memory Used# [2025-03-29 21:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 18:47:05 [end_date_ymd] => 2025-03-29 21:47:05 [RateCDR] => 1 ) [2025-03-29 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-29 18:47:05' and `end` < '2025-03-29 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-29 21:47:18] Production.INFO: count ==2309 [2025-03-29 21:47:19] Production.ERROR: pbx CDR StartTime 2025-03-29 18:47:05 - End Time 2025-03-29 21:47:05 [2025-03-29 21:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791684', 'tblTempUsageDetail_20' ) start [2025-03-29 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791684', 'tblTempUsageDetail_20' ) end [2025-03-29 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791684', 'tblTempVendorCDR_20' ) start [2025-03-29 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791684', 'tblTempVendorCDR_20' ) end [2025-03-29 21:47:19] Production.INFO: ProcessCDR(1,14791684,1,1,2) [2025-03-29 21:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791684', 'tblTempUsageDetail_20' ) start [2025-03-29 21:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791684', 'tblTempUsageDetail_20' ) end [2025-03-29 21:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 21:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 21:47:22] Production.INFO: ==17390== Releasing lock... [2025-03-29 21:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 21:47:22] Production.INFO: 45.5 MB #Memory Used# [2025-03-29 21:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 18:48:05 [end_date_ymd] => 2025-03-29 21:48:05 [RateCDR] => 1 ) [2025-03-29 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-29 18:48:05' and `end` < '2025-03-29 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-29 21:48:18] Production.INFO: count ==2303 [2025-03-29 21:48:18] Production.ERROR: pbx CDR StartTime 2025-03-29 18:48:05 - End Time 2025-03-29 21:48:05 [2025-03-29 21:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791689', 'tblTempUsageDetail_20' ) start [2025-03-29 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791689', 'tblTempUsageDetail_20' ) end [2025-03-29 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791689', 'tblTempVendorCDR_20' ) start [2025-03-29 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791689', 'tblTempVendorCDR_20' ) end [2025-03-29 21:48:19] Production.INFO: ProcessCDR(1,14791689,1,1,2) [2025-03-29 21:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791689', 'tblTempUsageDetail_20' ) start [2025-03-29 21:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791689', 'tblTempUsageDetail_20' ) end [2025-03-29 21:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 21:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 21:48:22] Production.INFO: ==17471== Releasing lock... [2025-03-29 21:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 21:48:22] Production.INFO: 45.25 MB #Memory Used# [2025-03-29 21:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 18:49:05 [end_date_ymd] => 2025-03-29 21:49:05 [RateCDR] => 1 ) [2025-03-29 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-29 18:49:05' and `end` < '2025-03-29 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-29 21:49:18] Production.INFO: count ==2299 [2025-03-29 21:49:19] Production.ERROR: pbx CDR StartTime 2025-03-29 18:49:05 - End Time 2025-03-29 21:49:05 [2025-03-29 21:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791694', 'tblTempUsageDetail_20' ) start [2025-03-29 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791694', 'tblTempUsageDetail_20' ) end [2025-03-29 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791694', 'tblTempVendorCDR_20' ) start [2025-03-29 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791694', 'tblTempVendorCDR_20' ) end [2025-03-29 21:49:19] Production.INFO: ProcessCDR(1,14791694,1,1,2) [2025-03-29 21:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791694', 'tblTempUsageDetail_20' ) start [2025-03-29 21:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791694', 'tblTempUsageDetail_20' ) end [2025-03-29 21:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 21:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 21:49:22] Production.INFO: ==17591== Releasing lock... [2025-03-29 21:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 21:49:22] Production.INFO: 45.25 MB #Memory Used# [2025-03-29 21:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 18:50:05 [end_date_ymd] => 2025-03-29 21:50:05 [RateCDR] => 1 ) [2025-03-29 21: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-29 18:50:05' and `end` < '2025-03-29 21: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-29 21:50:18] Production.INFO: count ==2292 [2025-03-29 21:50:19] Production.ERROR: pbx CDR StartTime 2025-03-29 18:50:05 - End Time 2025-03-29 21:50:05 [2025-03-29 21:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791700', 'tblTempUsageDetail_20' ) start [2025-03-29 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791700', 'tblTempUsageDetail_20' ) end [2025-03-29 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791700', 'tblTempVendorCDR_20' ) start [2025-03-29 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791700', 'tblTempVendorCDR_20' ) end [2025-03-29 21:50:19] Production.INFO: ProcessCDR(1,14791700,1,1,2) [2025-03-29 21:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791700', 'tblTempUsageDetail_20' ) start [2025-03-29 21:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791700', 'tblTempUsageDetail_20' ) end [2025-03-29 21:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 21:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 21:50:22] Production.INFO: ==17667== Releasing lock... [2025-03-29 21:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 21:50:22] Production.INFO: 45.25 MB #Memory Used# [2025-03-29 21:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 18:51:06 [end_date_ymd] => 2025-03-29 21:51:06 [RateCDR] => 1 ) [2025-03-29 21: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-29 18:51:06' and `end` < '2025-03-29 21: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-29 21:51:18] Production.INFO: count ==2278 [2025-03-29 21:51:19] Production.ERROR: pbx CDR StartTime 2025-03-29 18:51:06 - End Time 2025-03-29 21:51:06 [2025-03-29 21:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791705', 'tblTempUsageDetail_20' ) start [2025-03-29 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791705', 'tblTempUsageDetail_20' ) end [2025-03-29 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791705', 'tblTempVendorCDR_20' ) start [2025-03-29 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791705', 'tblTempVendorCDR_20' ) end [2025-03-29 21:51:19] Production.INFO: ProcessCDR(1,14791705,1,1,2) [2025-03-29 21:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791705', 'tblTempUsageDetail_20' ) start [2025-03-29 21:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791705', 'tblTempUsageDetail_20' ) end [2025-03-29 21:51:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 21:51:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 21:51:24] Production.INFO: ==17750== Releasing lock... [2025-03-29 21:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 21:51:24] Production.INFO: 45.25 MB #Memory Used# [2025-03-29 21:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 18:52:05 [end_date_ymd] => 2025-03-29 21:52:05 [RateCDR] => 1 ) [2025-03-29 21:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 18:52:05' and `end` < '2025-03-29 21:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 21:52:18] Production.INFO: count ==2272 [2025-03-29 21:52:19] Production.ERROR: pbx CDR StartTime 2025-03-29 18:52:05 - End Time 2025-03-29 21:52:05 [2025-03-29 21:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791710', 'tblTempUsageDetail_20' ) start [2025-03-29 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791710', 'tblTempUsageDetail_20' ) end [2025-03-29 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791710', 'tblTempVendorCDR_20' ) start [2025-03-29 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791710', 'tblTempVendorCDR_20' ) end [2025-03-29 21:52:19] Production.INFO: ProcessCDR(1,14791710,1,1,2) [2025-03-29 21:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791710', 'tblTempUsageDetail_20' ) start [2025-03-29 21:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791710', 'tblTempUsageDetail_20' ) end [2025-03-29 21:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 21:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 21:52:22] Production.INFO: ==17837== Releasing lock... [2025-03-29 21:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 21:52:22] Production.INFO: 45 MB #Memory Used# [2025-03-29 21:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 18:53:05 [end_date_ymd] => 2025-03-29 21:53:05 [RateCDR] => 1 ) [2025-03-29 21:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 18:53:05' and `end` < '2025-03-29 21:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 21:53:18] Production.INFO: count ==2324 [2025-03-29 21:53:19] Production.ERROR: pbx CDR StartTime 2025-03-29 18:53:05 - End Time 2025-03-29 21:53:05 [2025-03-29 21:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791715', 'tblTempUsageDetail_20' ) start [2025-03-29 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791715', 'tblTempUsageDetail_20' ) end [2025-03-29 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791715', 'tblTempVendorCDR_20' ) start [2025-03-29 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791715', 'tblTempVendorCDR_20' ) end [2025-03-29 21:53:19] Production.INFO: ProcessCDR(1,14791715,1,1,2) [2025-03-29 21:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791715', 'tblTempUsageDetail_20' ) start [2025-03-29 21:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791715', 'tblTempUsageDetail_20' ) end [2025-03-29 21:53:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 21:53:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 21:53:23] Production.INFO: ==17912== Releasing lock... [2025-03-29 21:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 21:53:23] Production.INFO: 45.5 MB #Memory Used# [2025-03-29 21:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 18:54:05 [end_date_ymd] => 2025-03-29 21:54:05 [RateCDR] => 1 ) [2025-03-29 21:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 18:54:05' and `end` < '2025-03-29 21:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 21:54:18] Production.INFO: count ==2333 [2025-03-29 21:54:19] Production.ERROR: pbx CDR StartTime 2025-03-29 18:54:05 - End Time 2025-03-29 21:54:05 [2025-03-29 21:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791720', 'tblTempUsageDetail_20' ) start [2025-03-29 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791720', 'tblTempUsageDetail_20' ) end [2025-03-29 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791720', 'tblTempVendorCDR_20' ) start [2025-03-29 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791720', 'tblTempVendorCDR_20' ) end [2025-03-29 21:54:19] Production.INFO: ProcessCDR(1,14791720,1,1,2) [2025-03-29 21:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791720', 'tblTempUsageDetail_20' ) start [2025-03-29 21:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791720', 'tblTempUsageDetail_20' ) end [2025-03-29 21:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 21:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 21:54:22] Production.INFO: ==17990== Releasing lock... [2025-03-29 21:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 21:54:22] Production.INFO: 45.5 MB #Memory Used# [2025-03-29 21:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 18:55:05 [end_date_ymd] => 2025-03-29 21:55:05 [RateCDR] => 1 ) [2025-03-29 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-29 18:55:05' and `end` < '2025-03-29 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-29 21:55:18] Production.INFO: count ==2309 [2025-03-29 21:55:19] Production.ERROR: pbx CDR StartTime 2025-03-29 18:55:05 - End Time 2025-03-29 21:55:05 [2025-03-29 21:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791725', 'tblTempUsageDetail_20' ) start [2025-03-29 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791725', 'tblTempUsageDetail_20' ) end [2025-03-29 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791725', 'tblTempVendorCDR_20' ) start [2025-03-29 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791725', 'tblTempVendorCDR_20' ) end [2025-03-29 21:55:19] Production.INFO: ProcessCDR(1,14791725,1,1,2) [2025-03-29 21:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791725', 'tblTempUsageDetail_20' ) start [2025-03-29 21:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791725', 'tblTempUsageDetail_20' ) end [2025-03-29 21:55:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 21:55:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 21:55:23] Production.INFO: ==18064== Releasing lock... [2025-03-29 21:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 21:55:23] Production.INFO: 45.25 MB #Memory Used# [2025-03-29 21:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 18:56:05 [end_date_ymd] => 2025-03-29 21:56:05 [RateCDR] => 1 ) [2025-03-29 21:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 18:56:05' and `end` < '2025-03-29 21:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 21:56:17] Production.INFO: count ==2299 [2025-03-29 21:56:18] Production.ERROR: pbx CDR StartTime 2025-03-29 18:56:05 - End Time 2025-03-29 21:56:05 [2025-03-29 21:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791730', 'tblTempUsageDetail_20' ) start [2025-03-29 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791730', 'tblTempUsageDetail_20' ) end [2025-03-29 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791730', 'tblTempVendorCDR_20' ) start [2025-03-29 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791730', 'tblTempVendorCDR_20' ) end [2025-03-29 21:56:18] Production.INFO: ProcessCDR(1,14791730,1,1,2) [2025-03-29 21:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791730', 'tblTempUsageDetail_20' ) start [2025-03-29 21:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791730', 'tblTempUsageDetail_20' ) end [2025-03-29 21:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 21:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 21:56:21] Production.INFO: ==18144== Releasing lock... [2025-03-29 21:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 21:56:21] Production.INFO: 45.25 MB #Memory Used# [2025-03-29 21:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 18:57:05 [end_date_ymd] => 2025-03-29 21:57:05 [RateCDR] => 1 ) [2025-03-29 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-29 18:57:05' and `end` < '2025-03-29 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-29 21:57:18] Production.INFO: count ==2293 [2025-03-29 21:57:18] Production.ERROR: pbx CDR StartTime 2025-03-29 18:57:05 - End Time 2025-03-29 21:57:05 [2025-03-29 21:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791735', 'tblTempUsageDetail_20' ) start [2025-03-29 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791735', 'tblTempUsageDetail_20' ) end [2025-03-29 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791735', 'tblTempVendorCDR_20' ) start [2025-03-29 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791735', 'tblTempVendorCDR_20' ) end [2025-03-29 21:57:18] Production.INFO: ProcessCDR(1,14791735,1,1,2) [2025-03-29 21:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791735', 'tblTempUsageDetail_20' ) start [2025-03-29 21:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791735', 'tblTempUsageDetail_20' ) end [2025-03-29 21:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 21:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 21:57:22] Production.INFO: ==18221== Releasing lock... [2025-03-29 21:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 21:57:22] Production.INFO: 45.25 MB #Memory Used# [2025-03-29 21:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 18:58:06 [end_date_ymd] => 2025-03-29 21:58:06 [RateCDR] => 1 ) [2025-03-29 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-29 18:58:06' and `end` < '2025-03-29 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-29 21:58:19] Production.INFO: count ==2291 [2025-03-29 21:58:19] Production.ERROR: pbx CDR StartTime 2025-03-29 18:58:06 - End Time 2025-03-29 21:58:06 [2025-03-29 21:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791740', 'tblTempUsageDetail_20' ) start [2025-03-29 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791740', 'tblTempUsageDetail_20' ) end [2025-03-29 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791740', 'tblTempVendorCDR_20' ) start [2025-03-29 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791740', 'tblTempVendorCDR_20' ) end [2025-03-29 21:58:19] Production.INFO: ProcessCDR(1,14791740,1,1,2) [2025-03-29 21:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791740', 'tblTempUsageDetail_20' ) start [2025-03-29 21:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791740', 'tblTempUsageDetail_20' ) end [2025-03-29 21:58:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 21:58:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 21:58:23] Production.INFO: ==18308== Releasing lock... [2025-03-29 21:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 21:58:23] Production.INFO: 45.25 MB #Memory Used# [2025-03-29 21:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 18:59:05 [end_date_ymd] => 2025-03-29 21:59:05 [RateCDR] => 1 ) [2025-03-29 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-29 18:59:05' and `end` < '2025-03-29 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-29 21:59:18] Production.INFO: count ==2283 [2025-03-29 21:59:18] Production.ERROR: pbx CDR StartTime 2025-03-29 18:59:05 - End Time 2025-03-29 21:59:05 [2025-03-29 21:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791745', 'tblTempUsageDetail_20' ) start [2025-03-29 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791745', 'tblTempUsageDetail_20' ) end [2025-03-29 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791745', 'tblTempVendorCDR_20' ) start [2025-03-29 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791745', 'tblTempVendorCDR_20' ) end [2025-03-29 21:59:18] Production.INFO: ProcessCDR(1,14791745,1,1,2) [2025-03-29 21:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 21:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 21:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791745', 'tblTempUsageDetail_20' ) start [2025-03-29 21:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791745', 'tblTempUsageDetail_20' ) end [2025-03-29 21:59:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 21:59:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 21:59:22] Production.INFO: ==18396== Releasing lock... [2025-03-29 21:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 21:59:22] Production.INFO: 45.25 MB #Memory Used# [2025-03-29 22:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 19:00:06 [end_date_ymd] => 2025-03-29 22:00:06 [RateCDR] => 1 ) [2025-03-29 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-29 19:00:06' and `end` < '2025-03-29 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-29 22:00:19] Production.INFO: count ==2283 [2025-03-29 22:00:20] Production.ERROR: pbx CDR StartTime 2025-03-29 19:00:06 - End Time 2025-03-29 22:00:06 [2025-03-29 22:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791750', 'tblTempUsageDetail_20' ) start [2025-03-29 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791750', 'tblTempUsageDetail_20' ) end [2025-03-29 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791750', 'tblTempVendorCDR_20' ) start [2025-03-29 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791750', 'tblTempVendorCDR_20' ) end [2025-03-29 22:00:20] Production.INFO: ProcessCDR(1,14791750,1,1,2) [2025-03-29 22:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791750', 'tblTempUsageDetail_20' ) start [2025-03-29 22:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791750', 'tblTempUsageDetail_20' ) end [2025-03-29 22:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 22:00:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 22:00:24] Production.INFO: ==18491== Releasing lock... [2025-03-29 22:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 22:00:24] Production.INFO: 45.25 MB #Memory Used# [2025-03-29 22:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 19:01:06 [end_date_ymd] => 2025-03-29 22:01:06 [RateCDR] => 1 ) [2025-03-29 22:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 19:01:06' and `end` < '2025-03-29 22:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 22:01:18] Production.INFO: count ==2235 [2025-03-29 22:01:19] Production.ERROR: pbx CDR StartTime 2025-03-29 19:01:06 - End Time 2025-03-29 22:01:06 [2025-03-29 22:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791756', 'tblTempUsageDetail_20' ) start [2025-03-29 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791756', 'tblTempUsageDetail_20' ) end [2025-03-29 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791756', 'tblTempVendorCDR_20' ) start [2025-03-29 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791756', 'tblTempVendorCDR_20' ) end [2025-03-29 22:01:19] Production.INFO: ProcessCDR(1,14791756,1,1,2) [2025-03-29 22:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791756', 'tblTempUsageDetail_20' ) start [2025-03-29 22:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791756', 'tblTempUsageDetail_20' ) end [2025-03-29 22:01:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 22:01:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 22:01:24] Production.INFO: ==18596== Releasing lock... [2025-03-29 22:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 22:01:24] Production.INFO: 44.75 MB #Memory Used# [2025-03-29 22:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 19:02:05 [end_date_ymd] => 2025-03-29 22:02:05 [RateCDR] => 1 ) [2025-03-29 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-29 19:02:05' and `end` < '2025-03-29 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-29 22:02:18] Production.INFO: count ==2225 [2025-03-29 22:02:19] Production.ERROR: pbx CDR StartTime 2025-03-29 19:02:05 - End Time 2025-03-29 22:02:05 [2025-03-29 22:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791761', 'tblTempUsageDetail_20' ) start [2025-03-29 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791761', 'tblTempUsageDetail_20' ) end [2025-03-29 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791761', 'tblTempVendorCDR_20' ) start [2025-03-29 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791761', 'tblTempVendorCDR_20' ) end [2025-03-29 22:02:19] Production.INFO: ProcessCDR(1,14791761,1,1,2) [2025-03-29 22:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791761', 'tblTempUsageDetail_20' ) start [2025-03-29 22:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791761', 'tblTempUsageDetail_20' ) end [2025-03-29 22:02:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 22:02:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 22:02:23] Production.INFO: ==18682== Releasing lock... [2025-03-29 22:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 22:02:23] Production.INFO: 44.75 MB #Memory Used# [2025-03-29 22:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 19:03:05 [end_date_ymd] => 2025-03-29 22:03:05 [RateCDR] => 1 ) [2025-03-29 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-29 19:03:05' and `end` < '2025-03-29 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-29 22:03:18] Production.INFO: count ==2223 [2025-03-29 22:03:18] Production.ERROR: pbx CDR StartTime 2025-03-29 19:03:05 - End Time 2025-03-29 22:03:05 [2025-03-29 22:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791766', 'tblTempUsageDetail_20' ) start [2025-03-29 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791766', 'tblTempUsageDetail_20' ) end [2025-03-29 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791766', 'tblTempVendorCDR_20' ) start [2025-03-29 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791766', 'tblTempVendorCDR_20' ) end [2025-03-29 22:03:18] Production.INFO: ProcessCDR(1,14791766,1,1,2) [2025-03-29 22:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791766', 'tblTempUsageDetail_20' ) start [2025-03-29 22:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791766', 'tblTempUsageDetail_20' ) end [2025-03-29 22:03:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 22:03:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 22:03:24] Production.INFO: ==18771== Releasing lock... [2025-03-29 22:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 22:03:24] Production.INFO: 44.75 MB #Memory Used# [2025-03-29 22:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 19:04:06 [end_date_ymd] => 2025-03-29 22:04:06 [RateCDR] => 1 ) [2025-03-29 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-29 19:04:06' and `end` < '2025-03-29 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-29 22:04:18] Production.INFO: count ==2217 [2025-03-29 22:04:19] Production.ERROR: pbx CDR StartTime 2025-03-29 19:04:06 - End Time 2025-03-29 22:04:06 [2025-03-29 22:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791771', 'tblTempUsageDetail_20' ) start [2025-03-29 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791771', 'tblTempUsageDetail_20' ) end [2025-03-29 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791771', 'tblTempVendorCDR_20' ) start [2025-03-29 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791771', 'tblTempVendorCDR_20' ) end [2025-03-29 22:04:19] Production.INFO: ProcessCDR(1,14791771,1,1,2) [2025-03-29 22:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791771', 'tblTempUsageDetail_20' ) start [2025-03-29 22:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791771', 'tblTempUsageDetail_20' ) end [2025-03-29 22:04:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 22:04:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 22:04:24] Production.INFO: ==18902== Releasing lock... [2025-03-29 22:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 22:04:24] Production.INFO: 44.75 MB #Memory Used# [2025-03-29 22:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 19:05:05 [end_date_ymd] => 2025-03-29 22:05:05 [RateCDR] => 1 ) [2025-03-29 22:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 19:05:05' and `end` < '2025-03-29 22:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 22:05:17] Production.INFO: count ==2227 [2025-03-29 22:05:18] Production.ERROR: pbx CDR StartTime 2025-03-29 19:05:05 - End Time 2025-03-29 22:05:05 [2025-03-29 22:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791776', 'tblTempUsageDetail_20' ) start [2025-03-29 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791776', 'tblTempUsageDetail_20' ) end [2025-03-29 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791776', 'tblTempVendorCDR_20' ) start [2025-03-29 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791776', 'tblTempVendorCDR_20' ) end [2025-03-29 22:05:18] Production.INFO: ProcessCDR(1,14791776,1,1,2) [2025-03-29 22:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791776', 'tblTempUsageDetail_20' ) start [2025-03-29 22:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791776', 'tblTempUsageDetail_20' ) end [2025-03-29 22:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 22:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 22:05:22] Production.INFO: ==18994== Releasing lock... [2025-03-29 22:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 22:05:22] Production.INFO: 44.75 MB #Memory Used# [2025-03-29 22:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 19:06:05 [end_date_ymd] => 2025-03-29 22:06:05 [RateCDR] => 1 ) [2025-03-29 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-29 19:06:05' and `end` < '2025-03-29 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-29 22:06:18] Production.INFO: count ==2233 [2025-03-29 22:06:19] Production.ERROR: pbx CDR StartTime 2025-03-29 19:06:05 - End Time 2025-03-29 22:06:05 [2025-03-29 22:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791781', 'tblTempUsageDetail_20' ) start [2025-03-29 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791781', 'tblTempUsageDetail_20' ) end [2025-03-29 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791781', 'tblTempVendorCDR_20' ) start [2025-03-29 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791781', 'tblTempVendorCDR_20' ) end [2025-03-29 22:06:19] Production.INFO: ProcessCDR(1,14791781,1,1,2) [2025-03-29 22:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791781', 'tblTempUsageDetail_20' ) start [2025-03-29 22:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791781', 'tblTempUsageDetail_20' ) end [2025-03-29 22:06:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 22:06:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 22:06:24] Production.INFO: ==19070== Releasing lock... [2025-03-29 22:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 22:06:24] Production.INFO: 44.75 MB #Memory Used# [2025-03-29 22:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 19:07:05 [end_date_ymd] => 2025-03-29 22:07:05 [RateCDR] => 1 ) [2025-03-29 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-29 19:07:05' and `end` < '2025-03-29 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-29 22:07:17] Production.INFO: count ==2242 [2025-03-29 22:07:18] Production.ERROR: pbx CDR StartTime 2025-03-29 19:07:05 - End Time 2025-03-29 22:07:05 [2025-03-29 22:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791786', 'tblTempUsageDetail_20' ) start [2025-03-29 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791786', 'tblTempUsageDetail_20' ) end [2025-03-29 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791786', 'tblTempVendorCDR_20' ) start [2025-03-29 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791786', 'tblTempVendorCDR_20' ) end [2025-03-29 22:07:18] Production.INFO: ProcessCDR(1,14791786,1,1,2) [2025-03-29 22:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791786', 'tblTempUsageDetail_20' ) start [2025-03-29 22:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791786', 'tblTempUsageDetail_20' ) end [2025-03-29 22:07:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 22:07:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 22:07:23] Production.INFO: ==19165== Releasing lock... [2025-03-29 22:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 22:07:23] Production.INFO: 44.75 MB #Memory Used# [2025-03-29 22:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 19:08:06 [end_date_ymd] => 2025-03-29 22:08:06 [RateCDR] => 1 ) [2025-03-29 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-29 19:08:06' and `end` < '2025-03-29 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-29 22:08:19] Production.INFO: count ==2245 [2025-03-29 22:08:19] Production.ERROR: pbx CDR StartTime 2025-03-29 19:08:06 - End Time 2025-03-29 22:08:06 [2025-03-29 22:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 22:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791791', 'tblTempUsageDetail_20' ) start [2025-03-29 22:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791791', 'tblTempUsageDetail_20' ) end [2025-03-29 22:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791791', 'tblTempVendorCDR_20' ) start [2025-03-29 22:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791791', 'tblTempVendorCDR_20' ) end [2025-03-29 22:08:19] Production.INFO: ProcessCDR(1,14791791,1,1,2) [2025-03-29 22:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791791', 'tblTempUsageDetail_20' ) start [2025-03-29 22:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791791', 'tblTempUsageDetail_20' ) end [2025-03-29 22:08:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 22:08:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 22:08:23] Production.INFO: ==19261== Releasing lock... [2025-03-29 22:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 22:08:23] Production.INFO: 45 MB #Memory Used# [2025-03-29 22:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 19:09:05 [end_date_ymd] => 2025-03-29 22:09:05 [RateCDR] => 1 ) [2025-03-29 22:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 19:09:05' and `end` < '2025-03-29 22:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 22:09:18] Production.INFO: count ==2259 [2025-03-29 22:09:18] Production.ERROR: pbx CDR StartTime 2025-03-29 19:09:05 - End Time 2025-03-29 22:09:05 [2025-03-29 22:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791796', 'tblTempUsageDetail_20' ) start [2025-03-29 22:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791796', 'tblTempUsageDetail_20' ) end [2025-03-29 22:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791796', 'tblTempVendorCDR_20' ) start [2025-03-29 22:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791796', 'tblTempVendorCDR_20' ) end [2025-03-29 22:09:19] Production.INFO: ProcessCDR(1,14791796,1,1,2) [2025-03-29 22:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791796', 'tblTempUsageDetail_20' ) start [2025-03-29 22:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791796', 'tblTempUsageDetail_20' ) end [2025-03-29 22:09:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 22:09:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 22:09:22] Production.INFO: ==19348== Releasing lock... [2025-03-29 22:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 22:09:22] Production.INFO: 45 MB #Memory Used# [2025-03-29 22:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 19:10:06 [end_date_ymd] => 2025-03-29 22:10:06 [RateCDR] => 1 ) [2025-03-29 22:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 19:10:06' and `end` < '2025-03-29 22:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 22:10:18] Production.INFO: count ==2262 [2025-03-29 22:10:19] Production.ERROR: pbx CDR StartTime 2025-03-29 19:10:06 - End Time 2025-03-29 22:10:06 [2025-03-29 22:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791801', 'tblTempUsageDetail_20' ) start [2025-03-29 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791801', 'tblTempUsageDetail_20' ) end [2025-03-29 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791801', 'tblTempVendorCDR_20' ) start [2025-03-29 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791801', 'tblTempVendorCDR_20' ) end [2025-03-29 22:10:19] Production.INFO: ProcessCDR(1,14791801,1,1,2) [2025-03-29 22:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791801', 'tblTempUsageDetail_20' ) start [2025-03-29 22:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791801', 'tblTempUsageDetail_20' ) end [2025-03-29 22:10:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 22:10:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 22:10:23] Production.INFO: ==19438== Releasing lock... [2025-03-29 22:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 22:10:23] Production.INFO: 45.25 MB #Memory Used# [2025-03-29 22:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 19:11:05 [end_date_ymd] => 2025-03-29 22:11:05 [RateCDR] => 1 ) [2025-03-29 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-29 19:11:05' and `end` < '2025-03-29 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-29 22:11:18] Production.INFO: count ==2266 [2025-03-29 22:11:18] Production.ERROR: pbx CDR StartTime 2025-03-29 19:11:05 - End Time 2025-03-29 22:11:05 [2025-03-29 22:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791807', 'tblTempUsageDetail_20' ) start [2025-03-29 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791807', 'tblTempUsageDetail_20' ) end [2025-03-29 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791807', 'tblTempVendorCDR_20' ) start [2025-03-29 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791807', 'tblTempVendorCDR_20' ) end [2025-03-29 22:11:18] Production.INFO: ProcessCDR(1,14791807,1,1,2) [2025-03-29 22:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791807', 'tblTempUsageDetail_20' ) start [2025-03-29 22:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791807', 'tblTempUsageDetail_20' ) end [2025-03-29 22:11:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 22:11:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 22:11:22] Production.INFO: ==19521== Releasing lock... [2025-03-29 22:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 22:11:22] Production.INFO: 45 MB #Memory Used# [2025-03-29 22:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 19:12:06 [end_date_ymd] => 2025-03-29 22:12:06 [RateCDR] => 1 ) [2025-03-29 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-29 19:12:06' and `end` < '2025-03-29 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-29 22:12:18] Production.INFO: count ==2262 [2025-03-29 22:12:19] Production.ERROR: pbx CDR StartTime 2025-03-29 19:12:06 - End Time 2025-03-29 22:12:06 [2025-03-29 22:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791812', 'tblTempUsageDetail_20' ) start [2025-03-29 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791812', 'tblTempUsageDetail_20' ) end [2025-03-29 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791812', 'tblTempVendorCDR_20' ) start [2025-03-29 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791812', 'tblTempVendorCDR_20' ) end [2025-03-29 22:12:19] Production.INFO: ProcessCDR(1,14791812,1,1,2) [2025-03-29 22:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791812', 'tblTempUsageDetail_20' ) start [2025-03-29 22:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791812', 'tblTempUsageDetail_20' ) end [2025-03-29 22:12:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 22:12:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 22:12:23] Production.INFO: ==19609== Releasing lock... [2025-03-29 22:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 22:12:23] Production.INFO: 45 MB #Memory Used# [2025-03-29 22:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 19:13:06 [end_date_ymd] => 2025-03-29 22:13:06 [RateCDR] => 1 ) [2025-03-29 22: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-29 19:13:06' and `end` < '2025-03-29 22: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-29 22:13:19] Production.INFO: count ==2251 [2025-03-29 22:13:19] Production.ERROR: pbx CDR StartTime 2025-03-29 19:13:06 - End Time 2025-03-29 22:13:06 [2025-03-29 22:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 22:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791817', 'tblTempUsageDetail_20' ) start [2025-03-29 22:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791817', 'tblTempUsageDetail_20' ) end [2025-03-29 22:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791817', 'tblTempVendorCDR_20' ) start [2025-03-29 22:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791817', 'tblTempVendorCDR_20' ) end [2025-03-29 22:13:20] Production.INFO: ProcessCDR(1,14791817,1,1,2) [2025-03-29 22:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791817', 'tblTempUsageDetail_20' ) start [2025-03-29 22:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791817', 'tblTempUsageDetail_20' ) end [2025-03-29 22:13:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 22:13:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 22:13:24] Production.INFO: ==19697== Releasing lock... [2025-03-29 22:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 22:13:24] Production.INFO: 45.25 MB #Memory Used# [2025-03-29 22:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 19:14:05 [end_date_ymd] => 2025-03-29 22:14:05 [RateCDR] => 1 ) [2025-03-29 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-29 19:14:05' and `end` < '2025-03-29 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-29 22:14:18] Production.INFO: count ==2249 [2025-03-29 22:14:19] Production.ERROR: pbx CDR StartTime 2025-03-29 19:14:05 - End Time 2025-03-29 22:14:05 [2025-03-29 22:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791822', 'tblTempUsageDetail_20' ) start [2025-03-29 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791822', 'tblTempUsageDetail_20' ) end [2025-03-29 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791822', 'tblTempVendorCDR_20' ) start [2025-03-29 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791822', 'tblTempVendorCDR_20' ) end [2025-03-29 22:14:19] Production.INFO: ProcessCDR(1,14791822,1,1,2) [2025-03-29 22:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791822', 'tblTempUsageDetail_20' ) start [2025-03-29 22:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791822', 'tblTempUsageDetail_20' ) end [2025-03-29 22:14:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 22:14:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 22:14:24] Production.INFO: ==19785== Releasing lock... [2025-03-29 22:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 22:14:24] Production.INFO: 45 MB #Memory Used# [2025-03-29 22:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 19:15:06 [end_date_ymd] => 2025-03-29 22:15:06 [RateCDR] => 1 ) [2025-03-29 22: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-29 19:15:06' and `end` < '2025-03-29 22: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-29 22:15:19] Production.INFO: count ==2258 [2025-03-29 22:15:20] Production.ERROR: pbx CDR StartTime 2025-03-29 19:15:06 - End Time 2025-03-29 22:15:06 [2025-03-29 22:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 22:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791827', 'tblTempUsageDetail_20' ) start [2025-03-29 22:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791827', 'tblTempUsageDetail_20' ) end [2025-03-29 22:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791827', 'tblTempVendorCDR_20' ) start [2025-03-29 22:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791827', 'tblTempVendorCDR_20' ) end [2025-03-29 22:15:20] Production.INFO: ProcessCDR(1,14791827,1,1,2) [2025-03-29 22:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791827', 'tblTempUsageDetail_20' ) start [2025-03-29 22:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791827', 'tblTempUsageDetail_20' ) end [2025-03-29 22:15:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 22:15:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 22:15:24] Production.INFO: ==19871== Releasing lock... [2025-03-29 22:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 22:15:24] Production.INFO: 45 MB #Memory Used# [2025-03-29 22:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 19:16:05 [end_date_ymd] => 2025-03-29 22:16:05 [RateCDR] => 1 ) [2025-03-29 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-29 19:16:05' and `end` < '2025-03-29 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-29 22:16:18] Production.INFO: count ==2240 [2025-03-29 22:16:19] Production.ERROR: pbx CDR StartTime 2025-03-29 19:16:05 - End Time 2025-03-29 22:16:05 [2025-03-29 22:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791832', 'tblTempUsageDetail_20' ) start [2025-03-29 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791832', 'tblTempUsageDetail_20' ) end [2025-03-29 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791832', 'tblTempVendorCDR_20' ) start [2025-03-29 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791832', 'tblTempVendorCDR_20' ) end [2025-03-29 22:16:19] Production.INFO: ProcessCDR(1,14791832,1,1,2) [2025-03-29 22:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791832', 'tblTempUsageDetail_20' ) start [2025-03-29 22:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791832', 'tblTempUsageDetail_20' ) end [2025-03-29 22:16:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 22:16:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 22:16:23] Production.INFO: ==19956== Releasing lock... [2025-03-29 22:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 22:16:23] Production.INFO: 44.75 MB #Memory Used# [2025-03-29 22:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 19:17:06 [end_date_ymd] => 2025-03-29 22:17:06 [RateCDR] => 1 ) [2025-03-29 22:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 19:17:06' and `end` < '2025-03-29 22:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 22:17:19] Production.INFO: count ==2231 [2025-03-29 22:17:20] Production.ERROR: pbx CDR StartTime 2025-03-29 19:17:06 - End Time 2025-03-29 22:17:06 [2025-03-29 22:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 22:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791837', 'tblTempUsageDetail_20' ) start [2025-03-29 22:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791837', 'tblTempUsageDetail_20' ) end [2025-03-29 22:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791837', 'tblTempVendorCDR_20' ) start [2025-03-29 22:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791837', 'tblTempVendorCDR_20' ) end [2025-03-29 22:17:20] Production.INFO: ProcessCDR(1,14791837,1,1,2) [2025-03-29 22:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791837', 'tblTempUsageDetail_20' ) start [2025-03-29 22:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791837', 'tblTempUsageDetail_20' ) end [2025-03-29 22:17:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 22:17:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 22:17:23] Production.INFO: ==20053== Releasing lock... [2025-03-29 22:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 22:17:23] Production.INFO: 44.75 MB #Memory Used# [2025-03-29 22:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 19:18:05 [end_date_ymd] => 2025-03-29 22:18:05 [RateCDR] => 1 ) [2025-03-29 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-29 19:18:05' and `end` < '2025-03-29 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-29 22:18:18] Production.INFO: count ==2244 [2025-03-29 22:18:19] Production.ERROR: pbx CDR StartTime 2025-03-29 19:18:05 - End Time 2025-03-29 22:18:05 [2025-03-29 22:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791842', 'tblTempUsageDetail_20' ) start [2025-03-29 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791842', 'tblTempUsageDetail_20' ) end [2025-03-29 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791842', 'tblTempVendorCDR_20' ) start [2025-03-29 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791842', 'tblTempVendorCDR_20' ) end [2025-03-29 22:18:19] Production.INFO: ProcessCDR(1,14791842,1,1,2) [2025-03-29 22:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791842', 'tblTempUsageDetail_20' ) start [2025-03-29 22:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791842', 'tblTempUsageDetail_20' ) end [2025-03-29 22:18:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 22:18:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 22:18:22] Production.INFO: ==20136== Releasing lock... [2025-03-29 22:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 22:18:22] Production.INFO: 45 MB #Memory Used# [2025-03-29 22:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 19:19:06 [end_date_ymd] => 2025-03-29 22:19:06 [RateCDR] => 1 ) [2025-03-29 22: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-29 19:19:06' and `end` < '2025-03-29 22: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-29 22:19:18] Production.INFO: count ==2244 [2025-03-29 22:19:19] Production.ERROR: pbx CDR StartTime 2025-03-29 19:19:06 - End Time 2025-03-29 22:19:06 [2025-03-29 22:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791847', 'tblTempUsageDetail_20' ) start [2025-03-29 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791847', 'tblTempUsageDetail_20' ) end [2025-03-29 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791847', 'tblTempVendorCDR_20' ) start [2025-03-29 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791847', 'tblTempVendorCDR_20' ) end [2025-03-29 22:19:19] Production.INFO: ProcessCDR(1,14791847,1,1,2) [2025-03-29 22:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791847', 'tblTempUsageDetail_20' ) start [2025-03-29 22:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791847', 'tblTempUsageDetail_20' ) end [2025-03-29 22:19:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 22:19:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 22:19:23] Production.INFO: ==20228== Releasing lock... [2025-03-29 22:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 22:19:23] Production.INFO: 45 MB #Memory Used# [2025-03-29 22:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 19:20:06 [end_date_ymd] => 2025-03-29 22:20:06 [RateCDR] => 1 ) [2025-03-29 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-29 19:20:06' and `end` < '2025-03-29 22:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 22:20:19] Production.INFO: count ==2244 [2025-03-29 22:20:20] Production.ERROR: pbx CDR StartTime 2025-03-29 19:20:06 - End Time 2025-03-29 22:20:06 [2025-03-29 22:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 22:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791853', 'tblTempUsageDetail_20' ) start [2025-03-29 22:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791853', 'tblTempUsageDetail_20' ) end [2025-03-29 22:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791853', 'tblTempVendorCDR_20' ) start [2025-03-29 22:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791853', 'tblTempVendorCDR_20' ) end [2025-03-29 22:20:20] Production.INFO: ProcessCDR(1,14791853,1,1,2) [2025-03-29 22:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791853', 'tblTempUsageDetail_20' ) start [2025-03-29 22:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791853', 'tblTempUsageDetail_20' ) end [2025-03-29 22:20:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 22:20:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 22:20:23] Production.INFO: ==20366== Releasing lock... [2025-03-29 22:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 22:20:23] Production.INFO: 45.25 MB #Memory Used# [2025-03-29 22:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 19:21:05 [end_date_ymd] => 2025-03-29 22:21:05 [RateCDR] => 1 ) [2025-03-29 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-29 19:21:05' and `end` < '2025-03-29 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-29 22:21:18] Production.INFO: count ==2219 [2025-03-29 22:21:19] Production.ERROR: pbx CDR StartTime 2025-03-29 19:21:05 - End Time 2025-03-29 22:21:05 [2025-03-29 22:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791858', 'tblTempUsageDetail_20' ) start [2025-03-29 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791858', 'tblTempUsageDetail_20' ) end [2025-03-29 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791858', 'tblTempVendorCDR_20' ) start [2025-03-29 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791858', 'tblTempVendorCDR_20' ) end [2025-03-29 22:21:19] Production.INFO: ProcessCDR(1,14791858,1,1,2) [2025-03-29 22:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791858', 'tblTempUsageDetail_20' ) start [2025-03-29 22:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791858', 'tblTempUsageDetail_20' ) end [2025-03-29 22:21:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 22:21:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 22:21:24] Production.INFO: ==20463== Releasing lock... [2025-03-29 22:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 22:21:24] Production.INFO: 44.75 MB #Memory Used# [2025-03-29 22:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 19:22:05 [end_date_ymd] => 2025-03-29 22:22:05 [RateCDR] => 1 ) [2025-03-29 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-29 19:22:05' and `end` < '2025-03-29 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-29 22:22:18] Production.INFO: count ==2218 [2025-03-29 22:22:19] Production.ERROR: pbx CDR StartTime 2025-03-29 19:22:05 - End Time 2025-03-29 22:22:05 [2025-03-29 22:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791863', 'tblTempUsageDetail_20' ) start [2025-03-29 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791863', 'tblTempUsageDetail_20' ) end [2025-03-29 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791863', 'tblTempVendorCDR_20' ) start [2025-03-29 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791863', 'tblTempVendorCDR_20' ) end [2025-03-29 22:22:19] Production.INFO: ProcessCDR(1,14791863,1,1,2) [2025-03-29 22:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791863', 'tblTempUsageDetail_20' ) start [2025-03-29 22:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791863', 'tblTempUsageDetail_20' ) end [2025-03-29 22:22:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 22:22:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 22:22:23] Production.INFO: ==20548== Releasing lock... [2025-03-29 22:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 22:22:23] Production.INFO: 44.75 MB #Memory Used# [2025-03-29 22:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 19:23:05 [end_date_ymd] => 2025-03-29 22:23:05 [RateCDR] => 1 ) [2025-03-29 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-29 19:23:05' and `end` < '2025-03-29 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-29 22:23:18] Production.INFO: count ==2219 [2025-03-29 22:23:19] Production.ERROR: pbx CDR StartTime 2025-03-29 19:23:05 - End Time 2025-03-29 22:23:05 [2025-03-29 22:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791868', 'tblTempUsageDetail_20' ) start [2025-03-29 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791868', 'tblTempUsageDetail_20' ) end [2025-03-29 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791868', 'tblTempVendorCDR_20' ) start [2025-03-29 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791868', 'tblTempVendorCDR_20' ) end [2025-03-29 22:23:19] Production.INFO: ProcessCDR(1,14791868,1,1,2) [2025-03-29 22:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791868', 'tblTempUsageDetail_20' ) start [2025-03-29 22:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791868', 'tblTempUsageDetail_20' ) end [2025-03-29 22:23:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 22:23:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 22:23:22] Production.INFO: ==20638== Releasing lock... [2025-03-29 22:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 22:23:22] Production.INFO: 44.75 MB #Memory Used# [2025-03-29 22:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 19:24:05 [end_date_ymd] => 2025-03-29 22:24:05 [RateCDR] => 1 ) [2025-03-29 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-29 19:24:05' and `end` < '2025-03-29 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-29 22:24:18] Production.INFO: count ==2214 [2025-03-29 22:24:19] Production.ERROR: pbx CDR StartTime 2025-03-29 19:24:05 - End Time 2025-03-29 22:24:05 [2025-03-29 22:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791873', 'tblTempUsageDetail_20' ) start [2025-03-29 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791873', 'tblTempUsageDetail_20' ) end [2025-03-29 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791873', 'tblTempVendorCDR_20' ) start [2025-03-29 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791873', 'tblTempVendorCDR_20' ) end [2025-03-29 22:24:19] Production.INFO: ProcessCDR(1,14791873,1,1,2) [2025-03-29 22:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791873', 'tblTempUsageDetail_20' ) start [2025-03-29 22:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791873', 'tblTempUsageDetail_20' ) end [2025-03-29 22:24:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 22:24:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 22:24:22] Production.INFO: ==20723== Releasing lock... [2025-03-29 22:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 22:24:22] Production.INFO: 45 MB #Memory Used# [2025-03-29 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 19:25:05 [end_date_ymd] => 2025-03-29 22:25:05 [RateCDR] => 1 ) [2025-03-29 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-29 19:25:05' and `end` < '2025-03-29 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-29 22:25:18] Production.INFO: count ==2209 [2025-03-29 22:25:19] Production.ERROR: pbx CDR StartTime 2025-03-29 19:25:05 - End Time 2025-03-29 22:25:05 [2025-03-29 22:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791878', 'tblTempUsageDetail_20' ) start [2025-03-29 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791878', 'tblTempUsageDetail_20' ) end [2025-03-29 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791878', 'tblTempVendorCDR_20' ) start [2025-03-29 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791878', 'tblTempVendorCDR_20' ) end [2025-03-29 22:25:19] Production.INFO: ProcessCDR(1,14791878,1,1,2) [2025-03-29 22:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791878', 'tblTempUsageDetail_20' ) start [2025-03-29 22:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791878', 'tblTempUsageDetail_20' ) end [2025-03-29 22:25:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 22:25:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 22:25:22] Production.INFO: ==20810== Releasing lock... [2025-03-29 22:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 22:25:22] Production.INFO: 44.5 MB #Memory Used# [2025-03-29 22:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 19:26:05 [end_date_ymd] => 2025-03-29 22:26:05 [RateCDR] => 1 ) [2025-03-29 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-29 19:26:05' and `end` < '2025-03-29 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-29 22:26:18] Production.INFO: count ==2185 [2025-03-29 22:26:18] Production.ERROR: pbx CDR StartTime 2025-03-29 19:26:05 - End Time 2025-03-29 22:26:05 [2025-03-29 22:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791883', 'tblTempUsageDetail_20' ) start [2025-03-29 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791883', 'tblTempUsageDetail_20' ) end [2025-03-29 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791883', 'tblTempVendorCDR_20' ) start [2025-03-29 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791883', 'tblTempVendorCDR_20' ) end [2025-03-29 22:26:19] Production.INFO: ProcessCDR(1,14791883,1,1,2) [2025-03-29 22:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791883', 'tblTempUsageDetail_20' ) start [2025-03-29 22:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791883', 'tblTempUsageDetail_20' ) end [2025-03-29 22:26:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 22:26:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 22:26:22] Production.INFO: ==20889== Releasing lock... [2025-03-29 22:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 22:26:22] Production.INFO: 44.75 MB #Memory Used# [2025-03-29 22:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 19:27:05 [end_date_ymd] => 2025-03-29 22:27:05 [RateCDR] => 1 ) [2025-03-29 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-29 19:27:05' and `end` < '2025-03-29 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-29 22:27:18] Production.INFO: count ==2185 [2025-03-29 22:27:19] Production.ERROR: pbx CDR StartTime 2025-03-29 19:27:05 - End Time 2025-03-29 22:27:05 [2025-03-29 22:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 22:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791888', 'tblTempUsageDetail_20' ) start [2025-03-29 22:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791888', 'tblTempUsageDetail_20' ) end [2025-03-29 22:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791888', 'tblTempVendorCDR_20' ) start [2025-03-29 22:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791888', 'tblTempVendorCDR_20' ) end [2025-03-29 22:27:19] Production.INFO: ProcessCDR(1,14791888,1,1,2) [2025-03-29 22:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791888', 'tblTempUsageDetail_20' ) start [2025-03-29 22:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791888', 'tblTempUsageDetail_20' ) end [2025-03-29 22:27:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 22:27:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 22:27:24] Production.INFO: ==20979== Releasing lock... [2025-03-29 22:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 22:27:24] Production.INFO: 44.5 MB #Memory Used# [2025-03-29 22:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 19:28:05 [end_date_ymd] => 2025-03-29 22:28:05 [RateCDR] => 1 ) [2025-03-29 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-29 19:28:05' and `end` < '2025-03-29 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-29 22:28:18] Production.INFO: count ==2188 [2025-03-29 22:28:18] Production.ERROR: pbx CDR StartTime 2025-03-29 19:28:05 - End Time 2025-03-29 22:28:05 [2025-03-29 22:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791893', 'tblTempUsageDetail_20' ) start [2025-03-29 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791893', 'tblTempUsageDetail_20' ) end [2025-03-29 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791893', 'tblTempVendorCDR_20' ) start [2025-03-29 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791893', 'tblTempVendorCDR_20' ) end [2025-03-29 22:28:18] Production.INFO: ProcessCDR(1,14791893,1,1,2) [2025-03-29 22:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791893', 'tblTempUsageDetail_20' ) start [2025-03-29 22:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791893', 'tblTempUsageDetail_20' ) end [2025-03-29 22:28:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 22:28:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 22:28:22] Production.INFO: ==21071== Releasing lock... [2025-03-29 22:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 22:28:22] Production.INFO: 44.75 MB #Memory Used# [2025-03-29 22:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 19:29:05 [end_date_ymd] => 2025-03-29 22:29:05 [RateCDR] => 1 ) [2025-03-29 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-29 19:29:05' and `end` < '2025-03-29 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-29 22:29:18] Production.INFO: count ==2209 [2025-03-29 22:29:19] Production.ERROR: pbx CDR StartTime 2025-03-29 19:29:05 - End Time 2025-03-29 22:29:05 [2025-03-29 22:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791898', 'tblTempUsageDetail_20' ) start [2025-03-29 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791898', 'tblTempUsageDetail_20' ) end [2025-03-29 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791898', 'tblTempVendorCDR_20' ) start [2025-03-29 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791898', 'tblTempVendorCDR_20' ) end [2025-03-29 22:29:19] Production.INFO: ProcessCDR(1,14791898,1,1,2) [2025-03-29 22:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791898', 'tblTempUsageDetail_20' ) start [2025-03-29 22:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791898', 'tblTempUsageDetail_20' ) end [2025-03-29 22:29:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 22:29:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 22:29:22] Production.INFO: ==21156== Releasing lock... [2025-03-29 22:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 22:29:22] Production.INFO: 44.5 MB #Memory Used# [2025-03-29 22:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 19:30:06 [end_date_ymd] => 2025-03-29 22:30:06 [RateCDR] => 1 ) [2025-03-29 22:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 19:30:06' and `end` < '2025-03-29 22:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 22:30:19] Production.INFO: count ==2206 [2025-03-29 22:30:20] Production.ERROR: pbx CDR StartTime 2025-03-29 19:30:06 - End Time 2025-03-29 22:30:06 [2025-03-29 22:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 22:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791904', 'tblTempUsageDetail_20' ) start [2025-03-29 22:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791904', 'tblTempUsageDetail_20' ) end [2025-03-29 22:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791904', 'tblTempVendorCDR_20' ) start [2025-03-29 22:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791904', 'tblTempVendorCDR_20' ) end [2025-03-29 22:30:20] Production.INFO: ProcessCDR(1,14791904,1,1,2) [2025-03-29 22:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791904', 'tblTempUsageDetail_20' ) start [2025-03-29 22:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791904', 'tblTempUsageDetail_20' ) end [2025-03-29 22:30:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 22:30:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 22:30:23] Production.INFO: ==21255== Releasing lock... [2025-03-29 22:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 22:30:23] Production.INFO: 44.5 MB #Memory Used# [2025-03-29 22:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 19:31:05 [end_date_ymd] => 2025-03-29 22:31:05 [RateCDR] => 1 ) [2025-03-29 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-29 19:31:05' and `end` < '2025-03-29 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-29 22:31:18] Production.INFO: count ==2206 [2025-03-29 22:31:18] Production.ERROR: pbx CDR StartTime 2025-03-29 19:31:05 - End Time 2025-03-29 22:31:05 [2025-03-29 22:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791909', 'tblTempUsageDetail_20' ) start [2025-03-29 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791909', 'tblTempUsageDetail_20' ) end [2025-03-29 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791909', 'tblTempVendorCDR_20' ) start [2025-03-29 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791909', 'tblTempVendorCDR_20' ) end [2025-03-29 22:31:19] Production.INFO: ProcessCDR(1,14791909,1,1,2) [2025-03-29 22:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791909', 'tblTempUsageDetail_20' ) start [2025-03-29 22:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791909', 'tblTempUsageDetail_20' ) end [2025-03-29 22:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 22:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 22:31:22] Production.INFO: ==21345== Releasing lock... [2025-03-29 22:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 22:31:22] Production.INFO: 44.5 MB #Memory Used# [2025-03-29 22:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 19:32:06 [end_date_ymd] => 2025-03-29 22:32:06 [RateCDR] => 1 ) [2025-03-29 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-29 19:32:06' and `end` < '2025-03-29 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-29 22:32:18] Production.INFO: count ==2216 [2025-03-29 22:32:19] Production.ERROR: pbx CDR StartTime 2025-03-29 19:32:06 - End Time 2025-03-29 22:32:06 [2025-03-29 22:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791914', 'tblTempUsageDetail_20' ) start [2025-03-29 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791914', 'tblTempUsageDetail_20' ) end [2025-03-29 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791914', 'tblTempVendorCDR_20' ) start [2025-03-29 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791914', 'tblTempVendorCDR_20' ) end [2025-03-29 22:32:19] Production.INFO: ProcessCDR(1,14791914,1,1,2) [2025-03-29 22:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791914', 'tblTempUsageDetail_20' ) start [2025-03-29 22:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791914', 'tblTempUsageDetail_20' ) end [2025-03-29 22:32:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 22:32:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 22:32:24] Production.INFO: ==21430== Releasing lock... [2025-03-29 22:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 22:32:24] Production.INFO: 44.75 MB #Memory Used# [2025-03-29 22:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 19:33:05 [end_date_ymd] => 2025-03-29 22:33:05 [RateCDR] => 1 ) [2025-03-29 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-29 19:33:05' and `end` < '2025-03-29 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-29 22:33:18] Production.INFO: count ==2216 [2025-03-29 22:33:18] Production.ERROR: pbx CDR StartTime 2025-03-29 19:33:05 - End Time 2025-03-29 22:33:05 [2025-03-29 22:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791919', 'tblTempUsageDetail_20' ) start [2025-03-29 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791919', 'tblTempUsageDetail_20' ) end [2025-03-29 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791919', 'tblTempVendorCDR_20' ) start [2025-03-29 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791919', 'tblTempVendorCDR_20' ) end [2025-03-29 22:33:18] Production.INFO: ProcessCDR(1,14791919,1,1,2) [2025-03-29 22:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791919', 'tblTempUsageDetail_20' ) start [2025-03-29 22:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791919', 'tblTempUsageDetail_20' ) end [2025-03-29 22:33:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 22:33:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 22:33:22] Production.INFO: ==21515== Releasing lock... [2025-03-29 22:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 22:33:22] Production.INFO: 44.75 MB #Memory Used# [2025-03-29 22:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 19:34:05 [end_date_ymd] => 2025-03-29 22:34:05 [RateCDR] => 1 ) [2025-03-29 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-29 19:34:05' and `end` < '2025-03-29 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-29 22:34:18] Production.INFO: count ==2220 [2025-03-29 22:34:19] Production.ERROR: pbx CDR StartTime 2025-03-29 19:34:05 - End Time 2025-03-29 22:34:05 [2025-03-29 22:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 22:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791924', 'tblTempUsageDetail_20' ) start [2025-03-29 22:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791924', 'tblTempUsageDetail_20' ) end [2025-03-29 22:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791924', 'tblTempVendorCDR_20' ) start [2025-03-29 22:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791924', 'tblTempVendorCDR_20' ) end [2025-03-29 22:34:19] Production.INFO: ProcessCDR(1,14791924,1,1,2) [2025-03-29 22:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791924', 'tblTempUsageDetail_20' ) start [2025-03-29 22:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791924', 'tblTempUsageDetail_20' ) end [2025-03-29 22:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 22:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 22:34:22] Production.INFO: ==21601== Releasing lock... [2025-03-29 22:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 22:34:22] Production.INFO: 44.75 MB #Memory Used# [2025-03-29 22:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 19:35:05 [end_date_ymd] => 2025-03-29 22:35:05 [RateCDR] => 1 ) [2025-03-29 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-29 19:35:05' and `end` < '2025-03-29 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-29 22:35:18] Production.INFO: count ==2232 [2025-03-29 22:35:18] Production.ERROR: pbx CDR StartTime 2025-03-29 19:35:05 - End Time 2025-03-29 22:35:05 [2025-03-29 22:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791929', 'tblTempUsageDetail_20' ) start [2025-03-29 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791929', 'tblTempUsageDetail_20' ) end [2025-03-29 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791929', 'tblTempVendorCDR_20' ) start [2025-03-29 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791929', 'tblTempVendorCDR_20' ) end [2025-03-29 22:35:18] Production.INFO: ProcessCDR(1,14791929,1,1,2) [2025-03-29 22:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791929', 'tblTempUsageDetail_20' ) start [2025-03-29 22:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791929', 'tblTempUsageDetail_20' ) end [2025-03-29 22:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 22:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 22:35:22] Production.INFO: ==21717== Releasing lock... [2025-03-29 22:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 22:35:22] Production.INFO: 44.75 MB #Memory Used# [2025-03-29 22:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 19:36:05 [end_date_ymd] => 2025-03-29 22:36:05 [RateCDR] => 1 ) [2025-03-29 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-29 19:36:05' and `end` < '2025-03-29 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-29 22:36:18] Production.INFO: count ==2225 [2025-03-29 22:36:19] Production.ERROR: pbx CDR StartTime 2025-03-29 19:36:05 - End Time 2025-03-29 22:36:05 [2025-03-29 22:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791934', 'tblTempUsageDetail_20' ) start [2025-03-29 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791934', 'tblTempUsageDetail_20' ) end [2025-03-29 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791934', 'tblTempVendorCDR_20' ) start [2025-03-29 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791934', 'tblTempVendorCDR_20' ) end [2025-03-29 22:36:19] Production.INFO: ProcessCDR(1,14791934,1,1,2) [2025-03-29 22:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791934', 'tblTempUsageDetail_20' ) start [2025-03-29 22:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791934', 'tblTempUsageDetail_20' ) end [2025-03-29 22:36:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 22:36:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 22:36:24] Production.INFO: ==21801== Releasing lock... [2025-03-29 22:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 22:36:24] Production.INFO: 44.75 MB #Memory Used# [2025-03-29 22:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 19:37:05 [end_date_ymd] => 2025-03-29 22:37:05 [RateCDR] => 1 ) [2025-03-29 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-29 19:37:05' and `end` < '2025-03-29 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-29 22:37:17] Production.INFO: count ==2215 [2025-03-29 22:37:18] Production.ERROR: pbx CDR StartTime 2025-03-29 19:37:05 - End Time 2025-03-29 22:37:05 [2025-03-29 22:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791939', 'tblTempUsageDetail_20' ) start [2025-03-29 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791939', 'tblTempUsageDetail_20' ) end [2025-03-29 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791939', 'tblTempVendorCDR_20' ) start [2025-03-29 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791939', 'tblTempVendorCDR_20' ) end [2025-03-29 22:37:18] Production.INFO: ProcessCDR(1,14791939,1,1,2) [2025-03-29 22:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791939', 'tblTempUsageDetail_20' ) start [2025-03-29 22:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791939', 'tblTempUsageDetail_20' ) end [2025-03-29 22:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 22:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 22:37:22] Production.INFO: ==21876== Releasing lock... [2025-03-29 22:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 22:37:22] Production.INFO: 44.75 MB #Memory Used# [2025-03-29 22:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 19:38:05 [end_date_ymd] => 2025-03-29 22:38:05 [RateCDR] => 1 ) [2025-03-29 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-29 19:38:05' and `end` < '2025-03-29 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-29 22:38:17] Production.INFO: count ==2210 [2025-03-29 22:38:18] Production.ERROR: pbx CDR StartTime 2025-03-29 19:38:05 - End Time 2025-03-29 22:38:05 [2025-03-29 22:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791944', 'tblTempUsageDetail_20' ) start [2025-03-29 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791944', 'tblTempUsageDetail_20' ) end [2025-03-29 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791944', 'tblTempVendorCDR_20' ) start [2025-03-29 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791944', 'tblTempVendorCDR_20' ) end [2025-03-29 22:38:18] Production.INFO: ProcessCDR(1,14791944,1,1,2) [2025-03-29 22:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791944', 'tblTempUsageDetail_20' ) start [2025-03-29 22:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791944', 'tblTempUsageDetail_20' ) end [2025-03-29 22:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 22:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 22:38:22] Production.INFO: ==21959== Releasing lock... [2025-03-29 22:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 22:38:22] Production.INFO: 44.75 MB #Memory Used# [2025-03-29 22:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 19:39:05 [end_date_ymd] => 2025-03-29 22:39:05 [RateCDR] => 1 ) [2025-03-29 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-29 19:39:05' and `end` < '2025-03-29 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-29 22:39:17] Production.INFO: count ==2205 [2025-03-29 22:39:18] Production.ERROR: pbx CDR StartTime 2025-03-29 19:39:05 - End Time 2025-03-29 22:39:05 [2025-03-29 22:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791949', 'tblTempUsageDetail_20' ) start [2025-03-29 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791949', 'tblTempUsageDetail_20' ) end [2025-03-29 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791949', 'tblTempVendorCDR_20' ) start [2025-03-29 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791949', 'tblTempVendorCDR_20' ) end [2025-03-29 22:39:18] Production.INFO: ProcessCDR(1,14791949,1,1,2) [2025-03-29 22:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791949', 'tblTempUsageDetail_20' ) start [2025-03-29 22:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791949', 'tblTempUsageDetail_20' ) end [2025-03-29 22:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 22:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 22:39:22] Production.INFO: ==22039== Releasing lock... [2025-03-29 22:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 22:39:22] Production.INFO: 44.5 MB #Memory Used# [2025-03-29 22:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 19:40:06 [end_date_ymd] => 2025-03-29 22:40:06 [RateCDR] => 1 ) [2025-03-29 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-29 19:40:06' and `end` < '2025-03-29 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-29 22:40:19] Production.INFO: count ==2183 [2025-03-29 22:40:20] Production.ERROR: pbx CDR StartTime 2025-03-29 19:40:06 - End Time 2025-03-29 22:40:06 [2025-03-29 22:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 22:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791955', 'tblTempUsageDetail_20' ) start [2025-03-29 22:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791955', 'tblTempUsageDetail_20' ) end [2025-03-29 22:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791955', 'tblTempVendorCDR_20' ) start [2025-03-29 22:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791955', 'tblTempVendorCDR_20' ) end [2025-03-29 22:40:20] Production.INFO: ProcessCDR(1,14791955,1,1,2) [2025-03-29 22:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791955', 'tblTempUsageDetail_20' ) start [2025-03-29 22:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791955', 'tblTempUsageDetail_20' ) end [2025-03-29 22:40:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 22:40:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 22:40:23] Production.INFO: ==22116== Releasing lock... [2025-03-29 22:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 22:40:23] Production.INFO: 44.5 MB #Memory Used# [2025-03-29 22:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 19:41:05 [end_date_ymd] => 2025-03-29 22:41:05 [RateCDR] => 1 ) [2025-03-29 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-29 19:41:05' and `end` < '2025-03-29 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-29 22:41:17] Production.INFO: count ==2167 [2025-03-29 22:41:18] Production.ERROR: pbx CDR StartTime 2025-03-29 19:41:05 - End Time 2025-03-29 22:41:05 [2025-03-29 22:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791960', 'tblTempUsageDetail_20' ) start [2025-03-29 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791960', 'tblTempUsageDetail_20' ) end [2025-03-29 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791960', 'tblTempVendorCDR_20' ) start [2025-03-29 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791960', 'tblTempVendorCDR_20' ) end [2025-03-29 22:41:18] Production.INFO: ProcessCDR(1,14791960,1,1,2) [2025-03-29 22:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791960', 'tblTempUsageDetail_20' ) start [2025-03-29 22:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791960', 'tblTempUsageDetail_20' ) end [2025-03-29 22:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 22:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 22:41:21] Production.INFO: ==22197== Releasing lock... [2025-03-29 22:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 22:41:21] Production.INFO: 44.25 MB #Memory Used# [2025-03-29 22:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 19:42:06 [end_date_ymd] => 2025-03-29 22:42:06 [RateCDR] => 1 ) [2025-03-29 22:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 19:42:06' and `end` < '2025-03-29 22:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 22:42:19] Production.INFO: count ==2177 [2025-03-29 22:42:19] Production.ERROR: pbx CDR StartTime 2025-03-29 19:42:06 - End Time 2025-03-29 22:42:06 [2025-03-29 22:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791965', 'tblTempUsageDetail_20' ) start [2025-03-29 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791965', 'tblTempUsageDetail_20' ) end [2025-03-29 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791965', 'tblTempVendorCDR_20' ) start [2025-03-29 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791965', 'tblTempVendorCDR_20' ) end [2025-03-29 22:42:19] Production.INFO: ProcessCDR(1,14791965,1,1,2) [2025-03-29 22:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791965', 'tblTempUsageDetail_20' ) start [2025-03-29 22:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791965', 'tblTempUsageDetail_20' ) end [2025-03-29 22:42:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 22:42:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 22:42:23] Production.INFO: ==22276== Releasing lock... [2025-03-29 22:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 22:42:23] Production.INFO: 44.25 MB #Memory Used# [2025-03-29 22:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 19:43:06 [end_date_ymd] => 2025-03-29 22:43:06 [RateCDR] => 1 ) [2025-03-29 22: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-29 19:43:06' and `end` < '2025-03-29 22: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-29 22:43:19] Production.INFO: count ==2195 [2025-03-29 22:43:19] Production.ERROR: pbx CDR StartTime 2025-03-29 19:43:06 - End Time 2025-03-29 22:43:06 [2025-03-29 22:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 22:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791970', 'tblTempUsageDetail_20' ) start [2025-03-29 22:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791970', 'tblTempUsageDetail_20' ) end [2025-03-29 22:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791970', 'tblTempVendorCDR_20' ) start [2025-03-29 22:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791970', 'tblTempVendorCDR_20' ) end [2025-03-29 22:43:19] Production.INFO: ProcessCDR(1,14791970,1,1,2) [2025-03-29 22:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791970', 'tblTempUsageDetail_20' ) start [2025-03-29 22:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791970', 'tblTempUsageDetail_20' ) end [2025-03-29 22:43:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 22:43:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 22:43:23] Production.INFO: ==22357== Releasing lock... [2025-03-29 22:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 22:43:23] Production.INFO: 44.75 MB #Memory Used# [2025-03-29 22:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 19:44:05 [end_date_ymd] => 2025-03-29 22:44:05 [RateCDR] => 1 ) [2025-03-29 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-29 19:44:05' and `end` < '2025-03-29 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-29 22:44:18] Production.INFO: count ==2201 [2025-03-29 22:44:18] Production.ERROR: pbx CDR StartTime 2025-03-29 19:44:05 - End Time 2025-03-29 22:44:05 [2025-03-29 22:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791975', 'tblTempUsageDetail_20' ) start [2025-03-29 22:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791975', 'tblTempUsageDetail_20' ) end [2025-03-29 22:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791975', 'tblTempVendorCDR_20' ) start [2025-03-29 22:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791975', 'tblTempVendorCDR_20' ) end [2025-03-29 22:44:19] Production.INFO: ProcessCDR(1,14791975,1,1,2) [2025-03-29 22:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791975', 'tblTempUsageDetail_20' ) start [2025-03-29 22:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791975', 'tblTempUsageDetail_20' ) end [2025-03-29 22:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 22:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 22:44:22] Production.INFO: ==22432== Releasing lock... [2025-03-29 22:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 22:44:22] Production.INFO: 44.5 MB #Memory Used# [2025-03-29 22:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 19:45:05 [end_date_ymd] => 2025-03-29 22:45:05 [RateCDR] => 1 ) [2025-03-29 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-29 19:45:05' and `end` < '2025-03-29 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-29 22:45:18] Production.INFO: count ==2196 [2025-03-29 22:45:19] Production.ERROR: pbx CDR StartTime 2025-03-29 19:45:05 - End Time 2025-03-29 22:45:05 [2025-03-29 22:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 22:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791980', 'tblTempUsageDetail_20' ) start [2025-03-29 22:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791980', 'tblTempUsageDetail_20' ) end [2025-03-29 22:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791980', 'tblTempVendorCDR_20' ) start [2025-03-29 22:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791980', 'tblTempVendorCDR_20' ) end [2025-03-29 22:45:19] Production.INFO: ProcessCDR(1,14791980,1,1,2) [2025-03-29 22:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791980', 'tblTempUsageDetail_20' ) start [2025-03-29 22:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791980', 'tblTempUsageDetail_20' ) end [2025-03-29 22:45:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 22:45:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 22:45:23] Production.INFO: ==22513== Releasing lock... [2025-03-29 22:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 22:45:23] Production.INFO: 44.75 MB #Memory Used# [2025-03-29 22:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 19:46:05 [end_date_ymd] => 2025-03-29 22:46:05 [RateCDR] => 1 ) [2025-03-29 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-29 19:46:05' and `end` < '2025-03-29 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-29 22:46:18] Production.INFO: count ==2210 [2025-03-29 22:46:19] Production.ERROR: pbx CDR StartTime 2025-03-29 19:46:05 - End Time 2025-03-29 22:46:05 [2025-03-29 22:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791985', 'tblTempUsageDetail_20' ) start [2025-03-29 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791985', 'tblTempUsageDetail_20' ) end [2025-03-29 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791985', 'tblTempVendorCDR_20' ) start [2025-03-29 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791985', 'tblTempVendorCDR_20' ) end [2025-03-29 22:46:19] Production.INFO: ProcessCDR(1,14791985,1,1,2) [2025-03-29 22:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791985', 'tblTempUsageDetail_20' ) start [2025-03-29 22:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791985', 'tblTempUsageDetail_20' ) end [2025-03-29 22:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 22:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 22:46:22] Production.INFO: ==22587== Releasing lock... [2025-03-29 22:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 22:46:22] Production.INFO: 44.75 MB #Memory Used# [2025-03-29 22:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 19:47:06 [end_date_ymd] => 2025-03-29 22:47:06 [RateCDR] => 1 ) [2025-03-29 22: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-29 19:47:06' and `end` < '2025-03-29 22: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-29 22:47:19] Production.INFO: count ==2198 [2025-03-29 22:47:19] Production.ERROR: pbx CDR StartTime 2025-03-29 19:47:06 - End Time 2025-03-29 22:47:06 [2025-03-29 22:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791990', 'tblTempUsageDetail_20' ) start [2025-03-29 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791990', 'tblTempUsageDetail_20' ) end [2025-03-29 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791990', 'tblTempVendorCDR_20' ) start [2025-03-29 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791990', 'tblTempVendorCDR_20' ) end [2025-03-29 22:47:19] Production.INFO: ProcessCDR(1,14791990,1,1,2) [2025-03-29 22:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791990', 'tblTempUsageDetail_20' ) start [2025-03-29 22:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791990', 'tblTempUsageDetail_20' ) end [2025-03-29 22:47:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 22:47:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 22:47:23] Production.INFO: ==22666== Releasing lock... [2025-03-29 22:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 22:47:23] Production.INFO: 44.5 MB #Memory Used# [2025-03-29 22:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 19:48:06 [end_date_ymd] => 2025-03-29 22:48:06 [RateCDR] => 1 ) [2025-03-29 22: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-29 19:48:06' and `end` < '2025-03-29 22: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-29 22:48:18] Production.INFO: count ==2229 [2025-03-29 22:48:19] Production.ERROR: pbx CDR StartTime 2025-03-29 19:48:06 - End Time 2025-03-29 22:48:06 [2025-03-29 22:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791995', 'tblTempUsageDetail_20' ) start [2025-03-29 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14791995', 'tblTempUsageDetail_20' ) end [2025-03-29 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791995', 'tblTempVendorCDR_20' ) start [2025-03-29 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14791995', 'tblTempVendorCDR_20' ) end [2025-03-29 22:48:19] Production.INFO: ProcessCDR(1,14791995,1,1,2) [2025-03-29 22:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14791995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14791995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14791995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14791995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791995', 'tblTempUsageDetail_20' ) start [2025-03-29 22:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14791995', 'tblTempUsageDetail_20' ) end [2025-03-29 22:48:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 22:48:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 22:48:23] Production.INFO: ==22744== Releasing lock... [2025-03-29 22:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 22:48:23] Production.INFO: 44.75 MB #Memory Used# [2025-03-29 22:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 19:49:05 [end_date_ymd] => 2025-03-29 22:49:05 [RateCDR] => 1 ) [2025-03-29 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-29 19:49:05' and `end` < '2025-03-29 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-29 22:49:18] Production.INFO: count ==2228 [2025-03-29 22:49:18] Production.ERROR: pbx CDR StartTime 2025-03-29 19:49:05 - End Time 2025-03-29 22:49:05 [2025-03-29 22:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792000', 'tblTempUsageDetail_20' ) start [2025-03-29 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792000', 'tblTempUsageDetail_20' ) end [2025-03-29 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792000', 'tblTempVendorCDR_20' ) start [2025-03-29 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792000', 'tblTempVendorCDR_20' ) end [2025-03-29 22:49:18] Production.INFO: ProcessCDR(1,14792000,1,1,2) [2025-03-29 22:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792000', 'tblTempUsageDetail_20' ) start [2025-03-29 22:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792000', 'tblTempUsageDetail_20' ) end [2025-03-29 22:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 22:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 22:49:22] Production.INFO: ==22825== Releasing lock... [2025-03-29 22:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 22:49:22] Production.INFO: 45 MB #Memory Used# [2025-03-29 22:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 19:50:06 [end_date_ymd] => 2025-03-29 22:50:06 [RateCDR] => 1 ) [2025-03-29 22:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 19:50:06' and `end` < '2025-03-29 22:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 22:50:19] Production.INFO: count ==2226 [2025-03-29 22:50:19] Production.ERROR: pbx CDR StartTime 2025-03-29 19:50:06 - End Time 2025-03-29 22:50:06 [2025-03-29 22:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792006', 'tblTempUsageDetail_20' ) start [2025-03-29 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792006', 'tblTempUsageDetail_20' ) end [2025-03-29 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792006', 'tblTempVendorCDR_20' ) start [2025-03-29 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792006', 'tblTempVendorCDR_20' ) end [2025-03-29 22:50:19] Production.INFO: ProcessCDR(1,14792006,1,1,2) [2025-03-29 22:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792006', 'tblTempUsageDetail_20' ) start [2025-03-29 22:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792006', 'tblTempUsageDetail_20' ) end [2025-03-29 22:50:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 22:50:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 22:50:23] Production.INFO: ==22914== Releasing lock... [2025-03-29 22:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 22:50:23] Production.INFO: 44.75 MB #Memory Used# [2025-03-29 22:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 19:51:06 [end_date_ymd] => 2025-03-29 22:51:06 [RateCDR] => 1 ) [2025-03-29 22: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-29 19:51:06' and `end` < '2025-03-29 22: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-29 22:51:18] Production.INFO: count ==2162 [2025-03-29 22:51:19] Production.ERROR: pbx CDR StartTime 2025-03-29 19:51:06 - End Time 2025-03-29 22:51:06 [2025-03-29 22:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 22:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792011', 'tblTempUsageDetail_20' ) start [2025-03-29 22:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792011', 'tblTempUsageDetail_20' ) end [2025-03-29 22:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792011', 'tblTempVendorCDR_20' ) start [2025-03-29 22:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792011', 'tblTempVendorCDR_20' ) end [2025-03-29 22:51:19] Production.INFO: ProcessCDR(1,14792011,1,1,2) [2025-03-29 22:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792011', 'tblTempUsageDetail_20' ) start [2025-03-29 22:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792011', 'tblTempUsageDetail_20' ) end [2025-03-29 22:51:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 22:51:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 22:51:23] Production.INFO: ==23036== Releasing lock... [2025-03-29 22:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 22:51:23] Production.INFO: 44.25 MB #Memory Used# [2025-03-29 22:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 19:52:05 [end_date_ymd] => 2025-03-29 22:52:05 [RateCDR] => 1 ) [2025-03-29 22:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 19:52:05' and `end` < '2025-03-29 22:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 22:52:18] Production.INFO: count ==2161 [2025-03-29 22:52:18] Production.ERROR: pbx CDR StartTime 2025-03-29 19:52:05 - End Time 2025-03-29 22:52:05 [2025-03-29 22:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792016', 'tblTempUsageDetail_20' ) start [2025-03-29 22:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792016', 'tblTempUsageDetail_20' ) end [2025-03-29 22:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792016', 'tblTempVendorCDR_20' ) start [2025-03-29 22:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792016', 'tblTempVendorCDR_20' ) end [2025-03-29 22:52:19] Production.INFO: ProcessCDR(1,14792016,1,1,2) [2025-03-29 22:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792016', 'tblTempUsageDetail_20' ) start [2025-03-29 22:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792016', 'tblTempUsageDetail_20' ) end [2025-03-29 22:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 22:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 22:52:22] Production.INFO: ==23117== Releasing lock... [2025-03-29 22:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 22:52:22] Production.INFO: 44.25 MB #Memory Used# [2025-03-29 22:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 19:53:05 [end_date_ymd] => 2025-03-29 22:53:05 [RateCDR] => 1 ) [2025-03-29 22: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-29 19:53:05' and `end` < '2025-03-29 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-29 22:53:18] Production.INFO: count ==2158 [2025-03-29 22:53:19] Production.ERROR: pbx CDR StartTime 2025-03-29 19:53:05 - End Time 2025-03-29 22:53:05 [2025-03-29 22:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 22:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792021', 'tblTempUsageDetail_20' ) start [2025-03-29 22:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792021', 'tblTempUsageDetail_20' ) end [2025-03-29 22:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792021', 'tblTempVendorCDR_20' ) start [2025-03-29 22:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792021', 'tblTempVendorCDR_20' ) end [2025-03-29 22:53:19] Production.INFO: ProcessCDR(1,14792021,1,1,2) [2025-03-29 22:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792021', 'tblTempUsageDetail_20' ) start [2025-03-29 22:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792021', 'tblTempUsageDetail_20' ) end [2025-03-29 22:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 22:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 22:53:22] Production.INFO: ==23197== Releasing lock... [2025-03-29 22:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 22:53:22] Production.INFO: 44.25 MB #Memory Used# [2025-03-29 22:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 19:54:05 [end_date_ymd] => 2025-03-29 22:54:05 [RateCDR] => 1 ) [2025-03-29 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-29 19:54:05' and `end` < '2025-03-29 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-29 22:54:18] Production.INFO: count ==2155 [2025-03-29 22:54:19] Production.ERROR: pbx CDR StartTime 2025-03-29 19:54:05 - End Time 2025-03-29 22:54:05 [2025-03-29 22:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 22:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792026', 'tblTempUsageDetail_20' ) start [2025-03-29 22:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792026', 'tblTempUsageDetail_20' ) end [2025-03-29 22:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792026', 'tblTempVendorCDR_20' ) start [2025-03-29 22:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792026', 'tblTempVendorCDR_20' ) end [2025-03-29 22:54:19] Production.INFO: ProcessCDR(1,14792026,1,1,2) [2025-03-29 22:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792026', 'tblTempUsageDetail_20' ) start [2025-03-29 22:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792026', 'tblTempUsageDetail_20' ) end [2025-03-29 22:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 22:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 22:54:22] Production.INFO: ==23276== Releasing lock... [2025-03-29 22:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 22:54:22] Production.INFO: 44.25 MB #Memory Used# [2025-03-29 22:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 19:55:06 [end_date_ymd] => 2025-03-29 22:55:06 [RateCDR] => 1 ) [2025-03-29 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-29 19:55:06' and `end` < '2025-03-29 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-29 22:55:19] Production.INFO: count ==2221 [2025-03-29 22:55:19] Production.ERROR: pbx CDR StartTime 2025-03-29 19:55:06 - End Time 2025-03-29 22:55:06 [2025-03-29 22:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 22:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792031', 'tblTempUsageDetail_20' ) start [2025-03-29 22:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792031', 'tblTempUsageDetail_20' ) end [2025-03-29 22:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792031', 'tblTempVendorCDR_20' ) start [2025-03-29 22:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792031', 'tblTempVendorCDR_20' ) end [2025-03-29 22:55:20] Production.INFO: ProcessCDR(1,14792031,1,1,2) [2025-03-29 22:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792031', 'tblTempUsageDetail_20' ) start [2025-03-29 22:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792031', 'tblTempUsageDetail_20' ) end [2025-03-29 22:55:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 22:55:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 22:55:23] Production.INFO: ==23359== Releasing lock... [2025-03-29 22:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 22:55:23] Production.INFO: 44.75 MB #Memory Used# [2025-03-29 22:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 19:56:05 [end_date_ymd] => 2025-03-29 22:56:05 [RateCDR] => 1 ) [2025-03-29 22:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 19:56:05' and `end` < '2025-03-29 22:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 22:56:18] Production.INFO: count ==2218 [2025-03-29 22:56:19] Production.ERROR: pbx CDR StartTime 2025-03-29 19:56:05 - End Time 2025-03-29 22:56:05 [2025-03-29 22:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792036', 'tblTempUsageDetail_20' ) start [2025-03-29 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792036', 'tblTempUsageDetail_20' ) end [2025-03-29 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792036', 'tblTempVendorCDR_20' ) start [2025-03-29 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792036', 'tblTempVendorCDR_20' ) end [2025-03-29 22:56:19] Production.INFO: ProcessCDR(1,14792036,1,1,2) [2025-03-29 22:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792036', 'tblTempUsageDetail_20' ) start [2025-03-29 22:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792036', 'tblTempUsageDetail_20' ) end [2025-03-29 22:56:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 22:56:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 22:56:23] Production.INFO: ==23448== Releasing lock... [2025-03-29 22:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 22:56:23] Production.INFO: 45 MB #Memory Used# [2025-03-29 22:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 19:57:06 [end_date_ymd] => 2025-03-29 22:57:06 [RateCDR] => 1 ) [2025-03-29 22:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 19:57:06' and `end` < '2025-03-29 22:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 22:57:19] Production.INFO: count ==2209 [2025-03-29 22:57:19] Production.ERROR: pbx CDR StartTime 2025-03-29 19:57:06 - End Time 2025-03-29 22:57:06 [2025-03-29 22:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792041', 'tblTempUsageDetail_20' ) start [2025-03-29 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792041', 'tblTempUsageDetail_20' ) end [2025-03-29 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792041', 'tblTempVendorCDR_20' ) start [2025-03-29 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792041', 'tblTempVendorCDR_20' ) end [2025-03-29 22:57:19] Production.INFO: ProcessCDR(1,14792041,1,1,2) [2025-03-29 22:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792041', 'tblTempUsageDetail_20' ) start [2025-03-29 22:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792041', 'tblTempUsageDetail_20' ) end [2025-03-29 22:57:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 22:57:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 22:57:23] Production.INFO: ==23536== Releasing lock... [2025-03-29 22:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 22:57:23] Production.INFO: 44.5 MB #Memory Used# [2025-03-29 22:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 19:58:05 [end_date_ymd] => 2025-03-29 22:58:05 [RateCDR] => 1 ) [2025-03-29 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-29 19:58:05' and `end` < '2025-03-29 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-29 22:58:18] Production.INFO: count ==2282 [2025-03-29 22:58:19] Production.ERROR: pbx CDR StartTime 2025-03-29 19:58:05 - End Time 2025-03-29 22:58:05 [2025-03-29 22:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 22:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792046', 'tblTempUsageDetail_20' ) start [2025-03-29 22:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792046', 'tblTempUsageDetail_20' ) end [2025-03-29 22:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792046', 'tblTempVendorCDR_20' ) start [2025-03-29 22:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792046', 'tblTempVendorCDR_20' ) end [2025-03-29 22:58:19] Production.INFO: ProcessCDR(1,14792046,1,1,2) [2025-03-29 22:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792046', 'tblTempUsageDetail_20' ) start [2025-03-29 22:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792046', 'tblTempUsageDetail_20' ) end [2025-03-29 22:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 22:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 22:58:22] Production.INFO: ==23617== Releasing lock... [2025-03-29 22:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 22:58:22] Production.INFO: 45.25 MB #Memory Used# [2025-03-29 22:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 19:59:05 [end_date_ymd] => 2025-03-29 22:59:05 [RateCDR] => 1 ) [2025-03-29 22:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 19:59:05' and `end` < '2025-03-29 22:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 22:59:18] Production.INFO: count ==2271 [2025-03-29 22:59:19] Production.ERROR: pbx CDR StartTime 2025-03-29 19:59:05 - End Time 2025-03-29 22:59:05 [2025-03-29 22:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792051', 'tblTempUsageDetail_20' ) start [2025-03-29 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792051', 'tblTempUsageDetail_20' ) end [2025-03-29 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792051', 'tblTempVendorCDR_20' ) start [2025-03-29 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792051', 'tblTempVendorCDR_20' ) end [2025-03-29 22:59:19] Production.INFO: ProcessCDR(1,14792051,1,1,2) [2025-03-29 22:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 22:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 22:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792051', 'tblTempUsageDetail_20' ) start [2025-03-29 22:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792051', 'tblTempUsageDetail_20' ) end [2025-03-29 22:59:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 22:59:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 22:59:22] Production.INFO: ==23700== Releasing lock... [2025-03-29 22:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 22:59:22] Production.INFO: 45 MB #Memory Used# [2025-03-29 23:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 20:00:06 [end_date_ymd] => 2025-03-29 23:00:06 [RateCDR] => 1 ) [2025-03-29 23:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 20:00:06' and `end` < '2025-03-29 23:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 23:00:18] Production.INFO: count ==2279 [2025-03-29 23:00:19] Production.ERROR: pbx CDR StartTime 2025-03-29 20:00:06 - End Time 2025-03-29 23:00:06 [2025-03-29 23:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792057', 'tblTempUsageDetail_20' ) start [2025-03-29 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792057', 'tblTempUsageDetail_20' ) end [2025-03-29 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792057', 'tblTempVendorCDR_20' ) start [2025-03-29 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792057', 'tblTempVendorCDR_20' ) end [2025-03-29 23:00:19] Production.INFO: ProcessCDR(1,14792057,1,1,2) [2025-03-29 23:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792057', 'tblTempUsageDetail_20' ) start [2025-03-29 23:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792057', 'tblTempUsageDetail_20' ) end [2025-03-29 23:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 23:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 23:00:23] Production.INFO: ==23780== Releasing lock... [2025-03-29 23:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 23:00:23] Production.INFO: 45.25 MB #Memory Used# [2025-03-29 23:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 20:01:05 [end_date_ymd] => 2025-03-29 23:01:05 [RateCDR] => 1 ) [2025-03-29 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-29 20:01:05' and `end` < '2025-03-29 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-29 23:01:18] Production.INFO: count ==2226 [2025-03-29 23:01:19] Production.ERROR: pbx CDR StartTime 2025-03-29 20:01:05 - End Time 2025-03-29 23:01:05 [2025-03-29 23:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792062', 'tblTempUsageDetail_20' ) start [2025-03-29 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792062', 'tblTempUsageDetail_20' ) end [2025-03-29 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792062', 'tblTempVendorCDR_20' ) start [2025-03-29 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792062', 'tblTempVendorCDR_20' ) end [2025-03-29 23:01:19] Production.INFO: ProcessCDR(1,14792062,1,1,2) [2025-03-29 23:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792062', 'tblTempUsageDetail_20' ) start [2025-03-29 23:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792062', 'tblTempUsageDetail_20' ) end [2025-03-29 23:01:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 23:01:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 23:01:22] Production.INFO: ==23917== Releasing lock... [2025-03-29 23:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 23:01:22] Production.INFO: 44.75 MB #Memory Used# [2025-03-29 23:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 20:02:05 [end_date_ymd] => 2025-03-29 23:02:05 [RateCDR] => 1 ) [2025-03-29 23:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 20:02:05' and `end` < '2025-03-29 23:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 23:02:18] Production.INFO: count ==2220 [2025-03-29 23:02:19] Production.ERROR: pbx CDR StartTime 2025-03-29 20:02:05 - End Time 2025-03-29 23:02:05 [2025-03-29 23:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792067', 'tblTempUsageDetail_20' ) start [2025-03-29 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792067', 'tblTempUsageDetail_20' ) end [2025-03-29 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792067', 'tblTempVendorCDR_20' ) start [2025-03-29 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792067', 'tblTempVendorCDR_20' ) end [2025-03-29 23:02:19] Production.INFO: ProcessCDR(1,14792067,1,1,2) [2025-03-29 23:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792067', 'tblTempUsageDetail_20' ) start [2025-03-29 23:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792067', 'tblTempUsageDetail_20' ) end [2025-03-29 23:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 23:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 23:02:22] Production.INFO: ==24036== Releasing lock... [2025-03-29 23:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 23:02:22] Production.INFO: 44.75 MB #Memory Used# [2025-03-29 23:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 20:03:06 [end_date_ymd] => 2025-03-29 23:03:06 [RateCDR] => 1 ) [2025-03-29 23: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-29 20:03:06' and `end` < '2025-03-29 23: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-29 23:03:18] Production.INFO: count ==2217 [2025-03-29 23:03:19] Production.ERROR: pbx CDR StartTime 2025-03-29 20:03:06 - End Time 2025-03-29 23:03:06 [2025-03-29 23:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 23:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792072', 'tblTempUsageDetail_20' ) start [2025-03-29 23:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792072', 'tblTempUsageDetail_20' ) end [2025-03-29 23:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792072', 'tblTempVendorCDR_20' ) start [2025-03-29 23:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792072', 'tblTempVendorCDR_20' ) end [2025-03-29 23:03:19] Production.INFO: ProcessCDR(1,14792072,1,1,2) [2025-03-29 23:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792072', 'tblTempUsageDetail_20' ) start [2025-03-29 23:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792072', 'tblTempUsageDetail_20' ) end [2025-03-29 23:03:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 23:03:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 23:03:23] Production.INFO: ==24114== Releasing lock... [2025-03-29 23:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 23:03:23] Production.INFO: 45 MB #Memory Used# [2025-03-29 23:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 20:04:05 [end_date_ymd] => 2025-03-29 23:04:05 [RateCDR] => 1 ) [2025-03-29 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-29 20:04:05' and `end` < '2025-03-29 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-29 23:04:17] Production.INFO: count ==2229 [2025-03-29 23:04:18] Production.ERROR: pbx CDR StartTime 2025-03-29 20:04:05 - End Time 2025-03-29 23:04:05 [2025-03-29 23:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792077', 'tblTempUsageDetail_20' ) start [2025-03-29 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792077', 'tblTempUsageDetail_20' ) end [2025-03-29 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792077', 'tblTempVendorCDR_20' ) start [2025-03-29 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792077', 'tblTempVendorCDR_20' ) end [2025-03-29 23:04:18] Production.INFO: ProcessCDR(1,14792077,1,1,2) [2025-03-29 23:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792077', 'tblTempUsageDetail_20' ) start [2025-03-29 23:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792077', 'tblTempUsageDetail_20' ) end [2025-03-29 23:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 23:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 23:04:22] Production.INFO: ==24197== Releasing lock... [2025-03-29 23:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 23:04:22] Production.INFO: 44.75 MB #Memory Used# [2025-03-29 23:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 20:05:05 [end_date_ymd] => 2025-03-29 23:05:05 [RateCDR] => 1 ) [2025-03-29 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-29 20:05:05' and `end` < '2025-03-29 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-29 23:05:18] Production.INFO: count ==2229 [2025-03-29 23:05:19] Production.ERROR: pbx CDR StartTime 2025-03-29 20:05:05 - End Time 2025-03-29 23:05:05 [2025-03-29 23:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 23:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792082', 'tblTempUsageDetail_20' ) start [2025-03-29 23:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792082', 'tblTempUsageDetail_20' ) end [2025-03-29 23:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792082', 'tblTempVendorCDR_20' ) start [2025-03-29 23:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792082', 'tblTempVendorCDR_20' ) end [2025-03-29 23:05:19] Production.INFO: ProcessCDR(1,14792082,1,1,2) [2025-03-29 23:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792082', 'tblTempUsageDetail_20' ) start [2025-03-29 23:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792082', 'tblTempUsageDetail_20' ) end [2025-03-29 23:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 23:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 23:05:22] Production.INFO: ==24355== Releasing lock... [2025-03-29 23:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 23:05:22] Production.INFO: 44.75 MB #Memory Used# [2025-03-29 23:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 20:06:05 [end_date_ymd] => 2025-03-29 23:06:05 [RateCDR] => 1 ) [2025-03-29 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-29 20:06:05' and `end` < '2025-03-29 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-29 23:06:18] Production.INFO: count ==2229 [2025-03-29 23:06:18] Production.ERROR: pbx CDR StartTime 2025-03-29 20:06:05 - End Time 2025-03-29 23:06:05 [2025-03-29 23:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792087', 'tblTempUsageDetail_20' ) start [2025-03-29 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792087', 'tblTempUsageDetail_20' ) end [2025-03-29 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792087', 'tblTempVendorCDR_20' ) start [2025-03-29 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792087', 'tblTempVendorCDR_20' ) end [2025-03-29 23:06:18] Production.INFO: ProcessCDR(1,14792087,1,1,2) [2025-03-29 23:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792087', 'tblTempUsageDetail_20' ) start [2025-03-29 23:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792087', 'tblTempUsageDetail_20' ) end [2025-03-29 23:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 23:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 23:06:21] Production.INFO: ==24473== Releasing lock... [2025-03-29 23:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 23:06:21] Production.INFO: 44.75 MB #Memory Used# [2025-03-29 23:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 20:07:05 [end_date_ymd] => 2025-03-29 23:07:05 [RateCDR] => 1 ) [2025-03-29 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-29 20:07:05' and `end` < '2025-03-29 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-29 23:07:18] Production.INFO: count ==2231 [2025-03-29 23:07:18] Production.ERROR: pbx CDR StartTime 2025-03-29 20:07:05 - End Time 2025-03-29 23:07:05 [2025-03-29 23:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792092', 'tblTempUsageDetail_20' ) start [2025-03-29 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792092', 'tblTempUsageDetail_20' ) end [2025-03-29 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792092', 'tblTempVendorCDR_20' ) start [2025-03-29 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792092', 'tblTempVendorCDR_20' ) end [2025-03-29 23:07:19] Production.INFO: ProcessCDR(1,14792092,1,1,2) [2025-03-29 23:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792092', 'tblTempUsageDetail_20' ) start [2025-03-29 23:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792092', 'tblTempUsageDetail_20' ) end [2025-03-29 23:07:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 23:07:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 23:07:22] Production.INFO: ==24558== Releasing lock... [2025-03-29 23:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 23:07:22] Production.INFO: 44.75 MB #Memory Used# [2025-03-29 23:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 20:08:06 [end_date_ymd] => 2025-03-29 23:08:06 [RateCDR] => 1 ) [2025-03-29 23: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-29 20:08:06' and `end` < '2025-03-29 23: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-29 23:08:19] Production.INFO: count ==2221 [2025-03-29 23:08:19] Production.ERROR: pbx CDR StartTime 2025-03-29 20:08:06 - End Time 2025-03-29 23:08:06 [2025-03-29 23:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 23:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792097', 'tblTempUsageDetail_20' ) start [2025-03-29 23:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792097', 'tblTempUsageDetail_20' ) end [2025-03-29 23:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792097', 'tblTempVendorCDR_20' ) start [2025-03-29 23:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792097', 'tblTempVendorCDR_20' ) end [2025-03-29 23:08:19] Production.INFO: ProcessCDR(1,14792097,1,1,2) [2025-03-29 23:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792097', 'tblTempUsageDetail_20' ) start [2025-03-29 23:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792097', 'tblTempUsageDetail_20' ) end [2025-03-29 23:08:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 23:08:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 23:08:24] Production.INFO: ==24721== Releasing lock... [2025-03-29 23:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 23:08:24] Production.INFO: 44.75 MB #Memory Used# [2025-03-29 23:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 20:09:05 [end_date_ymd] => 2025-03-29 23:09:05 [RateCDR] => 1 ) [2025-03-29 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-29 20:09:05' and `end` < '2025-03-29 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-29 23:09:18] Production.INFO: count ==2232 [2025-03-29 23:09:19] Production.ERROR: pbx CDR StartTime 2025-03-29 20:09:05 - End Time 2025-03-29 23:09:05 [2025-03-29 23:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 23:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792102', 'tblTempUsageDetail_20' ) start [2025-03-29 23:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792102', 'tblTempUsageDetail_20' ) end [2025-03-29 23:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792102', 'tblTempVendorCDR_20' ) start [2025-03-29 23:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792102', 'tblTempVendorCDR_20' ) end [2025-03-29 23:09:19] Production.INFO: ProcessCDR(1,14792102,1,1,2) [2025-03-29 23:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792102', 'tblTempUsageDetail_20' ) start [2025-03-29 23:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792102', 'tblTempUsageDetail_20' ) end [2025-03-29 23:09:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 23:09:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 23:09:23] Production.INFO: ==24803== Releasing lock... [2025-03-29 23:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 23:09:23] Production.INFO: 44.75 MB #Memory Used# [2025-03-29 23:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 20:10:06 [end_date_ymd] => 2025-03-29 23:10:06 [RateCDR] => 1 ) [2025-03-29 23:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 20:10:06' and `end` < '2025-03-29 23:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 23:10:19] Production.INFO: count ==2224 [2025-03-29 23:10:20] Production.ERROR: pbx CDR StartTime 2025-03-29 20:10:06 - End Time 2025-03-29 23:10:06 [2025-03-29 23:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 23:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792108', 'tblTempUsageDetail_20' ) start [2025-03-29 23:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792108', 'tblTempUsageDetail_20' ) end [2025-03-29 23:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792108', 'tblTempVendorCDR_20' ) start [2025-03-29 23:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792108', 'tblTempVendorCDR_20' ) end [2025-03-29 23:10:20] Production.INFO: ProcessCDR(1,14792108,1,1,2) [2025-03-29 23:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792108', 'tblTempUsageDetail_20' ) start [2025-03-29 23:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792108', 'tblTempUsageDetail_20' ) end [2025-03-29 23:10:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 23:10:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 23:10:23] Production.INFO: ==24887== Releasing lock... [2025-03-29 23:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 23:10:23] Production.INFO: 44.75 MB #Memory Used# [2025-03-29 23:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 20:11:05 [end_date_ymd] => 2025-03-29 23:11:05 [RateCDR] => 1 ) [2025-03-29 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-29 20:11:05' and `end` < '2025-03-29 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-29 23:11:18] Production.INFO: count ==2198 [2025-03-29 23:11:19] Production.ERROR: pbx CDR StartTime 2025-03-29 20:11:05 - End Time 2025-03-29 23:11:05 [2025-03-29 23:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 23:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792113', 'tblTempUsageDetail_20' ) start [2025-03-29 23:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792113', 'tblTempUsageDetail_20' ) end [2025-03-29 23:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792113', 'tblTempVendorCDR_20' ) start [2025-03-29 23:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792113', 'tblTempVendorCDR_20' ) end [2025-03-29 23:11:19] Production.INFO: ProcessCDR(1,14792113,1,1,2) [2025-03-29 23:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792113', 'tblTempUsageDetail_20' ) start [2025-03-29 23:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792113', 'tblTempUsageDetail_20' ) end [2025-03-29 23:11:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 23:11:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 23:11:24] Production.INFO: ==24965== Releasing lock... [2025-03-29 23:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 23:11:24] Production.INFO: 44.5 MB #Memory Used# [2025-03-29 23:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 20:12:05 [end_date_ymd] => 2025-03-29 23:12:05 [RateCDR] => 1 ) [2025-03-29 23:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 20:12:05' and `end` < '2025-03-29 23:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 23:12:18] Production.INFO: count ==2200 [2025-03-29 23:12:19] Production.ERROR: pbx CDR StartTime 2025-03-29 20:12:05 - End Time 2025-03-29 23:12:05 [2025-03-29 23:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792118', 'tblTempUsageDetail_20' ) start [2025-03-29 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792118', 'tblTempUsageDetail_20' ) end [2025-03-29 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792118', 'tblTempVendorCDR_20' ) start [2025-03-29 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792118', 'tblTempVendorCDR_20' ) end [2025-03-29 23:12:19] Production.INFO: ProcessCDR(1,14792118,1,1,2) [2025-03-29 23:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792118', 'tblTempUsageDetail_20' ) start [2025-03-29 23:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792118', 'tblTempUsageDetail_20' ) end [2025-03-29 23:12:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 23:12:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 23:12:23] Production.INFO: ==25136== Releasing lock... [2025-03-29 23:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 23:12:23] Production.INFO: 44.5 MB #Memory Used# [2025-03-29 23:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 20:13:05 [end_date_ymd] => 2025-03-29 23:13:05 [RateCDR] => 1 ) [2025-03-29 23:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 20:13:05' and `end` < '2025-03-29 23:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 23:13:18] Production.INFO: count ==2243 [2025-03-29 23:13:18] Production.ERROR: pbx CDR StartTime 2025-03-29 20:13:05 - End Time 2025-03-29 23:13:05 [2025-03-29 23:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792123', 'tblTempUsageDetail_20' ) start [2025-03-29 23:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792123', 'tblTempUsageDetail_20' ) end [2025-03-29 23:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792123', 'tblTempVendorCDR_20' ) start [2025-03-29 23:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792123', 'tblTempVendorCDR_20' ) end [2025-03-29 23:13:19] Production.INFO: ProcessCDR(1,14792123,1,1,2) [2025-03-29 23:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792123', 'tblTempUsageDetail_20' ) start [2025-03-29 23:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792123', 'tblTempUsageDetail_20' ) end [2025-03-29 23:13:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 23:13:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 23:13:22] Production.INFO: ==25214== Releasing lock... [2025-03-29 23:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 23:13:22] Production.INFO: 44.75 MB #Memory Used# [2025-03-29 23:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 20:14:06 [end_date_ymd] => 2025-03-29 23:14:06 [RateCDR] => 1 ) [2025-03-29 23:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 20:14:06' and `end` < '2025-03-29 23:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 23:14:18] Production.INFO: count ==2257 [2025-03-29 23:14:19] Production.ERROR: pbx CDR StartTime 2025-03-29 20:14:06 - End Time 2025-03-29 23:14:06 [2025-03-29 23:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792128', 'tblTempUsageDetail_20' ) start [2025-03-29 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792128', 'tblTempUsageDetail_20' ) end [2025-03-29 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792128', 'tblTempVendorCDR_20' ) start [2025-03-29 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792128', 'tblTempVendorCDR_20' ) end [2025-03-29 23:14:19] Production.INFO: ProcessCDR(1,14792128,1,1,2) [2025-03-29 23:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792128', 'tblTempUsageDetail_20' ) start [2025-03-29 23:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792128', 'tblTempUsageDetail_20' ) end [2025-03-29 23:14:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 23:14:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 23:14:24] Production.INFO: ==25296== Releasing lock... [2025-03-29 23:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 23:14:24] Production.INFO: 45 MB #Memory Used# [2025-03-29 23:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 20:15:05 [end_date_ymd] => 2025-03-29 23:15:05 [RateCDR] => 1 ) [2025-03-29 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-29 20:15:05' and `end` < '2025-03-29 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-29 23:15:18] Production.INFO: count ==2257 [2025-03-29 23:15:19] Production.ERROR: pbx CDR StartTime 2025-03-29 20:15:05 - End Time 2025-03-29 23:15:05 [2025-03-29 23:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 23:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792133', 'tblTempUsageDetail_20' ) start [2025-03-29 23:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792133', 'tblTempUsageDetail_20' ) end [2025-03-29 23:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792133', 'tblTempVendorCDR_20' ) start [2025-03-29 23:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792133', 'tblTempVendorCDR_20' ) end [2025-03-29 23:15:19] Production.INFO: ProcessCDR(1,14792133,1,1,2) [2025-03-29 23:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792133', 'tblTempUsageDetail_20' ) start [2025-03-29 23:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792133', 'tblTempUsageDetail_20' ) end [2025-03-29 23:15:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 23:15:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 23:15:22] Production.INFO: ==25452== Releasing lock... [2025-03-29 23:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 23:15:22] Production.INFO: 45 MB #Memory Used# [2025-03-29 23:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 20:16:05 [end_date_ymd] => 2025-03-29 23:16:05 [RateCDR] => 1 ) [2025-03-29 23:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 20:16:05' and `end` < '2025-03-29 23:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 23:16:18] Production.INFO: count ==2255 [2025-03-29 23:16:19] Production.ERROR: pbx CDR StartTime 2025-03-29 20:16:05 - End Time 2025-03-29 23:16:05 [2025-03-29 23:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792138', 'tblTempUsageDetail_20' ) start [2025-03-29 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792138', 'tblTempUsageDetail_20' ) end [2025-03-29 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792138', 'tblTempVendorCDR_20' ) start [2025-03-29 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792138', 'tblTempVendorCDR_20' ) end [2025-03-29 23:16:19] Production.INFO: ProcessCDR(1,14792138,1,1,2) [2025-03-29 23:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792138', 'tblTempUsageDetail_20' ) start [2025-03-29 23:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792138', 'tblTempUsageDetail_20' ) end [2025-03-29 23:16:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 23:16:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 23:16:22] Production.INFO: ==25534== Releasing lock... [2025-03-29 23:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 23:16:22] Production.INFO: 45 MB #Memory Used# [2025-03-29 23:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 20:17:05 [end_date_ymd] => 2025-03-29 23:17:05 [RateCDR] => 1 ) [2025-03-29 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-29 20:17:05' and `end` < '2025-03-29 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-29 23:17:18] Production.INFO: count ==2251 [2025-03-29 23:17:18] Production.ERROR: pbx CDR StartTime 2025-03-29 20:17:05 - End Time 2025-03-29 23:17:05 [2025-03-29 23:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792143', 'tblTempUsageDetail_20' ) start [2025-03-29 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792143', 'tblTempUsageDetail_20' ) end [2025-03-29 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792143', 'tblTempVendorCDR_20' ) start [2025-03-29 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792143', 'tblTempVendorCDR_20' ) end [2025-03-29 23:17:19] Production.INFO: ProcessCDR(1,14792143,1,1,2) [2025-03-29 23:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792143', 'tblTempUsageDetail_20' ) start [2025-03-29 23:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792143', 'tblTempUsageDetail_20' ) end [2025-03-29 23:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 23:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 23:17:22] Production.INFO: ==25620== Releasing lock... [2025-03-29 23:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 23:17:22] Production.INFO: 45.25 MB #Memory Used# [2025-03-29 23:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 20:18:05 [end_date_ymd] => 2025-03-29 23:18:05 [RateCDR] => 1 ) [2025-03-29 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-29 20:18:05' and `end` < '2025-03-29 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-29 23:18:18] Production.INFO: count ==2257 [2025-03-29 23:18:19] Production.ERROR: pbx CDR StartTime 2025-03-29 20:18:05 - End Time 2025-03-29 23:18:05 [2025-03-29 23:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792148', 'tblTempUsageDetail_20' ) start [2025-03-29 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792148', 'tblTempUsageDetail_20' ) end [2025-03-29 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792148', 'tblTempVendorCDR_20' ) start [2025-03-29 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792148', 'tblTempVendorCDR_20' ) end [2025-03-29 23:18:19] Production.INFO: ProcessCDR(1,14792148,1,1,2) [2025-03-29 23:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792148', 'tblTempUsageDetail_20' ) start [2025-03-29 23:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792148', 'tblTempUsageDetail_20' ) end [2025-03-29 23:18:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 23:18:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 23:18:22] Production.INFO: ==25692== Releasing lock... [2025-03-29 23:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 23:18:22] Production.INFO: 45 MB #Memory Used# [2025-03-29 23:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 20:19:05 [end_date_ymd] => 2025-03-29 23:19:05 [RateCDR] => 1 ) [2025-03-29 23:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 20:19:05' and `end` < '2025-03-29 23:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 23:19:18] Production.INFO: count ==2242 [2025-03-29 23:19:18] Production.ERROR: pbx CDR StartTime 2025-03-29 20:19:05 - End Time 2025-03-29 23:19:05 [2025-03-29 23:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792153', 'tblTempUsageDetail_20' ) start [2025-03-29 23:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792153', 'tblTempUsageDetail_20' ) end [2025-03-29 23:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792153', 'tblTempVendorCDR_20' ) start [2025-03-29 23:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792153', 'tblTempVendorCDR_20' ) end [2025-03-29 23:19:19] Production.INFO: ProcessCDR(1,14792153,1,1,2) [2025-03-29 23:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792153', 'tblTempUsageDetail_20' ) start [2025-03-29 23:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792153', 'tblTempUsageDetail_20' ) end [2025-03-29 23:19:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 23:19:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 23:19:24] Production.INFO: ==25768== Releasing lock... [2025-03-29 23:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 23:19:24] Production.INFO: 44.75 MB #Memory Used# [2025-03-29 23:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 20:20:06 [end_date_ymd] => 2025-03-29 23:20:06 [RateCDR] => 1 ) [2025-03-29 23:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 20:20:06' and `end` < '2025-03-29 23:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 23:20:19] Production.INFO: count ==2227 [2025-03-29 23:20:20] Production.ERROR: pbx CDR StartTime 2025-03-29 20:20:06 - End Time 2025-03-29 23:20:06 [2025-03-29 23:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 23:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792159', 'tblTempUsageDetail_20' ) start [2025-03-29 23:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792159', 'tblTempUsageDetail_20' ) end [2025-03-29 23:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792159', 'tblTempVendorCDR_20' ) start [2025-03-29 23:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792159', 'tblTempVendorCDR_20' ) end [2025-03-29 23:20:20] Production.INFO: ProcessCDR(1,14792159,1,1,2) [2025-03-29 23:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792159', 'tblTempUsageDetail_20' ) start [2025-03-29 23:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792159', 'tblTempUsageDetail_20' ) end [2025-03-29 23:20:25] Production.ERROR: pbx prc_insertCDR start [2025-03-29 23:20:25] Production.ERROR: pbx prc_insertCDR end [2025-03-29 23:20:25] Production.INFO: ==25844== Releasing lock... [2025-03-29 23:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 23:20:25] Production.INFO: 44.75 MB #Memory Used# [2025-03-29 23:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 20:21:05 [end_date_ymd] => 2025-03-29 23:21:05 [RateCDR] => 1 ) [2025-03-29 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-29 20:21:05' and `end` < '2025-03-29 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-29 23:21:18] Production.INFO: count ==2229 [2025-03-29 23:21:18] Production.ERROR: pbx CDR StartTime 2025-03-29 20:21:05 - End Time 2025-03-29 23:21:05 [2025-03-29 23:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792164', 'tblTempUsageDetail_20' ) start [2025-03-29 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792164', 'tblTempUsageDetail_20' ) end [2025-03-29 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792164', 'tblTempVendorCDR_20' ) start [2025-03-29 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792164', 'tblTempVendorCDR_20' ) end [2025-03-29 23:21:18] Production.INFO: ProcessCDR(1,14792164,1,1,2) [2025-03-29 23:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792164', 'tblTempUsageDetail_20' ) start [2025-03-29 23:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792164', 'tblTempUsageDetail_20' ) end [2025-03-29 23:21:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 23:21:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 23:21:22] Production.INFO: ==25957== Releasing lock... [2025-03-29 23:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 23:21:22] Production.INFO: 44.75 MB #Memory Used# [2025-03-29 23:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 20:22:05 [end_date_ymd] => 2025-03-29 23:22:05 [RateCDR] => 1 ) [2025-03-29 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-29 20:22:05' and `end` < '2025-03-29 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-29 23:22:18] Production.INFO: count ==2228 [2025-03-29 23:22:19] Production.ERROR: pbx CDR StartTime 2025-03-29 20:22:05 - End Time 2025-03-29 23:22:05 [2025-03-29 23:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 23:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792169', 'tblTempUsageDetail_20' ) start [2025-03-29 23:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792169', 'tblTempUsageDetail_20' ) end [2025-03-29 23:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792169', 'tblTempVendorCDR_20' ) start [2025-03-29 23:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792169', 'tblTempVendorCDR_20' ) end [2025-03-29 23:22:19] Production.INFO: ProcessCDR(1,14792169,1,1,2) [2025-03-29 23:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792169', 'tblTempUsageDetail_20' ) start [2025-03-29 23:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792169', 'tblTempUsageDetail_20' ) end [2025-03-29 23:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 23:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 23:22:22] Production.INFO: ==26039== Releasing lock... [2025-03-29 23:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 23:22:22] Production.INFO: 44.75 MB #Memory Used# [2025-03-29 23:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 20:23:05 [end_date_ymd] => 2025-03-29 23:23:05 [RateCDR] => 1 ) [2025-03-29 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-29 20:23:05' and `end` < '2025-03-29 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-29 23:23:18] Production.INFO: count ==2228 [2025-03-29 23:23:18] Production.ERROR: pbx CDR StartTime 2025-03-29 20:23:05 - End Time 2025-03-29 23:23:05 [2025-03-29 23:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792174', 'tblTempUsageDetail_20' ) start [2025-03-29 23:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792174', 'tblTempUsageDetail_20' ) end [2025-03-29 23:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792174', 'tblTempVendorCDR_20' ) start [2025-03-29 23:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792174', 'tblTempVendorCDR_20' ) end [2025-03-29 23:23:19] Production.INFO: ProcessCDR(1,14792174,1,1,2) [2025-03-29 23:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792174', 'tblTempUsageDetail_20' ) start [2025-03-29 23:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792174', 'tblTempUsageDetail_20' ) end [2025-03-29 23:23:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 23:23:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 23:23:22] Production.INFO: ==26114== Releasing lock... [2025-03-29 23:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 23:23:22] Production.INFO: 44.75 MB #Memory Used# [2025-03-29 23:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 20:24:05 [end_date_ymd] => 2025-03-29 23:24:05 [RateCDR] => 1 ) [2025-03-29 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-29 20:24:05' and `end` < '2025-03-29 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-29 23:24:18] Production.INFO: count ==2228 [2025-03-29 23:24:18] Production.ERROR: pbx CDR StartTime 2025-03-29 20:24:05 - End Time 2025-03-29 23:24:05 [2025-03-29 23:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792179', 'tblTempUsageDetail_20' ) start [2025-03-29 23:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792179', 'tblTempUsageDetail_20' ) end [2025-03-29 23:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792179', 'tblTempVendorCDR_20' ) start [2025-03-29 23:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792179', 'tblTempVendorCDR_20' ) end [2025-03-29 23:24:19] Production.INFO: ProcessCDR(1,14792179,1,1,2) [2025-03-29 23:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792179', 'tblTempUsageDetail_20' ) start [2025-03-29 23:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792179', 'tblTempUsageDetail_20' ) end [2025-03-29 23:24:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 23:24:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 23:24:22] Production.INFO: ==26191== Releasing lock... [2025-03-29 23:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 23:24:22] Production.INFO: 44.75 MB #Memory Used# [2025-03-29 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 20:25:05 [end_date_ymd] => 2025-03-29 23:25:05 [RateCDR] => 1 ) [2025-03-29 23:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 20:25:05' and `end` < '2025-03-29 23:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 23:25:17] Production.INFO: count ==2210 [2025-03-29 23:25:18] Production.ERROR: pbx CDR StartTime 2025-03-29 20:25:05 - End Time 2025-03-29 23:25:05 [2025-03-29 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792184', 'tblTempUsageDetail_20' ) start [2025-03-29 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792184', 'tblTempUsageDetail_20' ) end [2025-03-29 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792184', 'tblTempVendorCDR_20' ) start [2025-03-29 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792184', 'tblTempVendorCDR_20' ) end [2025-03-29 23:25:18] Production.INFO: ProcessCDR(1,14792184,1,1,2) [2025-03-29 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792184', 'tblTempUsageDetail_20' ) start [2025-03-29 23:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792184', 'tblTempUsageDetail_20' ) end [2025-03-29 23:25:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 23:25:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 23:25:22] Production.INFO: ==26268== Releasing lock... [2025-03-29 23:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 23:25:22] Production.INFO: 44.5 MB #Memory Used# [2025-03-29 23:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 20:26:05 [end_date_ymd] => 2025-03-29 23:26:05 [RateCDR] => 1 ) [2025-03-29 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-29 20:26:05' and `end` < '2025-03-29 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-29 23:26:18] Production.INFO: count ==2209 [2025-03-29 23:26:18] Production.ERROR: pbx CDR StartTime 2025-03-29 20:26:05 - End Time 2025-03-29 23:26:05 [2025-03-29 23:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792189', 'tblTempUsageDetail_20' ) start [2025-03-29 23:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792189', 'tblTempUsageDetail_20' ) end [2025-03-29 23:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792189', 'tblTempVendorCDR_20' ) start [2025-03-29 23:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792189', 'tblTempVendorCDR_20' ) end [2025-03-29 23:26:19] Production.INFO: ProcessCDR(1,14792189,1,1,2) [2025-03-29 23:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792189', 'tblTempUsageDetail_20' ) start [2025-03-29 23:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792189', 'tblTempUsageDetail_20' ) end [2025-03-29 23:26:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 23:26:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 23:26:22] Production.INFO: ==26345== Releasing lock... [2025-03-29 23:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 23:26:22] Production.INFO: 44.5 MB #Memory Used# [2025-03-29 23:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 20:27:05 [end_date_ymd] => 2025-03-29 23:27:05 [RateCDR] => 1 ) [2025-03-29 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-29 20:27:05' and `end` < '2025-03-29 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-29 23:27:18] Production.INFO: count ==2207 [2025-03-29 23:27:19] Production.ERROR: pbx CDR StartTime 2025-03-29 20:27:05 - End Time 2025-03-29 23:27:05 [2025-03-29 23:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 23:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792194', 'tblTempUsageDetail_20' ) start [2025-03-29 23:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792194', 'tblTempUsageDetail_20' ) end [2025-03-29 23:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792194', 'tblTempVendorCDR_20' ) start [2025-03-29 23:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792194', 'tblTempVendorCDR_20' ) end [2025-03-29 23:27:19] Production.INFO: ProcessCDR(1,14792194,1,1,2) [2025-03-29 23:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792194', 'tblTempUsageDetail_20' ) start [2025-03-29 23:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792194', 'tblTempUsageDetail_20' ) end [2025-03-29 23:27:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 23:27:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 23:27:24] Production.INFO: ==26418== Releasing lock... [2025-03-29 23:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 23:27:24] Production.INFO: 44.5 MB #Memory Used# [2025-03-29 23:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 20:28:05 [end_date_ymd] => 2025-03-29 23:28:05 [RateCDR] => 1 ) [2025-03-29 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-29 20:28:05' and `end` < '2025-03-29 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-29 23:28:18] Production.INFO: count ==2204 [2025-03-29 23:28:19] Production.ERROR: pbx CDR StartTime 2025-03-29 20:28:05 - End Time 2025-03-29 23:28:05 [2025-03-29 23:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 23:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792199', 'tblTempUsageDetail_20' ) start [2025-03-29 23:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792199', 'tblTempUsageDetail_20' ) end [2025-03-29 23:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792199', 'tblTempVendorCDR_20' ) start [2025-03-29 23:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792199', 'tblTempVendorCDR_20' ) end [2025-03-29 23:28:19] Production.INFO: ProcessCDR(1,14792199,1,1,2) [2025-03-29 23:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792199', 'tblTempUsageDetail_20' ) start [2025-03-29 23:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792199', 'tblTempUsageDetail_20' ) end [2025-03-29 23:28:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 23:28:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 23:28:23] Production.INFO: ==26495== Releasing lock... [2025-03-29 23:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 23:28:23] Production.INFO: 44.5 MB #Memory Used# [2025-03-29 23:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 20:29:06 [end_date_ymd] => 2025-03-29 23:29:06 [RateCDR] => 1 ) [2025-03-29 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-29 20:29:06' and `end` < '2025-03-29 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-29 23:29:19] Production.INFO: count ==2189 [2025-03-29 23:29:20] Production.ERROR: pbx CDR StartTime 2025-03-29 20:29:06 - End Time 2025-03-29 23:29:06 [2025-03-29 23:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 23:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792204', 'tblTempUsageDetail_20' ) start [2025-03-29 23:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792204', 'tblTempUsageDetail_20' ) end [2025-03-29 23:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792204', 'tblTempVendorCDR_20' ) start [2025-03-29 23:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792204', 'tblTempVendorCDR_20' ) end [2025-03-29 23:29:20] Production.INFO: ProcessCDR(1,14792204,1,1,2) [2025-03-29 23:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792204', 'tblTempUsageDetail_20' ) start [2025-03-29 23:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792204', 'tblTempUsageDetail_20' ) end [2025-03-29 23:29:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 23:29:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 23:29:24] Production.INFO: ==26566== Releasing lock... [2025-03-29 23:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 23:29:24] Production.INFO: 44.5 MB #Memory Used# [2025-03-29 23:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 20:30:05 [end_date_ymd] => 2025-03-29 23:30:05 [RateCDR] => 1 ) [2025-03-29 23:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 20:30:05' and `end` < '2025-03-29 23:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 23:30:18] Production.INFO: count ==2184 [2025-03-29 23:30:19] Production.ERROR: pbx CDR StartTime 2025-03-29 20:30:05 - End Time 2025-03-29 23:30:05 [2025-03-29 23:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792210', 'tblTempUsageDetail_20' ) start [2025-03-29 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792210', 'tblTempUsageDetail_20' ) end [2025-03-29 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792210', 'tblTempVendorCDR_20' ) start [2025-03-29 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792210', 'tblTempVendorCDR_20' ) end [2025-03-29 23:30:19] Production.INFO: ProcessCDR(1,14792210,1,1,2) [2025-03-29 23:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792210', 'tblTempUsageDetail_20' ) start [2025-03-29 23:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792210', 'tblTempUsageDetail_20' ) end [2025-03-29 23:30:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 23:30:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 23:30:23] Production.INFO: ==26641== Releasing lock... [2025-03-29 23:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 23:30:23] Production.INFO: 44.5 MB #Memory Used# [2025-03-29 23:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 20:31:04 [end_date_ymd] => 2025-03-29 23:31:04 [RateCDR] => 1 ) [2025-03-29 23:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 20:31:04' and `end` < '2025-03-29 23: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-29 23:31:17] Production.INFO: count ==2115 [2025-03-29 23:31:18] Production.ERROR: pbx CDR StartTime 2025-03-29 20:31:04 - End Time 2025-03-29 23:31:04 [2025-03-29 23:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792215', 'tblTempUsageDetail_20' ) start [2025-03-29 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792215', 'tblTempUsageDetail_20' ) end [2025-03-29 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792215', 'tblTempVendorCDR_20' ) start [2025-03-29 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792215', 'tblTempVendorCDR_20' ) end [2025-03-29 23:31:18] Production.INFO: ProcessCDR(1,14792215,1,1,2) [2025-03-29 23:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792215', 'tblTempUsageDetail_20' ) start [2025-03-29 23:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792215', 'tblTempUsageDetail_20' ) end [2025-03-29 23:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 23:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 23:31:21] Production.INFO: ==26720== Releasing lock... [2025-03-29 23:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 23:31:21] Production.INFO: 44 MB #Memory Used# [2025-03-29 23:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 20:32:05 [end_date_ymd] => 2025-03-29 23:32:05 [RateCDR] => 1 ) [2025-03-29 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-29 20:32:05' and `end` < '2025-03-29 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-29 23:32:18] Production.INFO: count ==2114 [2025-03-29 23:32:19] Production.ERROR: pbx CDR StartTime 2025-03-29 20:32:05 - End Time 2025-03-29 23:32:05 [2025-03-29 23:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792220', 'tblTempUsageDetail_20' ) start [2025-03-29 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792220', 'tblTempUsageDetail_20' ) end [2025-03-29 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792220', 'tblTempVendorCDR_20' ) start [2025-03-29 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792220', 'tblTempVendorCDR_20' ) end [2025-03-29 23:32:19] Production.INFO: ProcessCDR(1,14792220,1,1,2) [2025-03-29 23:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792220', 'tblTempUsageDetail_20' ) start [2025-03-29 23:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792220', 'tblTempUsageDetail_20' ) end [2025-03-29 23:32:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 23:32:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 23:32:24] Production.INFO: ==26795== Releasing lock... [2025-03-29 23:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 23:32:24] Production.INFO: 44.25 MB #Memory Used# [2025-03-29 23:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 20:33:05 [end_date_ymd] => 2025-03-29 23:33:05 [RateCDR] => 1 ) [2025-03-29 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-29 20:33:05' and `end` < '2025-03-29 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-29 23:33:18] Production.INFO: count ==2093 [2025-03-29 23:33:19] Production.ERROR: pbx CDR StartTime 2025-03-29 20:33:05 - End Time 2025-03-29 23:33:05 [2025-03-29 23:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 23:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792225', 'tblTempUsageDetail_20' ) start [2025-03-29 23:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792225', 'tblTempUsageDetail_20' ) end [2025-03-29 23:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792225', 'tblTempVendorCDR_20' ) start [2025-03-29 23:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792225', 'tblTempVendorCDR_20' ) end [2025-03-29 23:33:19] Production.INFO: ProcessCDR(1,14792225,1,1,2) [2025-03-29 23:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792225', 'tblTempUsageDetail_20' ) start [2025-03-29 23:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792225', 'tblTempUsageDetail_20' ) end [2025-03-29 23:33:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 23:33:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 23:33:24] Production.INFO: ==26871== Releasing lock... [2025-03-29 23:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 23:33:24] Production.INFO: 43.75 MB #Memory Used# [2025-03-29 23:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 20:34:05 [end_date_ymd] => 2025-03-29 23:34:05 [RateCDR] => 1 ) [2025-03-29 23:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 20:34:05' and `end` < '2025-03-29 23:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 23:34:18] Production.INFO: count ==2091 [2025-03-29 23:34:19] Production.ERROR: pbx CDR StartTime 2025-03-29 20:34:05 - End Time 2025-03-29 23:34:05 [2025-03-29 23:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792230', 'tblTempUsageDetail_20' ) start [2025-03-29 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792230', 'tblTempUsageDetail_20' ) end [2025-03-29 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792230', 'tblTempVendorCDR_20' ) start [2025-03-29 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792230', 'tblTempVendorCDR_20' ) end [2025-03-29 23:34:19] Production.INFO: ProcessCDR(1,14792230,1,1,2) [2025-03-29 23:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792230', 'tblTempUsageDetail_20' ) start [2025-03-29 23:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792230', 'tblTempUsageDetail_20' ) end [2025-03-29 23:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 23:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 23:34:22] Production.INFO: ==26947== Releasing lock... [2025-03-29 23:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 23:34:22] Production.INFO: 43.75 MB #Memory Used# [2025-03-29 23:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 20:35:06 [end_date_ymd] => 2025-03-29 23:35:06 [RateCDR] => 1 ) [2025-03-29 23: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-29 20:35:06' and `end` < '2025-03-29 23: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-29 23:35:19] Production.INFO: count ==2093 [2025-03-29 23:35:19] Production.ERROR: pbx CDR StartTime 2025-03-29 20:35:06 - End Time 2025-03-29 23:35:06 [2025-03-29 23:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 23:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792235', 'tblTempUsageDetail_20' ) start [2025-03-29 23:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792235', 'tblTempUsageDetail_20' ) end [2025-03-29 23:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792235', 'tblTempVendorCDR_20' ) start [2025-03-29 23:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792235', 'tblTempVendorCDR_20' ) end [2025-03-29 23:35:20] Production.INFO: ProcessCDR(1,14792235,1,1,2) [2025-03-29 23:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792235', 'tblTempUsageDetail_20' ) start [2025-03-29 23:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792235', 'tblTempUsageDetail_20' ) end [2025-03-29 23:35:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 23:35:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 23:35:23] Production.INFO: ==27023== Releasing lock... [2025-03-29 23:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 23:35:23] Production.INFO: 43.75 MB #Memory Used# [2025-03-29 23:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 20:36:05 [end_date_ymd] => 2025-03-29 23:36:05 [RateCDR] => 1 ) [2025-03-29 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-29 20:36:05' and `end` < '2025-03-29 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-29 23:36:17] Production.INFO: count ==2080 [2025-03-29 23:36:18] Production.ERROR: pbx CDR StartTime 2025-03-29 20:36:05 - End Time 2025-03-29 23:36:05 [2025-03-29 23:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792240', 'tblTempUsageDetail_20' ) start [2025-03-29 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792240', 'tblTempUsageDetail_20' ) end [2025-03-29 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792240', 'tblTempVendorCDR_20' ) start [2025-03-29 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792240', 'tblTempVendorCDR_20' ) end [2025-03-29 23:36:18] Production.INFO: ProcessCDR(1,14792240,1,1,2) [2025-03-29 23:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792240', 'tblTempUsageDetail_20' ) start [2025-03-29 23:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792240', 'tblTempUsageDetail_20' ) end [2025-03-29 23:36:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 23:36:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 23:36:22] Production.INFO: ==27105== Releasing lock... [2025-03-29 23:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 23:36:22] Production.INFO: 43.75 MB #Memory Used# [2025-03-29 23:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 20:37:05 [end_date_ymd] => 2025-03-29 23:37:05 [RateCDR] => 1 ) [2025-03-29 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-29 20:37:05' and `end` < '2025-03-29 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-29 23:37:18] Production.INFO: count ==2042 [2025-03-29 23:37:19] Production.ERROR: pbx CDR StartTime 2025-03-29 20:37:05 - End Time 2025-03-29 23:37:05 [2025-03-29 23:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 23:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792245', 'tblTempUsageDetail_20' ) start [2025-03-29 23:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792245', 'tblTempUsageDetail_20' ) end [2025-03-29 23:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792245', 'tblTempVendorCDR_20' ) start [2025-03-29 23:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792245', 'tblTempVendorCDR_20' ) end [2025-03-29 23:37:19] Production.INFO: ProcessCDR(1,14792245,1,1,2) [2025-03-29 23:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792245', 'tblTempUsageDetail_20' ) start [2025-03-29 23:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792245', 'tblTempUsageDetail_20' ) end [2025-03-29 23:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 23:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 23:37:22] Production.INFO: ==27219== Releasing lock... [2025-03-29 23:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 23:37:22] Production.INFO: 43.5 MB #Memory Used# [2025-03-29 23:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 20:38:05 [end_date_ymd] => 2025-03-29 23:38:05 [RateCDR] => 1 ) [2025-03-29 23:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 20:38:05' and `end` < '2025-03-29 23:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 23:38:18] Production.INFO: count ==1993 [2025-03-29 23:38:19] Production.ERROR: pbx CDR StartTime 2025-03-29 20:38:05 - End Time 2025-03-29 23:38:05 [2025-03-29 23:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792250', 'tblTempUsageDetail_20' ) start [2025-03-29 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792250', 'tblTempUsageDetail_20' ) end [2025-03-29 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792250', 'tblTempVendorCDR_20' ) start [2025-03-29 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792250', 'tblTempVendorCDR_20' ) end [2025-03-29 23:38:19] Production.INFO: ProcessCDR(1,14792250,1,1,2) [2025-03-29 23:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792250', 'tblTempUsageDetail_20' ) start [2025-03-29 23:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792250', 'tblTempUsageDetail_20' ) end [2025-03-29 23:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 23:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 23:38:22] Production.INFO: ==27292== Releasing lock... [2025-03-29 23:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 23:38:22] Production.INFO: 43 MB #Memory Used# [2025-03-29 23:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 20:39:05 [end_date_ymd] => 2025-03-29 23:39:05 [RateCDR] => 1 ) [2025-03-29 23:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 20:39:05' and `end` < '2025-03-29 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-29 23:39:18] Production.INFO: count ==1985 [2025-03-29 23:39:19] Production.ERROR: pbx CDR StartTime 2025-03-29 20:39:05 - End Time 2025-03-29 23:39:05 [2025-03-29 23:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 23:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792255', 'tblTempUsageDetail_20' ) start [2025-03-29 23:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792255', 'tblTempUsageDetail_20' ) end [2025-03-29 23:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792255', 'tblTempVendorCDR_20' ) start [2025-03-29 23:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792255', 'tblTempVendorCDR_20' ) end [2025-03-29 23:39:19] Production.INFO: ProcessCDR(1,14792255,1,1,2) [2025-03-29 23:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792255', 'tblTempUsageDetail_20' ) start [2025-03-29 23:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792255', 'tblTempUsageDetail_20' ) end [2025-03-29 23:39:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 23:39:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 23:39:23] Production.INFO: ==27367== Releasing lock... [2025-03-29 23:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 23:39:23] Production.INFO: 43 MB #Memory Used# [2025-03-29 23:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 20:40:06 [end_date_ymd] => 2025-03-29 23:40:06 [RateCDR] => 1 ) [2025-03-29 23:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 20:40:06' and `end` < '2025-03-29 23:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 23:40:18] Production.INFO: count ==1984 [2025-03-29 23:40:19] Production.ERROR: pbx CDR StartTime 2025-03-29 20:40:06 - End Time 2025-03-29 23:40:06 [2025-03-29 23:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792261', 'tblTempUsageDetail_20' ) start [2025-03-29 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792261', 'tblTempUsageDetail_20' ) end [2025-03-29 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792261', 'tblTempVendorCDR_20' ) start [2025-03-29 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792261', 'tblTempVendorCDR_20' ) end [2025-03-29 23:40:19] Production.INFO: ProcessCDR(1,14792261,1,1,2) [2025-03-29 23:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792261', 'tblTempUsageDetail_20' ) start [2025-03-29 23:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792261', 'tblTempUsageDetail_20' ) end [2025-03-29 23:40:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 23:40:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 23:40:24] Production.INFO: ==27442== Releasing lock... [2025-03-29 23:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 23:40:24] Production.INFO: 43 MB #Memory Used# [2025-03-29 23:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 20:41:05 [end_date_ymd] => 2025-03-29 23:41:05 [RateCDR] => 1 ) [2025-03-29 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-29 20:41:05' and `end` < '2025-03-29 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-29 23:41:17] Production.INFO: count ==1954 [2025-03-29 23:41:18] Production.ERROR: pbx CDR StartTime 2025-03-29 20:41:05 - End Time 2025-03-29 23:41:05 [2025-03-29 23:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792266', 'tblTempUsageDetail_20' ) start [2025-03-29 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792266', 'tblTempUsageDetail_20' ) end [2025-03-29 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792266', 'tblTempVendorCDR_20' ) start [2025-03-29 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792266', 'tblTempVendorCDR_20' ) end [2025-03-29 23:41:18] Production.INFO: ProcessCDR(1,14792266,1,1,2) [2025-03-29 23:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792266', 'tblTempUsageDetail_20' ) start [2025-03-29 23:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792266', 'tblTempUsageDetail_20' ) end [2025-03-29 23:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 23:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 23:41:21] Production.INFO: ==27517== Releasing lock... [2025-03-29 23:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 23:41:21] Production.INFO: 42.75 MB #Memory Used# [2025-03-29 23:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 20:42:05 [end_date_ymd] => 2025-03-29 23:42:05 [RateCDR] => 1 ) [2025-03-29 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-29 20:42:05' and `end` < '2025-03-29 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-29 23:42:17] Production.INFO: count ==1948 [2025-03-29 23:42:18] Production.ERROR: pbx CDR StartTime 2025-03-29 20:42:05 - End Time 2025-03-29 23:42:05 [2025-03-29 23:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792271', 'tblTempUsageDetail_20' ) start [2025-03-29 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792271', 'tblTempUsageDetail_20' ) end [2025-03-29 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792271', 'tblTempVendorCDR_20' ) start [2025-03-29 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792271', 'tblTempVendorCDR_20' ) end [2025-03-29 23:42:18] Production.INFO: ProcessCDR(1,14792271,1,1,2) [2025-03-29 23:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792271', 'tblTempUsageDetail_20' ) start [2025-03-29 23:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792271', 'tblTempUsageDetail_20' ) end [2025-03-29 23:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 23:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 23:42:22] Production.INFO: ==27590== Releasing lock... [2025-03-29 23:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 23:42:22] Production.INFO: 43 MB #Memory Used# [2025-03-29 23:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 20:43:06 [end_date_ymd] => 2025-03-29 23:43:06 [RateCDR] => 1 ) [2025-03-29 23:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 20:43:06' and `end` < '2025-03-29 23:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 23:43:18] Production.INFO: count ==1944 [2025-03-29 23:43:19] Production.ERROR: pbx CDR StartTime 2025-03-29 20:43:06 - End Time 2025-03-29 23:43:06 [2025-03-29 23:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 23:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792276', 'tblTempUsageDetail_20' ) start [2025-03-29 23:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792276', 'tblTempUsageDetail_20' ) end [2025-03-29 23:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792276', 'tblTempVendorCDR_20' ) start [2025-03-29 23:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792276', 'tblTempVendorCDR_20' ) end [2025-03-29 23:43:19] Production.INFO: ProcessCDR(1,14792276,1,1,2) [2025-03-29 23:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792276', 'tblTempUsageDetail_20' ) start [2025-03-29 23:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792276', 'tblTempUsageDetail_20' ) end [2025-03-29 23:43:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 23:43:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 23:43:23] Production.INFO: ==27664== Releasing lock... [2025-03-29 23:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 23:43:23] Production.INFO: 42.75 MB #Memory Used# [2025-03-29 23:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 20:44:05 [end_date_ymd] => 2025-03-29 23:44:05 [RateCDR] => 1 ) [2025-03-29 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-29 20:44:05' and `end` < '2025-03-29 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-29 23:44:18] Production.INFO: count ==1941 [2025-03-29 23:44:19] Production.ERROR: pbx CDR StartTime 2025-03-29 20:44:05 - End Time 2025-03-29 23:44:05 [2025-03-29 23:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 23:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792281', 'tblTempUsageDetail_20' ) start [2025-03-29 23:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792281', 'tblTempUsageDetail_20' ) end [2025-03-29 23:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792281', 'tblTempVendorCDR_20' ) start [2025-03-29 23:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792281', 'tblTempVendorCDR_20' ) end [2025-03-29 23:44:19] Production.INFO: ProcessCDR(1,14792281,1,1,2) [2025-03-29 23:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792281', 'tblTempUsageDetail_20' ) start [2025-03-29 23:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792281', 'tblTempUsageDetail_20' ) end [2025-03-29 23:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 23:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 23:44:22] Production.INFO: ==27735== Releasing lock... [2025-03-29 23:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 23:44:22] Production.INFO: 42.5 MB #Memory Used# [2025-03-29 23:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 20:45:05 [end_date_ymd] => 2025-03-29 23:45:05 [RateCDR] => 1 ) [2025-03-29 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-29 20:45:05' and `end` < '2025-03-29 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-29 23:45:18] Production.INFO: count ==1924 [2025-03-29 23:45:19] Production.ERROR: pbx CDR StartTime 2025-03-29 20:45:05 - End Time 2025-03-29 23:45:05 [2025-03-29 23:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 23:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792286', 'tblTempUsageDetail_20' ) start [2025-03-29 23:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792286', 'tblTempUsageDetail_20' ) end [2025-03-29 23:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792286', 'tblTempVendorCDR_20' ) start [2025-03-29 23:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792286', 'tblTempVendorCDR_20' ) end [2025-03-29 23:45:19] Production.INFO: ProcessCDR(1,14792286,1,1,2) [2025-03-29 23:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792286', 'tblTempUsageDetail_20' ) start [2025-03-29 23:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792286', 'tblTempUsageDetail_20' ) end [2025-03-29 23:45:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 23:45:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 23:45:22] Production.INFO: ==27809== Releasing lock... [2025-03-29 23:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 23:45:22] Production.INFO: 42.75 MB #Memory Used# [2025-03-29 23:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 20:46:05 [end_date_ymd] => 2025-03-29 23:46:05 [RateCDR] => 1 ) [2025-03-29 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-29 20:46:05' and `end` < '2025-03-29 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-29 23:46:18] Production.INFO: count ==1935 [2025-03-29 23:46:18] Production.ERROR: pbx CDR StartTime 2025-03-29 20:46:05 - End Time 2025-03-29 23:46:05 [2025-03-29 23:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792291', 'tblTempUsageDetail_20' ) start [2025-03-29 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792291', 'tblTempUsageDetail_20' ) end [2025-03-29 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792291', 'tblTempVendorCDR_20' ) start [2025-03-29 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792291', 'tblTempVendorCDR_20' ) end [2025-03-29 23:46:18] Production.INFO: ProcessCDR(1,14792291,1,1,2) [2025-03-29 23:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792291', 'tblTempUsageDetail_20' ) start [2025-03-29 23:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792291', 'tblTempUsageDetail_20' ) end [2025-03-29 23:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 23:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 23:46:22] Production.INFO: ==27885== Releasing lock... [2025-03-29 23:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 23:46:22] Production.INFO: 42.75 MB #Memory Used# [2025-03-29 23:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 20:47:05 [end_date_ymd] => 2025-03-29 23:47:05 [RateCDR] => 1 ) [2025-03-29 23:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 20:47:05' and `end` < '2025-03-29 23:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 23:47:18] Production.INFO: count ==1933 [2025-03-29 23:47:19] Production.ERROR: pbx CDR StartTime 2025-03-29 20:47:05 - End Time 2025-03-29 23:47:05 [2025-03-29 23:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 23:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792296', 'tblTempUsageDetail_20' ) start [2025-03-29 23:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792296', 'tblTempUsageDetail_20' ) end [2025-03-29 23:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792296', 'tblTempVendorCDR_20' ) start [2025-03-29 23:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792296', 'tblTempVendorCDR_20' ) end [2025-03-29 23:47:19] Production.INFO: ProcessCDR(1,14792296,1,1,2) [2025-03-29 23:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792296', 'tblTempUsageDetail_20' ) start [2025-03-29 23:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792296', 'tblTempUsageDetail_20' ) end [2025-03-29 23:47:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 23:47:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 23:47:24] Production.INFO: ==27959== Releasing lock... [2025-03-29 23:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 23:47:24] Production.INFO: 42.5 MB #Memory Used# [2025-03-29 23:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 20:48:05 [end_date_ymd] => 2025-03-29 23:48:05 [RateCDR] => 1 ) [2025-03-29 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-29 20:48:05' and `end` < '2025-03-29 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-29 23:48:18] Production.INFO: count ==1933 [2025-03-29 23:48:19] Production.ERROR: pbx CDR StartTime 2025-03-29 20:48:05 - End Time 2025-03-29 23:48:05 [2025-03-29 23:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 23:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792301', 'tblTempUsageDetail_20' ) start [2025-03-29 23:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792301', 'tblTempUsageDetail_20' ) end [2025-03-29 23:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792301', 'tblTempVendorCDR_20' ) start [2025-03-29 23:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792301', 'tblTempVendorCDR_20' ) end [2025-03-29 23:48:19] Production.INFO: ProcessCDR(1,14792301,1,1,2) [2025-03-29 23:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792301', 'tblTempUsageDetail_20' ) start [2025-03-29 23:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792301', 'tblTempUsageDetail_20' ) end [2025-03-29 23:48:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 23:48:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 23:48:23] Production.INFO: ==28033== Releasing lock... [2025-03-29 23:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 23:48:23] Production.INFO: 42.75 MB #Memory Used# [2025-03-29 23:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 20:49:05 [end_date_ymd] => 2025-03-29 23:49:05 [RateCDR] => 1 ) [2025-03-29 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-29 20:49:05' and `end` < '2025-03-29 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-29 23:49:18] Production.INFO: count ==1939 [2025-03-29 23:49:18] Production.ERROR: pbx CDR StartTime 2025-03-29 20:49:05 - End Time 2025-03-29 23:49:05 [2025-03-29 23:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792306', 'tblTempUsageDetail_20' ) start [2025-03-29 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792306', 'tblTempUsageDetail_20' ) end [2025-03-29 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792306', 'tblTempVendorCDR_20' ) start [2025-03-29 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792306', 'tblTempVendorCDR_20' ) end [2025-03-29 23:49:18] Production.INFO: ProcessCDR(1,14792306,1,1,2) [2025-03-29 23:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792306', 'tblTempUsageDetail_20' ) start [2025-03-29 23:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792306', 'tblTempUsageDetail_20' ) end [2025-03-29 23:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 23:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 23:49:22] Production.INFO: ==28108== Releasing lock... [2025-03-29 23:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 23:49:22] Production.INFO: 43 MB #Memory Used# [2025-03-29 23:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 20:50:06 [end_date_ymd] => 2025-03-29 23:50:06 [RateCDR] => 1 ) [2025-03-29 23:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 20:50:06' and `end` < '2025-03-29 23:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 23:50:19] Production.INFO: count ==1941 [2025-03-29 23:50:19] Production.ERROR: pbx CDR StartTime 2025-03-29 20:50:06 - End Time 2025-03-29 23:50:06 [2025-03-29 23:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792311', 'tblTempUsageDetail_20' ) start [2025-03-29 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792311', 'tblTempUsageDetail_20' ) end [2025-03-29 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792311', 'tblTempVendorCDR_20' ) start [2025-03-29 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792311', 'tblTempVendorCDR_20' ) end [2025-03-29 23:50:19] Production.INFO: ProcessCDR(1,14792311,1,1,2) [2025-03-29 23:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792311', 'tblTempUsageDetail_20' ) start [2025-03-29 23:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792311', 'tblTempUsageDetail_20' ) end [2025-03-29 23:50:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 23:50:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 23:50:23] Production.INFO: ==28183== Releasing lock... [2025-03-29 23:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 23:50:23] Production.INFO: 42.5 MB #Memory Used# [2025-03-29 23:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 20:51:05 [end_date_ymd] => 2025-03-29 23:51:05 [RateCDR] => 1 ) [2025-03-29 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-29 20:51:05' and `end` < '2025-03-29 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-29 23:51:18] Production.INFO: count ==1909 [2025-03-29 23:51:18] Production.ERROR: pbx CDR StartTime 2025-03-29 20:51:05 - End Time 2025-03-29 23:51:05 [2025-03-29 23:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792317', 'tblTempUsageDetail_20' ) start [2025-03-29 23:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792317', 'tblTempUsageDetail_20' ) end [2025-03-29 23:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792317', 'tblTempVendorCDR_20' ) start [2025-03-29 23:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792317', 'tblTempVendorCDR_20' ) end [2025-03-29 23:51:19] Production.INFO: ProcessCDR(1,14792317,1,1,2) [2025-03-29 23:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792317', 'tblTempUsageDetail_20' ) start [2025-03-29 23:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792317', 'tblTempUsageDetail_20' ) end [2025-03-29 23:51:24] Production.ERROR: pbx prc_insertCDR start [2025-03-29 23:51:24] Production.ERROR: pbx prc_insertCDR end [2025-03-29 23:51:24] Production.INFO: ==28257== Releasing lock... [2025-03-29 23:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 23:51:24] Production.INFO: 42.5 MB #Memory Used# [2025-03-29 23:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 20:52:06 [end_date_ymd] => 2025-03-29 23:52:06 [RateCDR] => 1 ) [2025-03-29 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-29 20:52:06' and `end` < '2025-03-29 23:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 23:52:18] Production.INFO: count ==1900 [2025-03-29 23:52:19] Production.ERROR: pbx CDR StartTime 2025-03-29 20:52:06 - End Time 2025-03-29 23:52:06 [2025-03-29 23:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 23:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792322', 'tblTempUsageDetail_20' ) start [2025-03-29 23:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792322', 'tblTempUsageDetail_20' ) end [2025-03-29 23:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792322', 'tblTempVendorCDR_20' ) start [2025-03-29 23:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792322', 'tblTempVendorCDR_20' ) end [2025-03-29 23:52:19] Production.INFO: ProcessCDR(1,14792322,1,1,2) [2025-03-29 23:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792322', 'tblTempUsageDetail_20' ) start [2025-03-29 23:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792322', 'tblTempUsageDetail_20' ) end [2025-03-29 23:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 23:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 23:52:22] Production.INFO: ==28369== Releasing lock... [2025-03-29 23:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 23:52:22] Production.INFO: 42.25 MB #Memory Used# [2025-03-29 23:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 20:53:05 [end_date_ymd] => 2025-03-29 23:53:05 [RateCDR] => 1 ) [2025-03-29 23:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 20:53:05' and `end` < '2025-03-29 23:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 23:53:17] Production.INFO: count ==1893 [2025-03-29 23:53:18] Production.ERROR: pbx CDR StartTime 2025-03-29 20:53:05 - End Time 2025-03-29 23:53:05 [2025-03-29 23:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792327', 'tblTempUsageDetail_20' ) start [2025-03-29 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792327', 'tblTempUsageDetail_20' ) end [2025-03-29 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792327', 'tblTempVendorCDR_20' ) start [2025-03-29 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792327', 'tblTempVendorCDR_20' ) end [2025-03-29 23:53:18] Production.INFO: ProcessCDR(1,14792327,1,1,2) [2025-03-29 23:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792327', 'tblTempUsageDetail_20' ) start [2025-03-29 23:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792327', 'tblTempUsageDetail_20' ) end [2025-03-29 23:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 23:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 23:53:22] Production.INFO: ==28448== Releasing lock... [2025-03-29 23:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 23:53:22] Production.INFO: 42.25 MB #Memory Used# [2025-03-29 23:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 20:54:05 [end_date_ymd] => 2025-03-29 23:54:05 [RateCDR] => 1 ) [2025-03-29 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-29 20:54:05' and `end` < '2025-03-29 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-29 23:54:18] Production.INFO: count ==1887 [2025-03-29 23:54:18] Production.ERROR: pbx CDR StartTime 2025-03-29 20:54:05 - End Time 2025-03-29 23:54:05 [2025-03-29 23:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792332', 'tblTempUsageDetail_20' ) start [2025-03-29 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792332', 'tblTempUsageDetail_20' ) end [2025-03-29 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792332', 'tblTempVendorCDR_20' ) start [2025-03-29 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792332', 'tblTempVendorCDR_20' ) end [2025-03-29 23:54:18] Production.INFO: ProcessCDR(1,14792332,1,1,2) [2025-03-29 23:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792332', 'tblTempUsageDetail_20' ) start [2025-03-29 23:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792332', 'tblTempUsageDetail_20' ) end [2025-03-29 23:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 23:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 23:54:22] Production.INFO: ==28521== Releasing lock... [2025-03-29 23:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 23:54:22] Production.INFO: 42.5 MB #Memory Used# [2025-03-29 23:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 20:55:05 [end_date_ymd] => 2025-03-29 23:55:05 [RateCDR] => 1 ) [2025-03-29 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-29 20:55:05' and `end` < '2025-03-29 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-29 23:55:18] Production.INFO: count ==1881 [2025-03-29 23:55:18] Production.ERROR: pbx CDR StartTime 2025-03-29 20:55:05 - End Time 2025-03-29 23:55:05 [2025-03-29 23:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792337', 'tblTempUsageDetail_20' ) start [2025-03-29 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792337', 'tblTempUsageDetail_20' ) end [2025-03-29 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792337', 'tblTempVendorCDR_20' ) start [2025-03-29 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792337', 'tblTempVendorCDR_20' ) end [2025-03-29 23:55:18] Production.INFO: ProcessCDR(1,14792337,1,1,2) [2025-03-29 23:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792337', 'tblTempUsageDetail_20' ) start [2025-03-29 23:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792337', 'tblTempUsageDetail_20' ) end [2025-03-29 23:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 23:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 23:55:22] Production.INFO: ==28599== Releasing lock... [2025-03-29 23:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 23:55:22] Production.INFO: 42.25 MB #Memory Used# [2025-03-29 23:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 20:56:06 [end_date_ymd] => 2025-03-29 23:56:06 [RateCDR] => 1 ) [2025-03-29 23:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 20:56:06' and `end` < '2025-03-29 23:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 23:56:18] Production.INFO: count ==1889 [2025-03-29 23:56:19] Production.ERROR: pbx CDR StartTime 2025-03-29 20:56:06 - End Time 2025-03-29 23:56:06 [2025-03-29 23:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 23:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792342', 'tblTempUsageDetail_20' ) start [2025-03-29 23:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792342', 'tblTempUsageDetail_20' ) end [2025-03-29 23:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792342', 'tblTempVendorCDR_20' ) start [2025-03-29 23:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792342', 'tblTempVendorCDR_20' ) end [2025-03-29 23:56:19] Production.INFO: ProcessCDR(1,14792342,1,1,2) [2025-03-29 23:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792342', 'tblTempUsageDetail_20' ) start [2025-03-29 23:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792342', 'tblTempUsageDetail_20' ) end [2025-03-29 23:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 23:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 23:56:22] Production.INFO: ==28673== Releasing lock... [2025-03-29 23:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 23:56:22] Production.INFO: 42.5 MB #Memory Used# [2025-03-29 23:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 20:57:05 [end_date_ymd] => 2025-03-29 23:57:05 [RateCDR] => 1 ) [2025-03-29 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-29 20:57:05' and `end` < '2025-03-29 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-29 23:57:18] Production.INFO: count ==1869 [2025-03-29 23:57:18] Production.ERROR: pbx CDR StartTime 2025-03-29 20:57:05 - End Time 2025-03-29 23:57:05 [2025-03-29 23:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792347', 'tblTempUsageDetail_20' ) start [2025-03-29 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792347', 'tblTempUsageDetail_20' ) end [2025-03-29 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792347', 'tblTempVendorCDR_20' ) start [2025-03-29 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792347', 'tblTempVendorCDR_20' ) end [2025-03-29 23:57:18] Production.INFO: ProcessCDR(1,14792347,1,1,2) [2025-03-29 23:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792347', 'tblTempUsageDetail_20' ) start [2025-03-29 23:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792347', 'tblTempUsageDetail_20' ) end [2025-03-29 23:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-29 23:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-29 23:57:22] Production.INFO: ==28743== Releasing lock... [2025-03-29 23:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 23:57:22] Production.INFO: 42 MB #Memory Used# [2025-03-29 23:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 20:58:05 [end_date_ymd] => 2025-03-29 23:58:05 [RateCDR] => 1 ) [2025-03-29 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-29 20:58:05' and `end` < '2025-03-29 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-29 23:58:18] Production.INFO: count ==1866 [2025-03-29 23:58:18] Production.ERROR: pbx CDR StartTime 2025-03-29 20:58:05 - End Time 2025-03-29 23:58:05 [2025-03-29 23:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792352', 'tblTempUsageDetail_20' ) start [2025-03-29 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792352', 'tblTempUsageDetail_20' ) end [2025-03-29 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792352', 'tblTempVendorCDR_20' ) start [2025-03-29 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792352', 'tblTempVendorCDR_20' ) end [2025-03-29 23:58:18] Production.INFO: ProcessCDR(1,14792352,1,1,2) [2025-03-29 23:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792352', 'tblTempUsageDetail_20' ) start [2025-03-29 23:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792352', 'tblTempUsageDetail_20' ) end [2025-03-29 23:58:23] Production.ERROR: pbx prc_insertCDR start [2025-03-29 23:58:23] Production.ERROR: pbx prc_insertCDR end [2025-03-29 23:58:23] Production.INFO: ==28820== Releasing lock... [2025-03-29 23:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 23:58:23] Production.INFO: 42 MB #Memory Used# [2025-03-29 23:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 20:59:04 [end_date_ymd] => 2025-03-29 23:59:04 [RateCDR] => 1 ) [2025-03-29 23:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 20:59:04' and `end` < '2025-03-29 23:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-29 23:59:17] Production.INFO: count ==1843 [2025-03-29 23:59:17] Production.ERROR: pbx CDR StartTime 2025-03-29 20:59:04 - End Time 2025-03-29 23:59:04 [2025-03-29 23:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-29 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792357', 'tblTempUsageDetail_20' ) start [2025-03-29 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792357', 'tblTempUsageDetail_20' ) end [2025-03-29 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792357', 'tblTempVendorCDR_20' ) start [2025-03-29 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792357', 'tblTempVendorCDR_20' ) end [2025-03-29 23:59:18] Production.INFO: ProcessCDR(1,14792357,1,1,2) [2025-03-29 23:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-29 23:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-29 23:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792357', 'tblTempUsageDetail_20' ) start [2025-03-29 23:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792357', 'tblTempUsageDetail_20' ) end [2025-03-29 23:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-29 23:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-29 23:59:21] Production.INFO: ==28893== Releasing lock... [2025-03-29 23:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-29 23:59:21] Production.INFO: 41.75 MB #Memory Used#